touchstudy-core 0.1.40 → 0.1.42
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/containers/ExamResult/configs/constants.d.ts +73 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +105 -25
- package/dist/index.js +898 -833
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +898 -833
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
@@ -21,3 +21,76 @@ export declare const CATEGORY_RESPONSES: {
|
|
21
21
|
totalAnsweredQuestions: number;
|
22
22
|
percentageAmongStudents: number;
|
23
23
|
}[];
|
24
|
+
export declare const DEFAULT_LINE_CHART_OPTIONS: {
|
25
|
+
chart: {
|
26
|
+
type: string;
|
27
|
+
toolbar: {
|
28
|
+
show: boolean;
|
29
|
+
};
|
30
|
+
zoom: {
|
31
|
+
enabled: boolean;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
tooltip: {
|
35
|
+
enabled: boolean;
|
36
|
+
hideEmptySeries: boolean;
|
37
|
+
};
|
38
|
+
legend: {
|
39
|
+
show: boolean;
|
40
|
+
fontSize: string;
|
41
|
+
fontWeight: number;
|
42
|
+
markers: {
|
43
|
+
width: number;
|
44
|
+
height: number;
|
45
|
+
};
|
46
|
+
labels: {
|
47
|
+
colors: string;
|
48
|
+
};
|
49
|
+
itemMargin: {
|
50
|
+
vertical: number;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
dataLabels: {
|
54
|
+
enabled: boolean;
|
55
|
+
};
|
56
|
+
xaxis: {
|
57
|
+
categories: never[];
|
58
|
+
axisBorder: {
|
59
|
+
show: boolean;
|
60
|
+
color: string;
|
61
|
+
};
|
62
|
+
labels: {
|
63
|
+
style: {
|
64
|
+
fontSize: string;
|
65
|
+
};
|
66
|
+
};
|
67
|
+
};
|
68
|
+
grid: {
|
69
|
+
row: {
|
70
|
+
colors: string[];
|
71
|
+
};
|
72
|
+
borderColor: string;
|
73
|
+
xaxis: {
|
74
|
+
lines: {
|
75
|
+
show: boolean;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
yaxis: {
|
80
|
+
stepSize: number;
|
81
|
+
min: number;
|
82
|
+
axisBorder: {
|
83
|
+
show: boolean;
|
84
|
+
color: string;
|
85
|
+
};
|
86
|
+
labels: {
|
87
|
+
style: {
|
88
|
+
fontSize: string;
|
89
|
+
};
|
90
|
+
};
|
91
|
+
};
|
92
|
+
};
|
93
|
+
export declare const defaultSeries: (t: any) => {
|
94
|
+
name: any;
|
95
|
+
data: never[];
|
96
|
+
}[];
|
@@ -1,11 +1,47 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CategoryResponse, EffectSize, ExamResult, LongTimeSpendQuestion, TimelyOrderQuestion } from "../configs/types";
|
3
|
-
declare const useExamResult: (searchParam: string, navigate: Function, examSessionId
|
3
|
+
declare const useExamResult: (searchParam: string, navigate: Function, examSessionId: number | undefined, studentId: number | undefined, code: string | undefined, handleChangeTab: (newValue: number) => void) => {
|
4
|
+
examTime: string;
|
4
5
|
series: {
|
5
6
|
name: any;
|
6
7
|
data: (number | null)[];
|
7
8
|
}[];
|
8
9
|
chartOptions: {
|
10
|
+
tooltip: {
|
11
|
+
y: {
|
12
|
+
formatter: (val: any, { dataPointIndex }: any) => any;
|
13
|
+
};
|
14
|
+
enabled: boolean;
|
15
|
+
hideEmptySeries: boolean;
|
16
|
+
};
|
17
|
+
xaxis: {
|
18
|
+
categories: any[];
|
19
|
+
axisBorder: {
|
20
|
+
show: boolean;
|
21
|
+
color: string;
|
22
|
+
};
|
23
|
+
labels: {
|
24
|
+
style: {
|
25
|
+
fontSize: string;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
};
|
29
|
+
yaxis: {
|
30
|
+
tickAmount: number;
|
31
|
+
max: number;
|
32
|
+
labels: {
|
33
|
+
formatter: (val: any) => any;
|
34
|
+
style: {
|
35
|
+
fontSize: string;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
stepSize: number;
|
39
|
+
min: number;
|
40
|
+
axisBorder: {
|
41
|
+
show: boolean;
|
42
|
+
color: string;
|
43
|
+
};
|
44
|
+
};
|
9
45
|
chart: {
|
10
46
|
type: string;
|
11
47
|
toolbar: {
|
@@ -15,13 +51,6 @@ declare const useExamResult: (searchParam: string, navigate: Function, examSessi
|
|
15
51
|
enabled: boolean;
|
16
52
|
};
|
17
53
|
};
|
18
|
-
tooltip: {
|
19
|
-
enabled: boolean;
|
20
|
-
hideEmptySeries: boolean;
|
21
|
-
y: {
|
22
|
-
formatter: (val: any, { dataPointIndex }: any) => any;
|
23
|
-
};
|
24
|
-
};
|
25
54
|
legend: {
|
26
55
|
show: boolean;
|
27
56
|
fontSize: string;
|
@@ -40,6 +69,26 @@ declare const useExamResult: (searchParam: string, navigate: Function, examSessi
|
|
40
69
|
dataLabels: {
|
41
70
|
enabled: boolean;
|
42
71
|
};
|
72
|
+
grid: {
|
73
|
+
row: {
|
74
|
+
colors: string[];
|
75
|
+
};
|
76
|
+
borderColor: string;
|
77
|
+
xaxis: {
|
78
|
+
lines: {
|
79
|
+
show: boolean;
|
80
|
+
};
|
81
|
+
};
|
82
|
+
};
|
83
|
+
};
|
84
|
+
allChartOptions: {
|
85
|
+
tooltip: {
|
86
|
+
y: {
|
87
|
+
formatter: (val: any, { dataPointIndex }: any) => any;
|
88
|
+
};
|
89
|
+
enabled: boolean;
|
90
|
+
hideEmptySeries: boolean;
|
91
|
+
};
|
43
92
|
xaxis: {
|
44
93
|
categories: any[];
|
45
94
|
axisBorder: {
|
@@ -52,41 +101,72 @@ declare const useExamResult: (searchParam: string, navigate: Function, examSessi
|
|
52
101
|
};
|
53
102
|
};
|
54
103
|
};
|
55
|
-
grid: {
|
56
|
-
row: {
|
57
|
-
colors: string[];
|
58
|
-
};
|
59
|
-
borderColor: string;
|
60
|
-
xaxis: {
|
61
|
-
lines: {
|
62
|
-
show: boolean;
|
63
|
-
};
|
64
|
-
};
|
65
|
-
};
|
66
104
|
yaxis: {
|
67
105
|
tickAmount: number;
|
106
|
+
max: number;
|
107
|
+
labels: {
|
108
|
+
formatter: (val: any) => any;
|
109
|
+
style: {
|
110
|
+
fontSize: string;
|
111
|
+
};
|
112
|
+
};
|
68
113
|
stepSize: number;
|
69
114
|
min: number;
|
70
|
-
max: number;
|
71
115
|
axisBorder: {
|
72
116
|
show: boolean;
|
73
117
|
color: string;
|
74
118
|
};
|
119
|
+
};
|
120
|
+
chart: {
|
121
|
+
type: string;
|
122
|
+
toolbar: {
|
123
|
+
show: boolean;
|
124
|
+
};
|
125
|
+
zoom: {
|
126
|
+
enabled: boolean;
|
127
|
+
};
|
128
|
+
};
|
129
|
+
legend: {
|
130
|
+
show: boolean;
|
131
|
+
fontSize: string;
|
132
|
+
fontWeight: number;
|
133
|
+
markers: {
|
134
|
+
width: number;
|
135
|
+
height: number;
|
136
|
+
};
|
75
137
|
labels: {
|
76
|
-
|
77
|
-
|
78
|
-
|
138
|
+
colors: string;
|
139
|
+
};
|
140
|
+
itemMargin: {
|
141
|
+
vertical: number;
|
142
|
+
};
|
143
|
+
};
|
144
|
+
dataLabels: {
|
145
|
+
enabled: boolean;
|
146
|
+
};
|
147
|
+
grid: {
|
148
|
+
row: {
|
149
|
+
colors: string[];
|
150
|
+
};
|
151
|
+
borderColor: string;
|
152
|
+
xaxis: {
|
153
|
+
lines: {
|
154
|
+
show: boolean;
|
79
155
|
};
|
80
156
|
};
|
81
157
|
};
|
82
|
-
};
|
158
|
+
}[];
|
159
|
+
allSeries: {
|
160
|
+
name: any;
|
161
|
+
data: (number | null)[];
|
162
|
+
}[][];
|
83
163
|
dataChartIndex: number;
|
84
164
|
totalTime: any;
|
85
165
|
isStudent: any;
|
86
166
|
resultDatas: ExamResult | undefined;
|
87
167
|
effectSize: EffectSize[] | undefined;
|
88
168
|
longTimeSpend: LongTimeSpendQuestion[];
|
89
|
-
|
169
|
+
timelyOrderQuestions: TimelyOrderQuestion[];
|
90
170
|
openProblem: {
|
91
171
|
problem1: boolean;
|
92
172
|
problem2: boolean;
|