mario-teacher-student-client 2.2.3-beta → 2.2.4-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/components/Input/TextFieldComponent.d.ts +2 -1
- package/dist/components/QuestionTypes/QuestionComponent.d.ts +1 -0
- package/dist/containers/ExternalSurvey/components/QuestionConduct.d.ts +1 -0
- package/dist/containers/Surveys/apiClient/surveyService.d.ts +1 -0
- package/dist/containers/Surveys/hook/useListSurvey.d.ts +1 -0
- package/dist/index.js +74 -80
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +74 -80
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ interface Props {
|
|
|
6
6
|
isPageResult?: boolean;
|
|
7
7
|
isPageSessionResult?: boolean;
|
|
8
8
|
isUserChangeSession?: boolean;
|
|
9
|
+
isMultiline?: boolean;
|
|
9
10
|
}
|
|
10
|
-
declare const TextFieldComponent: ({ questionId, valueText, onChangeQuestionAnswer, isPageResult, isPageSessionResult, isUserChangeSession }: Props) => JSX.Element;
|
|
11
|
+
declare const TextFieldComponent: ({ questionId, valueText, onChangeQuestionAnswer, isPageResult, isPageSessionResult, isUserChangeSession, isMultiline }: Props) => JSX.Element;
|
|
11
12
|
export default TextFieldComponent;
|
|
@@ -10,3 +10,4 @@ export declare const getDetailSurvey: (surveyId: number) => Promise<import("axio
|
|
|
10
10
|
export declare const getSurveyCountStudent: () => Promise<import("axios").AxiosResponse<any>>;
|
|
11
11
|
export declare const getAllEduTeacher: () => Promise<import("axios").AxiosResponse<any>>;
|
|
12
12
|
export declare const shareSurvey: (data: any) => void;
|
|
13
|
+
export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -7,5 +7,6 @@ declare const useListSurvey: () => {
|
|
|
7
7
|
setListSurvey: import("react").Dispatch<import("react").SetStateAction<SURVEY_RESPONSE | undefined>>;
|
|
8
8
|
isTeacher: any;
|
|
9
9
|
listTotal: TOTAL_TYPE[];
|
|
10
|
+
handleUpdateFavorite: (surveyId: number, isFavorite: boolean) => Promise<void>;
|
|
10
11
|
};
|
|
11
12
|
export default useListSurvey;
|
package/dist/index.js
CHANGED
|
@@ -8409,7 +8409,8 @@ var TextFieldComponent = function TextFieldComponent(_ref) {
|
|
|
8409
8409
|
onChangeQuestionAnswer = _ref.onChangeQuestionAnswer,
|
|
8410
8410
|
isPageResult = _ref.isPageResult,
|
|
8411
8411
|
isPageSessionResult = _ref.isPageSessionResult,
|
|
8412
|
-
isUserChangeSession = _ref.isUserChangeSession
|
|
8412
|
+
isUserChangeSession = _ref.isUserChangeSession,
|
|
8413
|
+
isMultiline = _ref.isMultiline;
|
|
8413
8414
|
var classes = useStyles$5();
|
|
8414
8415
|
var currentUser = reactRedux.useSelector(function (state) {
|
|
8415
8416
|
var _state$common;
|
|
@@ -8443,6 +8444,7 @@ var TextFieldComponent = function TextFieldComponent(_ref) {
|
|
|
8443
8444
|
className: classes.root
|
|
8444
8445
|
}, React__default.createElement(core.Box, null, React__default.createElement(core.OutlinedInput, {
|
|
8445
8446
|
fullWidth: true,
|
|
8447
|
+
multiline: !!isMultiline,
|
|
8446
8448
|
value: inputValue,
|
|
8447
8449
|
onChange: function onChange(event) {
|
|
8448
8450
|
return onChangeQuestionAnswer === null || onChangeQuestionAnswer === void 0 ? void 0 : onChangeQuestionAnswer(questionId, event.target.value);
|
|
@@ -8793,7 +8795,8 @@ var QuestionComponent = function QuestionComponent(_ref) {
|
|
|
8793
8795
|
isRedToRed = _ref$isRedToRed === void 0 ? false : _ref$isRedToRed,
|
|
8794
8796
|
isUserChangeSession = _ref.isUserChangeSession,
|
|
8795
8797
|
_ref$questionAnswer = _ref.questionAnswer,
|
|
8796
|
-
questionAnswer = _ref$questionAnswer === void 0 ? [] : _ref$questionAnswer
|
|
8798
|
+
questionAnswer = _ref$questionAnswer === void 0 ? [] : _ref$questionAnswer,
|
|
8799
|
+
isMultiline = _ref.isMultiline;
|
|
8797
8800
|
var defaultFontSmall = 12;
|
|
8798
8801
|
var defaultFontLarge = 20;
|
|
8799
8802
|
var defaultFont = reactRedux.useSelector(function (state) {
|
|
@@ -8833,6 +8836,7 @@ var QuestionComponent = function QuestionComponent(_ref) {
|
|
|
8833
8836
|
|
|
8834
8837
|
case QuestionType.TextInput:
|
|
8835
8838
|
return React__default.createElement(TextFieldComponent, {
|
|
8839
|
+
isMultiline: isMultiline,
|
|
8836
8840
|
questionId: questionId,
|
|
8837
8841
|
valueText: valueText,
|
|
8838
8842
|
onChangeQuestionAnswer: onChangeQuestionAnswer,
|
|
@@ -13611,6 +13615,7 @@ var SurveyIndex = function SurveyIndex() {
|
|
|
13611
13615
|
borderRadius: "4px"
|
|
13612
13616
|
}
|
|
13613
13617
|
}, React__default.createElement(TextFieldComponent, {
|
|
13618
|
+
isMultiline: true,
|
|
13614
13619
|
questionId: item.id,
|
|
13615
13620
|
valueText: item === null || item === void 0 ? void 0 : item.answer,
|
|
13616
13621
|
isPageResult: false,
|
|
@@ -61944,6 +61949,9 @@ var getAllEduTeacher$2 = function getAllEduTeacher() {
|
|
|
61944
61949
|
var shareSurvey$1 = function shareSurvey(data) {
|
|
61945
61950
|
marioCore.api.post(EXTERNAL_SURVEY$1 + "/share-survey", data);
|
|
61946
61951
|
};
|
|
61952
|
+
var updateSurvey$1 = function updateSurvey(surveyId, model) {
|
|
61953
|
+
return marioCore.api.put(SURVEY_API + "/setting-survey/" + surveyId, model);
|
|
61954
|
+
};
|
|
61947
61955
|
|
|
61948
61956
|
var STEP_MODEL = ["Select student", "Create a survey", "Review"];
|
|
61949
61957
|
var lableStep = function lableStep(activeStep) {
|
|
@@ -62110,6 +62118,28 @@ var useListSurvey = function useListSurvey() {
|
|
|
62110
62118
|
return Promise.reject(e);
|
|
62111
62119
|
}
|
|
62112
62120
|
}, []);
|
|
62121
|
+
var handleUpdateFavorite = React.useCallback(function (surveyId, isFavorite) {
|
|
62122
|
+
try {
|
|
62123
|
+
var _temp10 = _catch(function () {
|
|
62124
|
+
return Promise.resolve(updateSurvey$1(surveyId, {
|
|
62125
|
+
isFavorite: isFavorite
|
|
62126
|
+
})).then(function () {
|
|
62127
|
+
getListSurvey();
|
|
62128
|
+
});
|
|
62129
|
+
}, function (err) {
|
|
62130
|
+
var _err$response3, _err$response3$data;
|
|
62131
|
+
|
|
62132
|
+
dispatch(marioCore.setAlert({
|
|
62133
|
+
type: "danger",
|
|
62134
|
+
message: ((_err$response3 = err.response) === null || _err$response3 === void 0 ? void 0 : (_err$response3$data = _err$response3.data) === null || _err$response3$data === void 0 ? void 0 : _err$response3$data.title) || err.message
|
|
62135
|
+
}));
|
|
62136
|
+
});
|
|
62137
|
+
|
|
62138
|
+
return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(function () {}) : void 0);
|
|
62139
|
+
} catch (e) {
|
|
62140
|
+
return Promise.reject(e);
|
|
62141
|
+
}
|
|
62142
|
+
}, [filters]);
|
|
62113
62143
|
React.useEffect(function () {
|
|
62114
62144
|
getListSurvey();
|
|
62115
62145
|
}, [filters]);
|
|
@@ -62123,7 +62153,8 @@ var useListSurvey = function useListSurvey() {
|
|
|
62123
62153
|
listSurvey: listSurvey,
|
|
62124
62154
|
setListSurvey: setListSurvey,
|
|
62125
62155
|
isTeacher: isTeacher,
|
|
62126
|
-
listTotal: listTotal
|
|
62156
|
+
listTotal: listTotal,
|
|
62157
|
+
handleUpdateFavorite: handleUpdateFavorite
|
|
62127
62158
|
};
|
|
62128
62159
|
};
|
|
62129
62160
|
|
|
@@ -62182,7 +62213,8 @@ var ListSurveys = function ListSurveys() {
|
|
|
62182
62213
|
changeFilters = _useListSurvey.changeFilters,
|
|
62183
62214
|
listSurvey = _useListSurvey.listSurvey,
|
|
62184
62215
|
isTeacher = _useListSurvey.isTeacher,
|
|
62185
|
-
listTotal = _useListSurvey.listTotal
|
|
62216
|
+
listTotal = _useListSurvey.listTotal,
|
|
62217
|
+
handleUpdateFavorite = _useListSurvey.handleUpdateFavorite;
|
|
62186
62218
|
|
|
62187
62219
|
var handleChangeStartDate = function handleChangeStartDate(date) {
|
|
62188
62220
|
changeFilters(_extends({}, filters, {
|
|
@@ -62437,15 +62469,16 @@ var ListSurveys = function ListSurveys() {
|
|
|
62437
62469
|
}, React__default.createElement(core.Typography, {
|
|
62438
62470
|
className: styles$O["table-status"] + " " + styles$O[e.status]
|
|
62439
62471
|
}, e.status)), React__default.createElement(core.TableCell, {
|
|
62440
|
-
align: "center"
|
|
62441
|
-
style: {
|
|
62442
|
-
fontWeight: 700,
|
|
62443
|
-
fontSize: 14,
|
|
62444
|
-
textTransform: "uppercase"
|
|
62445
|
-
}
|
|
62472
|
+
align: "center"
|
|
62446
62473
|
}, e.isFavorite ? React__default.createElement(StarIcon, {
|
|
62474
|
+
onClick: function onClick() {
|
|
62475
|
+
return handleUpdateFavorite(e.id, !e.isFavorite);
|
|
62476
|
+
},
|
|
62447
62477
|
className: "" + styles$O["checked-favorite"]
|
|
62448
62478
|
}) : React__default.createElement(StarBorderIcon, {
|
|
62479
|
+
onClick: function onClick() {
|
|
62480
|
+
return handleUpdateFavorite(e.id, !e.isFavorite);
|
|
62481
|
+
},
|
|
62449
62482
|
className: "" + styles$O["checked-favorite"]
|
|
62450
62483
|
})), React__default.createElement(core.TableCell, {
|
|
62451
62484
|
component: "th",
|
|
@@ -62941,14 +62974,9 @@ var tablePendingSurvey = [{
|
|
|
62941
62974
|
align: "left"
|
|
62942
62975
|
}, {
|
|
62943
62976
|
name: "Day left",
|
|
62944
|
-
tableWidth:
|
|
62977
|
+
tableWidth: 15,
|
|
62945
62978
|
sortName: "DayLeft",
|
|
62946
62979
|
align: "center"
|
|
62947
|
-
}, {
|
|
62948
|
-
name: "Favorite",
|
|
62949
|
-
tableWidth: 10,
|
|
62950
|
-
sortName: "Favorite",
|
|
62951
|
-
align: "center"
|
|
62952
62980
|
}, {
|
|
62953
62981
|
name: "",
|
|
62954
62982
|
tableWidth: 5,
|
|
@@ -62967,17 +62995,12 @@ var tableCompleteSurvey = [{
|
|
|
62967
62995
|
align: "left"
|
|
62968
62996
|
}, {
|
|
62969
62997
|
name: "Flag",
|
|
62970
|
-
tableWidth:
|
|
62998
|
+
tableWidth: 20,
|
|
62971
62999
|
sortName: null,
|
|
62972
63000
|
align: "center"
|
|
62973
|
-
}, {
|
|
62974
|
-
name: "Favorite",
|
|
62975
|
-
tableWidth: 10,
|
|
62976
|
-
sortName: "Favorite",
|
|
62977
|
-
align: "center"
|
|
62978
63001
|
}, {
|
|
62979
63002
|
name: "",
|
|
62980
|
-
tableWidth:
|
|
63003
|
+
tableWidth: 10,
|
|
62981
63004
|
sortName: null,
|
|
62982
63005
|
align: "center"
|
|
62983
63006
|
}];
|
|
@@ -62993,7 +63016,7 @@ var tableActionNeedSurvey = [{
|
|
|
62993
63016
|
align: "center"
|
|
62994
63017
|
}, {
|
|
62995
63018
|
name: "Session",
|
|
62996
|
-
tableWidth:
|
|
63019
|
+
tableWidth: 20,
|
|
62997
63020
|
sortName: "session",
|
|
62998
63021
|
align: "left"
|
|
62999
63022
|
}, {
|
|
@@ -63001,14 +63024,9 @@ var tableActionNeedSurvey = [{
|
|
|
63001
63024
|
tableWidth: 20,
|
|
63002
63025
|
sortName: "Date",
|
|
63003
63026
|
align: "left"
|
|
63004
|
-
}, {
|
|
63005
|
-
name: "Favorite",
|
|
63006
|
-
tableWidth: 10,
|
|
63007
|
-
sortName: "Favorite",
|
|
63008
|
-
align: "center"
|
|
63009
63027
|
}, {
|
|
63010
63028
|
name: "",
|
|
63011
|
-
tableWidth:
|
|
63029
|
+
tableWidth: 10,
|
|
63012
63030
|
sortName: null,
|
|
63013
63031
|
align: "center"
|
|
63014
63032
|
}];
|
|
@@ -63162,21 +63180,6 @@ var PendingSurvey = function PendingSurvey() {
|
|
|
63162
63180
|
}, React__default.createElement(core.Typography, {
|
|
63163
63181
|
className: styles$O["row-status"] + " " + styles$O[dayLeftCellBgColor(row.dayLeft)]
|
|
63164
63182
|
}, row.dayLeft)), React__default.createElement(core.TableCell, {
|
|
63165
|
-
align: "center",
|
|
63166
|
-
component: "th",
|
|
63167
|
-
scope: "row",
|
|
63168
|
-
height: 80,
|
|
63169
|
-
className: "" + styles$O["table-class-type"],
|
|
63170
|
-
style: {
|
|
63171
|
-
fontWeight: 700,
|
|
63172
|
-
fontSize: 14,
|
|
63173
|
-
textTransform: "uppercase"
|
|
63174
|
-
}
|
|
63175
|
-
}, row.isFavorite ? React__default.createElement(StarIcon, {
|
|
63176
|
-
className: "" + styles$O["checked-favorite"]
|
|
63177
|
-
}) : React__default.createElement(StarBorderIcon, {
|
|
63178
|
-
className: "" + styles$O["checked-favorite"]
|
|
63179
|
-
})), React__default.createElement(core.TableCell, {
|
|
63180
63183
|
align: "center",
|
|
63181
63184
|
component: "th",
|
|
63182
63185
|
scope: "row",
|
|
@@ -63288,16 +63291,6 @@ var RepliedSurvey = function RepliedSurvey() {
|
|
|
63288
63291
|
scope: "row",
|
|
63289
63292
|
height: 80,
|
|
63290
63293
|
className: "" + styles$O["table-class-type"]
|
|
63291
|
-
}, row.favorite ? React__default.createElement(StarIcon, {
|
|
63292
|
-
className: "" + styles$O["checked-favorite"]
|
|
63293
|
-
}) : React__default.createElement(StarBorderIcon, {
|
|
63294
|
-
className: "" + styles$O["checked-favorite"]
|
|
63295
|
-
})), React__default.createElement(core.TableCell, {
|
|
63296
|
-
align: "center",
|
|
63297
|
-
component: "th",
|
|
63298
|
-
scope: "row",
|
|
63299
|
-
height: 80,
|
|
63300
|
-
className: "" + styles$O["table-class-type"]
|
|
63301
63294
|
}, React__default.createElement(core.Button, {
|
|
63302
63295
|
variant: "contained",
|
|
63303
63296
|
className: "" + styles$O["btn-open"],
|
|
@@ -63396,16 +63389,6 @@ var ActionNeededSurvey = function ActionNeededSurvey() {
|
|
|
63396
63389
|
scope: "row",
|
|
63397
63390
|
height: 80,
|
|
63398
63391
|
className: "" + styles$O["table-class-type"]
|
|
63399
|
-
}, row.isFavorite ? React__default.createElement(StarIcon, {
|
|
63400
|
-
className: "" + styles$O["checked-favorite"]
|
|
63401
|
-
}) : React__default.createElement(StarBorderIcon, {
|
|
63402
|
-
className: "" + styles$O["checked-favorite"]
|
|
63403
|
-
})), React__default.createElement(core.TableCell, {
|
|
63404
|
-
align: "center",
|
|
63405
|
-
component: "th",
|
|
63406
|
-
scope: "row",
|
|
63407
|
-
height: 80,
|
|
63408
|
-
className: "" + styles$O["table-class-type"]
|
|
63409
63392
|
}, React__default.createElement(core.Button, {
|
|
63410
63393
|
variant: "contained",
|
|
63411
63394
|
className: "" + styles$O["btn-open"],
|
|
@@ -66193,7 +66176,8 @@ var QuestionConduct$2 = function QuestionConduct(_ref) {
|
|
|
66193
66176
|
isPageResult = _ref.isPageResult,
|
|
66194
66177
|
isPageSessionResult = _ref.isPageSessionResult,
|
|
66195
66178
|
avatar = _ref.avatar,
|
|
66196
|
-
isUserChangeSession = _ref.isUserChangeSession
|
|
66179
|
+
isUserChangeSession = _ref.isUserChangeSession,
|
|
66180
|
+
isMultiline = _ref.isMultiline;
|
|
66197
66181
|
return React__default.createElement("div", {
|
|
66198
66182
|
className: styles$R["box-question"]
|
|
66199
66183
|
}, !!questionName && React__default.createElement("h2", {
|
|
@@ -66206,6 +66190,7 @@ var QuestionConduct$2 = function QuestionConduct(_ref) {
|
|
|
66206
66190
|
}, React__default.createElement(QuestionComponent, {
|
|
66207
66191
|
questionId: item.id,
|
|
66208
66192
|
avatar: avatar,
|
|
66193
|
+
isMultiline: isMultiline,
|
|
66209
66194
|
questionItemName: item.text,
|
|
66210
66195
|
minText: item === null || item === void 0 ? void 0 : item.fromLabel,
|
|
66211
66196
|
maxText: item === null || item === void 0 ? void 0 : item.toLabel,
|
|
@@ -66319,7 +66304,8 @@ var useExternalSurvey$1 = function useExternalSurvey() {
|
|
|
66319
66304
|
deadline: res.data.deadline,
|
|
66320
66305
|
teacherName: res.data.teacherName,
|
|
66321
66306
|
teacherProfileImage: res.data.teacherProfileImage,
|
|
66322
|
-
dayLeft:
|
|
66307
|
+
dayLeft: res.data.dayLeft,
|
|
66308
|
+
startTime: res.data.startTime
|
|
66323
66309
|
};
|
|
66324
66310
|
setIsDone(res.data.isDone);
|
|
66325
66311
|
setInformationUser(body);
|
|
@@ -66493,8 +66479,6 @@ var SurveyTop$1 = function SurveyTop(_ref) {
|
|
|
66493
66479
|
};
|
|
66494
66480
|
|
|
66495
66481
|
var ExternalSurvey = function ExternalSurvey() {
|
|
66496
|
-
var _questionSummarize$an;
|
|
66497
|
-
|
|
66498
66482
|
var _useExternalSurvey = useExternalSurvey$1(),
|
|
66499
66483
|
listQuestionStudents = _useExternalSurvey.listQuestionStudents,
|
|
66500
66484
|
updateQuestionAnswer = _useExternalSurvey.updateQuestionAnswer,
|
|
@@ -66550,8 +66534,8 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66550
66534
|
setOpenModalSession(true);
|
|
66551
66535
|
};
|
|
66552
66536
|
|
|
66553
|
-
var
|
|
66554
|
-
setOpenModalSession(
|
|
66537
|
+
var handleToggleModalSession = function handleToggleModalSession() {
|
|
66538
|
+
setOpenModalSession(!openModalSession);
|
|
66555
66539
|
};
|
|
66556
66540
|
|
|
66557
66541
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
@@ -66560,7 +66544,7 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66560
66544
|
}, React__default.createElement(CustomHeaderComponent, {
|
|
66561
66545
|
title: !isDone ? "External survey" : "Completed",
|
|
66562
66546
|
contentButton: !isDone ? "Done" : "",
|
|
66563
|
-
handleChangePage:
|
|
66547
|
+
handleChangePage: handleToggleModalSession,
|
|
66564
66548
|
iconButton: React__default.createElement(SendIcon, {
|
|
66565
66549
|
className: "" + styles$R["icon-done-header"]
|
|
66566
66550
|
})
|
|
@@ -66571,7 +66555,8 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66571
66555
|
name: informationUser.teacherName,
|
|
66572
66556
|
imageUrl: informationUser.teacherProfileImage,
|
|
66573
66557
|
isResultSurvey: false,
|
|
66574
|
-
dayLeft: informationUser.dayLeft
|
|
66558
|
+
dayLeft: informationUser.dayLeft,
|
|
66559
|
+
startTime: informationUser.startTime
|
|
66575
66560
|
}), React__default.createElement("div", {
|
|
66576
66561
|
className: styles$R["block-question"] + " mt-4"
|
|
66577
66562
|
}, React__default.createElement("div", {
|
|
@@ -66601,9 +66586,7 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66601
66586
|
dangerouslySetInnerHTML: {
|
|
66602
66587
|
__html: !!questionSummarize ? questionSummarize.text : ""
|
|
66603
66588
|
}
|
|
66604
|
-
}), React__default.createElement("div", {
|
|
66605
|
-
className: "" + (((_questionSummarize$an = questionSummarize.answer) === null || _questionSummarize$an === void 0 ? void 0 : _questionSummarize$an.length) > 0 && styles$R["box-talk"])
|
|
66606
|
-
}, React__default.createElement("div", {
|
|
66589
|
+
}), React__default.createElement("div", null, React__default.createElement("div", {
|
|
66607
66590
|
style: {
|
|
66608
66591
|
borderRadius: "4px"
|
|
66609
66592
|
}
|
|
@@ -66631,16 +66614,17 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66631
66614
|
}, React__default.createElement(core.Grid, {
|
|
66632
66615
|
xs: 12
|
|
66633
66616
|
}, !isDone ? React__default.createElement(QuestionConduct$2, {
|
|
66617
|
+
isMultiline: true,
|
|
66634
66618
|
avatar: informationUser.studentProfileImage,
|
|
66635
66619
|
questionName: record.templateName,
|
|
66636
66620
|
questionList: record.questions,
|
|
66637
66621
|
onChangeQuestionAnswer: _onChangeQuestionAnswer,
|
|
66638
66622
|
isUserChangeSession: true
|
|
66639
66623
|
}) : React__default.createElement(QuestionConduct$2, {
|
|
66624
|
+
isMultiline: true,
|
|
66640
66625
|
avatar: informationUser.studentProfileImage,
|
|
66641
66626
|
questionName: record.templateName,
|
|
66642
|
-
questionList: record.questions
|
|
66643
|
-
isPageSessionResult: true
|
|
66627
|
+
questionList: record.questions
|
|
66644
66628
|
}))));
|
|
66645
66629
|
}), React__default.createElement("div", {
|
|
66646
66630
|
className: styles$R["talk-conduct"]
|
|
@@ -66656,6 +66640,7 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66656
66640
|
borderRadius: "4px"
|
|
66657
66641
|
}
|
|
66658
66642
|
}, React__default.createElement(TextFieldComponent, {
|
|
66643
|
+
isMultiline: true,
|
|
66659
66644
|
questionId: item.id,
|
|
66660
66645
|
valueText: item === null || item === void 0 ? void 0 : item.answer,
|
|
66661
66646
|
isPageResult: false,
|
|
@@ -66678,7 +66663,7 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66678
66663
|
className: "fas fa-check-circle"
|
|
66679
66664
|
}))), React__default.createElement(core.Dialog, {
|
|
66680
66665
|
open: openModalSession,
|
|
66681
|
-
onClose:
|
|
66666
|
+
onClose: handleToggleModalSession,
|
|
66682
66667
|
className: styles$R["modal-finished"]
|
|
66683
66668
|
}, React__default.createElement(core.DialogTitle, {
|
|
66684
66669
|
id: "alert-dialog-title",
|
|
@@ -66690,12 +66675,21 @@ var ExternalSurvey = function ExternalSurvey() {
|
|
|
66690
66675
|
}, React__default.createElement("h4", {
|
|
66691
66676
|
className: styles$R["tite-body"]
|
|
66692
66677
|
}, checkQuestionAnswer ? "Make sure with your teacher that you talked about everything you needed." : "There are several questions you have not answered yet. Are you sure to complete?"))), React__default.createElement(core.DialogActions, null, React__default.createElement(core.Button, {
|
|
66693
|
-
onClick:
|
|
66678
|
+
onClick: handleToggleModalSession,
|
|
66694
66679
|
color: "primary",
|
|
66695
66680
|
className: styles$R["btn-cancel"]
|
|
66696
66681
|
}, "Cancel"), React__default.createElement(core.Button, {
|
|
66697
66682
|
color: "primary",
|
|
66698
66683
|
autoFocus: true,
|
|
66684
|
+
onClick: function () {
|
|
66685
|
+
try {
|
|
66686
|
+
return Promise.resolve(finishSurvey()).then(function () {
|
|
66687
|
+
handleToggleModalSession();
|
|
66688
|
+
});
|
|
66689
|
+
} catch (e) {
|
|
66690
|
+
return Promise.reject(e);
|
|
66691
|
+
}
|
|
66692
|
+
},
|
|
66699
66693
|
className: styles$R["btn-submit"]
|
|
66700
66694
|
}, React__default.createElement("img", {
|
|
66701
66695
|
src: "/images/send-mess.png"
|