mario-education 2.4.5644-feedback → 2.5.0-feedback

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 (111) 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/Table/TableCells.d.ts +5 -1
  5. package/dist/components/icons/DoneCheckInIcon.d.ts +4 -0
  6. package/dist/components/icons/EmailIcon.d.ts +5 -0
  7. package/dist/components/layouts/constants/constants.d.ts +1 -1
  8. package/dist/components/layouts/hooks/useHeaderSideBar.d.ts +1 -2
  9. package/dist/components/layouts/icons/DeleteIcon.d.ts +5 -0
  10. package/dist/components/layouts/icons/FrequencyAndSetupIcon.d.ts +2 -0
  11. package/dist/components/layouts/icons/TeacherWellBeingIcon.d.ts +2 -0
  12. package/dist/components/layouts/icons/WellBeingDashboardIcon.d.ts +2 -0
  13. package/dist/components/selector/CalendarSelect.d.ts +3 -1
  14. package/dist/components/selector/CustomFilterComponent.d.ts +3 -1
  15. package/dist/components/selector/RosterUserSelector.d.ts +8 -0
  16. package/dist/components/selector/StudentMultiSelector.d.ts +1 -1
  17. package/dist/components/selector/TeacherSelector.d.ts +1 -1
  18. package/dist/containers/Dashboard/components/BubbleChartCustom.d.ts +2 -1
  19. package/dist/containers/Dashboard/components/ConcernMetricTab.d.ts +1 -1
  20. package/dist/containers/Dashboard/components/ConversationTab.d.ts +1 -1
  21. package/dist/containers/Dashboard/components/DesktopFilterComponent.d.ts +1 -1
  22. package/dist/containers/Dashboard/components/EducatorConversationModal.d.ts +8 -0
  23. package/dist/containers/Dashboard/components/GeneratePlpChart.d.ts +1 -1
  24. package/dist/containers/Dashboard/components/GenerateTrendQuestion.d.ts +1 -1
  25. package/dist/containers/Dashboard/components/GraphTrend.d.ts +1 -1
  26. package/dist/containers/Dashboard/components/LearningProgressTab.d.ts +1 -1
  27. package/dist/containers/Dashboard/components/MobileFilterComponent.d.ts +1 -1
  28. package/dist/containers/Dashboard/components/OpenFieldTab.d.ts +1 -1
  29. package/dist/containers/Dashboard/components/ReadinessToLearnTab.d.ts +1 -1
  30. package/dist/containers/Dashboard/components/StudentPressureChart.d.ts +3 -2
  31. package/dist/containers/Dashboard/components/SuccessIndicatorTab.d.ts +1 -1
  32. package/dist/containers/Dashboard/components/TotalCard.d.ts +1 -1
  33. package/dist/containers/Dashboard/configs/constants.d.ts +1 -1
  34. package/dist/containers/Dashboard/configs/types.d.ts +46 -0
  35. package/dist/containers/Dashboard/configs/utils.d.ts +1 -0
  36. package/dist/containers/Dashboard/hooks/useDashboard.d.ts +8 -9
  37. package/dist/containers/FrequencyAndSetup/components/ContactFlowInformation.d.ts +12 -0
  38. package/dist/containers/FrequencyAndSetup/components/FrequencyModeDetail.d.ts +3 -0
  39. package/dist/containers/FrequencyAndSetup/components/SortableItem.d.ts +8 -0
  40. package/dist/containers/FrequencyAndSetup/components/ViewQuestionsModal.d.ts +9 -0
  41. package/dist/containers/FrequencyAndSetup/components/WrapperWellBeing.d.ts +8 -0
  42. package/dist/containers/FrequencyAndSetup/configs/constants.d.ts +13 -0
  43. package/dist/containers/FrequencyAndSetup/configs/type.d.ts +43 -0
  44. package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +20 -0
  45. package/dist/containers/FrequencyAndSetup/views/FrequencyAndSetup.d.ts +5 -0
  46. package/dist/containers/Homepage/common/constant.d.ts +1 -1
  47. package/dist/containers/Homepage/common/interface.d.ts +9 -0
  48. package/dist/containers/Homepage/hooks/useGeneralTip.d.ts +1 -1
  49. package/dist/containers/Homepage/hooks/useGradeUsage.d.ts +1 -1
  50. package/dist/containers/Homepage/hooks/useSchoolUsage.d.ts +1 -1
  51. package/dist/containers/Homepage/hooks/useStudentWellness.d.ts +1 -1
  52. package/dist/containers/Homepage/hooks/useViewStudent.d.ts +1 -1
  53. package/dist/containers/MarioAi/cofigs/type.d.ts +13 -0
  54. package/dist/containers/MarioAi/components/ChatContent.d.ts +1 -0
  55. package/dist/containers/MarioAi/hooks/useAIChat.d.ts +1 -0
  56. package/dist/containers/MyProfile/configs/constants.d.ts +26 -0
  57. package/dist/containers/MyProfile/configs/teacherProfileSchema.d.ts +10 -0
  58. package/dist/containers/MyProfile/hooks/useChangePassword.d.ts +6 -0
  59. package/dist/containers/MyProfile/hooks/useProfile.d.ts +16 -0
  60. package/dist/containers/MyProfile/views/ChangePassword.d.ts +2 -0
  61. package/dist/containers/MyProfile/views/MyProfile.d.ts +3 -0
  62. package/dist/containers/MyProfile/views/Profile.d.ts +8 -0
  63. package/dist/containers/QuestionBank/configs/constants.d.ts +2 -1
  64. package/dist/containers/QuestionBank/configs/type.d.ts +4 -0
  65. package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +8 -1
  66. package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +1 -1
  67. package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +1 -0
  68. package/dist/containers/SurveyDashboard/apiClient/surveyService.d.ts +1 -0
  69. package/dist/containers/SurveyDashboard/components/ConfirmDeleteSelectedModal.d.ts +9 -0
  70. package/dist/containers/SurveyDashboard/configs/typeCardItem.d.ts +1 -1
  71. package/dist/containers/SurveyDashboard/configs/types.d.ts +1 -1
  72. package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +7 -0
  73. package/dist/containers/UserManagement/configs/constants.d.ts +52 -0
  74. package/dist/containers/UserManagement/configs/profileSchema.d.ts +13 -0
  75. package/dist/containers/UserManagement/hooks/useChangePassword.d.ts +6 -0
  76. package/dist/containers/UserManagement/hooks/useUserDetail.d.ts +45 -0
  77. package/dist/containers/UserManagement/views/ChangePassword.d.ts +2 -0
  78. package/dist/containers/UserManagement/views/Profile.d.ts +16 -0
  79. package/dist/containers/UserManagement/views/UserProfileManagement.d.ts +3 -0
  80. package/dist/containers/WellBeingDashboard/components/DashboardToPDF.d.ts +3 -0
  81. package/dist/containers/WellBeingDashboard/components/EducatorWithoutCheckInsModal.d.ts +10 -0
  82. package/dist/containers/WellBeingDashboard/components/EmptyChart.d.ts +5 -0
  83. package/dist/containers/WellBeingDashboard/components/ExportChartPdfModal.d.ts +4 -0
  84. package/dist/containers/WellBeingDashboard/components/Filter.d.ts +12 -0
  85. package/dist/containers/WellBeingDashboard/components/OpenFieldQuestionTable.d.ts +3 -0
  86. package/dist/containers/WellBeingDashboard/components/OpenFieldTab.d.ts +3 -0
  87. package/dist/containers/WellBeingDashboard/components/RatingQuestionChart.d.ts +19 -0
  88. package/dist/containers/WellBeingDashboard/configs/constants.d.ts +11 -0
  89. package/dist/containers/WellBeingDashboard/configs/type.d.ts +143 -0
  90. package/dist/containers/WellBeingDashboard/configs/utils.d.ts +10 -0
  91. package/dist/containers/WellBeingDashboard/hooks/useOpenFieldWellbeingQuestion.d.ts +14 -0
  92. package/dist/containers/WellBeingDashboard/hooks/useWellbeingDashboard.d.ts +71 -0
  93. package/dist/containers/WellBeingDashboard/views/OpenFieldWellbeingQuestion.d.ts +2 -0
  94. package/dist/containers/WellBeingDashboard/views/WellBeingDashboard.d.ts +3 -0
  95. package/dist/hooks/useRosterUserSelector.d.ts +8 -0
  96. package/dist/index.css +1796 -35
  97. package/dist/index.d.ts +6 -1
  98. package/dist/index.js +9164 -2110
  99. package/dist/index.js.map +1 -1
  100. package/dist/index.modern.js +9155 -2106
  101. package/dist/index.modern.js.map +1 -1
  102. package/dist/services/MyProfile.d.ts +6 -0
  103. package/dist/services/geminiAiService.d.ts +2 -1
  104. package/dist/services/questionService.d.ts +1 -0
  105. package/dist/services/userManagementService.d.ts +9 -0
  106. package/dist/services/userService.d.ts +3 -0
  107. package/dist/services/wellbeingService.d.ts +10 -0
  108. package/dist/types/types.d.ts +16 -0
  109. package/dist/utils/constants.d.ts +2 -1
  110. package/dist/utils/constantsFn.d.ts +1 -0
  111. package/package.json +6 -5
