mario-education 2.4.593-feedback → 2.4.593-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/DatePicker/FilterDateRange.d.ts +2 -1
- package/dist/components/Dialog/SimpleDialog.d.ts +1 -0
- package/dist/components/Skin/Loading.d.ts +5 -0
- package/dist/components/icons/EmailIcon.d.ts +5 -0
- package/dist/components/layouts/icons/DeleteIcon.d.ts +5 -0
- package/dist/components/layouts/icons/FrequencyAndSetupIcon.d.ts +2 -0
- package/dist/components/layouts/icons/TeacherWellBeingIcon.d.ts +2 -0
- package/dist/components/layouts/icons/WellBeingDashboardIcon.d.ts +2 -0
- package/dist/components/selector/CalendarSelect.d.ts +3 -1
- package/dist/components/selector/StudentMultiSelector.d.ts +1 -1
- package/dist/components/selector/TeacherSelector.d.ts +1 -1
- package/dist/containers/Dashboard/components/BubbleChartCustom.d.ts +2 -1
- 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/DesktopFilterComponent.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/LearningProgressTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/MobileFilterComponent.d.ts +1 -1
- package/dist/containers/Dashboard/components/OpenFieldTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/ReadinessToLearnTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/StudentPressureChart.d.ts +3 -2
- package/dist/containers/Dashboard/components/SuccessIndicatorTab.d.ts +1 -1
- package/dist/containers/Dashboard/components/TotalCard.d.ts +1 -1
- package/dist/containers/Dashboard/configs/types.d.ts +28 -0
- package/dist/containers/Dashboard/hooks/useDashboard.d.ts +2 -8
- package/dist/containers/FrequencyAndSetup/components/ContactFlowInformation.d.ts +12 -0
- package/dist/containers/FrequencyAndSetup/components/FrequencyModeDetail.d.ts +3 -0
- package/dist/containers/FrequencyAndSetup/components/SortableItem.d.ts +8 -0
- package/dist/containers/FrequencyAndSetup/components/ViewQuestionsModal.d.ts +9 -0
- package/dist/containers/FrequencyAndSetup/components/WrapperWellBeing.d.ts +8 -0
- package/dist/containers/FrequencyAndSetup/configs/constants.d.ts +13 -0
- package/dist/containers/FrequencyAndSetup/configs/type.d.ts +43 -0
- package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +20 -0
- package/dist/containers/FrequencyAndSetup/views/FrequencyAndSetup.d.ts +5 -0
- package/dist/containers/Homepage/common/interface.d.ts +8 -0
- package/dist/containers/Homepage/hooks/useGeneralTip.d.ts +1 -1
- package/dist/containers/Homepage/hooks/useGradeUsage.d.ts +1 -1
- package/dist/containers/Homepage/hooks/useSchoolUsage.d.ts +1 -1
- package/dist/containers/Homepage/hooks/useStudentWellness.d.ts +1 -1
- package/dist/containers/Homepage/hooks/useViewStudent.d.ts +1 -1
- package/dist/containers/MarioAi/cofigs/type.d.ts +13 -0
- package/dist/containers/MarioAi/components/ChatContent.d.ts +1 -0
- package/dist/containers/MarioAi/hooks/useAIChat.d.ts +1 -0
- package/dist/containers/QuestionBank/configs/constants.d.ts +2 -1
- package/dist/containers/QuestionBank/configs/type.d.ts +4 -0
- package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +8 -1
- package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +1 -1
- package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +1 -0
- package/dist/containers/SurveyDashboard/configs/typeCardItem.d.ts +1 -1
- package/dist/containers/SurveyDashboard/configs/types.d.ts +1 -1
- package/dist/containers/WellBeingDashboard/components/DashboardToPDF.d.ts +3 -0
- package/dist/containers/WellBeingDashboard/components/EducatorWithoutCheckInsModal.d.ts +10 -0
- package/dist/containers/WellBeingDashboard/components/EmptyChart.d.ts +5 -0
- package/dist/containers/WellBeingDashboard/components/ExportChartPdfModal.d.ts +4 -0
- package/dist/containers/WellBeingDashboard/components/Filter.d.ts +12 -0
- package/dist/containers/WellBeingDashboard/components/OpenFieldQuestionTable.d.ts +3 -0
- package/dist/containers/WellBeingDashboard/components/OpenFieldTab.d.ts +3 -0
- package/dist/containers/WellBeingDashboard/components/RatingQuestionChart.d.ts +19 -0
- package/dist/containers/WellBeingDashboard/configs/constants.d.ts +11 -0
- package/dist/containers/WellBeingDashboard/configs/type.d.ts +143 -0
- package/dist/containers/WellBeingDashboard/configs/utils.d.ts +10 -0
- package/dist/containers/WellBeingDashboard/hooks/useOpenFieldWellbeingQuestion.d.ts +14 -0
- package/dist/containers/WellBeingDashboard/hooks/useWellbeingDashboard.d.ts +71 -0
- package/dist/containers/WellBeingDashboard/views/OpenFieldWellbeingQuestion.d.ts +2 -0
- package/dist/containers/WellBeingDashboard/views/WellBeingDashboard.d.ts +3 -0
- package/dist/index.css +15771 -15161
- package/dist/index.d.ts +4 -1
- package/dist/index.js +6014 -1790
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6000 -1779
- package/dist/index.modern.js.map +1 -1
- package/dist/services/geminiAiService.d.ts +2 -1
- package/dist/services/questionService.d.ts +1 -0
- package/dist/services/wellbeingService.d.ts +10 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/utils/constantsFn.d.ts +1 -0
- package/package.json +110 -110
- package/dist/components/Loading/LoadLanguage.d.ts +0 -3
|
@@ -5,6 +5,7 @@ interface PropsType {
|
|
|
5
5
|
onChangeStartDate: (date: MaterialUiPickersDate | null, value?: string | null) => void;
|
|
6
6
|
onChangeEndDate: (date: MaterialUiPickersDate | null, value?: string | null) => void;
|
|
7
7
|
fontSizeInputSelect?: string | null;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
}
|
|
9
|
-
declare const FilterDateRange: ({ endDate, startDate, onChangeEndDate, onChangeStartDate, fontSizeInputSelect }: PropsType) => JSX.Element;
|
|
10
|
+
declare const FilterDateRange: ({ endDate, startDate, onChangeEndDate, onChangeStartDate, fontSizeInputSelect, disabled }: PropsType) => JSX.Element;
|
|
10
11
|
export default FilterDateRange;
|
|
@@ -8,6 +8,8 @@ interface ICalendarSelect {
|
|
|
8
8
|
options: IOptionCalendar[];
|
|
9
9
|
value?: string;
|
|
10
10
|
onChange?: Function;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
customClassName?: string;
|
|
11
13
|
}
|
|
12
|
-
declare const CalendarSelect: ({ options, value, onChange }: ICalendarSelect) => JSX.Element;
|
|
14
|
+
declare const CalendarSelect: ({ options, value, onChange, disabled, customClassName }: ICalendarSelect) => JSX.Element;
|
|
13
15
|
export default CalendarSelect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IStudentMultiSelector } from "../../types/types";
|
|
2
|
-
declare const StudentMultiSelector: ({ student, setStudent, studentData, grades, fontSizeInputSelect, inputStyleProps }: IStudentMultiSelector) => JSX.Element;
|
|
2
|
+
declare const StudentMultiSelector: ({ student, setStudent, studentData, grades, fontSizeInputSelect, inputStyleProps, disabled }: IStudentMultiSelector) => JSX.Element;
|
|
3
3
|
export default StudentMultiSelector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const TeacherSelector: ({ isShowDropDownIcon, classes, setSelectTeacherUserId, setSelected }: any) => JSX.Element;
|
|
1
|
+
declare const TeacherSelector: ({ isShowDropDownIcon, classes, setSelectTeacherUserId, setSelected, disabled }: any) => JSX.Element;
|
|
2
2
|
export default TeacherSelector;
|
|
@@ -9,6 +9,7 @@ interface IProps {
|
|
|
9
9
|
hiddenDescription?: boolean;
|
|
10
10
|
handleHoverTooltip?: Function;
|
|
11
11
|
name?: string;
|
|
12
|
+
loadingComplete?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare const _default: React.MemoExoticComponent<({ data, print, disableSeriesName, hiddenRightLegend, hiddenDescription, handleHoverTooltip, name }: IProps) => JSX.Element>;
|
|
14
|
+
declare const _default: React.MemoExoticComponent<({ data, print, disableSeriesName, hiddenRightLegend, hiddenDescription, handleHoverTooltip, name, loadingComplete }: IProps) => JSX.Element>;
|
|
14
15
|
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, stressValue, safetyValue }: 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, safetyValue, loadingComplete }: 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<({ conversationKpi }: IConversationTab) => JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ conversationKpi, loadingComplete }: IConversationTab) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { 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 }: IFilterComponent) => 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 }: IFilterComponent) => JSX.Element;
|
|
3
3
|
export default DesktopFilterComponent;
|
|
@@ -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, timeOfDay, weeklySeries, weeks, description, skillClass, kpiClassName, lowMetricStudents, studentMetricPercent, noGradient, setOptionDate, stressValue, noAvgTotal, onActiveColumn, }: IGenerateDashboardChart) => JSX.Element>;
|
|
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, onActiveColumn, loadingComplete, optionDate }: 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, icons, className, noAvgText, timeOfDay }: IGenerateTrendQuestion) => JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ series, avgQuestionLastMonth, icons, className, noAvgText, timeOfDay, loadingComplete }: IGenerateTrendQuestion) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IGraphTrend } from "../configs/types";
|
|
2
|
-
declare const GraphTrend: ({ value, label, isStress, timeOfDay, valueData }: IGraphTrend) => JSX.Element;
|
|
2
|
+
declare const GraphTrend: ({ value, label, isStress, timeOfDay, valueData, loadingComplete }: IGraphTrend) => JSX.Element;
|
|
3
3
|
export default GraphTrend;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILearningProgressTab } from "../configs/types";
|
|
2
|
-
declare const LearningProgressTab: ({ learningStrategies, classFontSize, print }: ILearningProgressTab) => JSX.Element;
|
|
2
|
+
declare const LearningProgressTab: ({ learningStrategies, classFontSize, print, loadingComplete }: ILearningProgressTab) => JSX.Element;
|
|
3
3
|
export default LearningProgressTab;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { 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 }: IFilterComponent) => 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 }: IFilterComponent) => JSX.Element;
|
|
3
3
|
export default MobileFilterComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IOpenFieldTab } from "../configs/types";
|
|
2
|
-
declare const OpenFieldTab: ({ handleRedirectAllAnswer, summarizeQuestions, goToSession, handleChangeQuestionFilter, questionFilters }: IOpenFieldTab) => JSX.Element;
|
|
2
|
+
declare const OpenFieldTab: ({ handleRedirectAllAnswer, summarizeQuestions, goToSession, handleChangeQuestionFilter, questionFilters, loadingComplete }: IOpenFieldTab) => JSX.Element;
|
|
3
3
|
export default OpenFieldTab;
|
|
@@ -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, setOptionDate, activeColumn, onActiveColumn, timeOfDay }: IReadinessToLearnTab) => JSX.Element;
|
|
2
|
+
declare const ReadinessToLearnTab: ({ dataReadinessOfChart, handleHoverTooltip, classFontSize, dataOverallReadyToLearn, dayOfWeekOneToOne, monthsOneToOne, avgQuestionLastMonth, preparednessData, preparednessWeeklyData, weeksOneToOne, setOptionDate, activeColumn, onActiveColumn, timeOfDay, loadingComplete }: IReadinessToLearnTab) => JSX.Element;
|
|
3
3
|
export default ReadinessToLearnTab;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IStudentPressureChart } from "../configs/types";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ studentPressure, changeLanguage, width, print, handleHoverTooltip, loadingComplete }: IStudentPressureChart) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ISuccessIndicatorTab } from "../configs/types";
|
|
2
|
-
declare const SuccessIndicatorTab: ({ successIndicatorsData, avgQuestionLastMonth, dayOfWeekOneToOne, monthsOneToOne, timeOfDay, classFontSize, handleHoverTooltip, successIndicatorWeeklyData, weeksOneToOne, activeColumn, onActiveColumn }: ISuccessIndicatorTab) => JSX.Element;
|
|
2
|
+
declare const SuccessIndicatorTab: ({ successIndicatorsData, avgQuestionLastMonth, dayOfWeekOneToOne, monthsOneToOne, timeOfDay, classFontSize, handleHoverTooltip, successIndicatorWeeklyData, weeksOneToOne, activeColumn, onActiveColumn, loadingComplete }: ISuccessIndicatorTab) => JSX.Element;
|
|
3
3
|
export default SuccessIndicatorTab;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ITotalCard } from "../configs/types";
|
|
2
|
-
declare const TotalCard: ({ iconSrc, label, value }: ITotalCard) => JSX.Element;
|
|
2
|
+
declare const TotalCard: ({ iconSrc, label, value, loadingComplete, customClassName, handleOpenModal }: ITotalCard) => JSX.Element;
|
|
3
3
|
export default TotalCard;
|
|
@@ -40,6 +40,7 @@ export interface IStudentPressureChart {
|
|
|
40
40
|
width?: number;
|
|
41
41
|
print?: boolean;
|
|
42
42
|
handleHoverTooltip?: Function;
|
|
43
|
+
loadingComplete?: boolean;
|
|
43
44
|
}
|
|
44
45
|
export interface IStudentPressure {
|
|
45
46
|
boreOutStudent: string[];
|
|
@@ -468,11 +469,15 @@ export interface IFilterComponent {
|
|
|
468
469
|
onSaveFilter: Function;
|
|
469
470
|
optionDate?: string;
|
|
470
471
|
setSelectTeacherUserId: Function;
|
|
472
|
+
loadingComplete: ILoadingComplete;
|
|
471
473
|
}
|
|
472
474
|
export interface ITotalCard {
|
|
473
475
|
label: string;
|
|
474
476
|
value: number | string;
|
|
475
477
|
iconSrc: string;
|
|
478
|
+
loadingComplete?: boolean;
|
|
479
|
+
customClassName?: string;
|
|
480
|
+
handleOpenModal?: any;
|
|
476
481
|
}
|
|
477
482
|
export interface IQuestionResponseLastMonth {
|
|
478
483
|
avgQuestionResponse: number;
|
|
@@ -538,6 +543,8 @@ export interface IGenerateDashboardChart {
|
|
|
538
543
|
stressValue?: number[];
|
|
539
544
|
noAvgTotal?: boolean;
|
|
540
545
|
onActiveColumn?: any;
|
|
546
|
+
loadingComplete?: boolean;
|
|
547
|
+
optionDate?: string;
|
|
541
548
|
}
|
|
542
549
|
export interface IResponseStudentQuestion {
|
|
543
550
|
sessionId: number;
|
|
@@ -584,9 +591,11 @@ export interface IConcernMetricTab {
|
|
|
584
591
|
studentMetricPercent: number;
|
|
585
592
|
stressValue: number[];
|
|
586
593
|
safetyValue: number[];
|
|
594
|
+
loadingComplete: ILoadingComplete;
|
|
587
595
|
}
|
|
588
596
|
export interface IConversationTab {
|
|
589
597
|
conversationKpi: IConversationKpi;
|
|
598
|
+
loadingComplete: boolean;
|
|
590
599
|
}
|
|
591
600
|
export interface IGraphTrend {
|
|
592
601
|
value: number;
|
|
@@ -594,6 +603,7 @@ export interface IGraphTrend {
|
|
|
594
603
|
label?: string;
|
|
595
604
|
timeOfDay?: string;
|
|
596
605
|
valueData?: number;
|
|
606
|
+
loadingComplete: boolean;
|
|
597
607
|
}
|
|
598
608
|
export interface IOpenFieldTab {
|
|
599
609
|
summarizeQuestions: ISummarizeQuestion | undefined;
|
|
@@ -601,6 +611,7 @@ export interface IOpenFieldTab {
|
|
|
601
611
|
questionFilters: any;
|
|
602
612
|
handleChangeQuestionFilter: (filter: any) => void;
|
|
603
613
|
goToSession: Function;
|
|
614
|
+
loadingComplete: boolean;
|
|
604
615
|
}
|
|
605
616
|
export interface ISuccessIndicatorTab {
|
|
606
617
|
successIndicatorsData: ISeries[];
|
|
@@ -614,6 +625,7 @@ export interface ISuccessIndicatorTab {
|
|
|
614
625
|
weeksOneToOne: string[];
|
|
615
626
|
activeColumn: boolean[];
|
|
616
627
|
onActiveColumn: any;
|
|
628
|
+
loadingComplete: ILoadingComplete;
|
|
617
629
|
}
|
|
618
630
|
export interface ILearningItem {
|
|
619
631
|
learningStrategyName: string;
|
|
@@ -625,6 +637,7 @@ export interface ILearningProgressTab {
|
|
|
625
637
|
classFontSize?: string;
|
|
626
638
|
handleHoverTooltip?: Function;
|
|
627
639
|
print?: boolean;
|
|
640
|
+
loadingComplete: boolean;
|
|
628
641
|
}
|
|
629
642
|
export interface IReadinessToLearnTab {
|
|
630
643
|
handleHoverTooltip?: Function;
|
|
@@ -641,6 +654,7 @@ export interface IReadinessToLearnTab {
|
|
|
641
654
|
onActiveColumn?: any;
|
|
642
655
|
activeColumn?: boolean[];
|
|
643
656
|
timeOfDay?: string;
|
|
657
|
+
loadingComplete: ILoadingComplete;
|
|
644
658
|
}
|
|
645
659
|
export interface IGenerateTrendQuestion {
|
|
646
660
|
series: ISeries[];
|
|
@@ -650,6 +664,7 @@ export interface IGenerateTrendQuestion {
|
|
|
650
664
|
className?: string;
|
|
651
665
|
noAvgText?: boolean;
|
|
652
666
|
timeOfDay?: string;
|
|
667
|
+
loadingComplete: boolean;
|
|
653
668
|
}
|
|
654
669
|
export interface FILTER_STUDENT_WELLBEING {
|
|
655
670
|
startDate?: number;
|
|
@@ -695,4 +710,17 @@ export interface IConversationKpi {
|
|
|
695
710
|
missedReviewStudents: IMissedReviewStudents[];
|
|
696
711
|
educatorConversationsTarget: IEducatorConversationKpi[];
|
|
697
712
|
}
|
|
713
|
+
export interface ILoadingComplete {
|
|
714
|
+
allStudent: boolean;
|
|
715
|
+
dataChart: boolean;
|
|
716
|
+
dataConversationGoal: boolean;
|
|
717
|
+
dataDistribution: boolean;
|
|
718
|
+
dataMetric: boolean;
|
|
719
|
+
dataOverview: boolean;
|
|
720
|
+
dataStatics: boolean;
|
|
721
|
+
dataStudentPressure: boolean;
|
|
722
|
+
gradeList: boolean;
|
|
723
|
+
skillQuestion: boolean;
|
|
724
|
+
summarizeReport: boolean;
|
|
725
|
+
}
|
|
698
726
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DashboardFilter,
|
|
2
|
+
import { DashboardFilter, IlearningStrategies, IReadinessToLearning, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ISeries, ISummarizeQuestion, IFilterCalendar, ILowMetricStudent, IConversationKpi, ILoadingComplete } from "../configs/types";
|
|
3
3
|
import { IFilter, Student } from "../../../utils/type";
|
|
4
4
|
import { IStudentSkillQuestion } from "../../MyStudent/components/NewOverview/Chat/types/types";
|
|
5
5
|
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
@@ -10,15 +10,8 @@ declare const useDashboard: () => {
|
|
|
10
10
|
listTotalTime: IDashboardToTalStudent;
|
|
11
11
|
readinessToLearning: IReadinessToLearning[];
|
|
12
12
|
topLearningStrategies: IlearningStrategies;
|
|
13
|
-
studentByGrade: IStudentByGrade[];
|
|
14
|
-
friendCircles: IsyntheticFriendCircle | undefined;
|
|
15
|
-
activityCircles: IActivityCircle | undefined;
|
|
16
|
-
studentBySpecialNeed: IStudentBySpecialNeed[];
|
|
17
|
-
studentByAge: IStudentByAge;
|
|
18
|
-
studentByGender: IStudentByGender;
|
|
19
13
|
handleChangeFilters: (event: any) => void;
|
|
20
14
|
handleChangeAcademicYearFilters: (option: any) => void;
|
|
21
|
-
bandScore: BAND_SCORE[];
|
|
22
15
|
academicYear: any;
|
|
23
16
|
user: any;
|
|
24
17
|
studentDefault: Student | undefined;
|
|
@@ -93,5 +86,6 @@ declare const useDashboard: () => {
|
|
|
93
86
|
activeColumnReadiness: boolean[];
|
|
94
87
|
activeColumnIndicators: boolean[];
|
|
95
88
|
handleActiveColumn: (index: number, name: string) => void;
|
|
89
|
+
loadingComplete: ILoadingComplete;
|
|
96
90
|
};
|
|
97
91
|
export default useDashboard;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IWellBeingFlowContact } from '../configs/type';
|
|
2
|
+
interface IProps {
|
|
3
|
+
contacts: IWellBeingFlowContact[];
|
|
4
|
+
handleAddContactFlow: Function;
|
|
5
|
+
handleDeleteContactFlow: any;
|
|
6
|
+
handleChangeValueContact: Function;
|
|
7
|
+
contactIdToDeleteRef: any;
|
|
8
|
+
openModalDelete: boolean;
|
|
9
|
+
setOpenModalDelete: Function;
|
|
10
|
+
}
|
|
11
|
+
declare const ContactFlowInformation: ({ contacts, handleAddContactFlow, handleDeleteContactFlow, handleChangeValueContact, contactIdToDeleteRef, openModalDelete, setOpenModalDelete }: IProps) => JSX.Element;
|
|
12
|
+
export default ContactFlowInformation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IWellBeingSection } from '../configs/type';
|
|
3
|
+
interface IProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
sectionSelected: IWellBeingSection;
|
|
7
|
+
}
|
|
8
|
+
declare const ViewQuestionsModal: FC<IProps>;
|
|
9
|
+
export default ViewQuestionsModal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup, IWellBeingSection } from "./type";
|
|
2
|
+
export declare const FrequencyMode: {
|
|
3
|
+
value: Frequency_Mode;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const FrequencySetting: {
|
|
8
|
+
value: Frequency_Setting;
|
|
9
|
+
title: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const InitialContactFlow: IWellBeingFlowContact;
|
|
12
|
+
export declare const initSetup: IWellBeingSetup;
|
|
13
|
+
export declare const DefaultSection: IWellBeingSection;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare enum Frequency_Mode {
|
|
2
|
+
Bulk = "Bulk",
|
|
3
|
+
Detailed = "Detailed"
|
|
4
|
+
}
|
|
5
|
+
export declare enum Frequency_Setting {
|
|
6
|
+
Weekly = "Weekly",
|
|
7
|
+
Monthly = "Monthly",
|
|
8
|
+
Custom = "Custom"
|
|
9
|
+
}
|
|
10
|
+
export interface IWellBeingSetup {
|
|
11
|
+
id: number;
|
|
12
|
+
frequencyMode: Frequency_Mode;
|
|
13
|
+
frequencyType: Frequency_Setting;
|
|
14
|
+
customFrequencyDays: number | null;
|
|
15
|
+
isContactFlowEnabled: boolean;
|
|
16
|
+
sections: IWellBeingSection[];
|
|
17
|
+
contacts: IWellBeingFlowContact[];
|
|
18
|
+
}
|
|
19
|
+
export interface IWellBeingSection {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
iconUrl: string;
|
|
24
|
+
order: number;
|
|
25
|
+
defaultOrder: number;
|
|
26
|
+
questions: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface IWellBeingFlowContact {
|
|
29
|
+
id: number;
|
|
30
|
+
name: string;
|
|
31
|
+
role: string;
|
|
32
|
+
email: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IFrequencyModeDetail {
|
|
35
|
+
sections: IWellBeingSection[];
|
|
36
|
+
onChange: Function;
|
|
37
|
+
onViewQuestions: (data: any) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface IQuestionBySection {
|
|
40
|
+
sections: IWellBeingSection[];
|
|
41
|
+
onChange: Function;
|
|
42
|
+
onViewQuestions: (data: any) => void;
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IWellBeingFlowContact, IWellBeingSection, IWellBeingSetup } from "../configs/type";
|
|
3
|
+
declare const useFrequencyAndSetup: () => {
|
|
4
|
+
handleAddContactFlow: () => void;
|
|
5
|
+
handleDeleteContactFlow: (id: number) => void;
|
|
6
|
+
handleChangeValueContact: (id: number, key: string, value: string) => void;
|
|
7
|
+
contactIdToDeleteRef: import("react").MutableRefObject<number>;
|
|
8
|
+
openModalDelete: boolean;
|
|
9
|
+
setOpenModalDelete: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
setup: IWellBeingSetup;
|
|
11
|
+
onChangeSetup: <K extends "id" | "contacts" | "sections" | "frequencyMode" | "frequencyType" | "customFrequencyDays" | "isContactFlowEnabled">(key: K, value: IWellBeingSetup[K]) => void;
|
|
12
|
+
contacts: IWellBeingFlowContact[];
|
|
13
|
+
sections: IWellBeingSection[];
|
|
14
|
+
onChangeSections: (orderSections: IWellBeingSection[]) => void;
|
|
15
|
+
onViewQuestions: (data: IWellBeingSection) => void;
|
|
16
|
+
sectionSelected: IWellBeingSection;
|
|
17
|
+
openViewQuestionModal: boolean;
|
|
18
|
+
onCloseViewQuestions: () => void;
|
|
19
|
+
};
|
|
20
|
+
export default useFrequencyAndSetup;
|
|
@@ -146,3 +146,11 @@ export interface IStudentQuestionSkillParams {
|
|
|
146
146
|
academicYearId?: number;
|
|
147
147
|
optionDate?: string;
|
|
148
148
|
}
|
|
149
|
+
export interface ILoadingComplete {
|
|
150
|
+
gradeUsage: boolean;
|
|
151
|
+
schoolUsage: boolean;
|
|
152
|
+
generalTips: boolean;
|
|
153
|
+
dataCheckIns: boolean;
|
|
154
|
+
skillQuestion: boolean;
|
|
155
|
+
viewStudent: boolean;
|
|
156
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQuestionResponseLastMonth, ISeries, IStudentSkillQuestion } from "../common/interface";
|
|
2
2
|
import { FILTER_STUDENT_WELLBEING } from "../common/interface";
|
|
3
|
-
declare const useStudentWellness: (studentId: number | undefined, filterDateChart: FILTER_STUDENT_WELLBEING, gradeFilter?: string[] | undefined, academicYearId?: number | undefined) => {
|
|
3
|
+
declare const useStudentWellness: (studentId: number | undefined, filterDateChart: FILTER_STUDENT_WELLBEING, gradeFilter?: string[] | undefined, academicYearId?: number | undefined, setLoadingComplete?: Function | undefined) => {
|
|
4
4
|
handleActiveColumnOneToOne: (index: number, name: string) => void;
|
|
5
5
|
activeColumnSuccessIndicators: boolean[];
|
|
6
6
|
monthsOneToOne: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { STUDENT_SELECTOR } from "../common/interface";
|
|
3
|
-
declare const useViewStudent: () => {
|
|
3
|
+
declare const useViewStudent: (setLoadingComplete?: Function | undefined) => {
|
|
4
4
|
handleAddNewStudent: () => void;
|
|
5
5
|
dataStudents: any;
|
|
6
6
|
searchStringStudent: string;
|
|
@@ -119,3 +119,16 @@ export interface IAnswer {
|
|
|
119
119
|
startTime: string;
|
|
120
120
|
teacherName: string;
|
|
121
121
|
}
|
|
122
|
+
export interface AiRequest {
|
|
123
|
+
historyId?: number;
|
|
124
|
+
promptId: number;
|
|
125
|
+
labelTime: string;
|
|
126
|
+
startDate?: number;
|
|
127
|
+
endDate?: number;
|
|
128
|
+
studentName: string;
|
|
129
|
+
chatHistory: IChat[];
|
|
130
|
+
}
|
|
131
|
+
export interface FilterRequest {
|
|
132
|
+
startDate?: number;
|
|
133
|
+
endDate?: number;
|
|
134
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IQuestionLabel } from "../configs/type";
|
|
2
|
+
import { IQuestionLabel, ISection } from "../configs/type";
|
|
3
3
|
declare type Answer = {
|
|
4
4
|
text: string;
|
|
5
5
|
isCorrectAnswer: boolean;
|
|
@@ -29,6 +29,8 @@ declare type QuestionDetail = {
|
|
|
29
29
|
isQuestionIntervention: boolean;
|
|
30
30
|
userForQuestion?: string;
|
|
31
31
|
lang: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
wellBeingSectionId?: number | null;
|
|
32
34
|
};
|
|
33
35
|
declare const useQuestionDetail: (id?: number | undefined, type?: number | undefined) => {
|
|
34
36
|
questionDetail: QuestionDetail;
|
|
@@ -49,5 +51,10 @@ declare const useQuestionDetail: (id?: number | undefined, type?: number | undef
|
|
|
49
51
|
handleValidateForm: (onValidate: Function, setErrors: Function) => Promise<boolean>;
|
|
50
52
|
activeType: string;
|
|
51
53
|
setActiveType: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
54
|
+
sections: ISection[];
|
|
55
|
+
sectionOptions: {
|
|
56
|
+
value: number;
|
|
57
|
+
label: string;
|
|
58
|
+
}[];
|
|
52
59
|
};
|
|
53
60
|
export default useQuestionDetail;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const useQuestionList: (isDefaultQuestion: boolean, isDefaultClassReflection: boolean, isDefaultConference?: boolean | undefined, isDefaultSurvey?: boolean | undefined) => {
|
|
1
|
+
declare const useQuestionList: (isDefaultQuestion: boolean, isDefaultClassReflection: boolean, isDefaultConference?: boolean | undefined, isDefaultSurvey?: boolean | undefined, isWellbeingQuestion?: boolean | undefined) => {
|
|
2
2
|
gridOptions: any;
|
|
3
3
|
setRef: (node: any) => any;
|
|
4
4
|
questionList: any;
|