mario-education 2.0.1-release → 2.0.1-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/ExportChartPdfModal.d.ts +1 -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/components/MobileFilterComponent.d.ts +1 -1
- package/dist/containers/Dashboard/configs/types.d.ts +36 -3
- package/dist/containers/Dashboard/hooks/useDashboard.d.ts +10 -0
- package/dist/containers/Dashboard/hooks/useQualityFeedback.d.ts +4 -0
- package/dist/containers/Dashboard/hooks/useTopLearningStrategies.d.ts +2 -2
- package/dist/containers/WellBeingDashboard/configs/type.d.ts +1 -0
- package/dist/index.js +114 -114
- package/dist/index.modern.js +23640 -23408
- package/dist/mario-education.css +1 -1
- package/dist/services/dashboardService.d.ts +2 -0
- package/package.json +2 -2
- package/dist/index.cjs +0 -295
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -350,6 +350,9 @@ export interface IDashboardToPDF {
|
|
|
350
350
|
weeksOneToOne: string[];
|
|
351
351
|
successIndicatorWeeklyData: any;
|
|
352
352
|
topLearningStrategies: any;
|
|
353
|
+
learningStrategiesUsage: IStrategyUsage[];
|
|
354
|
+
optionDate?: string;
|
|
355
|
+
onClose?: () => void;
|
|
353
356
|
}
|
|
354
357
|
export interface IOverallReadinessToLearn {
|
|
355
358
|
resultQuestion: ISeries[];
|
|
@@ -478,6 +481,7 @@ export interface IFilterComponent {
|
|
|
478
481
|
loadingComplete: ILoadingComplete;
|
|
479
482
|
teacherDefault?: any;
|
|
480
483
|
teachers?: any[];
|
|
484
|
+
activeTab?: string;
|
|
481
485
|
}
|
|
482
486
|
export interface ITotalCard {
|
|
483
487
|
label: string;
|
|
@@ -640,12 +644,38 @@ export interface ILearningItem {
|
|
|
640
644
|
usageCount: number;
|
|
641
645
|
usagePoint: number[];
|
|
642
646
|
}
|
|
647
|
+
export interface IStrategyUsage {
|
|
648
|
+
learningStrategyId: number;
|
|
649
|
+
learningStrategyName: string;
|
|
650
|
+
timesUsed: number;
|
|
651
|
+
studentFeedBackAvg: number;
|
|
652
|
+
}
|
|
643
653
|
export interface ILearningProgressTab {
|
|
644
|
-
learningStrategies:
|
|
654
|
+
learningStrategies: IStrategyUsage[];
|
|
645
655
|
classFontSize?: string;
|
|
646
656
|
handleHoverTooltip?: Function;
|
|
647
657
|
print?: boolean;
|
|
648
|
-
loadingComplete: boolean;
|
|
658
|
+
loadingComplete: ILoadingComplete | boolean;
|
|
659
|
+
students: IQualityFeedbackStudents[];
|
|
660
|
+
openQualityFeedbackModal: boolean;
|
|
661
|
+
handleOpenQualityFeedbackModal: (learningStrategyId: number) => void;
|
|
662
|
+
handleCloseQualityFeedbackModal: () => void;
|
|
663
|
+
handleViewDetailNote: (note: any) => void;
|
|
664
|
+
}
|
|
665
|
+
export interface IQualityFeedbackStudents {
|
|
666
|
+
studentId: number;
|
|
667
|
+
studentUserName: string;
|
|
668
|
+
avatarStudent: string;
|
|
669
|
+
grade?: string;
|
|
670
|
+
average: number;
|
|
671
|
+
learningStrategies: string;
|
|
672
|
+
helpfulWasThisConversation: number;
|
|
673
|
+
createAt: string;
|
|
674
|
+
isSkipped?: boolean;
|
|
675
|
+
fromOneToOne?: boolean;
|
|
676
|
+
mostImportantLearning: string;
|
|
677
|
+
text: string;
|
|
678
|
+
type: string;
|
|
649
679
|
}
|
|
650
680
|
export interface IReadinessToLearnTab {
|
|
651
681
|
handleHoverTooltip?: Function;
|
|
@@ -678,7 +708,7 @@ export interface FILTER_STUDENT_WELLBEING {
|
|
|
678
708
|
startDate?: number;
|
|
679
709
|
endDate?: number;
|
|
680
710
|
classType?: string;
|
|
681
|
-
grade?: string;
|
|
711
|
+
grade?: string | string[];
|
|
682
712
|
studentId?: number | null;
|
|
683
713
|
timeOfDay?: string;
|
|
684
714
|
roles?: string[];
|
|
@@ -730,5 +760,8 @@ export interface ILoadingComplete {
|
|
|
730
760
|
gradeList: boolean;
|
|
731
761
|
skillQuestion: boolean;
|
|
732
762
|
summarizeReport: boolean;
|
|
763
|
+
strategyUsage: boolean;
|
|
764
|
+
qualityFeedback: boolean;
|
|
765
|
+
topLearningStrategies: boolean;
|
|
733
766
|
}
|
|
734
767
|
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;
|
|
@@ -6,5 +6,9 @@ declare const useQualityFeedback: (students: IQualityFeedbackStudents[]) => {
|
|
|
6
6
|
sortOrder: "ASC" | "DESC";
|
|
7
7
|
};
|
|
8
8
|
handleSort: (column: string) => void;
|
|
9
|
+
setSortConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
10
|
+
sortBy: string;
|
|
11
|
+
sortOrder: "ASC" | "DESC";
|
|
12
|
+
}>>;
|
|
9
13
|
};
|
|
10
14
|
export default useQualityFeedback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IStrategyUsage, IQualityFeedbackStudents, FILTER_STUDENT_WELLBEING } from "../configs/types";
|
|
2
|
-
declare const useTopLearningStrategies: (studentId: any, filterDateChart: FILTER_STUDENT_WELLBEING, gradeFilter?: string[], academicYearId?: number, setLoadingComplete?: Function) => {
|
|
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
3
|
strategyUsage: IStrategyUsage[];
|
|
4
4
|
getStrategyUsage: () => Promise<void>;
|
|
5
5
|
qualityFeedbackStudents: IQualityFeedbackStudents[];
|