mario-education 2.0.4-release → 2.0.4-stage
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/Dialog/SimpleDialog.d.ts +1 -0
- package/dist/components/selector/CustomFilterComponent.d.ts +7 -1
- package/dist/components/selector/CustomFilterMobile.d.ts +8 -1
- package/dist/containers/Dashboard/components/ExportChartPdfModal.d.ts +3 -0
- package/dist/containers/Dashboard/components/LearningProgressTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/LearningStrategiesTable.d.ts +3 -2
- package/dist/containers/Dashboard/configs/constants.d.ts +1 -0
- package/dist/containers/Dashboard/configs/types.d.ts +46 -3
- package/dist/containers/Dashboard/hooks/useDashboard.d.ts +12 -1
- package/dist/containers/SurveyDashboard/configs/types.d.ts +1 -0
- package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +2 -0
- package/dist/containers/WellBeingDashboard/configs/type.d.ts +1 -0
- package/dist/index.js +121 -117
- package/dist/index.modern.js +26594 -25180
- package/dist/mario-education.css +1 -1
- package/dist/services/dashboardService.d.ts +3 -0
- package/package.json +2 -2
|
@@ -6,6 +6,10 @@ interface STUDENT {
|
|
|
6
6
|
studentName: string;
|
|
7
7
|
actionScore: number;
|
|
8
8
|
}
|
|
9
|
+
interface TEACHER {
|
|
10
|
+
id: number;
|
|
11
|
+
teacherName: string;
|
|
12
|
+
}
|
|
9
13
|
interface PROPS_FILTER {
|
|
10
14
|
filters?: any;
|
|
11
15
|
handleChangeStartDate?: Function;
|
|
@@ -35,6 +39,8 @@ interface PROPS_FILTER {
|
|
|
35
39
|
isSelectMulti?: boolean;
|
|
36
40
|
handleOpenModalDelete?: any;
|
|
37
41
|
selectedIds?: number[];
|
|
42
|
+
teacherList?: TEACHER[];
|
|
43
|
+
onSelectTeacher?: Function;
|
|
38
44
|
}
|
|
39
|
-
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, handleOpenModalDelete, selectedIds }: PROPS_FILTER) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, handleOpenModalDelete, selectedIds, teacherList, onSelectTeacher }: PROPS_FILTER) => import("react/jsx-runtime").JSX.Element;
|
|
40
46
|
export default CustomFilterComponent;
|
|
@@ -5,6 +5,7 @@ interface FILTER {
|
|
|
5
5
|
studentId?: number;
|
|
6
6
|
flag?: string;
|
|
7
7
|
optionDate?: string;
|
|
8
|
+
teacherId?: number;
|
|
8
9
|
}
|
|
9
10
|
interface STUDENT {
|
|
10
11
|
email: string;
|
|
@@ -13,6 +14,10 @@ interface STUDENT {
|
|
|
13
14
|
studentName: string;
|
|
14
15
|
actionScore: number;
|
|
15
16
|
}
|
|
17
|
+
interface TEACHER {
|
|
18
|
+
id: number;
|
|
19
|
+
teacherName: string;
|
|
20
|
+
}
|
|
16
21
|
interface PROPS_FILTER {
|
|
17
22
|
filters?: FILTER;
|
|
18
23
|
handleChangeStartDate?: Function;
|
|
@@ -40,6 +45,8 @@ interface PROPS_FILTER {
|
|
|
40
45
|
studentList?: STUDENT[];
|
|
41
46
|
onSelectStudent?: Function;
|
|
42
47
|
isDetailSurvey?: boolean;
|
|
48
|
+
teacherList?: TEACHER[];
|
|
49
|
+
onSelectTeacher?: Function;
|
|
43
50
|
}
|
|
44
|
-
declare const CustomFilterMobile: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, handleChangeStatus, placeholderSearch, handleSelectFavorite, onShowFilter, isShowFilter, isShowCalendar, onShowFilterCalendar, optionCustomSelect, handleChangeCustomSelect, toggleKeyCustom, toggleContentCustom, handleToggleCustom, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, studentList, onSelectStudent, isDetailSurvey }: PROPS_FILTER) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
declare const CustomFilterMobile: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, handleChangeStatus, placeholderSearch, handleSelectFavorite, onShowFilter, isShowFilter, isShowCalendar, onShowFilterCalendar, optionCustomSelect, handleChangeCustomSelect, toggleKeyCustom, toggleContentCustom, handleToggleCustom, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, studentList, onSelectStudent, isDetailSurvey, teacherList, onSelectTeacher }: PROPS_FILTER) => import("react/jsx-runtime").JSX.Element;
|
|
45
52
|
export default CustomFilterMobile;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import { StudentConversationDto } from '../configs/types';
|
|
2
3
|
interface IExportChartPdfModal {
|
|
3
4
|
modal: boolean;
|
|
4
5
|
toggle: () => void;
|
|
@@ -8,6 +9,7 @@ interface IExportChartPdfModal {
|
|
|
8
9
|
stressData: any;
|
|
9
10
|
monthsOneToOne: any;
|
|
10
11
|
dayOfWeekOneToOne: any;
|
|
12
|
+
studentConversations: StudentConversationDto[];
|
|
11
13
|
studentPressure: any;
|
|
12
14
|
metricWeeks: any;
|
|
13
15
|
metricDataWeeks: any;
|
|
@@ -24,6 +26,7 @@ interface IExportChartPdfModal {
|
|
|
24
26
|
learningStrategies: any;
|
|
25
27
|
filter: any;
|
|
26
28
|
schoolName: any;
|
|
29
|
+
learningStrategiesUsage: any;
|
|
27
30
|
}
|
|
28
31
|
declare const ExportChartPdfModal: FC<IExportChartPdfModal>;
|
|
29
32
|
export default ExportChartPdfModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ILearningProgressTab } from "../configs/types";
|
|
2
|
-
declare const LearningProgressTab: ({ learningStrategies, classFontSize, print, loadingComplete }: ILearningProgressTab) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const LearningProgressTab: ({ learningStrategies, classFontSize, print, loadingComplete, students, openQualityFeedbackModal, handleOpenQualityFeedbackModal, handleCloseQualityFeedbackModal, handleViewDetailNote }: ILearningProgressTab) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LearningProgressTab;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IStrategyUsage } from "../configs/types";
|
|
2
2
|
interface LearningStrategiesTableProp {
|
|
3
3
|
learningStrategies: IStrategyUsage[];
|
|
4
|
-
handleOpenQualityFeedbackModal
|
|
4
|
+
handleOpenQualityFeedbackModal?: (learningStrategyId: number) => void;
|
|
5
|
+
isPrint?: boolean;
|
|
5
6
|
}
|
|
6
|
-
declare const LearningStrategiesTable: ({ learningStrategies, handleOpenQualityFeedbackModal }: LearningStrategiesTableProp) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const LearningStrategiesTable: ({ learningStrategies, handleOpenQualityFeedbackModal, isPrint }: LearningStrategiesTableProp) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default LearningStrategiesTable;
|
|
@@ -82,6 +82,7 @@ export declare const topMostUsedStrategiesName = "top_5_most_used_strategies";
|
|
|
82
82
|
export declare const overallReadinessToLearn = "overall_readiness_to_learn";
|
|
83
83
|
export declare const studentStressByZone = "student_stress_by_zone";
|
|
84
84
|
export declare const studentAverageScore = "student_distribution";
|
|
85
|
+
export declare const studentConversation = "conversations";
|
|
85
86
|
export declare const chartNames: string[];
|
|
86
87
|
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
87
88
|
export declare const concernMetrics = "Concern Metrics";
|
|
@@ -350,6 +350,10 @@ export interface IDashboardToPDF {
|
|
|
350
350
|
weeksOneToOne: string[];
|
|
351
351
|
successIndicatorWeeklyData: any;
|
|
352
352
|
topLearningStrategies: any;
|
|
353
|
+
learningStrategiesUsage: IStrategyUsage[];
|
|
354
|
+
optionDate?: string;
|
|
355
|
+
onClose?: () => void;
|
|
356
|
+
studentConversations: StudentConversationDto[];
|
|
353
357
|
}
|
|
354
358
|
export interface IOverallReadinessToLearn {
|
|
355
359
|
resultQuestion: ISeries[];
|
|
@@ -641,12 +645,38 @@ export interface ILearningItem {
|
|
|
641
645
|
usageCount: number;
|
|
642
646
|
usagePoint: number[];
|
|
643
647
|
}
|
|
648
|
+
export interface IStrategyUsage {
|
|
649
|
+
learningStrategyId: number;
|
|
650
|
+
learningStrategyName: string;
|
|
651
|
+
timesUsed: number;
|
|
652
|
+
studentFeedBackAvg: number;
|
|
653
|
+
}
|
|
644
654
|
export interface ILearningProgressTab {
|
|
645
|
-
learningStrategies:
|
|
655
|
+
learningStrategies: IStrategyUsage[];
|
|
646
656
|
classFontSize?: string;
|
|
647
657
|
handleHoverTooltip?: Function;
|
|
648
658
|
print?: boolean;
|
|
649
|
-
loadingComplete: boolean;
|
|
659
|
+
loadingComplete: ILoadingComplete | boolean;
|
|
660
|
+
students: IQualityFeedbackStudents[];
|
|
661
|
+
openQualityFeedbackModal: boolean;
|
|
662
|
+
handleOpenQualityFeedbackModal: (learningStrategyId: number) => void;
|
|
663
|
+
handleCloseQualityFeedbackModal: () => void;
|
|
664
|
+
handleViewDetailNote: (note: any) => void;
|
|
665
|
+
}
|
|
666
|
+
export interface IQualityFeedbackStudents {
|
|
667
|
+
studentId: number;
|
|
668
|
+
studentUserName: string;
|
|
669
|
+
avatarStudent: string;
|
|
670
|
+
grade?: string;
|
|
671
|
+
average: number;
|
|
672
|
+
learningStrategies: string;
|
|
673
|
+
helpfulWasThisConversation: number;
|
|
674
|
+
createAt: string;
|
|
675
|
+
isSkipped?: boolean;
|
|
676
|
+
fromOneToOne?: boolean;
|
|
677
|
+
mostImportantLearning: string;
|
|
678
|
+
text: string;
|
|
679
|
+
type: string;
|
|
650
680
|
}
|
|
651
681
|
export interface IReadinessToLearnTab {
|
|
652
682
|
handleHoverTooltip?: Function;
|
|
@@ -679,7 +709,7 @@ export interface FILTER_STUDENT_WELLBEING {
|
|
|
679
709
|
startDate?: number;
|
|
680
710
|
endDate?: number;
|
|
681
711
|
classType?: string;
|
|
682
|
-
grade?: string;
|
|
712
|
+
grade?: string | string[];
|
|
683
713
|
studentId?: number | null;
|
|
684
714
|
timeOfDay?: string;
|
|
685
715
|
roles?: string[];
|
|
@@ -696,6 +726,16 @@ export interface ILowMetricStudent {
|
|
|
696
726
|
orderWeek: number;
|
|
697
727
|
orderMonth: number;
|
|
698
728
|
}
|
|
729
|
+
export interface StudentConversationDto {
|
|
730
|
+
sessionId: number;
|
|
731
|
+
studentId: number;
|
|
732
|
+
studentName: string;
|
|
733
|
+
educatorNames: string[];
|
|
734
|
+
profileImage: string;
|
|
735
|
+
gradeLevel: string;
|
|
736
|
+
conversationCount: number;
|
|
737
|
+
conversationDates: string[];
|
|
738
|
+
}
|
|
699
739
|
export interface IMissedReviewStudents {
|
|
700
740
|
studentId: number;
|
|
701
741
|
studentName: string;
|
|
@@ -732,5 +772,8 @@ export interface ILoadingComplete {
|
|
|
732
772
|
skillQuestion: boolean;
|
|
733
773
|
summarizeReport: boolean;
|
|
734
774
|
strategyUsage: boolean;
|
|
775
|
+
qualityFeedback: boolean;
|
|
776
|
+
topLearningStrategies: boolean;
|
|
777
|
+
studentConversation: boolean;
|
|
735
778
|
}
|
|
736
779
|
export {};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { DashboardFilter, IlearningStrategies, IReadinessToLearning, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ISeries, ISummarizeQuestion, IFilterCalendar, ILowMetricStudent, IConversationKpi, ILoadingComplete } from "../configs/types";
|
|
1
|
+
import { DashboardFilter, IlearningStrategies, IReadinessToLearning, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ISeries, ISummarizeQuestion, IFilterCalendar, ILowMetricStudent, IConversationKpi, ILoadingComplete, StudentConversationDto } from "../configs/types";
|
|
2
2
|
import { IFilter, Student } from "../../../utils/type";
|
|
3
3
|
import moment from "moment";
|
|
4
4
|
import { IStudentSkillQuestion } from "../../MyStudent/components/NewOverview/Chat/types/types";
|
|
5
5
|
import { IStudent } from "../../../types/types";
|
|
6
6
|
declare const useDashboard: () => {
|
|
7
|
+
strategyUsage: import("../configs/types").IStrategyUsage[];
|
|
8
|
+
qualityFeedbackStudents: import("../configs/types").IQualityFeedbackStudents[];
|
|
9
|
+
openQualityFeedbackModal: boolean;
|
|
10
|
+
handleOpenQualityFeedbackModal: (learningStrategyId: number) => void;
|
|
11
|
+
handleCloseQualityFeedbackModal: () => void;
|
|
12
|
+
handleViewDetailNote: (note: any) => void;
|
|
13
|
+
noteSelected: any;
|
|
14
|
+
openDetailNote: boolean;
|
|
15
|
+
handleCloseDetailNote: () => void;
|
|
16
|
+
loadingTopLearningStrategies: boolean;
|
|
7
17
|
setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
|
|
8
18
|
filter: DashboardFilter;
|
|
9
19
|
listTotalTime: IDashboardToTalStudent;
|
|
@@ -88,5 +98,6 @@ declare const useDashboard: () => {
|
|
|
88
98
|
loadingComplete: ILoadingComplete;
|
|
89
99
|
teachers: any[];
|
|
90
100
|
teacherDefault: any;
|
|
101
|
+
studentConversations: StudentConversationDto[];
|
|
91
102
|
};
|
|
92
103
|
export default useDashboard;
|
|
@@ -59,5 +59,7 @@ declare const useListSurvey: (pageSize?: number) => {
|
|
|
59
59
|
handleOpenModalDelete: () => void;
|
|
60
60
|
openSelectedModal: boolean;
|
|
61
61
|
handleCloseModalDelete: () => void;
|
|
62
|
+
dataTeachers: never[];
|
|
63
|
+
handleChangeTeacher: (teacherId?: number) => void;
|
|
62
64
|
};
|
|
63
65
|
export default useListSurvey;
|