mario-education 2.4.31-admin → 2.4.32-beta
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/MarioFramework.Education/ClientApp/src/components/Questions/QuestionList.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/components/Questions/QuestionSelector.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +2 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +16 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/questionDetailSchema.d.ts +4 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/components/TemplateCateModal.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +35 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/views/TemplateSurveyList.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/questionCategoryService.d.ts +5 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +3 -1
- package/dist/index.css +4 -0
- package/dist/index.js +1163 -253
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1164 -254
- package/dist/index.modern.js.map +1 -1
- package/package.json +6 -3
|
@@ -28,7 +28,7 @@ export declare const mtssOptions: {
|
|
|
28
28
|
value: MtssType;
|
|
29
29
|
label: string;
|
|
30
30
|
}[];
|
|
31
|
-
export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
|
|
31
|
+
export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[], screenWidth: number) => ApexOptions;
|
|
32
32
|
export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
|
|
33
33
|
export declare const optionsChartGrade: (maxDatas: number) => ApexOptions;
|
|
34
34
|
export declare const studentBySpecialNeedOptions: (seriesValue: IseriesChart, colors: string[]) => ApexOptions;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TYPECHART } from "../configs/types";
|
|
1
|
+
import { TYPECHART, IChartOptions } from "../configs/types";
|
|
2
2
|
declare const useBehavior: (initialTypeChart: TYPECHART[]) => {
|
|
3
3
|
chartIsOpened: boolean[];
|
|
4
4
|
onToggle: (idx: number) => void;
|
|
5
|
-
onChangeChart: (idx: number, type: TYPECHART) => void;
|
|
5
|
+
onChangeChart: (idx: number, type: TYPECHART, options?: IChartOptions[] | undefined) => void;
|
|
6
6
|
typeChartList: TYPECHART[];
|
|
7
7
|
teacherUserId: string;
|
|
8
8
|
changeCurrentTeacherUserId: (userId: string) => void;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts
CHANGED
|
@@ -2,22 +2,17 @@ import React from "react";
|
|
|
2
2
|
import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
|
|
3
3
|
import { TYPECHART } from "../configs/types";
|
|
4
4
|
declare const useChartDatas: () => {
|
|
5
|
-
chartDashBoards:
|
|
5
|
+
chartDashBoards: {
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
8
|
-
children: (typeChart: TYPECHART) => JSX.Element;
|
|
8
|
+
children: (typeChart: TYPECHART, isPDF?: boolean | undefined) => JSX.Element;
|
|
9
9
|
isShowChangeChart: boolean;
|
|
10
10
|
options: {
|
|
11
11
|
label: string;
|
|
12
12
|
value: TYPECHART;
|
|
13
13
|
}[];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
label: string;
|
|
17
|
-
children: (_: TYPECHART, columnFlex?: boolean | undefined) => JSX.Element;
|
|
18
|
-
isShowChangeChart: boolean;
|
|
19
|
-
options: never[];
|
|
20
|
-
})[];
|
|
14
|
+
contentTooltip: string;
|
|
15
|
+
}[];
|
|
21
16
|
user: any;
|
|
22
17
|
filter: import("../configs/types").DashboardFilter;
|
|
23
18
|
LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
|
|
@@ -48,5 +43,17 @@ declare const useChartDatas: () => {
|
|
|
48
43
|
chartClassReflection: import("../configs/types").IColumnChartAndPercent;
|
|
49
44
|
chartConference: import("../configs/types").IColumnChartAndPercent;
|
|
50
45
|
safety: import("../configs/types").IColumnChartAndPercent;
|
|
46
|
+
dataConvertedOneToOne: string[];
|
|
47
|
+
activeColumnOneToOne: boolean[];
|
|
48
|
+
avgOneToOne: number[];
|
|
49
|
+
dataConvertedClassReflection: string[];
|
|
50
|
+
activeColumnClassReflection: boolean[];
|
|
51
|
+
avgClassReflection: number[];
|
|
52
|
+
dataConvertedConference: string[];
|
|
53
|
+
activeColumnConference: boolean[];
|
|
54
|
+
avgConference: number[];
|
|
55
|
+
dataConvertedSafety: string[];
|
|
56
|
+
activeColumnSafety: boolean[];
|
|
57
|
+
avgSafety: number[];
|
|
51
58
|
};
|
|
52
59
|
export default useChartDatas;
|
|
@@ -4,8 +4,8 @@ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
|
4
4
|
type: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
5
5
|
categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
6
6
|
explainAnswer: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
7
|
-
fromLabel: yup.StringSchema<
|
|
8
|
-
toLabel: yup.StringSchema<
|
|
7
|
+
fromLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
8
|
+
toLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
9
9
|
numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
|
|
10
10
|
answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
|
|
11
11
|
isDefaultQuestion: yup.BooleanSchema<boolean | undefined, Record<string, any>, boolean | undefined>;
|
|
@@ -17,8 +17,8 @@ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
|
17
17
|
type: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
18
18
|
categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
19
19
|
explainAnswer: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
20
|
-
fromLabel: yup.StringSchema<
|
|
21
|
-
toLabel: yup.StringSchema<
|
|
20
|
+
fromLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
21
|
+
toLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
22
22
|
numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
|
|
23
23
|
answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
|
|
24
24
|
isDefaultQuestion: yup.BooleanSchema<boolean | undefined, Record<string, any>, boolean | undefined>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type questionCateDetail = {
|
|
3
|
+
name: string;
|
|
4
|
+
questionIds?: number[];
|
|
5
|
+
};
|
|
6
|
+
declare type TemplateQuestion = {
|
|
7
|
+
id: number;
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
declare const useTemplateCateDetail: () => {
|
|
11
|
+
id: number;
|
|
12
|
+
setId: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
13
|
+
questionCateDetail: questionCateDetail;
|
|
14
|
+
confirmData: (values: any, cb: any) => Promise<void>;
|
|
15
|
+
initValue: questionCateDetail;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
edited: boolean;
|
|
18
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
19
|
+
setEditedTrue: () => Promise<void>;
|
|
20
|
+
setEditedFalse: () => Promise<void>;
|
|
21
|
+
categoryId: number;
|
|
22
|
+
setCategoryId: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
23
|
+
questionSelectorValue: {
|
|
24
|
+
id: number;
|
|
25
|
+
value: number;
|
|
26
|
+
label: string;
|
|
27
|
+
text: string;
|
|
28
|
+
} | null;
|
|
29
|
+
setTemporaryQuestion: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion | null>>;
|
|
30
|
+
addQuestion: () => void;
|
|
31
|
+
listQuestions: TemplateQuestion[];
|
|
32
|
+
setListQuestions: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion[]>>;
|
|
33
|
+
removeQuestion: (questionId: number) => void;
|
|
34
|
+
};
|
|
35
|
+
export default useTemplateCateDetail;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const useTemplateCateList: () => {
|
|
2
|
+
questionCateList: any;
|
|
3
|
+
totalItems: any;
|
|
4
|
+
filters: import("mario-core").Filter;
|
|
5
|
+
changeFilters: (updatedFilters: any) => void;
|
|
6
|
+
getData: () => Promise<void>;
|
|
7
|
+
removeData: (id: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export default useTemplateCateList;
|
|
@@ -4,3 +4,8 @@ export declare const getById: (id: number) => Promise<import("axios").AxiosRespo
|
|
|
4
4
|
export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
5
|
export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
6
|
export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
|
+
export declare const getSurvey: (filter: Filter) => Promise<import("axios").AxiosResponse<any>>;
|
|
8
|
+
export declare const getSurveyById: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
9
|
+
export declare const createSurvey: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
10
|
+
export declare const updateSurvey: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
11
|
+
export declare const removeSurvey: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|