mario-education 2.5.2-release → 2.5.4-release
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/components/layouts/hooks/useHeaderSideBar.d.ts +1 -1
- package/dist/components/layouts/icons/SafetyIcon.d.ts +2 -0
- package/dist/components/layouts/icons/StressIcon.d.ts +2 -0
- package/dist/containers/AssignCounselor/hooks/useAssignCounselor.d.ts +2 -2
- package/dist/containers/AssignCounselor/utils/type.interface.d.ts +4 -6
- package/dist/containers/ConductSurvey/styles/makeStyles.d.ts +1 -1
- package/dist/containers/ConversationGoal/components/DetailTokenModel.d.ts +2 -0
- package/dist/containers/ConversationGoal/components/PermissionSelected.d.ts +3 -0
- package/dist/containers/ConversationGoal/configs/contants.d.ts +2 -0
- package/dist/containers/ConversationGoal/configs/types.d.ts +6 -0
- package/dist/containers/ConversationGoal/hooks/useConversationGoal.d.ts +9 -0
- package/dist/containers/ConversationGoal/hooks/useExternalApi.d.ts +12 -0
- package/dist/containers/ConversationGoal/views/ConversationGoal.d.ts +2 -0
- package/dist/containers/Dashboard/components/BarChart.d.ts +5 -1
- package/dist/containers/Dashboard/components/BubbleChartCustom.d.ts +6 -2
- package/dist/containers/Dashboard/components/ConcernMetricTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/ConversationTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/GeneratePlpChart.d.ts +1 -1
- package/dist/containers/Dashboard/components/GenerateTrendQuestion.d.ts +1 -1
- package/dist/containers/Dashboard/components/GraphTrend.d.ts +1 -1
- package/dist/containers/Dashboard/components/ModelSkillStudent.d.ts +1 -1
- package/dist/containers/Dashboard/components/ReadinessToLearnTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/TotalCard.d.ts +2 -2
- package/dist/containers/Dashboard/configs/constants.d.ts +40 -1
- package/dist/containers/Dashboard/configs/types.d.ts +244 -9
- package/dist/containers/Dashboard/configs/utils.d.ts +5 -2
- package/dist/containers/Dashboard/hooks/useChartDatas.d.ts +3 -10
- package/dist/containers/Dashboard/hooks/useDashboard.d.ts +40 -12
- package/dist/containers/Dashboard/views/Dashboard.d.ts +1 -2
- package/dist/containers/Homepage/common/utils.d.ts +1 -1
- package/dist/containers/MyStudent/components/NewOverview/Chat/configs/utils.d.ts +2 -2
- package/dist/containers/MyStudent/components/NewOverview/Chat/types/types.d.ts +1 -1
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/AreaChart.d.ts +1 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/OverallDonutChart.d.ts +1 -0
- package/dist/containers/OneRosterSystem/components/RestApiProgress.d.ts +1 -0
- package/dist/containers/OneRosterSystem/components/VeraCrossConfigForm.d.ts +1 -0
- package/dist/containers/OneRosterSystem/configs/constants.d.ts +1 -0
- package/dist/containers/OneRosterSystem/configs/types.d.ts +2 -1
- package/dist/containers/OneRosterSystem/hooks/userOpenApply.d.ts +9 -0
- package/dist/containers/OneRosterSystem/views/OpenApplyImport.d.ts +2 -0
- package/dist/containers/SurveyDashboard/styles/makeStyles.d.ts +2 -2
- package/dist/index.css +10973 -9607
- package/dist/index.d.ts +2 -1
- package/dist/index.js +16448 -18794
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16452 -18799
- package/dist/index.modern.js.map +1 -1
- package/dist/services/conversationGoalApi.d.ts +2 -0
- package/dist/services/dashboardService.d.ts +3 -0
- package/dist/services/oneRosterService.d.ts +3 -0
- package/dist/services/userService.d.ts +2 -1
- package/dist/styles/styles.d.ts +1 -1
- package/dist/types/types.d.ts +9 -0
- package/dist/utils/constantsFn.d.ts +3 -0
- package/dist/utils/serviceType.interface.d.ts +11 -0
- package/dist/utils/type.d.ts +1 -0
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
declare const useHeaderSideBar: (_navigations: any) => {
|
|
3
3
|
anchorFontEl: HTMLElement | null;
|
|
4
4
|
anchorEl: HTMLElement | null;
|
|
5
|
-
classes: Record<"
|
|
5
|
+
classes: Record<"title" | "header" | "content" | "overlay" | "arrow" | "grow" | "menuItem" | "menuButton" | "listItem" | "dropdown" | "sectionDesktop" | "drawer" | "textPrivacy" | "subMenuDrawer" | "subDrawerItem" | "drawerItem" | "drawerContent" | "drawerPaper" | "drawerPaperMobile" | "drawerActive" | "contentShift" | "fontBodyLarge" | "fontBodySmall" | "fontSmall" | "fontMedium" | "fontLarge" | "sectionFontDesktop" | "itemSideBar" | "positionBox" | "arrowDown" | "arrowUp" | "dailyMotivation", string>;
|
|
6
6
|
screenWidth: number;
|
|
7
7
|
isReadOnly: string | null;
|
|
8
8
|
notificationAlert: import("../constants/types").NOTIFICATION_ALERT | undefined;
|
|
@@ -8,8 +8,8 @@ declare const useAssignCounselor: () => {
|
|
|
8
8
|
modal: import("react").MutableRefObject<any>;
|
|
9
9
|
chosenUser: IStudentCounselorItem;
|
|
10
10
|
options: IOptions[];
|
|
11
|
-
changeCounselorId: (id:
|
|
12
|
-
counselorChangeId:
|
|
11
|
+
changeCounselorId: (id: IOptions[]) => void;
|
|
12
|
+
counselorChangeId: IOptions[];
|
|
13
13
|
handleAssign: () => Promise<void>;
|
|
14
14
|
resetData: () => void;
|
|
15
15
|
choiceUser: (chosenUser: IStudentCounselorItem) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface IOptions {
|
|
2
2
|
label: string;
|
|
3
|
-
value:
|
|
3
|
+
value: string;
|
|
4
4
|
}
|
|
5
5
|
export declare type USER_CHOICE = {
|
|
6
6
|
id: string;
|
|
@@ -24,18 +24,16 @@ export interface IAssignCounselorModal {
|
|
|
24
24
|
resetData: () => void;
|
|
25
25
|
chosenUser: IStudentCounselorItem;
|
|
26
26
|
options: IOptions[];
|
|
27
|
-
counselorChangeId:
|
|
27
|
+
counselorChangeId: IOptions[];
|
|
28
28
|
setCounselorChangeId: (value: any) => void;
|
|
29
29
|
isChecked: boolean;
|
|
30
30
|
}
|
|
31
31
|
export interface IStudentCounselorItem {
|
|
32
32
|
id: number;
|
|
33
|
+
userId: string;
|
|
33
34
|
emailStudent: string;
|
|
34
35
|
studentName: string;
|
|
35
|
-
|
|
36
|
-
counselorId?: string;
|
|
37
|
-
emailCounselor?: string;
|
|
38
|
-
counselorName?: string;
|
|
36
|
+
counselorUserIds?: string[];
|
|
39
37
|
}
|
|
40
38
|
export declare type TypeStudentCounselorData = {
|
|
41
39
|
currentPage: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => Record<"
|
|
1
|
+
export declare const useStyles: (props?: any) => Record<"title" | "body" | "tabs" | "tabLabel" | "tabLabelActive" | "tabLabelActiveWhite", string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeEvent } from "react";
|
|
2
|
+
import { IConversationGoal } from "../configs/types";
|
|
3
|
+
declare const useConversationGoal: () => {
|
|
4
|
+
conversationGoal: IConversationGoal;
|
|
5
|
+
handleChange: (val: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
isChange: boolean;
|
|
7
|
+
updateConversationGoal: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export default useConversationGoal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAccessToken } from "../configs/types";
|
|
2
|
+
declare const useExternalApi: () => {
|
|
3
|
+
generateToken: (isCreate: boolean) => Promise<void>;
|
|
4
|
+
tokens: IAccessToken[];
|
|
5
|
+
changeFilters: (updatedFilters: any) => void;
|
|
6
|
+
filters: import("mario-core").Filter;
|
|
7
|
+
removeToken: (id: number) => Promise<void>;
|
|
8
|
+
goToDetailToken: (token: IAccessToken | null) => void;
|
|
9
|
+
tokenDetail: IAccessToken | null;
|
|
10
|
+
handleChangePermission: (property: string, value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export default useExternalApi;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { ISeries } from "../configs/types";
|
|
2
|
+
import { ILowMetricStudent, ISeries } from "../configs/types";
|
|
3
3
|
interface IProps {
|
|
4
4
|
months: string[];
|
|
5
5
|
activeColumn: boolean[];
|
|
@@ -7,6 +7,10 @@ interface IProps {
|
|
|
7
7
|
dayOfWeek: string[];
|
|
8
8
|
colors: string[];
|
|
9
9
|
min?: number;
|
|
10
|
+
print?: boolean;
|
|
11
|
+
isCountSeries?: boolean;
|
|
12
|
+
lowMetricStudents?: ILowMetricStudent[];
|
|
13
|
+
labelDate?: string;
|
|
10
14
|
}
|
|
11
15
|
declare const BarChart: FC<IProps>;
|
|
12
16
|
export default BarChart;
|
|
@@ -2,9 +2,13 @@ import React from "react";
|
|
|
2
2
|
import { IReadinessToLearning } from "../configs/types";
|
|
3
3
|
interface IProps {
|
|
4
4
|
data: IReadinessToLearning[];
|
|
5
|
+
print?: boolean;
|
|
6
|
+
disableSeriesName?: boolean;
|
|
7
|
+
colors?: string[];
|
|
8
|
+
hiddenRightLegend?: boolean;
|
|
9
|
+
hiddenDescription?: boolean;
|
|
5
10
|
handleHoverTooltip?: Function;
|
|
6
|
-
isPrint?: boolean;
|
|
7
11
|
name?: string;
|
|
8
12
|
}
|
|
9
|
-
declare const _default: React.
|
|
13
|
+
declare const _default: React.MemoExoticComponent<({ data, print, disableSeriesName, hiddenRightLegend, hiddenDescription, handleHoverTooltip, name }: IProps) => JSX.Element>;
|
|
10
14
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IConcernMetricTab } from "../configs/types";
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ studentSkillQuestion, classFontSize, safetyData, stressData, monthsOneToOne, dayOfWeekOneToOne, handleHoverTooltip, avgQuestionLastMonth, studentPressure, timeOfDay, metricWeeks, lowMetricStudents, metricDataMonths, metricDataWeeks, metricMonths, studentMetricPercent }: IConcernMetricTab) => JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ studentSkillQuestion, classFontSize, safetyData, stressData, monthsOneToOne, dayOfWeekOneToOne, handleHoverTooltip, avgQuestionLastMonth, studentPressure, timeOfDay, metricWeeks, lowMetricStudents, metricDataMonths, metricDataWeeks, metricMonths, studentMetricPercent, stressValue }: IConcernMetricTab) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IConversationTab } from "../configs/types";
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({}: IConversationTab) => JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ conversationKpi }: IConversationTab) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IGenerateDashboardChart } from "../configs/types";
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ typeChart, activeColumn, series, months, name, dayOfWeek, colors, textColors, avgQuestionLastMonth, studentCount, studentPercentage, responseStudent, classFontSize, avgContent, print, width, height, titleClassFontSize, min, hiddenKpi,
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ typeChart, activeColumn, series, months, name, dayOfWeek, colors, textColors, avgQuestionLastMonth, studentCount, studentPercentage, responseStudent, classFontSize, avgContent, print, width, height, titleClassFontSize, min, hiddenKpi, timeOfDay, weeklySeries, weeks, description, skillClass, kpiClassName, lowMetricStudents, studentMetricPercent, noGradient, setOptionDate, stressValue, noAvgTotal }: IGenerateDashboardChart) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IGenerateTrendQuestion } from "../configs/types";
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ series, avgQuestionLastMonth,
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ series, avgQuestionLastMonth, icons, className, noAvgText }: IGenerateTrendQuestion) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IModelSkillStudent } from "
|
|
1
|
+
import { IModelSkillStudent } from "../../MyStudent/components/NewOverview/Chat/types/types";
|
|
2
2
|
declare const ModelSkillStudent: ({ studentCount, studentPercentage, responseStudent, name }: IModelSkillStudent) => JSX.Element;
|
|
3
3
|
export default ModelSkillStudent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IReadinessToLearnTab } from "../configs/types";
|
|
2
|
-
declare const ReadinessToLearnTab: ({ dataReadinessOfChart, handleHoverTooltip, classFontSize, dataOverallReadyToLearn, dayOfWeekOneToOne, monthsOneToOne, avgQuestionLastMonth, preparednessData, preparednessWeeklyData, weeksOneToOne }: IReadinessToLearnTab) => JSX.Element;
|
|
2
|
+
declare const ReadinessToLearnTab: ({ dataReadinessOfChart, handleHoverTooltip, classFontSize, dataOverallReadyToLearn, dayOfWeekOneToOne, monthsOneToOne, avgQuestionLastMonth, preparednessData, preparednessWeeklyData, weeksOneToOne, setOptionDate }: IReadinessToLearnTab) => JSX.Element;
|
|
3
3
|
export default ReadinessToLearnTab;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const TotalCard: ({
|
|
1
|
+
import { ITotalCard } from "../configs/types";
|
|
2
|
+
declare const TotalCard: ({ iconSrc, label, value }: ITotalCard) => JSX.Element;
|
|
3
3
|
export default TotalCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStudentByAge } from "./types";
|
|
1
|
+
import { IConversationKpi, IStudentByAge } from "./types";
|
|
2
2
|
export declare const colors: string[];
|
|
3
3
|
export declare const INITIAL_BEST_FRIENDS: {
|
|
4
4
|
friends: number;
|
|
@@ -84,3 +84,42 @@ export declare const studentStressByZone = "student_stress_by_zone";
|
|
|
84
84
|
export declare const studentAverageScore = "student_distribution";
|
|
85
85
|
export declare const chartNames: string[];
|
|
86
86
|
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
87
|
+
export declare const concernMetrics = "Concern Metrics";
|
|
88
|
+
export declare const infoIcon = "/images/info-icon.png";
|
|
89
|
+
export declare const readinessTrendName = "Readiness Trends";
|
|
90
|
+
export declare const overallReadinessToLearnName = "overall_readiness_to_learn";
|
|
91
|
+
export declare const averageSafetyName = "Average Safety";
|
|
92
|
+
export declare const averageStressName = "Average Stress";
|
|
93
|
+
export declare const optionLabelDate: string[];
|
|
94
|
+
export declare const calenderOptions: {
|
|
95
|
+
label: string;
|
|
96
|
+
startDate: number;
|
|
97
|
+
endDate: number;
|
|
98
|
+
value: string;
|
|
99
|
+
}[];
|
|
100
|
+
export declare const preparednessInitialData: {
|
|
101
|
+
name: string;
|
|
102
|
+
data: never[];
|
|
103
|
+
questionTranslation: string;
|
|
104
|
+
description: string;
|
|
105
|
+
}[];
|
|
106
|
+
export declare const lowMetricName = "number_of_students_with_at_least_one_very_low_metric";
|
|
107
|
+
export declare const lowMetricDescription = "this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40";
|
|
108
|
+
export declare const initFilterDashboard: {
|
|
109
|
+
calendar: string;
|
|
110
|
+
studentIds: never[];
|
|
111
|
+
gender: never[];
|
|
112
|
+
studentId: undefined;
|
|
113
|
+
teacherId: undefined;
|
|
114
|
+
teacherUserId: string;
|
|
115
|
+
studentUserId: string;
|
|
116
|
+
grade: never[];
|
|
117
|
+
bandScore: string;
|
|
118
|
+
academicYearId: undefined;
|
|
119
|
+
startDate: number;
|
|
120
|
+
endDate: number;
|
|
121
|
+
optionDate: string;
|
|
122
|
+
includeMonthAndWeekView: boolean;
|
|
123
|
+
};
|
|
124
|
+
export declare const filterStorage = "FILTER_DASHBOARD_SAVE";
|
|
125
|
+
export declare const initConversationKpi: IConversationKpi;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
2
2
|
import { QuestionType } from "../../ReflectionForm/configs/types";
|
|
3
|
+
import { Student } from "../../../utils/type";
|
|
3
4
|
export declare type LoginCountingReport = {
|
|
4
5
|
date: string;
|
|
5
6
|
studentLoginCount: number;
|
|
@@ -16,6 +17,7 @@ export declare type QuantityReport = {
|
|
|
16
17
|
export interface IQuestionTranslate {
|
|
17
18
|
questionName: string;
|
|
18
19
|
questionTranslationName: string;
|
|
20
|
+
description?: string;
|
|
19
21
|
}
|
|
20
22
|
export declare type SkillReportItem = {
|
|
21
23
|
skillName: string;
|
|
@@ -101,6 +103,7 @@ export declare type DashboardFilter = {
|
|
|
101
103
|
favoriteSurvey?: number[];
|
|
102
104
|
academicYearId?: any;
|
|
103
105
|
searchString?: string;
|
|
106
|
+
includeMonthAndWeekView?: boolean;
|
|
104
107
|
};
|
|
105
108
|
export interface ICircleChartItem {
|
|
106
109
|
id: number;
|
|
@@ -184,6 +187,7 @@ export interface IResultQuestion {
|
|
|
184
187
|
questionId: number;
|
|
185
188
|
questionText: string;
|
|
186
189
|
questionTranslation: string;
|
|
190
|
+
description?: string;
|
|
187
191
|
}
|
|
188
192
|
export interface IOverviewQuestionChoice {
|
|
189
193
|
month: string;
|
|
@@ -195,6 +199,7 @@ export interface IColumnChartAndPercent {
|
|
|
195
199
|
overviewQuestionChoice: IOverviewQuestionChoice[];
|
|
196
200
|
type: string;
|
|
197
201
|
overViewQuestionLastMonth: IQuestionResponseLastMonth[];
|
|
202
|
+
questionChoiceWeeklyResults: IOverviewQuestionChoice[];
|
|
198
203
|
}
|
|
199
204
|
export interface IAgeOfStudent {
|
|
200
205
|
nineToTwelve: number;
|
|
@@ -318,8 +323,6 @@ export interface IDashboardToPDF {
|
|
|
318
323
|
startTime: number | undefined;
|
|
319
324
|
endTime: number | undefined;
|
|
320
325
|
timeOfDay?: string;
|
|
321
|
-
activeColumnPreparedness: boolean[];
|
|
322
|
-
activeColumnSuccessIndicators: boolean[];
|
|
323
326
|
safetyData: ISeries[];
|
|
324
327
|
stressData: ISeries[];
|
|
325
328
|
preparednessData: ISeries[];
|
|
@@ -327,17 +330,19 @@ export interface IDashboardToPDF {
|
|
|
327
330
|
monthsOneToOne: string[];
|
|
328
331
|
dayOfWeekOneToOne: string[];
|
|
329
332
|
avgQuestionLastMonth: IQuestionResponseLastMonth[];
|
|
330
|
-
topLearningStrategiesData: IlearningStrategies;
|
|
331
333
|
selectedToPDF: string[];
|
|
332
|
-
seriesConference: ISeries[];
|
|
333
|
-
monthsConference: string[];
|
|
334
|
-
activeColumnConference: boolean[];
|
|
335
|
-
dayOfWeekConference: string[];
|
|
336
|
-
avgConferenceLastMonth: IQuestionResponseLastMonth[];
|
|
337
334
|
readinessToLearning: IReadinessToLearning[];
|
|
338
335
|
studentPressure: IStudentPressure;
|
|
339
336
|
dataOverallReadyToLearn: IOverallReadinessToLearn;
|
|
340
337
|
schoolName: string;
|
|
338
|
+
metricWeeks: string[];
|
|
339
|
+
metricDataWeeks: number[];
|
|
340
|
+
metricDataMonths: number[];
|
|
341
|
+
metricMonths: string[];
|
|
342
|
+
preparednessWeeklyData: ISeries[];
|
|
343
|
+
weeksOneToOne: string[];
|
|
344
|
+
successIndicatorWeeklyData: any;
|
|
345
|
+
topLearningStrategies: any;
|
|
341
346
|
}
|
|
342
347
|
export interface IOverallReadinessToLearn {
|
|
343
348
|
resultQuestion: ISeries[];
|
|
@@ -402,6 +407,7 @@ export interface ISummarizeAnswer {
|
|
|
402
407
|
answer: string;
|
|
403
408
|
sessionId: number;
|
|
404
409
|
sessionResultId: number;
|
|
410
|
+
questionText: string;
|
|
405
411
|
}
|
|
406
412
|
export interface ILastAnswerTable {
|
|
407
413
|
items: ISummarizeAnswer[];
|
|
@@ -434,4 +440,233 @@ export interface IQuestionFilter {
|
|
|
434
440
|
sortOrder: string;
|
|
435
441
|
searchString: string;
|
|
436
442
|
}
|
|
443
|
+
export interface IFilterCalendar {
|
|
444
|
+
label: string;
|
|
445
|
+
startDate: number;
|
|
446
|
+
endDate: number;
|
|
447
|
+
value: string;
|
|
448
|
+
}
|
|
449
|
+
export interface IFilterComponent {
|
|
450
|
+
gradeList: string[];
|
|
451
|
+
onChangeFilterGrade: Function;
|
|
452
|
+
fontSizeInputSelect?: string;
|
|
453
|
+
gradeFilter: string[];
|
|
454
|
+
startDate: number | undefined | null;
|
|
455
|
+
endDate: number | undefined | null;
|
|
456
|
+
student?: Student | null;
|
|
457
|
+
onChangeStudent: Function;
|
|
458
|
+
studentData: Student[];
|
|
459
|
+
academicYearList: any[];
|
|
460
|
+
valueAcademicYear: any;
|
|
461
|
+
onChangeAcademicYear: Function;
|
|
462
|
+
onChangeEndDateChart: (date: MaterialUiPickersDate | null, value?: string | null) => void;
|
|
463
|
+
onChangeStartDateChart: (date: MaterialUiPickersDate | null, value?: string | null) => void;
|
|
464
|
+
onChangeFilterCalendar: Function;
|
|
465
|
+
expandedFilter: boolean;
|
|
466
|
+
onToggleChart: Function;
|
|
467
|
+
onClearFilter: Function;
|
|
468
|
+
onSaveFilter: Function;
|
|
469
|
+
optionDate?: string;
|
|
470
|
+
}
|
|
471
|
+
export interface ITotalCard {
|
|
472
|
+
label: string;
|
|
473
|
+
value: number | string;
|
|
474
|
+
iconSrc: string;
|
|
475
|
+
}
|
|
476
|
+
export interface IQuestionResponseLastMonth {
|
|
477
|
+
avgQuestionResponse: number;
|
|
478
|
+
avgQuestionResponseLastMonth: number;
|
|
479
|
+
questionId: number;
|
|
480
|
+
questionText: string;
|
|
481
|
+
}
|
|
482
|
+
export interface ICheckInResult {
|
|
483
|
+
id: number;
|
|
484
|
+
isTeacherResult: boolean;
|
|
485
|
+
startTime: string;
|
|
486
|
+
endTime: string;
|
|
487
|
+
}
|
|
488
|
+
export interface IResponseStudentQuestion {
|
|
489
|
+
sessionId: number;
|
|
490
|
+
studentAvatar: string;
|
|
491
|
+
studentId: number;
|
|
492
|
+
studentName: string;
|
|
493
|
+
point: number;
|
|
494
|
+
time: string;
|
|
495
|
+
averageOtherRatings: number;
|
|
496
|
+
isSessionCheckIn: boolean;
|
|
497
|
+
sessionResults: ICheckInResult[];
|
|
498
|
+
}
|
|
499
|
+
export interface ISeries {
|
|
500
|
+
name: string;
|
|
501
|
+
questionTranslation?: string;
|
|
502
|
+
data: number[];
|
|
503
|
+
}
|
|
504
|
+
export interface IGenerateDashboardChart {
|
|
505
|
+
typeChart: string;
|
|
506
|
+
activeColumn: boolean[];
|
|
507
|
+
series: any[];
|
|
508
|
+
weeklySeries?: any[];
|
|
509
|
+
avgContent?: string;
|
|
510
|
+
months: string[];
|
|
511
|
+
name: string;
|
|
512
|
+
dayOfWeek?: string[];
|
|
513
|
+
colors: string[];
|
|
514
|
+
textColors?: string[];
|
|
515
|
+
avgQuestionLastMonth: IQuestionResponseLastMonth[];
|
|
516
|
+
studentCount?: number;
|
|
517
|
+
studentPercentage?: number;
|
|
518
|
+
responseStudent?: IResponseStudentQuestion[];
|
|
519
|
+
classFontSize?: string;
|
|
520
|
+
print?: boolean;
|
|
521
|
+
width?: number | string;
|
|
522
|
+
height?: number | string;
|
|
523
|
+
titleClassFontSize?: string;
|
|
524
|
+
min?: number;
|
|
525
|
+
handleHoverTooltip?: Function;
|
|
526
|
+
hiddenKpi?: boolean;
|
|
527
|
+
kpiText?: string;
|
|
528
|
+
timeOfDay?: string;
|
|
529
|
+
weeks?: string[];
|
|
530
|
+
description?: string;
|
|
531
|
+
skillClass?: string;
|
|
532
|
+
kpiClassName?: string;
|
|
533
|
+
lowMetricStudents?: ILowMetricStudent[];
|
|
534
|
+
studentMetricPercent?: number;
|
|
535
|
+
noGradient?: boolean;
|
|
536
|
+
setOptionDate?: Function;
|
|
537
|
+
stressValue?: number[];
|
|
538
|
+
noAvgTotal?: boolean;
|
|
539
|
+
}
|
|
540
|
+
export interface IResponseStudentQuestion {
|
|
541
|
+
sessionId: number;
|
|
542
|
+
studentAvatar: string;
|
|
543
|
+
studentId: number;
|
|
544
|
+
studentName: string;
|
|
545
|
+
point: number;
|
|
546
|
+
time: string;
|
|
547
|
+
averageOtherRatings: number;
|
|
548
|
+
isSessionCheckIn: boolean;
|
|
549
|
+
sessionResults: ICheckInResult[];
|
|
550
|
+
}
|
|
551
|
+
export interface IStudentSkillQuestion {
|
|
552
|
+
studentPercentageStress: number;
|
|
553
|
+
studentPercentageUnsafe: number;
|
|
554
|
+
studentSafetyQuestionCount: number;
|
|
555
|
+
studentStressQuestionCount: number;
|
|
556
|
+
responseStudentSafety: IResponseStudentQuestion[];
|
|
557
|
+
responseStudentStress: IResponseStudentQuestion[];
|
|
558
|
+
}
|
|
559
|
+
export interface IStudentPressure {
|
|
560
|
+
boreOutStudent: string[];
|
|
561
|
+
burnoutStudent: string[];
|
|
562
|
+
comfortStudent: string[];
|
|
563
|
+
strainStudent: string[];
|
|
564
|
+
stretchStudent: string[];
|
|
565
|
+
}
|
|
566
|
+
export interface IConcernMetricTab {
|
|
567
|
+
studentSkillQuestion: IStudentSkillQuestion;
|
|
568
|
+
classFontSize?: string;
|
|
569
|
+
stressData: ISeries[];
|
|
570
|
+
safetyData: ISeries[];
|
|
571
|
+
dayOfWeekOneToOne: string[];
|
|
572
|
+
monthsOneToOne: string[];
|
|
573
|
+
handleHoverTooltip?: Function;
|
|
574
|
+
avgQuestionLastMonth: IQuestionResponseLastMonth[];
|
|
575
|
+
studentPressure: IStudentPressure;
|
|
576
|
+
timeOfDay?: string;
|
|
577
|
+
metricWeeks: string[];
|
|
578
|
+
metricDataWeeks: number[];
|
|
579
|
+
metricMonths: string[];
|
|
580
|
+
metricDataMonths: number[];
|
|
581
|
+
lowMetricStudents: ILowMetricStudent[];
|
|
582
|
+
studentMetricPercent: number;
|
|
583
|
+
stressValue: number[];
|
|
584
|
+
}
|
|
585
|
+
export interface IConversationTab {
|
|
586
|
+
conversationKpi: IConversationKpi;
|
|
587
|
+
}
|
|
588
|
+
export interface IGraphTrend {
|
|
589
|
+
value: number;
|
|
590
|
+
isStress?: boolean;
|
|
591
|
+
label?: string;
|
|
592
|
+
timeOfDay?: string;
|
|
593
|
+
valueData?: number;
|
|
594
|
+
}
|
|
595
|
+
export interface IOpenFieldTab {
|
|
596
|
+
summarizeQuestions: ISummarizeQuestion | undefined;
|
|
597
|
+
handleRedirectAllAnswer: () => void;
|
|
598
|
+
questionFilters: any;
|
|
599
|
+
handleChangeQuestionFilter: (filter: any) => void;
|
|
600
|
+
goToSession: Function;
|
|
601
|
+
}
|
|
602
|
+
export interface ISuccessIndicatorTab {
|
|
603
|
+
successIndicatorsData: ISeries[];
|
|
604
|
+
successIndicatorWeeklyData: ISeries[];
|
|
605
|
+
monthsOneToOne: string[];
|
|
606
|
+
dayOfWeekOneToOne: string[];
|
|
607
|
+
avgQuestionLastMonth: IQuestionResponseLastMonth[];
|
|
608
|
+
timeOfDay?: string;
|
|
609
|
+
classFontSize?: string;
|
|
610
|
+
handleHoverTooltip?: Function;
|
|
611
|
+
weeksOneToOne: string[];
|
|
612
|
+
}
|
|
613
|
+
export interface ILearningItem {
|
|
614
|
+
learningStrategyName: string;
|
|
615
|
+
usageCount: number;
|
|
616
|
+
usagePoint: number[];
|
|
617
|
+
}
|
|
618
|
+
export interface ILearningProgressTab {
|
|
619
|
+
learningStrategies: ILearningItem[];
|
|
620
|
+
classFontSize?: string;
|
|
621
|
+
handleHoverTooltip?: Function;
|
|
622
|
+
print?: boolean;
|
|
623
|
+
}
|
|
624
|
+
export interface IReadinessToLearnTab {
|
|
625
|
+
handleHoverTooltip?: Function;
|
|
626
|
+
dataReadinessOfChart: IReadinessToLearning[];
|
|
627
|
+
classFontSize?: string;
|
|
628
|
+
dataOverallReadyToLearn: IOverallReadinessToLearn;
|
|
629
|
+
monthsOneToOne: string[];
|
|
630
|
+
dayOfWeekOneToOne: string[];
|
|
631
|
+
preparednessData: ISeries[];
|
|
632
|
+
avgQuestionLastMonth: IQuestionResponseLastMonth[];
|
|
633
|
+
preparednessWeeklyData: ISeries[];
|
|
634
|
+
weeksOneToOne: string[];
|
|
635
|
+
setOptionDate?: Function;
|
|
636
|
+
}
|
|
637
|
+
export interface IGenerateTrendQuestion {
|
|
638
|
+
series: ISeries[];
|
|
639
|
+
avgQuestionLastMonth: IQuestionResponseLastMonth[];
|
|
640
|
+
trendLabels: string[];
|
|
641
|
+
icons: string[];
|
|
642
|
+
className?: string;
|
|
643
|
+
noAvgText?: boolean;
|
|
644
|
+
}
|
|
645
|
+
export interface FILTER_STUDENT_WELLBEING {
|
|
646
|
+
startDate?: number;
|
|
647
|
+
endDate?: number;
|
|
648
|
+
classType?: string;
|
|
649
|
+
grade?: string;
|
|
650
|
+
studentId?: number | null;
|
|
651
|
+
timeOfDay?: string;
|
|
652
|
+
roles?: string[];
|
|
653
|
+
optionDate?: string;
|
|
654
|
+
}
|
|
655
|
+
export interface ILowMetricStudent {
|
|
656
|
+
matchedGroupNames: string[];
|
|
657
|
+
month: string;
|
|
658
|
+
sessionId: number;
|
|
659
|
+
startTime: string;
|
|
660
|
+
studentName: string;
|
|
661
|
+
week: string;
|
|
662
|
+
year: string;
|
|
663
|
+
orderWeek: number;
|
|
664
|
+
orderMonth: number;
|
|
665
|
+
}
|
|
666
|
+
export interface IConversationKpi {
|
|
667
|
+
conversationTarget: number;
|
|
668
|
+
conversationTeacherAvg: number;
|
|
669
|
+
avgStudentReview: number;
|
|
670
|
+
sessionReviewSkipped: number;
|
|
671
|
+
}
|
|
437
672
|
export {};
|
|
@@ -96,13 +96,13 @@ export declare const studentByGradeConvert: (newData: IStudentByGrade[]) => {
|
|
|
96
96
|
data: number[];
|
|
97
97
|
}[];
|
|
98
98
|
export declare const findTotalStudentByGrade: (data: IStudentByGrade[]) => number;
|
|
99
|
-
export declare const getConvertMinuteToHour: (
|
|
99
|
+
export declare const getConvertMinuteToHour: (minutes: number | string) => string;
|
|
100
100
|
export declare const readinesToLearnoptions: (seriesName: string[], data: any, handleHoverTooltip?: Function | undefined, chartName?: string | undefined) => ApexOptions;
|
|
101
101
|
export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
|
|
102
102
|
name: string;
|
|
103
103
|
data: import("react").ReactText[][];
|
|
104
104
|
}[];
|
|
105
|
-
export declare const optionColumnChartAndPercents: (min: number, months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], maxSeries: number, dayOfWeek: string[], isCountSeries?: boolean | undefined, handleTooltip?: Function | undefined, chartName?: string | undefined) => ApexOptions;
|
|
105
|
+
export declare const optionColumnChartAndPercents: (min: number, months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], maxSeries: number, dayOfWeek: string[], isCountSeries?: boolean | undefined, handleTooltip?: Function | undefined, chartName?: string | undefined, print?: boolean | undefined) => ApexOptions;
|
|
106
106
|
export declare const optionLineChart: (months: string[], activeData: boolean[], colors: string[], dayOfWeek: string[]) => ApexOptions;
|
|
107
107
|
export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], dayOfWeek: string[], newseries?: any) => ApexOptions;
|
|
108
108
|
export declare const overallDonutCHartOptions: (labelNames: string[], colors: string[], isCountSeries?: boolean | undefined, textColors?: string[] | undefined, handleHoverTooltip?: Function | undefined, chartName?: string | undefined) => ApexOptions;
|
|
@@ -110,6 +110,7 @@ export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) =
|
|
|
110
110
|
export declare const convertToSeriesColumnChartAndPercent: (dataCharts: IQuestionTranslate[], data: IOverviewQuestionChoice[], isHardQuestion?: boolean | undefined) => {
|
|
111
111
|
name: string;
|
|
112
112
|
questionTranslation: string;
|
|
113
|
+
description: string | undefined;
|
|
113
114
|
data: number[];
|
|
114
115
|
}[];
|
|
115
116
|
export declare const convertToSeriesColumnChartAndPercentProgress: (data: IOverviewQuestionChoice[]) => {
|
|
@@ -138,4 +139,6 @@ export declare const handleAveraged: (points: number[], isStress?: boolean | und
|
|
|
138
139
|
export declare const handleGenerateAvgQuestion: (data: number[], isStress: boolean, avgContent?: string | undefined) => string;
|
|
139
140
|
declare type PropertySelector<T> = (item: T) => any;
|
|
140
141
|
export declare const customSortBy: <T>(array: T[], selector: PropertySelector<T>) => T[];
|
|
142
|
+
export declare const formatLowMetricLabels: (labels: string[]) => string;
|
|
143
|
+
export declare const getDescriptionFromPercent: (percent: number, descriptions: any[], isStress?: boolean) => any;
|
|
141
144
|
export {};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
|
|
3
2
|
declare const useChartDatas: () => {
|
|
4
3
|
user: any;
|
|
5
|
-
filter: import("../configs/types").DashboardFilter;
|
|
6
|
-
LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
|
|
7
|
-
LIST_FILTERS_RIGHT: PROPS_FILTERS_COMPONENT[];
|
|
8
4
|
totalCardData: ({
|
|
9
5
|
icon: string;
|
|
10
6
|
title: string;
|
|
@@ -34,12 +30,6 @@ declare const useChartDatas: () => {
|
|
|
34
30
|
preparednessData: import("../configs/types").ISeries[];
|
|
35
31
|
safetyData: import("../configs/types").ISeries[];
|
|
36
32
|
stressData: import("../configs/types").ISeries[];
|
|
37
|
-
seriesConference: import("../configs/types").ISeries[];
|
|
38
|
-
avgConferenceLastMonth: import("../configs/types").IQuestionResponseLastMonth[];
|
|
39
|
-
monthsConference: string[];
|
|
40
|
-
dayOfWeekConference: string[];
|
|
41
|
-
handleActiveColumnConference: (index: number) => void;
|
|
42
|
-
activeColumnConference: boolean[];
|
|
43
33
|
avgQuestionLastMonth: import("../configs/types").IQuestionResponseLastMonth[];
|
|
44
34
|
studentPressure: import("../configs/types").IStudentPressure;
|
|
45
35
|
dataOverallReadyToLearn: import("../configs/types").IOverallReadinessToLearn;
|
|
@@ -59,5 +49,8 @@ declare const useChartDatas: () => {
|
|
|
59
49
|
goToSession: (sessionId: number, sessionResultId: number) => void;
|
|
60
50
|
isExistQuestion: boolean;
|
|
61
51
|
handleHoverTooltip: (name: string) => void;
|
|
52
|
+
gradeList: string[];
|
|
53
|
+
handleChangeFilterCalendar: (value: import("../configs/types").IFilterCalendar) => void;
|
|
54
|
+
filter: import("../configs/types").DashboardFilter;
|
|
62
55
|
};
|
|
63
56
|
export default useChartDatas;
|