touchstudy-core 0.1.152 → 0.1.153
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/Chats/configs/types.d.ts +3 -2
- package/dist/containers/Classes/components/StudentList.d.ts +3 -0
- package/dist/containers/Classes/views/ClassDetail.d.ts +1 -0
- package/dist/containers/ExamResult/configs/types.d.ts +3 -1
- package/dist/containers/PreparedExam/components/Textbook.d.ts +4 -1
- package/dist/containers/PreparedExam/components/dialogs/ChapterProblemSolvingResultsDialog.d.ts +4 -1
- package/dist/containers/PreparedExam/components/dialogs/TextbookDrawer.d.ts +2 -1
- package/dist/containers/PreparedExam/views/PreparedItem.d.ts +4 -1
- package/dist/containers/StudentInfoDrawer/components/Exam/DrawerExamResultTab.d.ts +3 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultDrawer.d.ts +3 -0
- package/dist/containers/StudentInfoDrawer/components/Textbook/DrawerTextbookResultTab.d.ts +3 -0
- package/dist/containers/StudentInfoDrawer/configs/interfaces.d.ts +3 -0
- package/dist/containers/Users/views/UserList.d.ts +1 -0
- package/dist/index.js +97 -50
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +97 -50
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -19437,7 +19437,6 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
19437
19437
|
sx: textStyle
|
19438
19438
|
}, t$1(TabList$2[0].label)), chapterId ? textbookResult && React__default.createElement(TextbookMyAnswer, {
|
19439
19439
|
data: textbookResult,
|
19440
|
-
categories: categoryResponses,
|
19441
19440
|
isStudent: isStudent
|
19442
19441
|
}) : resultData && React__default.createElement(MyAnswer, {
|
19443
19442
|
data: resultData,
|
@@ -20392,7 +20391,7 @@ var useExamResult = function useExamResult(props) {
|
|
20392
20391
|
studentId = _props$studentId === void 0 ? 0 : _props$studentId,
|
20393
20392
|
code = props.code,
|
20394
20393
|
chapterId = props.chapterId,
|
20395
|
-
|
20394
|
+
onViewQA = props.onViewQA;
|
20396
20395
|
var _useTranslation = useTranslation(),
|
20397
20396
|
t = _useTranslation.t;
|
20398
20397
|
var _useTab = useTab(),
|
@@ -20442,7 +20441,7 @@ var useExamResult = function useExamResult(props) {
|
|
20442
20441
|
var handleViewQAndA = function handleViewQAndA(e, note) {
|
20443
20442
|
e.stopPropagation();
|
20444
20443
|
if (!note.examSessionId || !note.questionId) return;
|
20445
|
-
|
20444
|
+
onViewQA === null || onViewQA === void 0 ? void 0 : onViewQA(note.userId, note.examSessionId, note.questionId);
|
20446
20445
|
};
|
20447
20446
|
var fileExamName = !resultData ? "" : "Exam-Result_" + resultData.student.fullName + "_" + resultData.title + "_(" + utcToLocalTime(resultData.startTime, "MM-DD-YYYY HH:mm") + ")";
|
20448
20447
|
var fileTextbookName = !textbookResult ? "" : "Textbook-Result_" + textbookResult.chapterName + "_(" + utcToLocalTime(textbookResult.startTime, "MM-DD-YYYY HH:mm") + ")";
|
@@ -20469,9 +20468,12 @@ var useExamResult = function useExamResult(props) {
|
|
20469
20468
|
};
|
20470
20469
|
|
20471
20470
|
var ExamResultV2 = function ExamResultV2(props) {
|
20472
|
-
var
|
20473
|
-
|
20474
|
-
|
20471
|
+
var role = props.role,
|
20472
|
+
isMyStoryStudent = props.isMyStoryStudent,
|
20473
|
+
onViewQA = props.onViewQA,
|
20474
|
+
chapterId = props.chapterId,
|
20475
|
+
studentId = props.studentId;
|
20476
|
+
var isAdminSite = role === Role.Admin;
|
20475
20477
|
var _useExamResult = useExamResult(props),
|
20476
20478
|
t = _useExamResult.t,
|
20477
20479
|
fileName = _useExamResult.fileName,
|
@@ -20589,7 +20591,13 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20589
20591
|
onItemClick: handleOpenNoteDrawer,
|
20590
20592
|
isLoading: isLoadingNotes
|
20591
20593
|
};
|
20592
|
-
var questionActions = [{
|
20594
|
+
var questionActions = chapterId ? [{
|
20595
|
+
label: "ask_a_question",
|
20596
|
+
textStyle: {
|
20597
|
+
color: "#3dc674"
|
20598
|
+
},
|
20599
|
+
onClick: handleOpenQuestionDialog
|
20600
|
+
}] : [{
|
20593
20601
|
label: "write_a_note_of_incorrect_answers",
|
20594
20602
|
textStyle: {
|
20595
20603
|
color: "#3dc674"
|
@@ -20608,6 +20616,14 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20608
20616
|
onOpenContextMenu: handleOpenQuestionContextMenu,
|
20609
20617
|
isStudent: isStudent
|
20610
20618
|
};
|
20619
|
+
var handleViewTextbookQA = function handleViewTextbookQA() {
|
20620
|
+
if (!studentId) return;
|
20621
|
+
onViewQA === null || onViewQA === void 0 ? void 0 : onViewQA(+studentId, textbookResult === null || textbookResult === void 0 ? void 0 : textbookResult.studentTextbookSessionId, undefined, true);
|
20622
|
+
};
|
20623
|
+
var handleViewExamQA = function handleViewExamQA() {
|
20624
|
+
if (!resultData) return;
|
20625
|
+
onViewQA === null || onViewQA === void 0 ? void 0 : onViewQA(resultData.student.id, resultData.examSessionId);
|
20626
|
+
};
|
20611
20627
|
return React__default.createElement(Fragment$1, null, React__default.createElement(LoadingComponent, {
|
20612
20628
|
isLoading: !!isLoading
|
20613
20629
|
}), timelyOrderQuestions[dataChartIndex] && longTimeSpend && effectSize ? React__default.createElement("div", {
|
@@ -20754,7 +20770,7 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20754
20770
|
direction: "row",
|
20755
20771
|
gap: "8px",
|
20756
20772
|
alignItems: "center"
|
20757
|
-
}, React__default.createElement(Button, {
|
20773
|
+
}, !isAdminSite && React__default.createElement(Button, {
|
20758
20774
|
variant: "outlined",
|
20759
20775
|
sx: {
|
20760
20776
|
color: styles.less_dark,
|
@@ -20770,7 +20786,7 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20770
20786
|
size: "14px"
|
20771
20787
|
})),
|
20772
20788
|
onClick: function onClick(e) {
|
20773
|
-
return isStudent ? handleOpenQuestionDialog(e) :
|
20789
|
+
return isStudent ? handleOpenQuestionDialog(e) : handleViewExamQA();
|
20774
20790
|
}
|
20775
20791
|
}, t(isStudent ? "ask_a_question2" : "check_q&a")), React__default.createElement(Button, {
|
20776
20792
|
variant: "outlined",
|
@@ -20828,7 +20844,7 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20828
20844
|
direction: "row",
|
20829
20845
|
gap: "8px",
|
20830
20846
|
alignItems: "center"
|
20831
|
-
}, React__default.createElement(Button, {
|
20847
|
+
}, !isAdminSite && React__default.createElement(Button, {
|
20832
20848
|
variant: "outlined",
|
20833
20849
|
sx: {
|
20834
20850
|
color: styles.less_dark,
|
@@ -20844,7 +20860,7 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20844
20860
|
size: "14px"
|
20845
20861
|
})),
|
20846
20862
|
onClick: function onClick(e) {
|
20847
|
-
return handleOpenQuestionDialog(e);
|
20863
|
+
return isStudent ? handleOpenQuestionDialog(e) : handleViewTextbookQA();
|
20848
20864
|
}
|
20849
20865
|
}, t(isStudent ? "ask_a_question2" : "check_q&a")), React__default.createElement(Button, {
|
20850
20866
|
variant: "outlined",
|
@@ -21231,12 +21247,14 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
21231
21247
|
|
21232
21248
|
var ExamResultDrawer = function ExamResultDrawer(_ref) {
|
21233
21249
|
var _BRIEF_GRADE_OPTIONS$;
|
21234
|
-
var
|
21250
|
+
var role = _ref.role,
|
21251
|
+
history = _ref.history,
|
21235
21252
|
open = _ref.open,
|
21236
21253
|
anchor = _ref.anchor,
|
21237
21254
|
width = _ref.width,
|
21238
21255
|
student = _ref.student,
|
21239
21256
|
data = _ref.data,
|
21257
|
+
onViewQA = _ref.onViewQA,
|
21240
21258
|
onClose = _ref.onClose;
|
21241
21259
|
var _useTranslation = useTranslation(),
|
21242
21260
|
t = _useTranslation.t;
|
@@ -21245,16 +21263,6 @@ var ExamResultDrawer = function ExamResultDrawer(_ref) {
|
|
21245
21263
|
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.language;
|
21246
21264
|
});
|
21247
21265
|
var search = window.location.search;
|
21248
|
-
var searchParams = new URLSearchParams(search);
|
21249
|
-
var handleViewExamQuestion = function handleViewExamQuestion(studentId, examSessionId, questionId) {
|
21250
|
-
searchParams.set("sId", "" + studentId);
|
21251
|
-
examSessionId && searchParams.set("eId", "" + examSessionId);
|
21252
|
-
questionId && searchParams.set("qId", "" + questionId);
|
21253
|
-
pushTo(history, {
|
21254
|
-
pathname: "/teacher/question-and-answers",
|
21255
|
-
search: searchParams.toString()
|
21256
|
-
});
|
21257
|
-
};
|
21258
21266
|
var studentId = student === null || student === void 0 ? void 0 : student.id;
|
21259
21267
|
var code = data === null || data === void 0 ? void 0 : data.code;
|
21260
21268
|
var examSessionId = data === null || data === void 0 ? void 0 : data.id;
|
@@ -21354,21 +21362,24 @@ var ExamResultDrawer = function ExamResultDrawer(_ref) {
|
|
21354
21362
|
pb: 4
|
21355
21363
|
}
|
21356
21364
|
}, examSessionId && React__default.createElement(ExamResultV2, {
|
21365
|
+
role: role,
|
21357
21366
|
history: history,
|
21358
21367
|
searchParams: search,
|
21359
21368
|
code: code,
|
21360
21369
|
examSessionId: examSessionId,
|
21361
21370
|
studentId: studentId,
|
21362
|
-
|
21371
|
+
onViewQA: onViewQA
|
21363
21372
|
})));
|
21364
21373
|
};
|
21365
21374
|
|
21366
21375
|
var DrawerExamResultTab = function DrawerExamResultTab(_ref) {
|
21367
|
-
var
|
21376
|
+
var role = _ref.role,
|
21377
|
+
history = _ref.history,
|
21368
21378
|
student = _ref.student,
|
21369
21379
|
selectedTab = _ref.selectedTab,
|
21370
21380
|
value = _ref.value,
|
21371
|
-
studentId = _ref.studentId
|
21381
|
+
studentId = _ref.studentId,
|
21382
|
+
onViewQA = _ref.onViewQA;
|
21372
21383
|
var _useVirtualList = useVirtualList(studentId, EXAM_SESSION_DEFAULT_FILTER, getExamSessionListApi),
|
21373
21384
|
items = _useVirtualList.items,
|
21374
21385
|
selectedItem = _useVirtualList.selectedItem,
|
@@ -21403,13 +21414,15 @@ var DrawerExamResultTab = function DrawerExamResultTab(_ref) {
|
|
21403
21414
|
onItemClick: handleChangeSelectedItem,
|
21404
21415
|
listHeight: 0
|
21405
21416
|
})), React__default.createElement(ExamResultDrawer, {
|
21417
|
+
role: role,
|
21406
21418
|
open: !!selectedItem,
|
21407
21419
|
data: selectedItem,
|
21408
21420
|
student: student,
|
21409
21421
|
anchor: "right",
|
21410
21422
|
width: "80dvw",
|
21411
21423
|
onClose: handleCloseDrawer,
|
21412
|
-
history: history
|
21424
|
+
history: history,
|
21425
|
+
onViewQA: onViewQA
|
21413
21426
|
}));
|
21414
21427
|
};
|
21415
21428
|
|
@@ -22418,11 +22431,13 @@ var ChapterDetail = function ChapterDetail(_ref) {
|
|
22418
22431
|
|
22419
22432
|
var ChapterProblemSolvingResultsDialog = function ChapterProblemSolvingResultsDialog(_ref) {
|
22420
22433
|
var t = _ref.t,
|
22434
|
+
role = _ref.role,
|
22421
22435
|
onClose = _ref.onClose,
|
22422
22436
|
open = _ref.open,
|
22423
22437
|
history = _ref.history,
|
22424
22438
|
chapterId = _ref.chapterId,
|
22425
|
-
studentId = _ref.studentId
|
22439
|
+
studentId = _ref.studentId,
|
22440
|
+
onViewQA = _ref.onViewQA;
|
22426
22441
|
return React__default.createElement(Dialog, {
|
22427
22442
|
onClose: onClose,
|
22428
22443
|
open: open,
|
@@ -22454,11 +22469,13 @@ var ChapterProblemSolvingResultsDialog = function ChapterProblemSolvingResultsDi
|
|
22454
22469
|
}, React__default.createElement(Stack, {
|
22455
22470
|
mx: "24px"
|
22456
22471
|
}, React__default.createElement(ExamResultV2, {
|
22472
|
+
role: role,
|
22457
22473
|
history: history,
|
22458
22474
|
searchParams: "",
|
22459
22475
|
chapterId: chapterId,
|
22460
22476
|
studentId: studentId,
|
22461
|
-
isMyStoryStudent: false
|
22477
|
+
isMyStoryStudent: false,
|
22478
|
+
onViewQA: onViewQA
|
22462
22479
|
})), React__default.createElement(DialogActions, {
|
22463
22480
|
sx: {
|
22464
22481
|
display: "flex",
|
@@ -22734,7 +22751,8 @@ var TextbookDrawer = function TextbookDrawer(_ref) {
|
|
22734
22751
|
studentId = _ref.studentId,
|
22735
22752
|
anchor = _ref.anchor,
|
22736
22753
|
navigate = _ref.navigate,
|
22737
|
-
onClose = _ref.onClose
|
22754
|
+
onClose = _ref.onClose,
|
22755
|
+
onViewQA = _ref.onViewQA;
|
22738
22756
|
var isStudent = role === Role.Student;
|
22739
22757
|
var _useTextbookDrawer = useTextbookDrawer({
|
22740
22758
|
isStudent: isStudent,
|
@@ -23008,12 +23026,14 @@ var TextbookDrawer = function TextbookDrawer(_ref) {
|
|
23008
23026
|
});
|
23009
23027
|
}))))), React__default.createElement(ChapterProblemSolvingResultsDialog, {
|
23010
23028
|
t: t,
|
23029
|
+
role: role,
|
23011
23030
|
theme: theme,
|
23012
23031
|
history: history,
|
23013
23032
|
chapterId: chapterSelected === null || chapterSelected === void 0 ? void 0 : chapterSelected.id,
|
23014
23033
|
studentId: studentId,
|
23015
23034
|
open: isOpenChapterDialog,
|
23016
|
-
onClose: handleCloseChapterDialog
|
23035
|
+
onClose: handleCloseChapterDialog,
|
23036
|
+
onViewQA: onViewQA
|
23017
23037
|
}), React__default.createElement(StartPageDialog, {
|
23018
23038
|
options: startPageOptions,
|
23019
23039
|
t: t,
|
@@ -23362,6 +23382,7 @@ var TextbookInfoDrawer = function TextbookInfoDrawer(_ref) {
|
|
23362
23382
|
var Textbook = function Textbook(_ref) {
|
23363
23383
|
var _textbook$createdBy, _textbook$createdBy2;
|
23364
23384
|
var t = _ref.t,
|
23385
|
+
role = _ref.role,
|
23365
23386
|
user = _ref.user,
|
23366
23387
|
theme = _ref.theme,
|
23367
23388
|
textbook = _ref.textbook,
|
@@ -23370,7 +23391,8 @@ var Textbook = function Textbook(_ref) {
|
|
23370
23391
|
navigate = _ref.navigate,
|
23371
23392
|
preparedType = _ref.preparedType,
|
23372
23393
|
preparedFilterType = _ref.preparedFilterType,
|
23373
|
-
getTextbookList = _ref.getTextbookList
|
23394
|
+
getTextbookList = _ref.getTextbookList,
|
23395
|
+
onViewQA = _ref.onViewQA;
|
23374
23396
|
var isTabletUp = useMediaQuery(theme.breakpoints.up("lg"));
|
23375
23397
|
var _useDrawer = useDrawer(),
|
23376
23398
|
isOpenDialog = _useDrawer.isOpenDialog,
|
@@ -23510,15 +23532,16 @@ var Textbook = function Textbook(_ref) {
|
|
23510
23532
|
}, React__default.createElement(IoTrash, {
|
23511
23533
|
size: "20px"
|
23512
23534
|
}), t("delete_test"))), isOpenDialog && React__default.createElement(TextbookDrawer, {
|
23513
|
-
role:
|
23535
|
+
role: role,
|
23514
23536
|
isOpen: isOpenDialog,
|
23515
23537
|
onClose: handleCloseDialog,
|
23516
23538
|
textbookId: textbook.id,
|
23517
23539
|
navigate: navigate,
|
23518
23540
|
width: !isTabletUp ? "100dvw" : "50dvw",
|
23519
|
-
anchor: "right"
|
23541
|
+
anchor: "right",
|
23542
|
+
onViewQA: onViewQA
|
23520
23543
|
}), openDetailDialog && React__default.createElement(TextbookInfoDrawer, {
|
23521
|
-
role:
|
23544
|
+
role: role,
|
23522
23545
|
user: user,
|
23523
23546
|
isSuperAdmin: isSuperAdmin,
|
23524
23547
|
isOpen: openDetailDialog,
|
@@ -23537,9 +23560,11 @@ var Textbook = function Textbook(_ref) {
|
|
23537
23560
|
};
|
23538
23561
|
|
23539
23562
|
var PreparedItem = function PreparedItem(_ref) {
|
23540
|
-
var
|
23563
|
+
var role = _ref.role,
|
23564
|
+
preparedType = _ref.preparedType,
|
23541
23565
|
preparedFilterType = _ref.preparedFilterType,
|
23542
|
-
navigate = _ref.navigate
|
23566
|
+
navigate = _ref.navigate,
|
23567
|
+
onViewQA = _ref.onViewQA;
|
23543
23568
|
var _useExpand = useExpand(),
|
23544
23569
|
expanded = _useExpand.expanded,
|
23545
23570
|
handleCloseExpand = _useExpand.handleCloseExpand,
|
@@ -24067,6 +24092,7 @@ var PreparedItem = function PreparedItem(_ref) {
|
|
24067
24092
|
}, textbookList === null || textbookList === void 0 ? void 0 : textbookList.map(function (textbook) {
|
24068
24093
|
return React__default.createElement(Textbook, {
|
24069
24094
|
t: t,
|
24095
|
+
role: role,
|
24070
24096
|
user: user,
|
24071
24097
|
theme: theme,
|
24072
24098
|
textbook: textbook,
|
@@ -24075,7 +24101,8 @@ var PreparedItem = function PreparedItem(_ref) {
|
|
24075
24101
|
navigate: navigate,
|
24076
24102
|
getTextbookList: getTextbookList,
|
24077
24103
|
preparedType: preparedType,
|
24078
|
-
preparedFilterType: preparedFilterType
|
24104
|
+
preparedFilterType: preparedFilterType,
|
24105
|
+
onViewQA: onViewQA
|
24079
24106
|
});
|
24080
24107
|
}), React__default.createElement(Stack, {
|
24081
24108
|
display: "flex",
|
@@ -24090,10 +24117,12 @@ var PreparedItem = function PreparedItem(_ref) {
|
|
24090
24117
|
};
|
24091
24118
|
|
24092
24119
|
var DrawerTextbookResultTab = function DrawerTextbookResultTab(_ref) {
|
24093
|
-
var
|
24120
|
+
var role = _ref.role,
|
24121
|
+
history = _ref.history,
|
24094
24122
|
studentId = _ref.studentId,
|
24095
24123
|
selectedTab = _ref.selectedTab,
|
24096
|
-
value = _ref.value
|
24124
|
+
value = _ref.value,
|
24125
|
+
onViewQA = _ref.onViewQA;
|
24097
24126
|
var _useVirtualList = useVirtualList(studentId, TEXTBOOK_DEFAULT_FILTER, getTextbookListApi),
|
24098
24127
|
items = _useVirtualList.items,
|
24099
24128
|
selectedItem = _useVirtualList.selectedItem,
|
@@ -24128,14 +24157,15 @@ var DrawerTextbookResultTab = function DrawerTextbookResultTab(_ref) {
|
|
24128
24157
|
onItemClick: handleChangeSelectedItem,
|
24129
24158
|
listHeight: 0
|
24130
24159
|
})), React__default.createElement(TextbookDrawer, {
|
24131
|
-
role:
|
24160
|
+
role: role,
|
24132
24161
|
navigate: history,
|
24133
24162
|
isOpen: !!selectedItem,
|
24134
24163
|
width: "80dvw",
|
24135
24164
|
onClose: handleCloseDrawer,
|
24136
24165
|
textbookId: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.id,
|
24137
24166
|
studentId: studentId,
|
24138
|
-
anchor: "right"
|
24167
|
+
anchor: "right",
|
24168
|
+
onViewQA: onViewQA
|
24139
24169
|
}));
|
24140
24170
|
};
|
24141
24171
|
|
@@ -24767,7 +24797,9 @@ var StudentInfoDrawer = function StudentInfoDrawer(props) {
|
|
24767
24797
|
studentId = props.studentId,
|
24768
24798
|
anchor = props.anchor,
|
24769
24799
|
width = props.width,
|
24770
|
-
history = props.history
|
24800
|
+
history = props.history,
|
24801
|
+
role = props.role,
|
24802
|
+
onViewQA = props.onViewQA;
|
24771
24803
|
var _useStudentInfoDrawer = useStudentInfoDrawer(props),
|
24772
24804
|
loadedTabs = _useStudentInfoDrawer.loadedTabs,
|
24773
24805
|
isLoading = _useStudentInfoDrawer.isLoading,
|
@@ -24811,21 +24843,26 @@ var StudentInfoDrawer = function StudentInfoDrawer(props) {
|
|
24811
24843
|
data: studentInfo,
|
24812
24844
|
isLoading: isLoading
|
24813
24845
|
}), loadedTabs[DrawerTab.Exam] && React__default.createElement(DrawerExamResultTab, {
|
24846
|
+
role: role,
|
24814
24847
|
value: DrawerTab.Exam,
|
24815
24848
|
selectedTab: selectedTab,
|
24816
24849
|
studentId: studentId,
|
24817
24850
|
student: studentInfo,
|
24818
|
-
history: history
|
24851
|
+
history: history,
|
24852
|
+
onViewQA: onViewQA
|
24819
24853
|
}), loadedTabs[DrawerTab.Textbook] && React__default.createElement(DrawerTextbookResultTab, {
|
24854
|
+
role: role,
|
24820
24855
|
value: DrawerTab.Textbook,
|
24821
24856
|
selectedTab: selectedTab,
|
24822
24857
|
studentId: studentId,
|
24823
|
-
history: history
|
24858
|
+
history: history,
|
24859
|
+
onViewQA: onViewQA
|
24824
24860
|
}))));
|
24825
24861
|
};
|
24826
24862
|
|
24827
24863
|
var StudentList = function StudentList(_ref) {
|
24828
|
-
var
|
24864
|
+
var role = _ref.role,
|
24865
|
+
history = _ref.history,
|
24829
24866
|
onAdd = _ref.onAdd,
|
24830
24867
|
paging = _ref.paging,
|
24831
24868
|
classList = _ref.classList,
|
@@ -24839,7 +24876,8 @@ var StudentList = function StudentList(_ref) {
|
|
24839
24876
|
handleSort = _ref.handleSort,
|
24840
24877
|
handleChangeSearchText = _ref.handleChangeSearchText,
|
24841
24878
|
handleChangePage = _ref.handleChangePage,
|
24842
|
-
handleRemoveStudentFromClass = _ref.handleRemoveStudentFromClass
|
24879
|
+
handleRemoveStudentFromClass = _ref.handleRemoveStudentFromClass,
|
24880
|
+
onViewQA = _ref.onViewQA;
|
24843
24881
|
var _useState = useState(),
|
24844
24882
|
selectedViewStudent = _useState[0],
|
24845
24883
|
setSelectedViewStudent = _useState[1];
|
@@ -24969,13 +25007,15 @@ var StudentList = function StudentList(_ref) {
|
|
24969
25007
|
onConfirm: handleRemoveStudentFromClass,
|
24970
25008
|
isDelete: true
|
24971
25009
|
}), React__default.createElement(StudentInfoDrawer, {
|
25010
|
+
role: role,
|
24972
25011
|
open: !!selectedViewStudent,
|
24973
25012
|
studentId: (selectedViewStudent === null || selectedViewStudent === void 0 ? void 0 : selectedViewStudent.studentId) || 0,
|
24974
25013
|
onClose: handleCloseStudentInfo,
|
24975
25014
|
anchor: "right",
|
24976
25015
|
width: "80dvw",
|
24977
25016
|
history: history,
|
24978
|
-
inert: true
|
25017
|
+
inert: true,
|
25018
|
+
onViewQA: onViewQA
|
24979
25019
|
}));
|
24980
25020
|
};
|
24981
25021
|
|
@@ -26553,7 +26593,8 @@ var ClassDetail = function ClassDetail(_ref) {
|
|
26553
26593
|
var id = _ref.id,
|
26554
26594
|
history = _ref.history,
|
26555
26595
|
classListUrl = _ref.classListUrl,
|
26556
|
-
role = _ref.role
|
26596
|
+
role = _ref.role,
|
26597
|
+
onViewQA = _ref.onViewQA;
|
26557
26598
|
var classId = !id || Number.isNaN(+id) ? 0 : +id;
|
26558
26599
|
var _useClassDetail = useClassDetail({
|
26559
26600
|
history: history,
|
@@ -26668,10 +26709,13 @@ var ClassDetail = function ClassDetail(_ref) {
|
|
26668
26709
|
value: selected,
|
26669
26710
|
index: TabList$1[1].value
|
26670
26711
|
}, !!classId && selected === TabList$1[1].value && React__default.createElement(StudentList, Object.assign({
|
26712
|
+
role: role,
|
26671
26713
|
disabled: isDisabled && !isTeacher,
|
26672
26714
|
onAdd: handleOpenSelectDialog,
|
26673
26715
|
history: history
|
26674
|
-
}, studentListProps
|
26716
|
+
}, studentListProps, {
|
26717
|
+
onViewQA: onViewQA
|
26718
|
+
}))), React__default.createElement(CustomTabPanel, {
|
26675
26719
|
value: selected,
|
26676
26720
|
index: TabList$1[2].value
|
26677
26721
|
}, !!classId && selected === TabList$1[2].value && React__default.createElement(TeacherList, Object.assign({
|
@@ -28404,7 +28448,8 @@ var UserRow = function UserRow(_ref) {
|
|
28404
28448
|
|
28405
28449
|
var UserList = function UserList(_ref) {
|
28406
28450
|
var role = _ref.role,
|
28407
|
-
history = _ref.history
|
28451
|
+
history = _ref.history,
|
28452
|
+
onViewQA = _ref.onViewQA;
|
28408
28453
|
var isSuperAdmin = useSelector(function (state) {
|
28409
28454
|
var _state$common, _state$common$user;
|
28410
28455
|
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : (_state$common$user = _state$common.user) === null || _state$common$user === void 0 ? void 0 : _state$common$user.isSuperAdmin;
|
@@ -28610,12 +28655,14 @@ var UserList = function UserList(_ref) {
|
|
28610
28655
|
onClose: handleCloseRecentUserActionDialog,
|
28611
28656
|
recentUserActions: recentUserActions
|
28612
28657
|
}), React__default.createElement(StudentInfoDrawer, {
|
28658
|
+
role: role,
|
28613
28659
|
open: !!selectedStudent,
|
28614
28660
|
studentId: selectedStudent === null || selectedStudent === void 0 ? void 0 : selectedStudent.id,
|
28615
28661
|
width: "80dvw",
|
28616
28662
|
anchor: "right",
|
28617
28663
|
onClose: handleCloseStudentInfo,
|
28618
28664
|
history: history,
|
28665
|
+
onViewQA: onViewQA,
|
28619
28666
|
inert: true
|
28620
28667
|
}), (isAdmin || isSuperAdmin) && React__default.createElement(DeleteUserCsvDialog, {
|
28621
28668
|
open: isOpenDeleteUserCsv,
|