mario-education 2.4.591-feedback → 2.4.591-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.
Files changed (72) hide show
  1. package/dist/components/DatePicker/FilterDateRange.d.ts +2 -1
  2. package/dist/components/Dialog/SimpleDialog.d.ts +1 -0
  3. package/dist/components/Skin/Loading.d.ts +5 -0
  4. package/dist/components/icons/EmailIcon.d.ts +5 -0
  5. package/dist/components/selector/CalendarSelect.d.ts +3 -1
  6. package/dist/components/selector/StudentMultiSelector.d.ts +1 -1
  7. package/dist/components/selector/TeacherSelector.d.ts +1 -1
  8. package/dist/containers/Dashboard/components/BubbleChartCustom.d.ts +2 -1
  9. package/dist/containers/Dashboard/components/ConcernMetricTab.d.ts +1 -1
  10. package/dist/containers/Dashboard/components/ConversationTab.d.ts +1 -1
  11. package/dist/containers/Dashboard/components/DesktopFilterComponent.d.ts +1 -1
  12. package/dist/containers/Dashboard/components/GeneratePlpChart.d.ts +1 -1
  13. package/dist/containers/Dashboard/components/GenerateTrendQuestion.d.ts +1 -1
  14. package/dist/containers/Dashboard/components/GraphTrend.d.ts +1 -1
  15. package/dist/containers/Dashboard/components/LearningProgressTab.d.ts +1 -1
  16. package/dist/containers/Dashboard/components/MobileFilterComponent.d.ts +1 -1
  17. package/dist/containers/Dashboard/components/OpenFieldTab.d.ts +1 -1
  18. package/dist/containers/Dashboard/components/ReadinessToLearnTab.d.ts +1 -1
  19. package/dist/containers/Dashboard/components/StudentPressureChart.d.ts +3 -2
  20. package/dist/containers/Dashboard/components/SuccessIndicatorTab.d.ts +1 -1
  21. package/dist/containers/Dashboard/components/TotalCard.d.ts +1 -1
  22. package/dist/containers/Dashboard/configs/types.d.ts +28 -0
  23. package/dist/containers/Dashboard/hooks/useDashboard.d.ts +2 -8
  24. package/dist/containers/FrequencyAndSetup/components/FrequencyModeDetail.d.ts +1 -1
  25. package/dist/containers/FrequencyAndSetup/components/SortableItem.d.ts +2 -1
  26. package/dist/containers/FrequencyAndSetup/components/ViewQuestionsModal.d.ts +9 -0
  27. package/dist/containers/FrequencyAndSetup/configs/constants.d.ts +2 -1
  28. package/dist/containers/FrequencyAndSetup/configs/type.d.ts +7 -0
  29. package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +4 -0
  30. package/dist/containers/Homepage/common/interface.d.ts +8 -0
  31. package/dist/containers/Homepage/hooks/useGeneralTip.d.ts +1 -1
  32. package/dist/containers/Homepage/hooks/useGradeUsage.d.ts +1 -1
  33. package/dist/containers/Homepage/hooks/useSchoolUsage.d.ts +1 -1
  34. package/dist/containers/Homepage/hooks/useStudentWellness.d.ts +1 -1
  35. package/dist/containers/Homepage/hooks/useViewStudent.d.ts +1 -1
  36. package/dist/containers/MarioAi/cofigs/type.d.ts +13 -0
  37. package/dist/containers/MarioAi/components/ChatContent.d.ts +1 -0
  38. package/dist/containers/MarioAi/hooks/useAIChat.d.ts +1 -0
  39. package/dist/containers/QuestionBank/configs/constants.d.ts +2 -1
  40. package/dist/containers/QuestionBank/configs/type.d.ts +4 -0
  41. package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +8 -1
  42. package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +1 -1
  43. package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +1 -0
  44. package/dist/containers/SurveyDashboard/configs/typeCardItem.d.ts +1 -1
  45. package/dist/containers/SurveyDashboard/configs/types.d.ts +1 -1
  46. package/dist/containers/WellBeingDashboard/components/DashboardToPDF.d.ts +3 -0
  47. package/dist/containers/WellBeingDashboard/components/EducatorWithoutCheckInsModal.d.ts +10 -0
  48. package/dist/containers/WellBeingDashboard/components/EmptyChart.d.ts +5 -0
  49. package/dist/containers/WellBeingDashboard/components/ExportChartPdfModal.d.ts +4 -0
  50. package/dist/containers/WellBeingDashboard/components/Filter.d.ts +12 -0
  51. package/dist/containers/WellBeingDashboard/components/OpenFieldQuestionTable.d.ts +3 -0
  52. package/dist/containers/WellBeingDashboard/components/OpenFieldTab.d.ts +3 -0
  53. package/dist/containers/WellBeingDashboard/components/RatingQuestionChart.d.ts +19 -0
  54. package/dist/containers/WellBeingDashboard/configs/constants.d.ts +11 -0
  55. package/dist/containers/WellBeingDashboard/configs/type.d.ts +143 -0
  56. package/dist/containers/WellBeingDashboard/configs/utils.d.ts +10 -0
  57. package/dist/containers/WellBeingDashboard/hooks/useOpenFieldWellbeingQuestion.d.ts +14 -0
  58. package/dist/containers/WellBeingDashboard/hooks/useWellbeingDashboard.d.ts +71 -0
  59. package/dist/containers/WellBeingDashboard/views/OpenFieldWellbeingQuestion.d.ts +2 -0
  60. package/dist/containers/WellBeingDashboard/views/WellBeingDashboard.d.ts +1 -3
  61. package/dist/index.css +629 -19
  62. package/dist/index.d.ts +4 -1
  63. package/dist/index.js +6038 -1797
  64. package/dist/index.js.map +1 -1
  65. package/dist/index.modern.js +6024 -1786
  66. package/dist/index.modern.js.map +1 -1
  67. package/dist/services/geminiAiService.d.ts +2 -1
  68. package/dist/services/questionService.d.ts +1 -0
  69. package/dist/services/wellbeingService.d.ts +6 -0
  70. package/dist/types/types.d.ts +1 -0
  71. package/dist/utils/constantsFn.d.ts +1 -0
  72. package/package.json +4 -4
