mario-education 2.4.29-admin → 2.4.30-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/types.d.ts +3 -2
- 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 +26 -10
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +0 -5
- 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/index.js +1272 -432
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1273 -433
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -101,8 +101,9 @@ export interface IChartComponent {
|
|
|
101
101
|
children: JSX.Element | undefined;
|
|
102
102
|
}
|
|
103
103
|
export declare enum LegalGenderType {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
None = 0,
|
|
105
|
+
Male = 1,
|
|
106
|
+
Female = 2
|
|
106
107
|
}
|
|
107
108
|
export interface IDesignationsQuantity {
|
|
108
109
|
name: string;
|
|
@@ -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
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
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[];
|
|
@@ -39,5 +34,26 @@ declare const useChartDatas: () => {
|
|
|
39
34
|
})[];
|
|
40
35
|
onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
|
|
41
36
|
initialTypeChart: (TYPECHART.AREA | TYPECHART)[];
|
|
37
|
+
handleSelectToPrint: (checked: boolean, data: any, chartType: any) => void;
|
|
38
|
+
checkSelectedItem: (id: string) => boolean;
|
|
39
|
+
selectedToPrint: any;
|
|
40
|
+
setSelectedToPrint: React.Dispatch<any>;
|
|
41
|
+
chartOneToOneData: import("../configs/types").IColumnChartAndPercent;
|
|
42
|
+
topLearningStrategies: import("../configs/types").IlearningStrategies;
|
|
43
|
+
chartClassReflection: import("../configs/types").IColumnChartAndPercent;
|
|
44
|
+
chartConference: import("../configs/types").IColumnChartAndPercent;
|
|
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[];
|
|
42
58
|
};
|
|
43
59
|
export default useChartDatas;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ declare const useDashboard: () => {
|
|
|
19
19
|
studentByGender: IStudentByGender;
|
|
20
20
|
safety: IColumnChartAndPercent;
|
|
21
21
|
topSkill: never[];
|
|
22
|
-
onFilter: () => void;
|
|
23
22
|
handleChangeFilters: (event: any) => void;
|
|
24
23
|
bandScore: BAND_SCORE[];
|
|
25
24
|
user: any;
|
|
@@ -29,10 +28,6 @@ declare const useDashboard: () => {
|
|
|
29
28
|
setGenderOfStudent: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
30
29
|
handleFilterStudent: (option: any) => void;
|
|
31
30
|
handleFilterTeacher: (option: any) => void;
|
|
32
|
-
handleSelectToPrint: (checked: boolean, data: any, chartType: any) => void;
|
|
33
|
-
checkSelectedItem: (id: string) => boolean;
|
|
34
|
-
selectedToPrint: any;
|
|
35
|
-
setSelectedToPrint: import("react").Dispatch<any>;
|
|
36
31
|
onChangeFilters: (filterSelect: IFilter) => void;
|
|
37
32
|
handleActiveColumnOneToOne: (index: any) => void;
|
|
38
33
|
seriesOneToOne: ISeries[];
|
|
@@ -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>>;
|