mario-education 2.0.0-release → 2.0.0-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/containers/Dashboard/components/DesktopFilterComponent.d.ts +1 -1
- package/dist/containers/Dashboard/components/LearningProgressTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/LearningStrategiesTable.d.ts +7 -0
- package/dist/containers/Dashboard/components/MobileFilterComponent.d.ts +1 -1
- package/dist/containers/Dashboard/components/NoteDetail.d.ts +7 -0
- package/dist/containers/Dashboard/components/QualityFeedbackModal.d.ts +9 -0
- package/dist/containers/Dashboard/configs/types.d.ts +33 -3
- package/dist/containers/Dashboard/hooks/useDashboard.d.ts +10 -0
- package/dist/containers/Dashboard/hooks/useQualityFeedback.d.ts +14 -0
- package/dist/containers/Dashboard/hooks/useTopLearningStrategies.d.ts +15 -0
- package/dist/index.js +111 -111
- package/dist/index.modern.js +19550 -19137
- package/dist/mario-education.css +1 -1
- package/dist/services/dashboardService.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type IFilterComponent } from "../configs/types";
|
|
2
|
-
declare const DesktopFilterComponent: ({ gradeList, onChangeFilterGrade, fontSizeInputSelect, gradeFilter, endDate, startDate, student, onChangeStudent, studentData, academicYearList, valueAcademicYear, onChangeAcademicYear, onChangeEndDateChart, onChangeStartDateChart, optionDate, onChangeFilterCalendar, onClearFilter, onSaveFilter, setSelectTeacherUserId, loadingComplete, teacherDefault, teachers }: IFilterComponent) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const DesktopFilterComponent: ({ gradeList, onChangeFilterGrade, fontSizeInputSelect, gradeFilter, endDate, startDate, student, onChangeStudent, studentData, academicYearList, valueAcademicYear, onChangeAcademicYear, onChangeEndDateChart, onChangeStartDateChart, optionDate, onChangeFilterCalendar, onClearFilter, onSaveFilter, setSelectTeacherUserId, loadingComplete, teacherDefault, teachers, activeTab }: IFilterComponent) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DesktopFilterComponent;
|
|
@@ -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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IStrategyUsage } from "../configs/types";
|
|
2
|
+
interface LearningStrategiesTableProp {
|
|
3
|
+
learningStrategies: IStrategyUsage[];
|
|
4
|
+
handleOpenQualityFeedbackModal: (learningStrategyId: number) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const LearningStrategiesTable: ({ learningStrategies, handleOpenQualityFeedbackModal }: LearningStrategiesTableProp) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default LearningStrategiesTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type IFilterComponent } from "../configs/types";
|
|
2
|
-
declare const MobileFilterComponent: ({ gradeList, onChangeFilterGrade, fontSizeInputSelect, gradeFilter, endDate, startDate, student, onChangeStudent, studentData, academicYearList, valueAcademicYear, onChangeAcademicYear, onChangeEndDateChart, onChangeStartDateChart, onChangeFilterCalendar, optionDate, expandedFilter, onToggleChart, setSelectTeacherUserId, loadingComplete, teacherDefault, teachers }: IFilterComponent) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MobileFilterComponent: ({ gradeList, onChangeFilterGrade, fontSizeInputSelect, gradeFilter, endDate, startDate, student, onChangeStudent, studentData, academicYearList, valueAcademicYear, onChangeAcademicYear, onChangeEndDateChart, onChangeStartDateChart, onChangeFilterCalendar, optionDate, expandedFilter, onToggleChart, setSelectTeacherUserId, loadingComplete, teacherDefault, teachers, activeTab }: IFilterComponent) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MobileFilterComponent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IQualityFeedbackStudents } from "../configs/types";
|
|
2
|
+
interface IProps {
|
|
3
|
+
students: IQualityFeedbackStudents[];
|
|
4
|
+
openPopoverListStudent: boolean;
|
|
5
|
+
handleCloseListStudentModal: () => void;
|
|
6
|
+
handleViewDetailNote: (note: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export default function QualityFeedbackModal({ students, openPopoverListStudent, handleCloseListStudentModal, handleViewDetailNote }: IProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -478,6 +478,7 @@ export interface IFilterComponent {
|
|
|
478
478
|
loadingComplete: ILoadingComplete;
|
|
479
479
|
teacherDefault?: any;
|
|
480
480
|
teachers?: any[];
|
|
481
|
+
activeTab?: string;
|
|
481
482
|
}
|
|
482
483
|
export interface ITotalCard {
|
|
483
484
|
label: string;
|
|
@@ -640,12 +641,38 @@ export interface ILearningItem {
|
|
|
640
641
|
usageCount: number;
|
|
641
642
|
usagePoint: number[];
|
|
642
643
|
}
|
|
644
|
+
export interface IStrategyUsage {
|
|
645
|
+
learningStrategyId: number;
|
|
646
|
+
learningStrategyName: string;
|
|
647
|
+
timesUsed: number;
|
|
648
|
+
studentFeedBackAvg: number;
|
|
649
|
+
}
|
|
643
650
|
export interface ILearningProgressTab {
|
|
644
|
-
learningStrategies:
|
|
651
|
+
learningStrategies: IStrategyUsage[];
|
|
645
652
|
classFontSize?: string;
|
|
646
653
|
handleHoverTooltip?: Function;
|
|
647
654
|
print?: boolean;
|
|
648
|
-
loadingComplete: boolean;
|
|
655
|
+
loadingComplete: ILoadingComplete | boolean;
|
|
656
|
+
students: IQualityFeedbackStudents[];
|
|
657
|
+
openQualityFeedbackModal: boolean;
|
|
658
|
+
handleOpenQualityFeedbackModal: (learningStrategyId: number) => void;
|
|
659
|
+
handleCloseQualityFeedbackModal: () => void;
|
|
660
|
+
handleViewDetailNote: (note: any) => void;
|
|
661
|
+
}
|
|
662
|
+
export interface IQualityFeedbackStudents {
|
|
663
|
+
studentId: number;
|
|
664
|
+
studentUserName: string;
|
|
665
|
+
avatarStudent: string;
|
|
666
|
+
grade?: string;
|
|
667
|
+
average: number;
|
|
668
|
+
learningStrategies: string;
|
|
669
|
+
helpfulWasThisConversation: number;
|
|
670
|
+
createAt: string;
|
|
671
|
+
isSkipped?: boolean;
|
|
672
|
+
fromOneToOne?: boolean;
|
|
673
|
+
mostImportantLearning: string;
|
|
674
|
+
text: string;
|
|
675
|
+
type: string;
|
|
649
676
|
}
|
|
650
677
|
export interface IReadinessToLearnTab {
|
|
651
678
|
handleHoverTooltip?: Function;
|
|
@@ -678,7 +705,7 @@ export interface FILTER_STUDENT_WELLBEING {
|
|
|
678
705
|
startDate?: number;
|
|
679
706
|
endDate?: number;
|
|
680
707
|
classType?: string;
|
|
681
|
-
grade?: string;
|
|
708
|
+
grade?: string | string[];
|
|
682
709
|
studentId?: number | null;
|
|
683
710
|
timeOfDay?: string;
|
|
684
711
|
roles?: string[];
|
|
@@ -730,5 +757,8 @@ export interface ILoadingComplete {
|
|
|
730
757
|
gradeList: boolean;
|
|
731
758
|
skillQuestion: boolean;
|
|
732
759
|
summarizeReport: boolean;
|
|
760
|
+
strategyUsage: boolean;
|
|
761
|
+
qualityFeedback: boolean;
|
|
762
|
+
topLearningStrategies: boolean;
|
|
733
763
|
}
|
|
734
764
|
export {};
|
|
@@ -4,6 +4,16 @@ 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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IQualityFeedbackStudents } from "../configs/types";
|
|
2
|
+
declare const useQualityFeedback: (students: IQualityFeedbackStudents[]) => {
|
|
3
|
+
sortedStudents: IQualityFeedbackStudents[];
|
|
4
|
+
sortConfig: {
|
|
5
|
+
sortBy: string;
|
|
6
|
+
sortOrder: "ASC" | "DESC";
|
|
7
|
+
};
|
|
8
|
+
handleSort: (column: string) => void;
|
|
9
|
+
setSortConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
10
|
+
sortBy: string;
|
|
11
|
+
sortOrder: "ASC" | "DESC";
|
|
12
|
+
}>>;
|
|
13
|
+
};
|
|
14
|
+
export default useQualityFeedback;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IStrategyUsage, ILoadingComplete, IQualityFeedbackStudents, FILTER_STUDENT_WELLBEING } from "../configs/types";
|
|
2
|
+
declare const useTopLearningStrategies: (studentId: any, filterDateChart: FILTER_STUDENT_WELLBEING, gradeFilter?: string[], academicYearId?: number, setLoadingComplete?: Function, activeTab?: string, loadingComplete?: ILoadingComplete) => {
|
|
3
|
+
strategyUsage: IStrategyUsage[];
|
|
4
|
+
getStrategyUsage: () => Promise<void>;
|
|
5
|
+
qualityFeedbackStudents: IQualityFeedbackStudents[];
|
|
6
|
+
openQualityFeedbackModal: boolean;
|
|
7
|
+
handleOpenQualityFeedbackModal: (learningStrategyId: number) => void;
|
|
8
|
+
handleCloseQualityFeedbackModal: () => void;
|
|
9
|
+
noteSelected: any;
|
|
10
|
+
openDetailNote: boolean;
|
|
11
|
+
handleViewDetailNote: (note: any) => void;
|
|
12
|
+
handleCloseDetailNote: () => void;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
};
|
|
15
|
+
export default useTopLearningStrategies;
|