mario-education 2.4.581-feedback → 2.4.581-wellbeing

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 (37) hide show
  1. package/dist/components/Dialog/SimpleDialog.d.ts +1 -0
  2. package/dist/components/Loading/LoadLanguage.d.ts +3 -0
  3. package/dist/components/icons/EmailIcon.d.ts +5 -0
  4. package/dist/components/selector/CalendarSelect.d.ts +2 -1
  5. package/dist/containers/Dashboard/components/GeneratePlpChart.d.ts +1 -1
  6. package/dist/containers/Dashboard/components/TotalCard.d.ts +1 -1
  7. package/dist/containers/Dashboard/configs/types.d.ts +3 -0
  8. package/dist/containers/QuestionBank/configs/constants.d.ts +2 -1
  9. package/dist/containers/QuestionBank/configs/type.d.ts +4 -0
  10. package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +8 -1
  11. package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +1 -1
  12. package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +1 -0
  13. package/dist/containers/WellBeingDashboard/components/DashboardToPDF.d.ts +3 -0
  14. package/dist/containers/WellBeingDashboard/components/EducatorWithoutCheckInsModal.d.ts +10 -0
  15. package/dist/containers/WellBeingDashboard/components/EmptyChart.d.ts +5 -0
  16. package/dist/containers/WellBeingDashboard/components/ExportChartPdfModal.d.ts +4 -0
  17. package/dist/containers/WellBeingDashboard/components/Filter.d.ts +12 -0
  18. package/dist/containers/WellBeingDashboard/components/OpenFieldQuestionTable.d.ts +3 -0
  19. package/dist/containers/WellBeingDashboard/components/OpenFieldTab.d.ts +3 -0
  20. package/dist/containers/WellBeingDashboard/components/RatingQuestionChart.d.ts +19 -0
  21. package/dist/containers/WellBeingDashboard/configs/constants.d.ts +11 -0
  22. package/dist/containers/WellBeingDashboard/configs/type.d.ts +143 -0
  23. package/dist/containers/WellBeingDashboard/configs/utils.d.ts +10 -0
  24. package/dist/containers/WellBeingDashboard/hooks/useOpenFieldWellbeingQuestion.d.ts +14 -0
  25. package/dist/containers/WellBeingDashboard/hooks/useWellbeingDashboard.d.ts +71 -0
  26. package/dist/containers/WellBeingDashboard/views/OpenFieldWellbeingQuestion.d.ts +2 -0
  27. package/dist/containers/WellBeingDashboard/views/WellBeingDashboard.d.ts +1 -3
  28. package/dist/index.css +11065 -10569
  29. package/dist/index.d.ts +4 -1
  30. package/dist/index.js +3652 -126
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.modern.js +3635 -112
  33. package/dist/index.modern.js.map +1 -1
  34. package/dist/services/questionService.d.ts +1 -0
  35. package/dist/services/wellbeingService.d.ts +4 -0
  36. package/dist/utils/constantsFn.d.ts +1 -0
  37. package/package.json +110 -110
@@ -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,3 @@
1
+ import { FC } from "react";
2
+ declare const LoadLanguage: FC;
3
+ export default LoadLanguage;
@@ -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,7 @@ interface ICalendarSelect {
8
8
  options: IOptionCalendar[];
9
9
  value?: string;
10
10
  onChange?: Function;
11
+ customClassName?: string;
11
12
  }
12
- declare const CalendarSelect: ({ options, value, onChange }: ICalendarSelect) => JSX.Element;
13
+ declare const CalendarSelect: ({ options, value, onChange, customClassName }: ICalendarSelect) => JSX.Element;
13
14
  export default CalendarSelect;
@@ -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, optionDate }: IGenerateDashboardChart) => JSX.Element>;
4
4
  export default _default;
@@ -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, customClassName, handleOpenModal }: ITotalCard) => JSX.Element;
3
3
  export default TotalCard;
@@ -473,6 +473,8 @@ export interface ITotalCard {
473
473
  label: string;
474
474
  value: number | string;
475
475
  iconSrc: string;
476
+ customClassName?: string;
477
+ handleOpenModal?: any;
476
478
  }
477
479
  export interface IQuestionResponseLastMonth {
478
480
  avgQuestionResponse: number;
@@ -538,6 +540,7 @@ export interface IGenerateDashboardChart {
538
540
  stressValue?: number[];
539
541
  noAvgTotal?: boolean;
540
542
  onActiveColumn?: any;
543
+ optionDate?: string;
541
544
  }
542
545
  export interface IResponseStudentQuestion {
543
546
  sessionId: number;
@@ -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;
@@ -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[];
@@ -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;