mario-education 2.4.28-beta → 2.4.29-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/components/Questions/QuestionSelector.d.ts +0 -1
- package/dist/MarioFramework.Education/ClientApp/src/components/Select/SelectFilter.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Classes/components/StudentItemSelector.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/AreaChart.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarAndAreaChart.d.ts +10 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarChart.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BubbleChartCustom.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CheckboxCustom.d.ts +12 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +16 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomPieChart.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/DashboardToPDF.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +13 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/PlusButton.d.ts +6 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LineChart.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAge.d.ts +6 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAgeAndGender.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGrade.d.ts +3 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopLearningStrategy.d.ts +3 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TotalCard.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +26 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +99 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +93 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +10 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +43 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +48 -19
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/components/DestinationModal.d.ts +13 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/hooks/useDestination.d.ts +18 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/constant.d.ts +11 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/type.interface.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/ultis.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/views/Destinations.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/questionDetailSchema.d.ts +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplate/configs/validationSchema.d.ts +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplate/hooks/useSessionTemplateDetail.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassDetail.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/designationService.d.ts +5 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/questionCategoryService.d.ts +0 -5
- package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/serviceType.interface.d.ts +15 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +59 -0
- package/dist/index.css +578 -210
- package/dist/index.js +11631 -4257
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11633 -4259
- package/dist/index.modern.js.map +1 -1
- package/package.json +4 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/components/TemplateCateModal.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +0 -35
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/views/TemplateSurveyList.d.ts +0 -3
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConferenceRubric, ConferenceRubricQuestion, ConferenceRubricSkill } from "../configs/types";
|
|
3
|
-
declare const useConferenceRubricDetail: (id?:
|
|
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,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,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,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;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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
|
|
7
|
-
export default
|
|
6
|
+
declare const _default: React.NamedExoticComponent<IGradeStudentChart>;
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
7
|
-
export default
|
|
6
|
+
declare const _default: React.NamedExoticComponent<ITopLearningStrategy>;
|
|
7
|
+
export default _default;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TotalCard.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TotalCardItem } from "../configs/types";
|
|
3
|
-
declare const TotalCard: ({ icon, title, value
|
|
3
|
+
declare const TotalCard: ({ icon, title, value }: TotalCardItem) => JSX.Element;
|
|
4
4
|
export default TotalCard;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts
CHANGED
|
@@ -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
|
|
62
|
-
endDate
|
|
61
|
+
startDate?: number;
|
|
62
|
+
endDate?: number;
|
|
63
63
|
studentIds: number[];
|
|
64
64
|
gender?: number[];
|
|
65
|
-
grade
|
|
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;
|
|
@@ -99,9 +104,14 @@ export declare enum LegalGenderType {
|
|
|
99
104
|
Male = 0,
|
|
100
105
|
Female = 1
|
|
101
106
|
}
|
|
107
|
+
export interface IDesignationsQuantity {
|
|
108
|
+
name: string;
|
|
109
|
+
quantity: number;
|
|
110
|
+
}
|
|
102
111
|
export interface IStudentByGrade {
|
|
103
112
|
grade: string;
|
|
104
113
|
quantity: number;
|
|
114
|
+
designationsQuantity: IDesignationsQuantity[];
|
|
105
115
|
}
|
|
106
116
|
export interface ISeries {
|
|
107
117
|
name: string;
|
|
@@ -115,9 +125,14 @@ export interface IlearningItem {
|
|
|
115
125
|
export interface IlearningStrategies {
|
|
116
126
|
learningStrategies: IlearningItem[];
|
|
117
127
|
}
|
|
128
|
+
export interface IStudentPercentQuestion {
|
|
129
|
+
percentQuestion: number;
|
|
130
|
+
studentId: number;
|
|
131
|
+
studentName: string;
|
|
132
|
+
}
|
|
118
133
|
export interface IReadinessToLearning {
|
|
119
134
|
questionText: string;
|
|
120
|
-
|
|
135
|
+
studentPercentQuestion: IStudentPercentQuestion[];
|
|
121
136
|
}
|
|
122
137
|
export declare enum MtssType {
|
|
123
138
|
Tier1 = 0,
|
|
@@ -132,4 +147,84 @@ export interface IseriesChart {
|
|
|
132
147
|
name: string[];
|
|
133
148
|
data: number[];
|
|
134
149
|
}
|
|
150
|
+
export interface IResultQuestion {
|
|
151
|
+
avgOfStudentChoice: number;
|
|
152
|
+
questionId: number;
|
|
153
|
+
questionText: string;
|
|
154
|
+
}
|
|
155
|
+
export interface IOverviewQuestionChoice {
|
|
156
|
+
month: string;
|
|
157
|
+
resultQuestion: IResultQuestion[];
|
|
158
|
+
}
|
|
159
|
+
export interface IColumnChartAndPercent {
|
|
160
|
+
overviewQuestionChoice: IOverviewQuestionChoice[];
|
|
161
|
+
type: string;
|
|
162
|
+
}
|
|
163
|
+
export interface IAgeOfStudent {
|
|
164
|
+
nineToTwelve: number;
|
|
165
|
+
sixToEight: number;
|
|
166
|
+
sixteenToEighteen: number;
|
|
167
|
+
thirteenToFifteen: number;
|
|
168
|
+
threeToFive: number;
|
|
169
|
+
}
|
|
170
|
+
export interface IStudentByAge {
|
|
171
|
+
ageOfFeMaleStudent: IAgeOfStudent;
|
|
172
|
+
ageOfMaleStudent: IAgeOfStudent;
|
|
173
|
+
}
|
|
174
|
+
export interface IStudentByGender {
|
|
175
|
+
male: number;
|
|
176
|
+
female: number;
|
|
177
|
+
}
|
|
178
|
+
export interface BAND_SCORE {
|
|
179
|
+
label: string;
|
|
180
|
+
value: number;
|
|
181
|
+
}
|
|
182
|
+
export interface IOption {
|
|
183
|
+
label: string;
|
|
184
|
+
value: number;
|
|
185
|
+
}
|
|
186
|
+
export interface IDashboardToTalStudent {
|
|
187
|
+
avgClassReflection: number;
|
|
188
|
+
totalConference: number;
|
|
189
|
+
totalOneToOne: number;
|
|
190
|
+
totalTimeConference: number;
|
|
191
|
+
totalTimeOneToOne: number;
|
|
192
|
+
}
|
|
193
|
+
export declare enum FILTER_YEAR {
|
|
194
|
+
THIS_YEAR = 0,
|
|
195
|
+
LAST_YEAR = 1,
|
|
196
|
+
LAST_QUARTER = 2,
|
|
197
|
+
LAST_MONTH = 3,
|
|
198
|
+
LAST_DAY = 4
|
|
199
|
+
}
|
|
200
|
+
export interface IfilterYear {
|
|
201
|
+
label: string;
|
|
202
|
+
value: FILTER_YEAR;
|
|
203
|
+
startDate: number;
|
|
204
|
+
endDate: number;
|
|
205
|
+
}
|
|
206
|
+
export interface ICalenDarLabelBox {
|
|
207
|
+
value: FILTER_YEAR;
|
|
208
|
+
label: string;
|
|
209
|
+
}
|
|
210
|
+
export interface IGenderLabelBox {
|
|
211
|
+
value: number;
|
|
212
|
+
label: string;
|
|
213
|
+
}
|
|
214
|
+
export interface ILabelBox {
|
|
215
|
+
calendar: ICalenDarLabelBox;
|
|
216
|
+
gender: IGenderLabelBox;
|
|
217
|
+
grade: number;
|
|
218
|
+
bandScore: number;
|
|
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
|
+
}
|
|
135
230
|
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
|
|
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
|
+
}[];
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts
ADDED
|
@@ -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;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="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
|
+
};
|
|
43
|
+
export default useChartDatas;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts
CHANGED
|
@@ -1,33 +1,62 @@
|
|
|
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:
|
|
7
|
+
listTotalTime: IDashboardToTalStudent;
|
|
7
8
|
readinessToLearning: IReadinessToLearning[];
|
|
8
9
|
topLearningStrategies: IlearningStrategies;
|
|
9
10
|
studentByGrade: IStudentByGrade[];
|
|
10
|
-
chartOneToOneData:
|
|
11
|
-
chartClassReflection:
|
|
12
|
-
chartConference:
|
|
13
|
-
learningProgress:
|
|
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:
|
|
18
|
-
studentByGender:
|
|
19
|
-
|
|
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
22
|
onFilter: () => void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
handleChangeFilters: (event: any) => void;
|
|
24
|
+
bandScore: BAND_SCORE[];
|
|
25
|
+
user: any;
|
|
26
|
+
studentDefault: Student | undefined;
|
|
27
|
+
setStudentDefault: import("react").Dispatch<import("react").SetStateAction<Student | undefined>>;
|
|
28
|
+
genderOfStudent: string;
|
|
29
|
+
setGenderOfStudent: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
30
|
+
handleFilterStudent: (option: any) => void;
|
|
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>;
|
|
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[];
|
|
32
61
|
};
|
|
33
62
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDesignation, IDesignationReponse, IFilter } from "../../../utils/serviceType.interface";
|
|
2
|
+
declare const useDestination: () => {
|
|
3
|
+
currentDesignationId: number;
|
|
4
|
+
designations: IDesignationReponse;
|
|
5
|
+
isOpenModal: boolean;
|
|
6
|
+
openModalCreate: () => void;
|
|
7
|
+
getDesignations: () => Promise<void>;
|
|
8
|
+
openModalEdit: (id: number) => void;
|
|
9
|
+
openModalRemove: (id: number) => void;
|
|
10
|
+
addDestination: (name: string) => Promise<void>;
|
|
11
|
+
deleteDestination: (id: number) => Promise<void>;
|
|
12
|
+
verifyDesignation: (id: number, name: string) => Promise<void>;
|
|
13
|
+
onCancelModal: () => void;
|
|
14
|
+
onConfirm: (value: IDesignation) => Promise<void>;
|
|
15
|
+
filter: IFilter;
|
|
16
|
+
changeFilters: (filters: IFilter) => void;
|
|
17
|
+
};
|
|
18
|
+
export default useDestination;
|