@@ -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;
@@ -10,6 +10,10 @@ interface PROPS_TABLE {
10
10
  listTableCell: TABLE_CELL[];
11
11
  filters: FILTER_SURVEY;
12
12
  handleSort?: Function;
13
+ hasCheckbox?: boolean;
14
+ dataSelect?: any[];
15
+ selectedIds?: number[];
16
+ handleSelectAll?: any;
13
17
  }
14
- declare const TableCells: ({ listTableCell, filters, handleSort }: PROPS_TABLE) => JSX.Element;
18
+ declare const TableCells: ({ listTableCell, filters, handleSort, hasCheckbox, dataSelect, selectedIds, handleSelectAll }: PROPS_TABLE) => JSX.Element;
15
19
  export default TableCells;
@@ -0,0 +1,4 @@
1
+ declare const DoneCheckInIcon: ({ color }: {
2
+ color?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default DoneCheckInIcon;
@@ -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;
@@ -1,4 +1,4 @@
1
- export declare const HEADER_DESKTOP_HEIGHT = 57;
1
+ export declare const HEADER_DESKTOP_HEIGHT = 68;
2
2
  export declare const HEADER_MOBILE_HEIGHT = 55;
3
3
  export declare const NOTIFICATION_HEIGHT = 36;
4
4
  export declare const NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
@@ -2,7 +2,7 @@ import React from "react";
2
2
  declare const useHeaderSideBar: (_navigations: any) => {
3
3
  anchorFontEl: HTMLElement | null;
4
4
  anchorEl: HTMLElement | null;
5
- classes: Record<"title" | "header" | "content" | "overlay" | "arrow" | "grow" | "menuItem" | "menuButton" | "listItem" | "dropdown" | "sectionDesktop" | "drawer" | "textPrivacy" | "subMenuDrawer" | "subDrawerItem" | "drawerItem" | "drawerContent" | "drawerPaper" | "drawerPaperMobile" | "drawerActive" | "contentShift" | "fontBodyLarge" | "fontBodySmall" | "fontSmall" | "fontMedium" | "fontLarge" | "sectionFontDesktop" | "itemSideBar" | "positionBox" | "arrowDown" | "arrowUp" | "dailyMotivation", string>;
5
+ classes: Record<"title" | "header" | "content" | "overlay" | "avatar" | "arrow" | "grow" | "menuItem" | "menuText" | "menuButton" | "listItem" | "dropdown" | "menuIcon" | "sectionDesktop" | "drawer" | "textPrivacy" | "subMenuDrawer" | "subDrawerItem" | "drawerItem" | "drawerContent" | "drawerPaper" | "drawerPaperMobile" | "drawerActive" | "contentShift" | "fontBodyLarge" | "fontBodySmall" | "fontSmall" | "fontMedium" | "fontLarge" | "sectionFontDesktop" | "itemSideBar" | "positionBox" | "arrowDown" | "arrowUp" | "dailyMotivation", string>;
6
6
  screenWidth: number;
7
7
  isReadOnly: string | null;
8
8
  notificationAlert: import("../constants/types").NOTIFICATION_ALERT | undefined;
@@ -26,7 +26,6 @@ declare const useHeaderSideBar: (_navigations: any) => {
26
26
  onChangeFont: (fontSize: number) => void;
27
27
  handleClose: () => void;
28
28
  renderNavigationItem: (navigation: any, isSubItem?: boolean | undefined) => JSX.Element;
29
- goToSettings: () => void;
30
29
  t: import("i18next").TFunction;
31
30
  isEnableMarioAi: any;
32
31
  };
@@ -0,0 +1,5 @@
1
+ declare const DeleteIcon: ({ color, opacity }: {
2
+ color?: string | undefined;
3
+ opacity?: number | undefined;
4
+ }) => JSX.Element;
5
+ export default DeleteIcon;
@@ -0,0 +1,2 @@
1
+ declare const FrequencyAndSetupIcon: () => JSX.Element;
2
+ export default FrequencyAndSetupIcon;
@@ -0,0 +1,2 @@
1
+ declare const TeacherWellBeingIcon: () => JSX.Element;
2
+ export default TeacherWellBeingIcon;
@@ -0,0 +1,2 @@
1
+ declare const WellBeingDashboardIcon: () => JSX.Element;
2
+ export default WellBeingDashboardIcon;
@@ -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;
@@ -33,6 +33,8 @@ interface PROPS_FILTER {
33
33
  onChangeOptionDate?: Function;
34
34
  renderOption?: string;
35
35
  isSelectMulti?: boolean;
36
+ handleOpenModalDelete?: any;
37
+ selectedIds?: number[];
36
38
  }
37
- 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, }: PROPS_FILTER) => JSX.Element;
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) => JSX.Element;
38
40
  export default CustomFilterComponent;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ onChange: (e: any) => void;
