mario-education 2.4.23-beta → 2.4.25-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/Select/SelectFilter.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +1 -1
- 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 +13 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomPieChart.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +11 -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/StudentByAge.d.ts +6 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAgeAndGender.d.ts +8 -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 +22 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +58 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +58 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +30 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +19 -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/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/utils/constants.d.ts +13 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/serviceType.interface.d.ts +15 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +44 -0
- package/dist/index.css +330 -125
- package/dist/index.js +14799 -8682
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14801 -8684
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
|
|
3
|
+
declare const SelectFilter: ({ teacherId, studentUserId, studentId, teacherUserId, studentDefault, handleChangeFilters, name, icon, filter, option }: 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,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,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IOverviewQuestionChoice } from "../configs/types";
|
|
3
|
+
export interface IProps {
|
|
4
|
+
data: IOverviewQuestionChoice[];
|
|
5
|
+
isRidgeCharts?: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ISeries {
|
|
9
|
+
name: string;
|
|
10
|
+
data: number[];
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.NamedExoticComponent<IProps>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
title: string;
|
|
4
|
+
onToggle: () => void;
|
|
5
|
+
isShowChangeChart?: boolean;
|
|
6
|
+
isRidgeChart?: boolean;
|
|
7
|
+
onChangeChart: () => void;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const HeaderChart: FC<IProps>;
|
|
11
|
+
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,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IStudentByAge, IStudentByGender } from "../configs/types";
|
|
3
|
+
interface IProps {
|
|
4
|
+
studentByAgeData: IStudentByAge;
|
|
5
|
+
studentByGenderData: IStudentByGender;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.NamedExoticComponent<IProps>;
|
|
8
|
+
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,24 @@ 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[];
|
|
@@ -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,43 @@ 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 IDashboardToTalStudent {
|
|
183
|
+
avgClassReflection: number;
|
|
184
|
+
totalConference: number;
|
|
185
|
+
totalOneToOne: number;
|
|
186
|
+
totalTimeConference: number;
|
|
187
|
+
totalTimeOneToOne: number;
|
|
188
|
+
}
|
|
135
189
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApexOptions } from "apexcharts";
|
|
2
2
|
import { IOptionSelector } from "../../../components/Select/InputSelector";
|
|
3
|
-
import { IActivityCircle, ISeries, IseriesChart, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
|
|
3
|
+
import { IActivityCircle, IOverviewQuestionChoice, IReadinessToLearning, ISeries, IseriesChart, IStudentByAge, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
|
|
4
4
|
export declare const getColors: (length: number) => string[];
|
|
5
5
|
export declare const friendCircleItems: ({ bestFriends, friends, couldBeFriends, supportive }: IsyntheticFriendCircle) => {
|
|
6
6
|
id: number;
|
|
@@ -29,10 +29,66 @@ export declare const mtssOptions: {
|
|
|
29
29
|
}[];
|
|
30
30
|
export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
|
|
31
31
|
export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
|
|
32
|
-
export declare const optionsChartGrade: (maxDatas: number
|
|
32
|
+
export declare const optionsChartGrade: (maxDatas: number) => ApexOptions;
|
|
33
33
|
export declare const studentBySpecialNeedOptions: (seriesValue: IseriesChart, colors: string[]) => ApexOptions;
|
|
34
|
+
export declare const studentByAgeOptions: (series: ISeries[]) => ApexOptions;
|
|
35
|
+
export declare const convertDataStudentByAgeToSeries: (data: IStudentByAge) => {
|
|
36
|
+
name: string;
|
|
37
|
+
data: any[];
|
|
38
|
+
}[];
|
|
39
|
+
export declare const totalStudentByAge: (data: IStudentByAge) => any;
|
|
34
40
|
export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
|
|
35
41
|
export declare const maxSeries: (series: ISeries[]) => number;
|
|
36
42
|
export declare const average: (arr: number[]) => number;
|
|
37
43
|
export declare const colorCharts: (series: ISeries[]) => string[];
|
|
38
44
|
export declare const colorChartsSpecialNeedOptions: (series: IseriesChart[]) => string[];
|
|
45
|
+
export declare const pieChartOptions: {
|
|
46
|
+
labels: string[];
|
|
47
|
+
colors: string[];
|
|
48
|
+
legend: {
|
|
49
|
+
show: boolean;
|
|
50
|
+
};
|
|
51
|
+
plotOptions: {
|
|
52
|
+
pie: {
|
|
53
|
+
donut: {
|
|
54
|
+
size: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
chart: {
|
|
59
|
+
offsetY: number;
|
|
60
|
+
};
|
|
61
|
+
dataLabels: {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
};
|
|
64
|
+
fill: {
|
|
65
|
+
colors: string[];
|
|
66
|
+
};
|
|
67
|
+
stroke: {
|
|
68
|
+
colors: string[];
|
|
69
|
+
width: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const convertDataToSeriesStudentByGrade: (data: IStudentByGrade[]) => {
|
|
73
|
+
name: string;
|
|
74
|
+
data: number[];
|
|
75
|
+
}[];
|
|
76
|
+
export declare const studentByGradeConvert: (newData: IStudentByGrade[]) => {
|
|
77
|
+
name: string;
|
|
78
|
+
data: number[];
|
|
79
|
+
}[];
|
|
80
|
+
export declare const findTotalStudentByGrade: (data: IStudentByGrade[]) => number;
|
|
81
|
+
export declare const getConvertMinuteToHour: (timeSecond: any) => string;
|
|
82
|
+
export declare const readinesToLearnoptions: (data: IReadinessToLearning[], seriesName: string[]) => ApexOptions;
|
|
83
|
+
export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
|
|
84
|
+
name: string;
|
|
85
|
+
data: number[][];
|
|
86
|
+
}[];
|
|
87
|
+
export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
|
|
88
|
+
export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
|
|
89
|
+
export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
|
|
90
|
+
name: string;
|
|
91
|
+
data: number[];
|
|
92
|
+
}[];
|
|
93
|
+
export declare const convertToAvg: (dataCharts: string[], data: IOverviewQuestionChoice[], months: string[]) => number[];
|
|
94
|
+
export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
|
|
3
|
+
declare const useChartDatas: () => {
|
|
4
|
+
chartDashBoards: {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
children: (_: boolean) => JSX.Element;
|
|
8
|
+
isShowChangeChart: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
user: any;
|
|
11
|
+
filter: import("../configs/types").DashboardFilter;
|
|
12
|
+
LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
|
|
13
|
+
LIST_FILTERS_RIGHT: PROPS_FILTERS_COMPONENT[];
|
|
14
|
+
totalCardData: ({
|
|
15
|
+
icon: string;
|
|
16
|
+
title: string;
|
|
17
|
+
value: number;
|
|
18
|
+
isUp: boolean;
|
|
19
|
+
deviant: string;
|
|
20
|
+
filter: string;
|
|
21
|
+
} | {
|
|
22
|
+
icon: string;
|
|
23
|
+
title: string;
|
|
24
|
+
value: string;
|
|
25
|
+
isUp: boolean;
|
|
26
|
+
deviant: string;
|
|
27
|
+
filter: string;
|
|
28
|
+
})[];
|
|
29
|
+
};
|
|
30
|
+
export default useChartDatas;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
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 { Student } 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
32
|
};
|
|
33
33
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IDesignation } from "../../../utils/serviceType.interface";
|
|
2
|
+
export declare const schemaDestination: import("yup/lib/object").OptionalObjectSchema<{
|
|
3
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
5
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
6
|
+
}>>;
|
|
7
|
+
export declare const initialEditDesignation: (designations: IDesignation[], id: number) => import("./type.interface").IDestinationDetail;
|
|
@@ -6,7 +6,7 @@ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
|
6
6
|
explainAnswer: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
7
7
|
fromLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
|
|
8
8
|
toLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
|
|
9
|
-
numberOfStars: yup.NumberSchema<
|
|
9
|
+
numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
|
|
10
10
|
answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
|
|
11
11
|
isDefaultQuestion: yup.BooleanSchema<boolean | undefined, Record<string, any>, boolean | undefined>;
|
|
12
12
|
isDefaultQuestionTeacher: yup.BooleanSchema<boolean | null | undefined, Record<string, any>, boolean | null | undefined>;
|
|
@@ -19,7 +19,7 @@ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
|
19
19
|
explainAnswer: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
20
20
|
fromLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
|
|
21
21
|
toLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
|
|
22
|
-
numberOfStars: yup.NumberSchema<
|
|
22
|
+
numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
|
|
23
23
|
answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
|
|
24
24
|
isDefaultQuestion: yup.BooleanSchema<boolean | undefined, Record<string, any>, boolean | undefined>;
|
|
25
25
|
isDefaultQuestionTeacher: yup.BooleanSchema<boolean | null | undefined, Record<string, any>, boolean | null | undefined>;
|
|
@@ -2,13 +2,13 @@ import * as yup from "yup";
|
|
|
2
2
|
declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
3
3
|
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
4
|
isConference: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, Record<string, any>>;
|
|
5
|
-
conferenceRubricId: yup.NumberSchema<
|
|
5
|
+
conferenceRubricId: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
|
|
6
6
|
learningSupportCategoryId: yup.NumberSchema<number | undefined, Record<string, any>, number | undefined>;
|
|
7
7
|
extraQuestionIds: yup.ArraySchema<yup.NumberSchema<number | undefined, Record<string, any>, number | undefined>, Record<string, any>, (number | undefined)[] | undefined, (number | undefined)[] | undefined>;
|
|
8
8
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
9
9
|
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
10
10
|
isConference: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, Record<string, any>>;
|
|
11
|
-
conferenceRubricId: yup.NumberSchema<
|
|
11
|
+
conferenceRubricId: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
|
|
12
12
|
learningSupportCategoryId: yup.NumberSchema<number | undefined, Record<string, any>, number | undefined>;
|
|
13
13
|
extraQuestionIds: yup.ArraySchema<yup.NumberSchema<number | undefined, Record<string, any>, number | undefined>, Record<string, any>, (number | undefined)[] | undefined, (number | undefined)[] | undefined>;
|
|
14
14
|
}>>;
|
|
@@ -19,7 +19,7 @@ declare type QuestionSimple = {
|
|
|
19
19
|
text: string;
|
|
20
20
|
isDefaultQuestion: boolean;
|
|
21
21
|
};
|
|
22
|
-
declare const useSessionTemplateDetail: (id?:
|
|
22
|
+
declare const useSessionTemplateDetail: (id?: number | null | undefined) => {
|
|
23
23
|
sessionTemplateDetail: SessionTemplateDetail;
|
|
24
24
|
defaultTeacherQuestions: QuestionSimple[];
|
|
25
25
|
defaultStudentQuestions: QuestionSimple[];
|
|
@@ -12,7 +12,7 @@ declare type QuestionSimple = {
|
|
|
12
12
|
id: number;
|
|
13
13
|
text: string;
|
|
14
14
|
};
|
|
15
|
-
declare const useSessionTemplateGeneralClassDetail: (id?:
|
|
15
|
+
declare const useSessionTemplateGeneralClassDetail: (id?: number | null | undefined) => {
|
|
16
16
|
sessionTemplateGeneralClassDetail: SessionTemplateGeneralClassDetail;
|
|
17
17
|
teacherQuestions: QuestionSimple[];
|
|
18
18
|
studentQuestions: QuestionSimple[];
|
|
@@ -17,3 +17,4 @@ export declare const getStudentBySpecialNeed: (filter: any) => Promise<import("a
|
|
|
17
17
|
export declare const getStudentByAge: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
18
18
|
export declare const getStudentByGender: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
19
19
|
export declare const getGrades: (studentUserId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
20
|
+
export declare const getBandScore: () => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IDesignation, IFilter } from "../utils/serviceType.interface";
|
|
2
|
+
export declare const getDesignationsRequest: (filter: IFilter) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const createDesignationRequest: (data: IDesignation) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const deleteDesignationRequest: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const verifyDesignationRequest: (id: number, data: IDesignation) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -5,3 +5,16 @@ export declare const CONFERENCE_RUBRIC_TYPES: {
|
|
|
5
5
|
HabitsAttitudesTowardsLearning: string;
|
|
6
6
|
Custom: string;
|
|
7
7
|
};
|
|
8
|
+
export declare const LAST_YEAR_FILTER: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: number;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const GENDER_FILTER: string[];
|
|
13
|
+
export declare enum FILTER_NAME {
|
|
14
|
+
Calendar = "Calendar",
|
|
15
|
+
Gender = "Gender",
|
|
16
|
+
Grade = "Grade",
|
|
17
|
+
BandScore = "Current Grade",
|
|
18
|
+
StudentName = "Student name",
|
|
19
|
+
TeacherName = "Teacher name"
|
|
20
|
+
}
|
|
@@ -6,3 +6,18 @@ export interface IStudentWidthAssistant {
|
|
|
6
6
|
searchString?: string;
|
|
7
7
|
pageSize?: number;
|
|
8
8
|
}
|
|
9
|
+
export interface IFilter {
|
|
10
|
+
currentPage?: number;
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface IDesignation {
|
|
14
|
+
id?: number;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IDesignationReponse {
|
|
18
|
+
currentPage: number;
|
|
19
|
+
items: IDesignation[];
|
|
20
|
+
pageSize: number;
|
|
21
|
+
totalItems: number;
|
|
22
|
+
totalPages: number;
|
|
23
|
+
}
|