touchstudy-core 0.1.185 → 0.1.187
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/Questions/configs/fns.d.ts +1 -1
- package/dist/containers/ExamResult/apiClients/index.d.ts +6 -0
- package/dist/containers/ExamResult/components/Charts/HexagonChart.d.ts +4 -0
- package/dist/containers/ExamResult/components/Charts/SolutionOrderChart.d.ts +11 -0
- package/dist/containers/ExamResult/components/Charts/TimeChart.d.ts +4 -0
- package/dist/containers/ExamResult/components/Charts/TimeOrderChart.d.ts +1 -0
- package/dist/containers/ExamResult/components/Charts/index.d.ts +2 -1
- package/dist/containers/ExamResult/components/CompareGrass/AnswerPopover.d.ts +8 -0
- package/dist/containers/ExamResult/components/CompareGrass/index.d.ts +3 -0
- package/dist/containers/ExamResult/components/ExamHeader.d.ts +1 -1
- package/dist/containers/ExamResult/components/GradesByTerritoryProblems.d.ts +9 -0
- package/dist/containers/ExamResult/components/MyAnswer/configs/interfaces.d.ts +2 -1
- package/dist/containers/ExamResult/components/MyAnswer/index.d.ts +2 -0
- package/dist/containers/ExamResult/components/OverallTabs/CategoriesOverallChartContainer.d.ts +13 -0
- package/dist/containers/ExamResult/components/OverallTabs/OverallChartContainer.d.ts +13 -0
- package/dist/containers/ExamResult/components/OverallTabs/OverallTab.d.ts +8 -0
- package/dist/containers/ExamResult/components/OverallTabs/OverallTabHeader.d.ts +6 -0
- package/dist/containers/ExamResult/components/OverallTabs/OverallTimeChart.d.ts +11 -0
- package/dist/containers/ExamResult/components/OverallTabs/OverallTimeChartContainer.d.ts +10 -0
- package/dist/containers/ExamResult/components/PrintSolutionOrder.d.ts +10 -0
- package/dist/containers/ExamResult/components/PrintSolutionOrderItem.d.ts +10 -0
- package/dist/containers/ExamResult/components/ProblemContainer.d.ts +12 -0
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +0 -3
- package/dist/containers/ExamResult/components/ProtractedProblems.d.ts +9 -0
- package/dist/containers/ExamResult/components/SolutionOrder.d.ts +8 -0
- package/dist/containers/ExamResult/components/TrickyProblems.d.ts +9 -0
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +2 -2
- package/dist/containers/ExamResult/components/VulnerableProblems.d.ts +10 -0
- package/dist/containers/ExamResult/configs/constants.d.ts +169 -0
- package/dist/containers/ExamResult/configs/functions.d.ts +1 -0
- package/dist/containers/ExamResult/configs/types.d.ts +40 -24
- package/dist/containers/ExamResult/hooks/useCategoriesOverallChartContainer.d.ts +9 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +6 -0
- package/dist/containers/ExamResult/hooks/useOverallChartContainer.d.ts +9 -0
- package/dist/containers/ExamResult/hooks/useOverallTimeChartContainer.d.ts +6 -0
- package/dist/containers/ExamResult/hooks/usePrintExamResult.d.ts +2 -1
- package/dist/containers/ExamResult/index.d.ts +1 -0
- package/dist/containers/ExamResult/views/PrintExamResult.d.ts +7 -0
- package/dist/containers/Exams/hooks/useOverallChartContainer.d.ts +9 -0
- package/dist/index.css +15 -13
- package/dist/index.js +3747 -3007
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3747 -3009
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/functions/common.d.ts +0 -20
- package/dist/utils/types/examResults.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PrintState } from "../configs/types";
|
|
3
|
-
declare const usePrintExamResult: (isDataFetching: boolean | undefined, fileName: string, totalChart: number, onSuccess?: (() => void) | undefined, onError?: ((message?: string | undefined) => void) | undefined, autoPrint?: boolean) => {
|
|
3
|
+
declare const usePrintExamResult: (isDataFetching: boolean | undefined, fileName: string, totalChart: number, printOverallCharts: boolean, onSuccess?: (() => void) | undefined, onError?: ((message?: string | undefined) => void) | undefined, autoPrint?: boolean) => {
|
|
4
4
|
contentRef: import("react").RefObject<HTMLElement>;
|
|
5
5
|
printState: PrintState;
|
|
6
6
|
setRenderedChart: (chart: number) => void;
|
|
7
7
|
handlePrintPdf: () => void;
|
|
8
8
|
reset: () => void;
|
|
9
|
+
handleOverallChartsRendered: () => void;
|
|
9
10
|
};
|
|
10
11
|
export default usePrintExamResult;
|
|
@@ -3,6 +3,7 @@ import PrintExamResultView from "./views/PrintExamResultView";
|
|
|
3
3
|
import { ExamSessionResponse, GroupedExamSession } from "./configs/types";
|
|
4
4
|
import { groupMonth } from "./configs/functions";
|
|
5
5
|
export * from "./components/MonthGroupedExamSessions";
|
|
6
|
+
export * from "./components/Charts";
|
|
6
7
|
export { ExamResultV2, PrintExamResultView };
|
|
7
8
|
export type { ExamSessionResponse, GroupedExamSession };
|
|
8
9
|
export { groupMonth };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { FC, RefObject } from "react";
|
|
2
2
|
import { EffectSize, LongTimeSpendQuestion, TextbookResult, TimelyOrderQuestion } from "../configs/types";
|
|
3
3
|
import { CategoryResponse, ExamResult } from "../../../utils/types/examResults";
|
|
4
|
+
import { OverallChartContainerProps } from "../components/OverallTabs/OverallChartContainer";
|
|
5
|
+
import { CategoriesOverallChartContainerProps } from "../components/OverallTabs/CategoriesOverallChartContainer";
|
|
6
|
+
import { OverallTimeChartContainerProps } from "../components/OverallTabs/OverallTimeChartContainer";
|
|
4
7
|
interface Props {
|
|
5
8
|
contentRef: RefObject<HTMLElement>;
|
|
6
9
|
resultData?: ExamResult;
|
|
@@ -18,7 +21,11 @@ interface Props {
|
|
|
18
21
|
longTimeSpend: LongTimeSpendQuestion[];
|
|
19
22
|
fileName: string;
|
|
20
23
|
chapterId?: number;
|
|
24
|
+
overallChartContainerProps: OverallChartContainerProps;
|
|
25
|
+
categoriesOverallChartContainerProps: CategoriesOverallChartContainerProps;
|
|
26
|
+
overallTimeChartContainerProps: OverallTimeChartContainerProps;
|
|
21
27
|
setRenderedChart: (questionGroupIndex: number) => void;
|
|
28
|
+
onOnverallChartRendered?: () => void;
|
|
22
29
|
}
|
|
23
30
|
declare const PrintExamResult: FC<Props>;
|
|
24
31
|
export default PrintExamResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const useOverallChartContainer: (isStudent: boolean, examCode: string, code: string, examSessionId: number, chapterId: number, studentId: number) => {
|
|
2
|
+
isLoading: boolean;
|
|
3
|
+
myData: number[];
|
|
4
|
+
avgData: number[];
|
|
5
|
+
shortCategories: string[];
|
|
6
|
+
xAxisLabelFormatter: (_: string, { dataPointIndex }: any) => any;
|
|
7
|
+
formatTooltip: ({ dataPointIndex, w }: any) => string;
|
|
8
|
+
};
|
|
9
|
+
export default useOverallChartContainer;
|
package/dist/index.css
CHANGED
|
@@ -1635,18 +1635,19 @@
|
|
|
1635
1635
|
font-family: "Pretendard";
|
|
1636
1636
|
font-weight: 700;
|
|
1637
1637
|
font-size: 13px; }
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1638
|
+
|
|
1639
|
+
._1AFeb {
|
|
1640
|
+
display: flex;
|
|
1641
|
+
flex-direction: row;
|
|
1642
|
+
justify-content: center;
|
|
1643
|
+
align-items: center;
|
|
1644
|
+
gap: 10px; }
|
|
1645
|
+
._1AFeb span {
|
|
1646
|
+
font-family: "Pretendard";
|
|
1647
|
+
font-weight: 600;
|
|
1648
|
+
font-size: 11px;
|
|
1649
|
+
padding: 4px 8px;
|
|
1650
|
+
border-radius: 6px; }
|
|
1650
1651
|
|
|
1651
1652
|
._oTqG7 {
|
|
1652
1653
|
border-top: 1px solid #e4e7ec; }
|
|
@@ -1844,7 +1845,8 @@
|
|
|
1844
1845
|
display: flex;
|
|
1845
1846
|
justify-content: center;
|
|
1846
1847
|
align-items: center;
|
|
1847
|
-
margin: 8px 0;
|
|
1848
|
+
margin: 8px 0;
|
|
1849
|
+
color: #D0D0C8; }
|
|
1848
1850
|
|
|
1849
1851
|
._3j485 {
|
|
1850
1852
|
height: calc(100vh - 72px); }
|