mario-education 2.4.595-feedback → 2.4.597-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 (39) hide show
  1. package/dist/components/icons/EmailIcon.d.ts +5 -0
  2. package/dist/components/layouts/icons/DeleteIcon.d.ts +5 -0
  3. package/dist/components/layouts/icons/FrequencyAndSetupIcon.d.ts +2 -0
  4. package/dist/components/layouts/icons/TeacherWellBeingIcon.d.ts +2 -0
  5. package/dist/components/layouts/icons/WellBeingDashboardIcon.d.ts +2 -0
  6. package/dist/containers/FrequencyAndSetup/components/ContactFlowInformation.d.ts +12 -0
  7. package/dist/containers/FrequencyAndSetup/components/FrequencyModeDetail.d.ts +3 -0
  8. package/dist/containers/FrequencyAndSetup/components/SortableItem.d.ts +7 -0
  9. package/dist/containers/FrequencyAndSetup/components/WrapperWellBeing.d.ts +8 -0
  10. package/dist/containers/FrequencyAndSetup/configs/constants.d.ts +12 -0
  11. package/dist/containers/FrequencyAndSetup/configs/type.d.ts +36 -0
  12. package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +16 -0
  13. package/dist/containers/FrequencyAndSetup/views/FrequencyAndSetup.d.ts +5 -0
  14. package/dist/containers/SurveyDashboard/configs/typeCardItem.d.ts +1 -1
  15. package/dist/containers/SurveyDashboard/configs/types.d.ts +1 -1
  16. package/dist/containers/WellBeingDashboard/components/DashboardToPDF.d.ts +3 -0
  17. package/dist/containers/WellBeingDashboard/components/EducatorWithoutCheckInsModal.d.ts +10 -0
  18. package/dist/containers/WellBeingDashboard/components/EmptyChart.d.ts +5 -0
  19. package/dist/containers/WellBeingDashboard/components/ExportChartPdfModal.d.ts +4 -0
  20. package/dist/containers/WellBeingDashboard/components/Filter.d.ts +12 -0
  21. package/dist/containers/WellBeingDashboard/components/OpenFieldQuestionTable.d.ts +3 -0
  22. package/dist/containers/WellBeingDashboard/components/OpenFieldTab.d.ts +3 -0
  23. package/dist/containers/WellBeingDashboard/components/RatingQuestionChart.d.ts +19 -0
  24. package/dist/containers/WellBeingDashboard/configs/constants.d.ts +11 -0
  25. package/dist/containers/WellBeingDashboard/configs/type.d.ts +143 -0
  26. package/dist/containers/WellBeingDashboard/configs/utils.d.ts +10 -0
  27. package/dist/containers/WellBeingDashboard/hooks/useOpenFieldWellbeingQuestion.d.ts +14 -0
  28. package/dist/containers/WellBeingDashboard/hooks/useWellbeingDashboard.d.ts +71 -0
  29. package/dist/containers/WellBeingDashboard/views/OpenFieldWellbeingQuestion.d.ts +2 -0
  30. package/dist/containers/WellBeingDashboard/views/WellBeingDashboard.d.ts +3 -0
  31. package/dist/index.css +15141 -15141
  32. package/dist/index.js +35 -58
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.modern.js +35 -58
  35. package/dist/index.modern.js.map +1 -1
  36. package/dist/services/wellbeingService.d.ts +10 -0
  37. package/dist/utils/constants.d.ts +1 -2
  38. package/package.json +110 -110
  39. package/dist/components/Loading/LoadLanguage.d.ts +0 -3
@@ -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;
@@ -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;
@@ -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 }: IFrequencyModeDetail) => JSX.Element;
3
+ export default FrequencyModeDetail;
@@ -0,0 +1,7 @@
1
+ interface IProps {
2
+ id: number;
3
+ data: any;
4
+ index?: number;
5
+ }
6
+ declare const SortableItem: ({ id, data, index }: IProps) => JSX.Element;
7
+ export default SortableItem;
@@ -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,12 @@
1
+ import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup } 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;
@@ -0,0 +1,36 @@
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
+ }
27
+ export interface IWellBeingFlowContact {
28
+ id: number;
29
+ name: string;
30
+ role: string;
31
+ email: string;
32
+ }
33
+ export interface IFrequencyModeDetail {
34
+ sections: IWellBeingSection[];
35
+ onChange: Function;
36
+ }
@@ -0,0 +1,16 @@
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
+ };
16
+ 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;
@@ -4,7 +4,7 @@ export interface CARD_ITEM_PROPS {
4
4
  id: number;
5
5
  surveyName: string;
6
6
  students?: number;
7
- status?: SurveyEnum | string;
7
+ status?: SurveyEnum;
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 | string;
298
+ status: SurveyEnum;
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[];
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const WellBeingDashboard: FC;
3
+ export default WellBeingDashboard;