mario-education 2.4.577-feedback → 2.4.577-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 (32) hide show
  1. package/dist/components/Loading/LoadLanguage.d.ts +3 -0
  2. package/dist/components/Table/TableCells.d.ts +1 -5
  3. package/dist/components/layouts/constants/constants.d.ts +1 -1
  4. package/dist/components/selector/CustomFilterComponent.d.ts +1 -3
  5. package/dist/containers/Dashboard/components/ConcernMetricTab.d.ts +1 -1
  6. package/dist/containers/Dashboard/components/GeneratePlpChart.d.ts +1 -1
  7. package/dist/containers/Dashboard/components/ReadinessToLearnTab.d.ts +1 -1
  8. package/dist/containers/Dashboard/components/SuccessIndicatorTab.d.ts +1 -1
  9. package/dist/containers/Dashboard/configs/types.d.ts +0 -14
  10. package/dist/containers/Dashboard/hooks/useDashboard.d.ts +0 -4
  11. package/dist/containers/FrequencyAndSetup/components/ContactFlowInformation.d.ts +3 -3
  12. package/dist/containers/FrequencyAndSetup/components/FrequencyModeDetail.d.ts +2 -5
  13. package/dist/containers/FrequencyAndSetup/components/SortableItem.d.ts +3 -2
  14. package/dist/containers/FrequencyAndSetup/configs/constants.d.ts +3 -8
  15. package/dist/containers/FrequencyAndSetup/configs/type.d.ts +30 -9
  16. package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +6 -13
  17. package/dist/containers/QuestionBank/configs/constants.d.ts +2 -1
  18. package/dist/containers/QuestionBank/configs/type.d.ts +4 -0
  19. package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +8 -1
  20. package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +1 -1
  21. package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +1 -0
  22. package/dist/containers/SurveyDashboard/apiClient/surveyService.d.ts +0 -1
  23. package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +0 -7
  24. package/dist/index.css +10898 -10760
  25. package/dist/index.d.ts +3 -1
  26. package/dist/index.js +1092 -626
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.modern.js +1081 -617
  29. package/dist/index.modern.js.map +1 -1
  30. package/dist/services/questionService.d.ts +1 -0
  31. package/dist/services/wellbeingService.d.ts +4 -0
  32. package/package.json +110 -110
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const LoadLanguage: FC;
3
+ export default LoadLanguage;
@@ -10,10 +10,6 @@ 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;
17
13
  }
18
- declare const TableCells: ({ listTableCell, filters, handleSort, hasCheckbox, dataSelect, selectedIds, handleSelectAll }: PROPS_TABLE) => JSX.Element;
14
+ declare const TableCells: ({ listTableCell, filters, handleSort }: PROPS_TABLE) => JSX.Element;
19
15
  export default TableCells;
@@ -1,4 +1,4 @@
1
- export declare const HEADER_DESKTOP_HEIGHT = 68;
1
+ export declare const HEADER_DESKTOP_HEIGHT = 57;
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";
@@ -33,8 +33,6 @@ interface PROPS_FILTER {
33
33
  onChangeOptionDate?: Function;
34
34
  renderOption?: string;
35
35
  isSelectMulti?: boolean;
36
- handleOpenModalDelete?: any;
37
- selectedIds?: number[];
38
36
  }
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;
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;
40
38
  export default CustomFilterComponent;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { IConcernMetricTab } from "../configs/types";
3
- declare const _default: React.MemoExoticComponent<({ studentSkillQuestion, classFontSize, safetyData, stressData, monthsOneToOne, dayOfWeekOneToOne, handleHoverTooltip, avgQuestionLastMonth, studentPressure, timeOfDay, metricWeeks, lowMetricStudents, metricDataMonths, metricDataWeeks, metricMonths, studentMetricPercent, stressValue, safetyValue }: IConcernMetricTab) => JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<({ studentSkillQuestion, classFontSize, safetyData, stressData, monthsOneToOne, dayOfWeekOneToOne, handleHoverTooltip, avgQuestionLastMonth, studentPressure, timeOfDay, metricWeeks, lowMetricStudents, metricDataMonths, metricDataWeeks, metricMonths, studentMetricPercent, stressValue }: IConcernMetricTab) => JSX.Element>;
4
4
  export default _default;
@@ -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 }: IGenerateDashboardChart) => JSX.Element>;
4
4
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { IReadinessToLearnTab } from "../configs/types";
2
- declare const ReadinessToLearnTab: ({ dataReadinessOfChart, handleHoverTooltip, classFontSize, dataOverallReadyToLearn, dayOfWeekOneToOne, monthsOneToOne, avgQuestionLastMonth, preparednessData, preparednessWeeklyData, weeksOneToOne, setOptionDate, activeColumn, onActiveColumn }: IReadinessToLearnTab) => JSX.Element;
2
+ declare const ReadinessToLearnTab: ({ dataReadinessOfChart, handleHoverTooltip, classFontSize, dataOverallReadyToLearn, dayOfWeekOneToOne, monthsOneToOne, avgQuestionLastMonth, preparednessData, preparednessWeeklyData, weeksOneToOne, setOptionDate }: IReadinessToLearnTab) => JSX.Element;
3
3
  export default ReadinessToLearnTab;