4
+ value?: string;
5
+ roles: string[];
6
+ }
7
+ declare const RosterUserSelector: FC<Props>;
8
+ export default RosterUserSelector;
@@ -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 }: 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 }: 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 }: 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;
@@ -0,0 +1,8 @@
1
+ import { IEducatorConversationKpi } from '../configs/types';
2
+ interface IProps {
3
+ educators: IEducatorConversationKpi[];
4
+ open: boolean;
5
+ onClose: Function;
6
+ }
7
+ declare const EducatorConversationModal: ({ educators, open, onClose }: IProps) => JSX.Element;
8
+ export default EducatorConversationModal;
@@ -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 }: 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 }: 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 }: 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 }: 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 }: 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;
@@ -69,7 +69,7 @@ export declare const INITIAL_OVERALL_READY_TO_LEARN: {
69
69
  export declare const heightChartDefault = 250;
70
70
  export declare const PREPAREDNESS_QUESTION: string[];
71
71
  export declare const SUCCESS_INDICATORS_QUESTION: string[];
72
- export declare const SAFETY_QUESTION = "safety";
72
+ export declare const SAFETY_QUESTION: string[];
73
73
  export declare const STRESS_QUESTION = "stress";
74
74
  export declare const readinessToLearnName = "readiness_to_learn";
75
75
  export declare const preparednessChartName = "readiness_to_learn";
@@ -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[];
@@ -467,11 +468,16 @@ export interface IFilterComponent {
467
468
  onClearFilter: Function;
468
469
  onSaveFilter: Function;
469
470
  optionDate?: string;
471
+ setSelectTeacherUserId: Function;
472
+ loadingComplete: ILoadingComplete;
470
473
  }
471
474
  export interface ITotalCard {
472
475
  label: string;
473
476
  value: number | string;
474
477
  iconSrc: string;
478
+ loadingComplete?: boolean;
479
+ customClassName?: string;
480
+ handleOpenModal?: any;
475
481
  }
476
482
  export interface IQuestionResponseLastMonth {
477
483
  avgQuestionResponse: number;
@@ -536,6 +542,9 @@ export interface IGenerateDashboardChart {
536
542
  setOptionDate?: Function;
537
543
  stressValue?: number[];
538
544
  noAvgTotal?: boolean;
545
+ onActiveColumn?: any;
546
+ loadingComplete?: boolean;
547
+ optionDate?: string;
539
548
  }
540
549
  export interface IResponseStudentQuestion {
541
550
  sessionId: number;
@@ -581,9 +590,12 @@ export interface IConcernMetricTab {
581
590
  lowMetricStudents: ILowMetricStudent[];
582
591
  studentMetricPercent: number;
583
592
  stressValue: number[];
593
+ safetyValue: number[];
594
+ loadingComplete: ILoadingComplete;
584
595
  }
585
596
  export interface IConversationTab {
586
597
  conversationKpi: IConversationKpi;
598
+ loadingComplete: boolean;
587
599
  }
588
600
  export interface IGraphTrend {
589
601
  value: number;
@@ -591,6 +603,7 @@ export interface IGraphTrend {
591
603
  label?: string;
592
604
  timeOfDay?: string;
593
605
  valueData?: number;
606
+ loadingComplete: boolean;
594
607
  }
595
608
  export interface IOpenFieldTab {
596
609
  summarizeQuestions: ISummarizeQuestion | undefined;
@@ -598,6 +611,7 @@ export interface IOpenFieldTab {
598
611
  questionFilters: any;
599
612
  handleChangeQuestionFilter: (filter: any) => void;
600
613
  goToSession: Function;
614
+ loadingComplete: boolean;
601
615
  }
602
616
  export interface ISuccessIndicatorTab {
603
617
  successIndicatorsData: ISeries[];
@@ -609,6 +623,9 @@ export interface ISuccessIndicatorTab {
609
623
  classFontSize?: string;
610
624
  handleHoverTooltip?: Function;
611
625
  weeksOneToOne: string[];
626
+ activeColumn: boolean[];
627
+ onActiveColumn: any;
628
+ loadingComplete: ILoadingComplete;
612
629
  }
613
630
  export interface ILearningItem {
614
631
  learningStrategyName: string;
@@ -620,6 +637,7 @@ export interface ILearningProgressTab {
620
637
  classFontSize?: string;
621
638
  handleHoverTooltip?: Function;
622
639
  print?: boolean;
640
+ loadingComplete: boolean;
623
641
  }
624
642
  export interface IReadinessToLearnTab {
625
643
  handleHoverTooltip?: Function;
@@ -633,6 +651,10 @@ export interface IReadinessToLearnTab {
633
651
  preparednessWeeklyData: ISeries[];
634
652
  weeksOneToOne: string[];
635
653
  setOptionDate?: Function;
654
+ onActiveColumn?: any;
655
+ activeColumn?: boolean[];
656
+ timeOfDay?: string;
657
+ loadingComplete: ILoadingComplete;
636
658
  }
637
659
  export interface IGenerateTrendQuestion {
638
660
  series: ISeries[];
@@ -641,6 +663,8 @@ export interface IGenerateTrendQuestion {
641
663
  icons: string[];
642
664
  className?: string;
643
665
  noAvgText?: boolean;
666
+ timeOfDay?: string;
667
+ loadingComplete: boolean;
644
668
  }
645
669
  export interface FILTER_STUDENT_WELLBEING {
646
670
  startDate?: number;
@@ -670,11 +694,33 @@ export interface IMissedReviewStudents {
670
694
  grade?: string;
671
695
  conversationDate?: string;
672
696
  }
697
+ export interface IEducatorConversationKpi {
698
+ educatorUserId: string;
699
+ educatorName: string;
700
+ educatorProfileImage?: string;
701
+ numberOfConversation: number;
702
+ numberOfExpectedConversation: number;
703
+ roles: string[];
704
+ }
673
705
  export interface IConversationKpi {
674
706
  conversationTarget: number;
675
707
  conversationTeacherAvg: number;
676
708
  avgStudentReview: number;
677
709
  sessionReviewSkipped: number;
678
710
  missedReviewStudents: IMissedReviewStudents[];
711
+ educatorConversationsTarget: IEducatorConversationKpi[];
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;
679
725
  }
680
726
  export {};
@@ -141,4 +141,5 @@ declare type PropertySelector<T> = (item: T) => any;
141
141
  export declare const customSortBy: <T>(array: T[], selector: PropertySelector<T>) => T[];
142
142
  export declare const formatLowMetricLabels: (labels: string[]) => string;
143
143
  export declare const getDescriptionFromPercent: (percent: number, descriptions: any[], isStress?: boolean) => any;
144
+ export declare const getUniqueSortedGrades: (students: any) => unknown[];
144
145
  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;
@@ -52,7 +45,7 @@ declare const useDashboard: () => {
52
45
  isExistQuestion: boolean;
53
46
  setIsExistQuestion: import("react").Dispatch<import("react").SetStateAction<boolean>>;
54
47
  handleChangeFilterCalendar: (value: IFilterCalendar) => void;
55
- handleChangeFilterGrade: (grade: string) => void;
48
+ handleChangeFilterGrade: (grades: string[]) => void;
56
49
  activeTab: string;
57
50
  setActiveTab: import("react").Dispatch<import("react").SetStateAction<string>>;
58
51
  handleHoverTooltip: (name: string) => void;
@@ -88,5 +81,11 @@ declare const useDashboard: () => {
88
81
  setOptionDate: import("react").Dispatch<import("react").SetStateAction<string>>;
89
82
  stressValue: number[];
90
83
  conversationKpi: IConversationKpi;
84
+ setSelectTeacherUserId: (value: any) => Promise<void>;
85
+ safetyValue: number[];
86
+ activeColumnReadiness: boolean[];
87
+ activeColumnIndicators: boolean[];
88
+ handleActiveColumn: (index: number, name: string) => void;
89
+ loadingComplete: ILoadingComplete;
91
90
  };
92
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,3 @@
1
+ import { IFrequencyModeDetail } from '../configs/type';
2
+ declare const FrequencyModeDetail: ({ sections, onChange, onViewQuestions }: IFrequencyModeDetail) => JSX.Element;
3
+ export default FrequencyModeDetail;
@@ -0,0 +1,8 @@
1
+ interface IProps {
2
+ id: number;
3
+ data: any;
4
+ index?: number;
5
+ onViewQuestions?: (data: any) => void;
6
+ }
7
+ declare const SortableItem: ({ id, data, index, onViewQuestions }: IProps) => JSX.Element;
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;
@@ -0,0 +1,8 @@
1
+ interface IProps {
2
+ title: string;
3
+ description: string;
4
+ children: any;
5
+ classChild?: string;
6
+ }
7
+ declare const WrapperWellBeing: ({ title, description, children, classChild }: IProps) => JSX.Element;
8
+ export default WrapperWellBeing;
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ }
4
+ declare const FrequencyAndSetup: FC<Props>;
5
+ export default FrequencyAndSetup;
@@ -23,7 +23,7 @@ export declare const INITIAl_SCHOOL_INFO: {
23
23
  logo: string;
24
24
  name: string;
25
25
  };
26
- export declare const SAFETY_QUESTION = "safety";
26
+ export declare const SAFETY_QUESTION: string[];
27
27
  export declare const STRESS_QUESTION = "stress";
28
28
  export declare const PREPAREDNESS_QUESTION: string[];
29
29
  export declare const SUCCESS_INDICATORS_QUESTION: string[];
@@ -135,6 +135,7 @@ export interface IOneToOneParams {
135
135
  gradeFilter?: string[];
136
136
  roles?: string[];
137
137
  academicYearId?: number;
138
+ includeMonthAndWeekView?: boolean;
138
139
  }
139
140
  export interface IStudentQuestionSkillParams {
140
141
  studentId: any;
@@ -145,3 +146,11 @@ export interface IStudentQuestionSkillParams {
145
146
  academicYearId?: number;
146
147
  optionDate?: string;
147
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
  };