mario-education 2.4.126-admin → 2.4.127-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 (53) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +5 -8
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/AreaChart.d.ts +10 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/BarAndAreaChart.d.ts +9 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/BarChart.d.ts +11 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/ChartViewDashboard.d.ts +20 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/CheckboxCustom.d.ts +12 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/ChoiceChartType.d.ts +10 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/DashboardCard.d.ts +7 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/HeaderChart/HeaderChart.d.ts +16 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/HeaderChart/PlusButton.d.ts +6 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/Loading.d.ts +3 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/PieChart.d.ts +9 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/StudentByGrade.d.ts +7 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/TopMostSurveyUsed.d.ts +7 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/TotalCard.d.ts +4 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/chartOptions.d.ts +6 -0
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/constants.d.ts +60 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/overviewFn.d.ts +17 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts +274 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/utils.d.ts +129 -0
  21. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useBehavior.d.ts +7 -0
  22. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useChartDatas.d.ts +38 -0
  23. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useContainerDimensions.d.ts +4 -0
  24. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useDashboard.d.ts +29 -0
  25. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/views/SurveyDashboard.d.ts +3 -0
  26. package/dist/MarioFramework.Education/ClientApp/src/index.d.ts +2 -1
  27. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +4 -0
  28. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +2 -1
  29. package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +1 -0
  30. package/dist/index.css +822 -1
  31. package/dist/index.js +1642 -1
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.modern.js +1642 -2
  34. package/dist/index.modern.js.map +1 -1
  35. package/package.json +2 -2
  36. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
  37. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchCounselor/hooks/useSwitchAssistant.d.ts +0 -18
  38. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/components/SwitchCounselorModal.d.ts +0 -4
  39. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/hooks/useSwitchCounselor.d.ts +0 -18
  40. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/apiClient/index.d.ts +0 -9
  41. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/SelectorTemplate.d.ts +0 -3
  42. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/TemplateDialogModal.d.ts +0 -3
  43. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/configs/types.d.ts +0 -12
  44. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateBuilder.d.ts +0 -12
  45. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateDetail.d.ts +0 -20
  46. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateList.d.ts +0 -9
  47. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateStart.d.ts +0 -9
  48. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateBuilderPage.d.ts +0 -3
  49. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateContainer.d.ts +0 -3
  50. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateIEPList.d.ts +0 -3
  51. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateStartBuild.d.ts +0 -3
  52. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateSystemList.d.ts +0 -3
  53. /package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +0 -0
@@ -71,7 +71,8 @@ export declare type DashboardFilter = {
71
71
  teacherUserId?: string;
72
72
  studentUserId?: string;
73
73
  bandScore: string;
74
- optionDate: string;
74
+ optionDate?: string;
75
+ favoriteSurvey?: number[];
75
76
  };
