mario-education 2.4.590-release → 2.4.591-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.
@@ -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;
@@ -9,6 +9,7 @@ interface ICalendarSelect {
9
9
  value?: string;
10
10
  onChange?: Function;
11
11
  disabled?: boolean;
12
+ customClassName?: string;
12
13
  }
13
- declare const CalendarSelect: ({ options, value, onChange, disabled }: ICalendarSelect) => JSX.Element;
14
+ declare const CalendarSelect: ({ options, value, onChange, disabled, customClassName }: ICalendarSelect) => JSX.Element;
14
15
  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, loadingComplete }: 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,3 +1,3 @@
1
1
  import { ITotalCard } from "../configs/types";
2
- declare const TotalCard: ({ iconSrc, label, value, loadingComplete }: ITotalCard) => JSX.Element;
2
+ declare const TotalCard: ({ iconSrc, label, value, loadingComplete, customClassName, handleOpenModal }: ITotalCard) => JSX.Element;
3
3
  export default TotalCard;
@@ -476,6 +476,8 @@ export interface ITotalCard {
476
476
  value: number | string;
477
477
  iconSrc: string;
478
478
  loadingComplete?: boolean;
479
+ customClassName?: string;
480
+ handleOpenModal?: any;
479
481
  }
480
482
  export interface IQuestionResponseLastMonth {
481
483
  avgQuestionResponse: number;
@@ -542,6 +544,7 @@ export interface IGenerateDashboardChart {
542
544
  noAvgTotal?: boolean;
543
545
  onActiveColumn?: any;
544
546
  loadingComplete?: boolean;
547
+ optionDate?: string;
545
548
  }
546
549
  export interface IResponseStudentQuestion {
547
550
  sessionId: number;
@@ -8,7 +8,7 @@ declare const useFrequencyAndSetup: () => {
8
8
  openModalDelete: boolean;
9
9
  setOpenModalDelete: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
10
  setup: IWellBeingSetup;
11
- onChangeSetup: <K extends "id" | "frequencyMode" | "frequencyType" | "customFrequencyDays" | "isContactFlowEnabled" | "sections" | "contacts">(key: K, value: IWellBeingSetup[K]) => void;
11
+ onChangeSetup: <K extends "id" | "contacts" | "sections" | "frequencyMode" | "frequencyType" | "customFrequencyDays" | "isContactFlowEnabled">(key: K, value: IWellBeingSetup[K]) => void;
12
12
  contacts: IWellBeingFlowContact[];
13
13
  sections: IWellBeingSection[];
14
14
  onChangeSections: (orderSections: IWellBeingSection[]) => void;
@@ -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;