mario-education 2.4.592-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.
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 +6033 -1798
  64. package/dist/index.js.map +1 -1
  65. package/dist/index.modern.js +6019 -1787
  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
@@ -0,0 +1,143 @@
1
+ export interface IFilter {
2
+ startDate: any;
3
+ endDate: any;
4
+ optionDate: string;
5
+ includeMonthAndWeekView: boolean;
6
+ }
7
+ export interface IFilterCalendar {
8
+ label: string;
9
+ startDate: number;
10
+ endDate: number;
11
+ value: string;
12
+ }
13
+ export interface IQuestionTranslate {
14
+ questionName: string;
15
+ questionTranslationName: string;
16
+ description?: string;
17
+ group?: string;
18
+ }
19
+ export interface IResultQuestion {
20
+ avgOfStudentChoice: number;
21
+ questionId: number;
22
+ questionText: string;
23
+ questionTranslation: string;
24
+ description?: string;
25
+ group?: string;
26
+ }
27
+ export interface IOverviewQuestionChoice {
28
+ month: string;
29
+ resultQuestion: IResultQuestion[];
30
+ endDate: string;
31
+ startDate: string;
32
+ }
33
+ export interface ITotalStatic {
34
+ totalWithoutCheckIn: number;
35
+ totalConversation: number;
36
+ totalEngagement: number;
37
+ totalWellbeing: number;
38
+ }
39
+ export interface IOpenFieldWellbeingQuestion {
40
+ totalItems: number;
41
+ pageSize: number;
42
+ currentPage: number;
43
+ items: IOpenFieldWellbeingAnswer[];
44
+ }
45
+ export interface IOpenFieldWellbeingAnswer {
46
+ teacherProfileImage: string;
47
+ teacherName: string;
48
+ startDate: string;
49
+ answer: string;
50
+ wellbeingId: number;
51
+ questionText: string;
52
+ }
53
+ export interface ILastAnswerTable {
54
+ items: IOpenFieldWellbeingAnswer[];
55
+ onOder: Function;
56
+ filter: any;
57
+ lineClamp?: number;
58
+ goToSession: Function;
59
+ subClassName?: string;
60
+ }
61
+ export interface IOpenFieldTab {
62
+ openFieldQuestions: IOpenFieldWellbeingQuestion | undefined;
63
+ handleRedirectAllAnswer: () => void;
64
+ questionFilters: any;
65
+ handleChangeQuestionFilter: (filter: any) => void;
66
+ }
67
+ export interface IOpenFieldQuestionTable {
68
+ items: IOpenFieldWellbeingAnswer[];
69
+ onOder: Function;
70
+ filter: any;
71
+ lineClamp?: number;
72
+ subClassName?: string;
73
+ }
74
+ export interface IPercentDoneBySection {
75
+ physical: number;
76
+ relationships: number;
77
+ emotional: number;
78
+ selfCare: number;
79
+ environment: number;
80
+ intellectual: number;
81
+ }
82
+ export interface IDashboardToPDF {
83
+ startTime: any;
84
+ endTime: any;
85
+ selectedToPDF: string[];
86
+ avgQuestionLastMonth: any[];
87
+ dayOfWeek: string[];
88
+ months: string[];
89
+ weeks: string[];
90
+ schoolName: string;
91
+ physical: any[];
92
+ physicalWeekly: any[];
93
+ relationships: any[];
94
+ relationshipsWeekly: any[];
95
+ emotional: any[];
96
+ emotionalWeekly: any[];
97
+ selfCare: any[];
98
+ selfCareWeekly: any[];
99
+ environment: any[];
100
+ environmentWeekly: any[];
101
+ intellectual: any[];
102
+ intellectualWeekly: any[];
103
+ activeColumnPhysical: boolean[];
104
+ activeColumnEmotional: boolean[];
105
+ activeColumnEnvironment: boolean[];
106
+ activeColumnIntellectual: boolean[];
107
+ activeColumnRelationships: boolean[];
108
+ activeColumnSelfCare: boolean[];
109
+ optionDate: string;
110
+ percentDoneBySection: IPercentDoneBySection;
111
+ }
112
+ export interface IExportChartPdfModal {
113
+ modal: boolean;
114
+ toggle: () => void;
115
+ selectedToPrint: string[];
116
+ handleSelectToPrint: (item: string) => void;
117
+ avgQuestionLastMonth: any[];
118
+ dayOfWeek: string[];
119
+ months: string[];
120
+ weeks: string[];
121
+ schoolName: string;
122
+ physical: any[];
123
+ physicalWeekly: any[];
124
+ relationships: any[];
125
+ relationshipsWeekly: any[];
126
+ emotional: any[];
127
+ emotionalWeekly: any[];
128
+ selfCare: any[];
129
+ selfCareWeekly: any[];
130
+ environment: any[];
131
+ environmentWeekly: any[];
132
+ intellectual: any[];
133
+ intellectualWeekly: any[];
134
+ activeColumnPhysical: boolean[];
135
+ activeColumnEmotional: boolean[];
136
+ activeColumnEnvironment: boolean[];
137
+ activeColumnIntellectual: boolean[];
138
+ activeColumnRelationships: boolean[];
139
+ activeColumnSelfCare: boolean[];
140
+ filter: any;
141
+ percentDoneBySection: IPercentDoneBySection;
142
+ timeChart: string;
143
+ }
@@ -0,0 +1,10 @@
1
+ import { IOverviewQuestionChoice, IQuestionTranslate } from "./type";
2
+ export declare const convertToSeriesColumnChartAndPercent: (dataCharts: IQuestionTranslate[], data: IOverviewQuestionChoice[], isHardQuestion?: boolean | undefined) => {
3
+ name: string;
4
+ questionTranslation: string;
5
+ description: string | undefined;
6
+ data: number[];
7
+ group: string;
8
+ }[];
9
+ export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => IQuestionTranslate[];
10
+ export declare const decodeHtml: (text: string) => string;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { IOpenFieldWellbeingQuestion } from "../configs/type";
3
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
4
+ declare const useOpenFieldWellbeingQuestion: () => {
5
+ filter: any;
6
+ openFieldQuestions: IOpenFieldWellbeingQuestion | undefined;
7
+ handleSort: (key: string) => void;
8
+ handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
9
+ handleChangeEndDate: (date: MaterialUiPickersDate) => void;
10
+ handleChangeStartDate: (date: MaterialUiPickersDate) => void;
11
+ inputSearch: import("react").MutableRefObject<any>;
12
+ onChangeFilters: (filterSelect: any) => void;
13
+ };
14
+ export default useOpenFieldWellbeingQuestion;
@@ -0,0 +1,71 @@
1
+ /// <reference types="react" />
2
+ import { IFilter, IFilterCalendar, IOpenFieldWellbeingQuestion, IPercentDoneBySection, ITotalStatic } from "../configs/type";
3
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
4
+ import { IQuestionResponseLastMonth } from "../../Dashboard/configs/types";
5
+ declare const useWellbeingDashboard: () => {
6
+ physical: any[];
7
+ physicalWeekly: any[];
8
+ relationships: any[];
9
+ relationshipsWeekly: any[];
10
+ emotional: any[];
11
+ emotionalWeekly: any[];
12
+ selfCare: any[];
13
+ selfCareWeekly: any[];
14
+ environment: any[];
15
+ environmentWeekly: any[];
16
+ intellectual: any[];
17
+ intellectualWeekly: any[];
18
+ filters: IFilter;
19
+ setFilters: import("react").Dispatch<import("react").SetStateAction<IFilter>>;
20
+ onClearFilter: () => void;
21
+ onSaveFilter: () => void;
22
+ handleChangeStartDateChart: (date: MaterialUiPickersDate) => void;
23
+ handleChangeEndDateChart: (date: MaterialUiPickersDate) => void;
24
+ handleChangeFilterCalendar: (value: IFilterCalendar) => void;
25
+ handleHoverTooltip: (name: string) => void;
26
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
27
+ dayOfWeek: string[];
28
+ months: string[];
29
+ weeks: string[];
30
+ classFontSize: string;
31
+ activeColumnPhysical: boolean[];
32
+ activeColumnEmotional: boolean[];
33
+ activeColumnEnvironment: boolean[];
34
+ activeColumnIntellectual: boolean[];
35
+ activeColumnRelationships: boolean[];
36
+ activeColumnSelfCare: boolean[];
37
+ setActiveColumnPhysical: import("react").Dispatch<import("react").SetStateAction<boolean[]>>;
38
+ handleActiveColumn: (index: number, name: string) => void;
39
+ id_export: string | undefined;
40
+ openPopoverExport: boolean;
41
+ handleClick: (event: React.MouseEvent<HTMLElement>) => void;
42
+ handleClose: () => void;
43
+ anchorEl: HTMLElement | null;
44
+ selectedToPrint: string[];
45
+ toggle: () => void;
46
+ modal: boolean;
47
+ activeTab: string;
48
+ setActiveTab: import("react").Dispatch<import("react").SetStateAction<string>>;
49
+ openEducatorWithoutCheckIns: boolean;
50
+ educatorWithoutCheckIns: any;
51
+ handleCloseModalEducator: () => void;
52
+ handleOpenModalEducator: () => void;
53
+ onSendBulkRequest: () => Promise<void>;
54
+ onSendRequest: (e: any) => Promise<void>;
55
+ totalStatic: ITotalStatic;
56
+ handleChangeQuestionFilter: (key: string) => void;
57
+ handleRedirectAllAnswer: () => void;
58
+ openFieldQuestions: IOpenFieldWellbeingQuestion | undefined;
59
+ questionFilters: {
60
+ pageSize: number;
61
+ currentPage: number;
62
+ sortBy: string;
63
+ sortOrder: string;
64
+ };
65
+ percentDoneBySection: IPercentDoneBySection;
66
+ schoolName: any;
67
+ handleSelectToPrint: (chartName: string) => void;
68
+ timeChart: string;
69
+ setTimeChart: import("react").Dispatch<import("react").SetStateAction<string>>;
70
+ };
71
+ export default useWellbeingDashboard;
@@ -0,0 +1,2 @@
1
+ declare const OpenFieldWellbeingQuestion: () => JSX.Element;
2
+ export default OpenFieldWellbeingQuestion;
@@ -1,5 +1,3 @@
1
1
  import { FC } from 'react';
2
- interface IProps {
3
- }
4
- declare const WellBeingDashboard: FC<IProps>;
2
+ declare const WellBeingDashboard: FC;
5
3
  export default WellBeingDashboard;