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.
- package/dist/components/Dialog/SimpleDialog.d.ts +1 -0
- package/dist/components/selector/CalendarSelect.d.ts +2 -1
- package/dist/containers/Dashboard/components/GeneratePlpChart.d.ts +1 -1
- package/dist/containers/Dashboard/components/TotalCard.d.ts +1 -1
- package/dist/containers/Dashboard/configs/types.d.ts +3 -0
- package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +1 -1
- package/dist/containers/QuestionBank/configs/constants.d.ts +2 -1
- package/dist/containers/QuestionBank/configs/type.d.ts +4 -0
- package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +8 -1
- package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +1 -1
- package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +1 -0
- package/dist/index.css +15674 -15102
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4424 -373
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4408 -360
- package/dist/index.modern.js.map +1 -1
- package/dist/services/questionService.d.ts +1 -0
- package/dist/utils/constantsFn.d.ts +1 -0
- package/package.json +110 -110
- package/dist/components/Loading/LoadLanguage.d.ts +0 -3
|
@@ -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" | "
|
|
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;
|
|
@@ -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;
|