@@ -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;
@@ -7,6 +7,7 @@ interface Props {
7
7
  onClose?: Function;
8
8
  contentClassName?: string;
9
9
  bodyClass?: string;
10
+ isSessionModal?: boolean;
10
11
  }
11
12
  declare const SimpleDialog: FC<Props>;
12
13
  export default SimpleDialog;
@@ -0,0 +1,5 @@
1
+ declare const Loading: ({ size, defaultColor }: {
2
+ size?: number | undefined;
3
+ defaultColor?: boolean | undefined;
4
+ }) => JSX.Element;
5
+ export default Loading;
@@ -0,0 +1,5 @@
1
+ declare const EmailIcon: ({ color, size }: {
2
+ color?: string | undefined;
3
+ size?: number | undefined;
4
+ }) => JSX.Element;
5
+ export default EmailIcon;
@@ -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 StudentPressureChart: ({ studentPressure, changeLanguage, width, print, handleHoverTooltip }: IStudentPressureChart) => JSX.Element;
3
- export default StudentPressureChart;
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, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ISeries, ISummarizeQuestion, IFilterCalendar, ILowMetricStudent, IConversationKpi } from "../configs/types";
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;
@@ -1,3 +1,3 @@
1
1
  import { IFrequencyModeDetail } from '../configs/type';
2
- declare const FrequencyModeDetail: ({ sections, onChange }: IFrequencyModeDetail) => JSX.Element;
2
+ declare const FrequencyModeDetail: ({ sections, onChange, onViewQuestions }: IFrequencyModeDetail) => JSX.Element;
3
3
  export default FrequencyModeDetail;
@@ -2,6 +2,7 @@ interface IProps {
2
2
  id: number;
3
3
  data: any;
4
4
  index?: number;
5
+ onViewQuestions?: (data: any) => void;
5
6
  }
6
- declare const SortableItem: ({ id, data, index }: IProps) => JSX.Element;
7
+ declare const SortableItem: ({ id, data, index, onViewQuestions }: IProps) => JSX.Element;
7
8
  export default SortableItem;
