mario-education 2.4.126-beta → 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.
- package/dist/MarioFramework.Education/ClientApp/src/containers/CSVImport/hooks/useCSVImport.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/AreaChart.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarChart.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/DashboardToPDF.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/GenerateChartData.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LineChart.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +16 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +45 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +8 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +1 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +17 -55
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +12 -46
- package/dist/MarioFramework.Education/ClientApp/src/containers/LearningSupportCategory/hooks/useLearningSupportCategoryDetail.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/AgGridComponents.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/constants.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/AreaChart.d.ts +10 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/BarAndAreaChart.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/BarChart.d.ts +11 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/ChartViewDashboard.d.ts +20 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/CheckboxCustom.d.ts +12 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/ChoiceChartType.d.ts +10 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/DashboardCard.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/HeaderChart/HeaderChart.d.ts +16 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/HeaderChart/PlusButton.d.ts +6 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/Loading.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/PieChart.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/StudentByGrade.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/TopMostSurveyUsed.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/TotalCard.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/chartOptions.d.ts +6 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/constants.d.ts +60 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/overviewFn.d.ts +17 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts +274 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/utils.d.ts +129 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useBehavior.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useChartDatas.d.ts +38 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useContainerDimensions.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useDashboard.d.ts +29 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/views/SurveyDashboard.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/index.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/services/csvService.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +3 -0
- package/dist/index.css +1056 -10
- package/dist/index.js +4165 -4054
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4166 -4056
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/apiClient/index.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/SelectorTemplate.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/TemplateDialogModal.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/configs/types.d.ts +0 -12
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateBuilder.d.ts +0 -12
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateDetail.d.ts +0 -20
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateList.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateStart.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateBuilderPage.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateContainer.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateIEPList.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateStartBuild.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateSystemList.d.ts +0 -3
|
@@ -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[];
|
package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts
ADDED
|
@@ -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 {};
|
package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/utils.d.ts
ADDED
|
@@ -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,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
|
|
3
|
+
declare const useChartDatas: () => {
|
|
4
|
+
user: any;
|
|
5
|
+
filter: import("../configs/types").DashboardFilter;
|
|
6
|
+
LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
|
|
7
|
+
LIST_FILTERS_RIGHT: PROPS_FILTERS_COMPONENT[];
|
|
8
|
+
totalCardData: ({
|
|
9
|
+
icon: string;
|
|
10
|
+
title: string;
|
|
11
|
+
value: number;
|
|
12
|
+
isUp: boolean;
|
|
13
|
+
deviant: string;
|
|
14
|
+
filter: string;
|
|
15
|
+
} | {
|
|
16
|
+
icon: string;
|
|
17
|
+
title: string;
|
|
18
|
+
value: string;
|
|
19
|
+
isUp: boolean;
|
|
20
|
+
deviant: string;
|
|
21
|
+
filter: string;
|
|
22
|
+
})[];
|
|
23
|
+
onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
|
|
24
|
+
handleSelectToPrint: (checked: boolean, data: any, chartType: any) => void;
|
|
25
|
+
checkSelectedItem: (id: string) => boolean;
|
|
26
|
+
selectedToPrint: any;
|
|
27
|
+
setSelectedToPrint: import("react").Dispatch<any>;
|
|
28
|
+
topMostSurveyUsed: import("../configs/types").ITopMostSurveyUsed[];
|
|
29
|
+
surveyFlagData: import("../configs/types").IDashboardFlag | undefined;
|
|
30
|
+
templateSurveyDashboard: import("../configs/types").DASHBOARD_TEMPLATE[];
|
|
31
|
+
avgResult: number[];
|
|
32
|
+
seriseResult: import("../configs/types").ISeries[];
|
|
33
|
+
activeColumnResult: boolean[];
|
|
34
|
+
handleActiveColumnOneToOne: (index: any) => void;
|
|
35
|
+
typeChartList: import("../configs/constants").TYPECHART[];
|
|
36
|
+
onChangeChart: (type: import("../configs/constants").TYPECHART) => void;
|
|
37
|
+
};
|
|
38
|
+
export default useChartDatas;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DashboardFilter, IStudentByGrade, ITopMostSurveyUsed, IDashboardToTalSurvey, IDashboardFlag, DASHBOARD_TEMPLATE, ISeries } from "../configs/types";
|
|
3
|
+
import { TYPECHART } from "../configs/constants";
|
|
4
|
+
import { IFilter, Student } from "../../../utils/type";
|
|
5
|
+
declare const useDashboard: () => {
|
|
6
|
+
setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
|
|
7
|
+
filter: DashboardFilter;
|
|
8
|
+
listSurveyTotal: IDashboardToTalSurvey;
|
|
9
|
+
studentByGrade: IStudentByGrade[];
|
|
10
|
+
handleChangeFilters: (event: any) => void;
|
|
11
|
+
user: any;
|
|
12
|
+
studentDefault: Student | undefined;
|
|
13
|
+
setStudentDefault: import("react").Dispatch<import("react").SetStateAction<Student | undefined>>;
|
|
14
|
+
genderOfStudent: string;
|
|
15
|
+
setGenderOfStudent: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
16
|
+
handleFilterStudent: (option: any) => void;
|
|
17
|
+
handleFilterTeacher: (option: any) => void;
|
|
18
|
+
onChangeFilters: (filterSelect: IFilter) => void;
|
|
19
|
+
topMostSurveyUsed: ITopMostSurveyUsed[];
|
|
20
|
+
surveyFlagData: IDashboardFlag | undefined;
|
|
21
|
+
templateSurveyDashboard: DASHBOARD_TEMPLATE[];
|
|
22
|
+
avgResult: number[];
|
|
23
|
+
seriseResult: ISeries[];
|
|
24
|
+
activeColumnResult: boolean[];
|
|
25
|
+
handleActiveColumnOneToOne: (index: any) => void;
|
|
26
|
+
typeChartList: TYPECHART[];
|
|
27
|
+
onChangeChart: (type: TYPECHART) => void;
|
|
28
|
+
};
|
|
29
|
+
export default useDashboard;
|
|
@@ -32,4 +32,5 @@ import SessionTemplateList from "./containers/SessionTemplate/views/SessionTempl
|
|
|
32
32
|
import SessionTemplateGeneralClassList from "./containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassList";
|
|
33
33
|
import LoadLanguage from "./components/Loading/LoadLanguage";
|
|
34
34
|
import AdminTraining from "./containers/AdminTraining/views/AdminTraining";
|
|
35
|
-
|
|
35
|
+
import SurveyDashboard from "./containers/SurveyDashboard/views/SurveyDashboard";
|
|
36
|
+
export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, SurveyQuestionContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard, LoadLanguage, AdminTraining, SurveyDashboard };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const downloadTemplateFile: () => Promise<import("axios").AxiosResponse<any>>;
|
|
1
2
|
export declare const importCSV: (formData: FormData, subFolder: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
3
|
export declare const importStudentCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
4
|
export declare const importClassReflectionCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -19,3 +19,7 @@ export declare const getStudentByGender: (filter: any) => Promise<import("axios"
|
|
|
19
19
|
export declare const getGrades: (studentUserId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
20
20
|
export declare const getBandScore: () => Promise<import("axios").AxiosResponse<any>>;
|
|
21
21
|
export declare const getLearningStrategiesTableApi: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
22
|
+
export declare const getTopMostSurveyUsed: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
23
|
+
export declare const getAllTotalSurvey: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
24
|
+
export declare const getDashboardFlagSurvey: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
25
|
+
export declare const getDashboardTemplateSurvey: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -15,6 +15,8 @@ export interface IFilter {
|
|
|
15
15
|
gender?: number[];
|
|
16
16
|
grade?: string[];
|
|
17
17
|
bandScore?: string;
|
|
18
|
+
optionDate?: string;
|
|
19
|
+
favoriteSurvey?: number[];
|
|
18
20
|
}
|
|
19
21
|
export interface PROPS_FILTERS_COMPONENT {
|
|
20
22
|
teacherId?: number;
|
|
@@ -45,6 +47,7 @@ export interface CALENDAR {
|
|
|
45
47
|
startDate: any;
|
|
46
48
|
endDate: any;
|
|
47
49
|
label: string;
|
|
50
|
+
value: string;
|
|
48
51
|
}
|
|
49
52
|
export declare enum LegalGenderType {
|
|
50
53
|
Male = 0,
|