@@ -1,3 +1,3 @@
1
1
  import { ISuccessIndicatorTab } from "../configs/types";
2
- declare const SuccessIndicatorTab: ({ successIndicatorsData, avgQuestionLastMonth, dayOfWeekOneToOne, monthsOneToOne, timeOfDay, classFontSize, handleHoverTooltip, successIndicatorWeeklyData, weeksOneToOne, activeColumn, onActiveColumn }: ISuccessIndicatorTab) => JSX.Element;
2
+ declare const SuccessIndicatorTab: ({ successIndicatorsData, avgQuestionLastMonth, dayOfWeekOneToOne, monthsOneToOne, timeOfDay, classFontSize, handleHoverTooltip, successIndicatorWeeklyData, weeksOneToOne }: ISuccessIndicatorTab) => JSX.Element;
3
3
  export default SuccessIndicatorTab;
@@ -537,7 +537,6 @@ export interface IGenerateDashboardChart {
537
537
  setOptionDate?: Function;
538
538
  stressValue?: number[];
539
539
  noAvgTotal?: boolean;
540
- onActiveColumn?: any;
541
540
  }
542
541
  export interface IResponseStudentQuestion {
543
542
  sessionId: number;
@@ -583,7 +582,6 @@ export interface IConcernMetricTab {
583
582
  lowMetricStudents: ILowMetricStudent[];
584
583
  studentMetricPercent: number;
585
584
  stressValue: number[];
586
- safetyValue: number[];
587
585
  }
588
586
  export interface IConversationTab {
589
587
  conversationKpi: IConversationKpi;
@@ -612,8 +610,6 @@ export interface ISuccessIndicatorTab {
612
610
  classFontSize?: string;
613
611
  handleHoverTooltip?: Function;
614
612
  weeksOneToOne: string[];
615
- activeColumn: boolean[];
616
- onActiveColumn: any;
617
613
  }
618
614
  export interface ILearningItem {
619
615
  learningStrategyName: string;
@@ -638,8 +634,6 @@ export interface IReadinessToLearnTab {
638
634
  preparednessWeeklyData: ISeries[];
639
635
  weeksOneToOne: string[];
640
636
  setOptionDate?: Function;
641
- onActiveColumn?: any;
642
- activeColumn?: boolean[];
643
637
  }
644
638
  export interface IGenerateTrendQuestion {
645
639
  series: ISeries[];
@@ -677,19 +671,11 @@ export interface IMissedReviewStudents {
677
671
  grade?: string;
678
672
  conversationDate?: string;
679
673
  }
680
- export interface IEducatorConversationKpi {
681
- educatorUserId: string;
682
- educatorName: string;
683
- educatorProfileImage?: string;
684
- numberOfConversation: number;
685
- numberOfExpectedConversation: number;
686
- }
687
674
  export interface IConversationKpi {
688
675
  conversationTarget: number;
689
676
  conversationTeacherAvg: number;
690
677
  avgStudentReview: number;
691
678
  sessionReviewSkipped: number;
692
679
  missedReviewStudents: IMissedReviewStudents[];
693
- educatorConversationsTarget: IEducatorConversationKpi[];
694
680
  }
695
681
  export {};
@@ -89,9 +89,5 @@ declare const useDashboard: () => {
89
89
  stressValue: number[];
90
90
  conversationKpi: IConversationKpi;
91
91
  setSelectTeacherUserId: (value: any) => Promise<void>;
92
- safetyValue: number[];
93
- activeColumnReadiness: boolean[];
94
- activeColumnIndicators: boolean[];
95
- handleActiveColumn: (index: number, name: string) => void;
96
92
  };
97
93
  export default useDashboard;
@@ -1,6 +1,6 @@
1
- import { ContactFlow } from '../configs/type';
1
+ import { IWellBeingFlowContact } from '../configs/type';
2
2
  interface IProps {
3
- listContactFlow: ContactFlow[];
3
+ contacts: IWellBeingFlowContact[];
4
4
  handleAddContactFlow: Function;
5
5
  handleDeleteContactFlow: any;
6
6
  handleChangeValueContact: Function;
@@ -8,5 +8,5 @@ interface IProps {
8
8
  openModalDelete: boolean;
9
9
  setOpenModalDelete: Function;
10
10
  }
11
- declare const ContactFlowInformation: ({ listContactFlow, handleAddContactFlow, handleDeleteContactFlow, handleChangeValueContact, contactIdToDeleteRef, openModalDelete, setOpenModalDelete }: IProps) => JSX.Element;
11
+ declare const ContactFlowInformation: ({ contacts, handleAddContactFlow, handleDeleteContactFlow, handleChangeValueContact, contactIdToDeleteRef, openModalDelete, setOpenModalDelete }: IProps) => JSX.Element;
12
12
  export default ContactFlowInformation;
@@ -1,6 +1,3 @@
1
- interface IProps {
2
- listSort: any[];
3
- setListSort: any;
4
- }
5
- declare const FrequencyModeDetail: ({ listSort, setListSort }: IProps) => JSX.Element;
1
+ import { IFrequencyModeDetail } from '../configs/type';
2
+ declare const FrequencyModeDetail: ({ sections, onChange }: IFrequencyModeDetail) => JSX.Element;
6
3
  export default FrequencyModeDetail;
@@ -1,6 +1,7 @@
1
1
  interface IProps {
2
- id: string;
2
+ id: number;
3
3
  data: any;
4
+ index?: number;
4
5
  }
5
- declare const SortableItem: ({ id, data }: IProps) => JSX.Element;
6
+ declare const SortableItem: ({ id, data, index }: IProps) => JSX.Element;
6
7
  export default SortableItem;
@@ -1,4 +1,4 @@
1
- import { ContactFlow, Frequency_Mode, Frequency_Setting } from "./type";
1
+ import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup } from "./type";
2
2
  export declare const FrequencyMode: {
3
3
  value: Frequency_Mode;
4
4
  title: string;
@@ -8,10 +8,5 @@ export declare const FrequencySetting: {
8
8
  value: Frequency_Setting;
9
9
  title: string;
10
10
  }[];
11
- export declare const listSortCheckIn: {
12
- icon: string;
13
- label: string;
14
- value: string;
15
- order: number;
16
- }[];
17
- export declare const InitialContactFlow: ContactFlow;
11
+ export declare const InitialContactFlow: IWellBeingFlowContact;
12
+ export declare const initSetup: IWellBeingSetup;
@@ -1,15 +1,36 @@
1
1
  export declare enum Frequency_Mode {
2
- Bulk = 0,
3
- Detailed = 1
2
+ Bulk = "Bulk",
3
+ Detailed = "Detailed"
4
4
  }
5
5
  export declare enum Frequency_Setting {
6
- Weekly = 0,
7
- Monthly = 1,
8
- Custom = 2
6
+ Weekly = "Weekly",
7
+ Monthly = "Monthly",
8
+ Custom = "Custom"
9
9
  }
10
- export interface ContactFlow {
10
+ export interface IWellBeingSetup {
11
11
  id: number;
12
- specialContactName: string;
13
- contactRole: string;
14
- contactEmail: string;
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;
15
36
  }
@@ -1,23 +1,16 @@
1
1
  /// <reference types="react" />
2
- import { ContactFlow, Frequency_Mode, Frequency_Setting } from '../configs/type';
2
+ import { IWellBeingFlowContact, IWellBeingSection, IWellBeingSetup } from "../configs/type";
3
3
  declare const useFrequencyAndSetup: () => {
4
- frequencyMode: Frequency_Mode;
5
- setFrequencyMode: import("react").Dispatch<import("react").SetStateAction<Frequency_Mode>>;
6
- frequencySetting: Frequency_Setting;
7
- setFrequencySetting: import("react").Dispatch<import("react").SetStateAction<Frequency_Setting>>;
8
- listSort: any[];
9
- setListSort: import("react").Dispatch<import("react").SetStateAction<any[]>>;
10
- valueSettingCustom: number;
11
- setValueSettingCustom: import("react").Dispatch<import("react").SetStateAction<number>>;
12
- switchContactFlow: boolean;
13
- setSwitchContactFlow: import("react").Dispatch<import("react").SetStateAction<boolean>>;
14
- listContactFlow: ContactFlow[];
15
- setListContactFlow: import("react").Dispatch<import("react").SetStateAction<ContactFlow[]>>;
16
4
  handleAddContactFlow: () => void;
17
5
  handleDeleteContactFlow: (id: number) => void;
18
6
  handleChangeValueContact: (id: number, key: string, value: string) => void;
19
7
  contactIdToDeleteRef: import("react").MutableRefObject<number>;
20
8
  openModalDelete: boolean;
21
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;
22
15
  };
23
16
  export default useFrequencyAndSetup;
@@ -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;
@@ -32,4 +32,3 @@ export declare const getResponsesDistribution: (surveyId: number, params: any) =
32
32
  export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
33
33
  export declare const getRatingLabelSurvey: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
34
34
  export declare const getAnswerChart: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
35
- export declare const deleteSelectedSurveyApi: (ids: number[]) => Promise<import("axios").AxiosResponse<any>>;
@@ -53,12 +53,5 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
53
53
  handleChangeStudent: (studentId?: number | undefined) => void;
54
54
  onEditSurvey: (id: number) => void;
55
55
  handlePublishSurvey: (surveyId: any) => Promise<void>;
56
- selectedIds: number[];
57
- handleToggleSelect: (id: number) => void;
58
- handleSelectAll: (checked: boolean) => void;
59
- handleDeleteSelected: () => Promise<void>;
60
- handleOpenModalDelete: () => void;
61
- openSelectedModal: boolean;
62
- handleCloseModalDelete: () => void;
63
56
  };
64
57
  export default useListSurvey;