@@ -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;
@@ -1,4 +1,4 @@
1
- import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup } from "./type";
1
+ import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup, IWellBeingSection } from "./type";
2
2
  export declare const FrequencyMode: {
3
3
  value: Frequency_Mode;
4
4
  title: string;
@@ -10,3 +10,4 @@ export declare const FrequencySetting: {
10
10
  }[];
11
11
  export declare const InitialContactFlow: IWellBeingFlowContact;
12
12
  export declare const initSetup: IWellBeingSetup;
13
+ export declare const DefaultSection: IWellBeingSection;
@@ -23,6 +23,7 @@ export interface IWellBeingSection {
23
23
  iconUrl: string;
24
24
  order: number;
25
25
  defaultOrder: number;
26
+ questions: string[];
26
27
  }
27
28
  export interface IWellBeingFlowContact {
28
29
  id: number;
@@ -33,4 +34,10 @@ export interface IWellBeingFlowContact {
33
34
  export interface IFrequencyModeDetail {
34
35
  sections: IWellBeingSection[];
35
36
  onChange: Function;
37
+ onViewQuestions: (data: any) => void;
38
+ }
39
+ export interface IQuestionBySection {
40
+ sections: IWellBeingSection[];
41
+ onChange: Function;
42
+ onViewQuestions: (data: any) => void;
36
43
  }
@@ -12,5 +12,9 @@ declare const useFrequencyAndSetup: () => {
12
12
  contacts: IWellBeingFlowContact[];
13
13
  sections: IWellBeingSection[];
14
14
  onChangeSections: (orderSections: IWellBeingSection[]) => void;
15
+ onViewQuestions: (data: IWellBeingSection) => void;
16
+ sectionSelected: IWellBeingSection;
17
+ openViewQuestionModal: boolean;
18
+ onCloseViewQuestions: () => void;
15
19
  };
16
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,5 +1,5 @@
1
1
  import { IGeneralTip } from "../common/interface";
2
- declare const useGeneralTip: () => {
2
+ declare const useGeneralTip: (setLoadingComplete?: Function | undefined) => {
3
3
  generalTips: IGeneralTip[];
4
4
  getDataAdminGeneralTip: () => Promise<void>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { IGradeUsage } from "../common/interface";
2
- declare const useGradeUsage: () => {
2
+ declare const useGradeUsage: (setLoadingComplete?: Function | undefined) => {
3
3
  dataGradeUsage: IGradeUsage[];
4
4
  getDataGradeUsage: () => Promise<void>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { ISchoolInfo } from "../common/interface";
2
- declare const useSchoolUsage: () => {
2
+ declare const useSchoolUsage: (setLoadingComplete?: Function | undefined) => {
3
3
  totalCardData: ({
4
4
  id: string;
5
5
  title: string;
@@ -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
+ }
@@ -8,6 +8,7 @@ interface ChatContentProps {
8
8
  inputString: string;
9
9
  setInputString?: Function;
10
10
  onSelectOption?: Function;
11
+ asking?: boolean;
11
12
  }
12
13
  declare const ChatContent: FC<ChatContentProps>;
13
14
  export default ChatContent;
@@ -12,5 +12,6 @@ declare const useAIChat: () => {
12
12
  submitPromptMessage: () => void;
13
13
  inputString: string;
14
14
  setInputString: import("react").Dispatch<import("react").SetStateAction<string>>;
15
+ asking: boolean;
15
16
  };
16
17
  export default useAIChat;
@@ -3,7 +3,8 @@ export declare enum TYPE_QUESTION {
3
3
  OneToOne = 1,
4
4
  ClassReflection = 2,
5
5
  Conference = 3,
6
- Survey = 4
6
+ Survey = 4,
7
+ Wellbeing = 5
7
8
  }
8
9
  export declare const userForQuestion: {
9
10
  value: string;
@@ -13,3 +13,7 @@ export interface IQuestionChecked {
13
13
  questionList: any[];
14
14
  categoryId?: any;
15
15
  }
16
+ export interface ISection {
17
+ id: number;
18
+ name: string;
19
+ }
@@ -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;
@@ -4,6 +4,7 @@ interface Props {
4
4
  isDefaultClassReflection: boolean;
5
5
  isDefaultConference?: boolean;
6
6
  isDefaultSurvey?: boolean;
7
+ isWellbeingQuestion?: boolean;
7
8
  }
8
9
  declare const QuestionBankList: FC<Props>;
9
10
  export default QuestionBankList;
@@ -4,7 +4,7 @@ export interface CARD_ITEM_PROPS {
4
4
  id: number;
5
5
  surveyName: string;
6
6
  students?: number;
7
- status?: SurveyEnum;
7
+ status?: SurveyEnum | string;
8
8
  statusDetail?: string;
9
9
  colorStatusDetail?: string;
10
10
  open?: Function;
@@ -295,7 +295,7 @@ export interface SURVEY_LIST {
295
295
  numberOfRecipients: number;
296
296
  numberOfResponses: number;
297
297
  isFavorite: boolean;
298
- status: SurveyEnum;
298
+ status: SurveyEnum | string;
299
299
  createdBy: string;
300
300
  studentIds?: number[];
301
301
  anonymousKey: string;
@@ -0,0 +1,3 @@
1
+ import { IDashboardToPDF } from "../configs/type";
2
+ declare const DashboardToPDF: (props: IDashboardToPDF) => JSX.Element;
3
+ export default DashboardToPDF;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ interface IProps {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ data: any[];
6
+ onSendRequest?: (e: any) => void;
7
+ onSendBulkRequest?: () => void;
8
+ }
9
+ declare const EducatorWithoutCheckInsModal: FC<IProps>;
10
+ export default EducatorWithoutCheckInsModal;
@@ -0,0 +1,5 @@
1
+ declare const EmptyChart: ({ titleChart, isPrint }: {
2
+ titleChart?: string | undefined;
3
+ isPrint?: boolean | undefined;
4
+ }) => JSX.Element;
5
+ export default EmptyChart;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { IExportChartPdfModal } from '../configs/type';
3
+ declare const ExportChartPdfModal: FC<IExportChartPdfModal>;
4
+ export default ExportChartPdfModal;
@@ -0,0 +1,12 @@
1
+ declare const Filter: ({ optionDate, onChangeFilterCalendar, endDate, startDate, onChangeEndDateChart, onChangeStartDateChart, fontSizeInputSelect, onSaveFilter, onClearFilter }: {
2
+ optionDate: any;
3
+ onChangeFilterCalendar: any;
4
+ endDate: any;
5
+ startDate: any;
6
+ onChangeEndDateChart: any;
7
+ onChangeStartDateChart: any;
8
+ fontSizeInputSelect: any;
9
+ onSaveFilter: any;
10
+ onClearFilter: any;
11
+ }) => JSX.Element;
12
+ export default Filter;
@@ -0,0 +1,3 @@
1
+ import { IOpenFieldQuestionTable } from "../configs/type";
2
+ declare const OpenFieldQuestionTable: ({ items, onOder, lineClamp, filter, subClassName }: IOpenFieldQuestionTable) => JSX.Element;
3
+ export default OpenFieldQuestionTable;
@@ -0,0 +1,3 @@
1
+ import { IOpenFieldTab } from "../configs/type";
2
+ declare const OpenFieldTab: ({ handleRedirectAllAnswer, openFieldQuestions, handleChangeQuestionFilter, questionFilters }: IOpenFieldTab) => JSX.Element;
3
+ export default OpenFieldTab;
@@ -0,0 +1,19 @@
1
+ import { IQuestionResponseLastMonth } from '../../Dashboard/configs/types';
2
+ interface IProps {
3
+ data: any[];
4
+ weeklyData: any[];
5
+ months: string[];
6
+ dayOfWeek: string[];
7
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
8
+ timeOfDay?: string;
9
+ classFontSize?: string;
10
+ handleHoverTooltip?: Function;
11
+ weeks: string[];
12
+ activeColumn: boolean[];
13
+ onActiveColumn: any;
14
+ titleChart: string;
15
+ percent: number;
16
+ setTimeChart: Function;
17
+ }
18
+ declare const RatingQuestionChart: ({ data, weeklyData, months, dayOfWeek, avgQuestionLastMonth, timeOfDay, classFontSize, handleHoverTooltip, weeks, activeColumn, onActiveColumn, titleChart, percent, setTimeChart }: IProps) => JSX.Element;
19
+ export default RatingQuestionChart;
@@ -0,0 +1,11 @@
1
+ export declare const chartNames: string[];
2
+ export declare const startOfCurrentMonth: number;
3
+ export declare const endOfCurrentMonth: number;
4
+ export declare const initialFilter: {
5
+ startDate: number;
6
+ endDate: number;
7
+ optionDate: string;
8
+ includeMonthAndWeekView: boolean;
9
+ };
10
+ export declare const filterStorage = "FILTER_WELLBEING_DASHBOARD_SAVE";
11
+ export declare const color: string[];