76
77
  export interface ICircleChartItem {
77
78
  id: number;
@@ -119,18 +120,13 @@ export interface ISeries {
119
120
  name: string;
120
121
  data: number[];
121
122
  }
122
- export interface IlearningItem {
123
+ export interface ILearningItem {
123
124
  learningStrategyName: string;
124
125
  usageCount: number;
125
126
  usagePoint: number[];
126
127
  }
127
128
  export interface IlearningStrategies {
128
- learningStrategies: IlearningItem[];
129
- }
130
- export interface ILearningItem {
131
- learningStrategyName: string;
132
- usageCount: number;
133
- usagePoint: number[];
129
+ learningStrategies: ILearningItem[];
134
130
  }
135
131
  export interface IStudentPercentQuestion {
136
132
  percentQuestion: number;
@@ -233,6 +229,7 @@ export interface ILabelBox {
233
229
  gender: IGenderLabelBox;
234
230
  grade: number;
235
231
  bandScore: number;
232
+ favoriteSurvey?: number;
236
233
  }
237
234
  export declare enum TYPECHART {
238
235
  AREA = 0,
@@ -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
+ percentData: boolean;
8
+ }
9
+ declare const AreaChart: FC<IProps>;
10
+ export default AreaChart;
@@ -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 BarAndAreaChart: FC<IProps>;
9
+ export default BarAndAreaChart;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ isShowChartLabel: boolean;
8
+ percentData: boolean;
9
+ }
10
+ declare const BarChart: FC<IProps>;
11
+ export default BarChart;
@@ -0,0 +1,20 @@
1
+ import { FC } from "react";
2
+ import { IChartOptions, ISeries } from "../configs/types";
3
+ import { TYPECHART } from "../configs/types";
4
+ export interface IProps {
5
+ data: any;
6
+ typeChart: TYPECHART[];
7
+ onActiveColumn?: Function;
8
+ activeColumn: boolean[];
9
+ series: ISeries[];
10
+ avg?: number[];
11
+ months: any;
12
+ onChangeChart?: Function;
13
+ optionType?: IChartOptions[];
14
+ name: string;
15
+ isShowChartLabel?: boolean;
16
+ percentData?: boolean;
17
+ classFontSize?: string;
18
+ }
19
+ declare const ChartViewDashboard: FC<IProps>;
20
+ export default ChartViewDashboard;
@@ -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,10 @@
1
+ /// <reference types="react" />
2
+ import { TYPECHART } from "../configs/constants";
3
+ import { IChartOptions } from "../configs/types";
4
+ interface IChoiceChartType {
5
+ onChangeChart: Function;
6
+ typeChart?: TYPECHART[];
7
+ options: IChartOptions[];
8
+ }
9
+ declare const ChoiceChartType: ({ onChangeChart, typeChart, options }: IChoiceChartType) => JSX.Element;
10
+ export default ChoiceChartType;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ label: string;
4
+ children: any;
5
+ }
6
+ declare const DashboardCard: FC<Props>;
7
+ export default DashboardCard;
@@ -0,0 +1,16 @@
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
+ contentTooltip?: string;
12
+ index: number;
13
+ onClickOptions?: () => void;
14
+ }
15
+ declare const HeaderChart: FC<IProps>;
16
+ 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,3 @@
1
+ import { FC } from "react";
2
+ declare const Loading: FC;
3
+ export default Loading;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { IDashboardFlag } from "../configs/types";
3
+ interface IProps {
4
+ data?: IDashboardFlag;
5
+ name: string;
6
+ classFontSize?: string;
7
+ }
8
+ declare const PieChart: FC<IProps>;
9
+ export default PieChart;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IStudentByGrade } from "../configs/types";
3
+ interface IGradeStudentChart {
4
+ data: IStudentByGrade[];
5
+ }
6
+ declare const _default: React.NamedExoticComponent<IGradeStudentChart>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { ITopMostSurveyUsed } from "../configs/types";
3
+ interface ITopMostSurvey {
4
+ data: ITopMostSurveyUsed[];
5
+ }
6
+ declare const _default: React.NamedExoticComponent<ITopMostSurvey>;
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TotalCardItem } from "../configs/types";
3
+ declare const TotalCard: ({ icon, title, value }: TotalCardItem) => JSX.Element;
4
+ export default TotalCard;
@@ -0,0 +1,6 @@
1
+ import { ApexOptions } from "apexcharts";
2
+ import { ISeries } from "./types";
3
+ export declare const maxSeries: (series: ISeries[]) => number;
4
+ export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean, isShowChartLabel?: boolean | undefined, percentData?: boolean | undefined, series?: ISeries[] | undefined) => ApexOptions;
5
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
6
+ export declare const pieChartOptions: ApexOptions;
@@ -0,0 +1,60 @@
1
+ import { IStudentByAge, ITopMostSurveyUsed } from "./types";
2
+ export declare const colors: string[];
3
+ export declare const INITIAL_BEST_FRIENDS: {
4
+ friends: number;
5
+ couldBeFriends: number;
6
+ supportive: number;
7
+ notSpeakingAtTheMoment: number;
8
+ };
9
+ export declare const INITIAL_ACTIVITY_FRIENDS: {
10
+ like: number;
11
+ love: number;
12
+ interested: number;
13
+ curious: number;
14
+ };
15
+ export declare const LEARNING_STRATEGY_CHART_COLORS: string[];
16
+ export declare const COLOR_CHART_AND_PIE: string[];
17
+ export declare const COLOR_LABEL_PIE: string[];
18
+ export declare const LEARNING_STRATEGY_INIT: {
19
+ learningStrategies: never[];
20
+ };
21
+ export declare const GRAGE_DEFAULT: string[];
22
+ export declare const INITIAl_COLUNM_CHART_AND_PERCENT: {
23
+ overviewQuestionChoice: never[];
24
+ type: string;
25
+ };
26
+ export declare const INITIAL_AGE_OF_STUDENT: IStudentByAge;
27
+ export declare const LABEL_NAME_PIE_CHART: string[];
28
+ export declare const INITIAL_STUDENT_BY_GENDER: {
29
+ male: number;
30
+ female: number;
31
+ };
32
+ export declare const INITIAl_STUDENT_DASHBOARD: {
33
+ responseRate: number;
34
+ totalSurvey: number;
35
+ };
36
+ export declare const INIT_TOP_MOST_SURVEY_USED: ITopMostSurveyUsed;
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
+ }[];
45
+ export declare const DEFAULT_START_DATE: number;
46
+ export declare const DEFAULT_END_DATE: number;
47
+ export declare const CALENDAR_OPTIONS: {
48
+ label: string;
49
+ startDate: number;
50
+ endDate: number;
51
+ }[];
52
+ export declare const COLOR_NAME: string[];
53
+ export declare enum TYPECHART {
54
+ AREA = 0,
55
+ BAR = 1,
56
+ LINE = 2,
57
+ BOTH = 3
58
+ }
59
+ export declare const topMostSurveyNameUsed = "top_5_most_survey_used";
60
+ export declare const optionTotalSurvey: string[];
@@ -0,0 +1,17 @@
1
+ import { DASHBOARD_TEMPLATE, ISeries, TOTAL_DASHBOAD_SURVEY } from "./types";
2
+ export declare const handleViewSeriesActive: (active: boolean[]) => number[];
3
+ export declare const convertDataToDataChart: (data: DASHBOARD_TEMPLATE[]) => string[];
4
+ export declare const convertToSeriesTemplate: (data: DASHBOARD_TEMPLATE[]) => {
5
+ name: string;
6
+ data: number[];
7
+ }[];
8
+ export declare const convertToSeriesTotal: (data: TOTAL_DASHBOAD_SURVEY[]) => {
9
+ name: any;
10
+ data: number[];
11
+ }[];
12
+ export declare const mergeBarChartAndArea: (series: ISeries[]) => {
13
+ type: string;
14
+ name: string;
15
+ data: number[];
16
+ }[];
17
+ export declare const convertToAvg: (dataCharts: string[], data: DASHBOARD_TEMPLATE[], months: string[]) => number[];
@@ -0,0 +1,274 @@
1
+ /// <reference types="react" />
2
+ export declare type LoginCountingReport = {
3
+ date: string;
4
+ studentLoginCount: number;
5
+ teacherLoginCount: number;
6
+ };
7
+ export declare type QuantityReport = {
8
+ teacherPercentage: number;
9
+ studentPercentage: number;
10
+ assistantPercentage: number;
11
+ numberOfTeachers: number;
12
+ numberOfStudents: number;
13
+ numberOfAssistants: number;
14
+ };
15
+ export declare type SkillReportItem = {
16
+ skillName: string;
17
+ ratings: SkillRating[];
18
+ };
19
+ declare type SkillRating = {
20
+ time: string;
21
+ rating: number;
22
+ };
23
+ export declare type GoalProgressReport = {
24
+ createdAt: string;
25
+ noProgress: number;
26
+ slight: number;
27
+ moderate: number;
28
+ significant: number;
29
+ achived: number;
30
+ total: number;
31
+ };
32
+ export declare type TimeInSessionReport = {
33
+ sessionCategory: string;
34
+ studentPerceivedImpact: number;
35
+ teacherPerceivedImpact: number;
36
+ };
37
+ export declare type PerceivedImpactReport = {
38
+ learningStrategyName: string;
39
+ studentRating: number;
40
+ teacherRating: number;
41
+ };
42
+ export declare type GradeReport = {
43
+ beforeIntervention: number;
44
+ duringIntervention: number;
45
+ afterIntervention: number;
46
+ bandScores: BandScore[];
47
+ };
48
+ export declare type BandScore = {
49
+ label: string;
50
+ value: number;
51
+ };
52
+ export declare type TotalCardItem = {
53
+ icon: any;
54
+ title: string;
55
+ value: string;
56
+ isUp: boolean;
57
+ deviant: string;
58
+ filter: string;
59
+ };
60
+ export declare type DashboardFilter = {
61
+ startDate?: number;
62
+ endDate?: number;
63
+ studentIds: number[];
64
+ grade: string[];
65
+ favoriteSurvey?: number[];
66
+ teacherId?: number;
67
+ studentId?: number;
68
+ calendar?: string;
69
+ bandScore: string;
70
+ currentGrade?: string;
71
+ teacherUserId?: string;
72
+ studentUserId?: string;
73
+ };
74
+ export interface ICircleChartItem {
75
+ id: number;
76
+ name: string;
77
+ number: number;
78
+ background: string;
79
+ width: number;
80
+ height: number;
81
+ }
82
+ export interface ICircleChart {
83
+ circleChartItems: ICircleChartItem[];
84
+ }
85
+ export interface IsyntheticFriendCircle {
86
+ bestFriends: number;
87
+ friends: number;
88
+ couldBeFriends: number;
89
+ supportive: number;
90
+ notSpeakingAtTheMoment: number;
91
+ }
92
+ export interface IActivityCircle {
93
+ like: number;
94
+ love: number;
95
+ interested: number;
96
+ curious: number;
97
+ }
98
+ export interface IChartComponent {
99
+ label: string;
100
+ children: JSX.Element | undefined;
101
+ }
102
+ export declare enum LegalGenderType {
103
+ None = 0,
104
+ Male = 1,
105
+ Female = 2
106
+ }
107
+ export interface IDesignationsQuantity {
108
+ name: string;
109
+ quantity: number;
110
+ }
111
+ export interface IStudentByGrade {
112
+ grade: string;
113
+ quantity: number;
114
+ designationsQuantity: IDesignationsQuantity[];
115
+ }
116
+ export interface ISeries {
117
+ name: string;
118
+ data: number[];
119
+ }
120
+ export interface ITopMostSurveyUsed {
121
+ nameSurvey: string;
122
+ sendDateSurvey: Date;
123
+ percentSurvey: number;
124
+ }
125
+ export interface IStudentPercentQuestion {
126
+ percentQuestion: number;
127
+ studentId: number;
128
+ studentName: string;
129
+ }
130
+ export interface IReadinessToLearning {
131
+ questionText: string;
132
+ studentPercentQuestion: IStudentPercentQuestion[];
133
+ }
134
+ export declare enum MtssType {
135
+ Tier1 = 0,
136
+ Tier2 = 1,
137
+ Tier3 = 2
138
+ }
139
+ export interface IStudentBySpecialNeed {
140
+ nameDesignation: string;
141
+ numberDesignation: number;
142
+ }
143
+ export interface IseriesChart {
144
+ name: string[];
145
+ data: number[];
146
+ }
147
+ export interface IResultQuestion {
148
+ avgOfStudentChoice: number;
149
+ questionId: number;
150
+ questionText: string;
151
+ }
152
+ export interface IOverviewQuestionChoice {
153
+ month: string;
154
+ resultQuestion: IResultQuestion[];
155
+ endDate: string;
156
+ startDate: string;
157
+ }
158
+ export interface IColumnChartAndPercent {
159
+ overviewQuestionChoice: IOverviewQuestionChoice[];
160
+ type: string;
161
+ }
162
+ export interface IAgeOfStudent {
163
+ nineToTwelve: number;
164
+ sixToEight: number;
165
+ sixteenToEighteen: number;
166
+ thirteenToFifteen: number;
167
+ threeToFive: number;
168
+ }
169
+ export interface IStudentByAge {
170
+ ageOfFeMaleStudent: IAgeOfStudent;
171
+ ageOfMaleStudent: IAgeOfStudent;
172
+ }
173
+ export interface IStudentByGender {
174
+ male: number;
175
+ female: number;
176
+ }
177
+ export interface BAND_SCORE {
178
+ label: string;
179
+ value: number;
180
+ }
181
+ export interface IOption {
182
+ label: string;
183
+ value: number;
184
+ }
185
+ export interface IDashboardToTalSurvey {
186
+ responseRate: number;
187
+ totalSurvey: number;
188
+ }
189
+ export declare enum FILTER_YEAR {
190
+ THIS_YEAR = 0,
191
+ LAST_YEAR = 1,
192
+ LAST_QUARTER = 2,
193
+ LAST_MONTH = 3,
194
+ LAST_DAY = 4
195
+ }
196
+ export interface IfilterYear {
197
+ label: string;
198
+ value: FILTER_YEAR;
199
+ startDate: number;
200
+ endDate: number;
201
+ }
202
+ export interface ICalenDarLabelBox {
203
+ value: FILTER_YEAR;
204
+ label: string;
205
+ }
206
+ export interface ICalendarTimeLabelBox {
207
+ startDate: any;
208
+ endDate: any;
209
+ label: string;
210
+ }
211
+ export interface IGenderLabelBox {
212
+ value: number;
213
+ label: string;
214
+ }
215
+ export interface ILabelBox {
216
+ calendar: ICalenDarLabelBox;
217
+ calendarTime?: ICalendarTimeLabelBox;
218
+ gender: IGenderLabelBox;
219
+ grade: number;
220
+ bandScore: number;
221
+ }
222
+ export declare enum TYPECHART {
223
+ AREA = 0,
224
+ BAR = 1,
225
+ LINE = 2,
226
+ BOTH = 3
227
+ }
228
+ export interface IChartOptions {
229
+ value: TYPECHART;
230
+ label: string;
231
+ }
232
+ export interface IQuestionResponseLastMonth {
233
+ avgQuestionResponse: number;
234
+ avgQuestionResponseLastMonth: number;
235
+ questionId: number;
236
+ questionText: string;
237
+ }
238
+ export interface IGenerateChart {
239
+ typeChart: TYPECHART;
240
+ timeOfDay?: string;
241
+ onActiveColumn?: Function;
242
+ activeColumn: boolean[];
243
+ series: ISeries[];
244
+ months: string[];
245
+ name?: string;
246
+ dayOfWeek: string[];
247
+ colors: string[];
248
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
249
+ isShowExpandIcon?: boolean;
250
+ onExpand?: Function;
251
+ }
252
+ export interface IDashboardFlag {
253
+ numberSurveyBlue?: number;
254
+ numberSurveyRed?: number;
255
+ numberSurveyYellow?: number;
256
+ }
257
+ export interface ISurveyTemplate {
258
+ avgTemplateSurvey: number;
259
+ templateName: string;
260
+ }
261
+ export interface DASHBOARD_TEMPLATE {
262
+ month: string;
263
+ surveyTemplate: ISurveyTemplate[];
264
+ }
265
+ export interface NUMBER_SURVEY {
266
+ numberTotalSurveyDone: number;
267
+ numberTotalSurveyNotDone: number;
268
+ }
269
+ export interface TOTAL_DASHBOAD_SURVEY {
270
+ month: string;
271
+ numberSurveys: NUMBER_SURVEY;
272
+ }
273
+ export declare const COLOR_CHART_AND_PERCENTS: string[];
274
+ export {};
@@ -0,0 +1,129 @@
1
+ /// <reference types="react" />
2
+ import { ApexOptions } from "apexcharts";
3
+ import { IOptionSelector } from "../../../components/Select/InputSelector";
4
+ import { FILTER_YEAR, IActivityCircle, IOverviewQuestionChoice, IReadinessToLearning, ISeries, IseriesChart, IStudentByAge, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
5
+ export declare const getColors: (length: number) => string[];
6
+ export declare const friendCircleItems: ({ bestFriends, friends, couldBeFriends, supportive }: IsyntheticFriendCircle) => {
7
+ id: number;
8
+ name: string;
9
+ number: number;
10
+ background: string;
11
+ width: number;
12
+ height: number;
13
+ }[];
14
+ export declare const activityCircleItems: ({ like, love, interested, curious }: IActivityCircle) => {
15
+ id: number;
16
+ name: string;
17
+ number: number;
18
+ background: string;
19
+ width: number;
20
+ height: number;
21
+ }[];
22
+ export declare const gradeOptions: (grades: string[], studentUserId?: string | undefined) => IOptionSelector[];
23
+ export declare const genderOptions: {
24
+ value: LegalGenderType;
25
+ label: string;
26
+ }[];
27
+ export declare const mtssOptions: {
28
+ value: MtssType;
29
+ label: string;
30
+ }[];
31
+ export declare const topMostSurveyChartOptions: (labelNames: string[], percentSurvey: number[], isDonutChart?: boolean | undefined) => ApexOptions;
32
+ export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
33
+ export declare const optionsChartGrade: (maxDatas: number) => ApexOptions;
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;
41
+ export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
42
+ export declare const maxSeries: (series: ISeries[]) => number;
43
+ export declare const average: (arr: number[]) => number;
44
+ export declare const colorCharts: (series: ISeries[]) => string[];
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[], data: any) => 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, dayOfWeek: string[]) => ApexOptions;
106
+ export declare const optionLineChart: (months: string[], activeData: boolean[], dayOfWeek: string[]) => ApexOptions;
107
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], dayOfWeek: string[], 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,7 @@
1
+ declare const useBehavior: () => {
2
+ chartIsOpened: boolean[];
3
+ onToggle: (idx: number) => void;
4
+ teacherUserId: string;
5
+ changeCurrentTeacherUserId: (userId: string) => void;
6
+ };
7
+ export default useBehavior;