mario-teacher-student-client 2.1.72-beta → 2.1.73-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.
|
@@ -38,7 +38,7 @@ declare const useConductOne: () => {
|
|
|
38
38
|
setLearningSupportCategoryId: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
39
39
|
isConversation: boolean;
|
|
40
40
|
setConversation: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
41
|
-
onChangeConversationSession: (
|
|
41
|
+
onChangeConversationSession: () => Promise<void>;
|
|
42
42
|
isConversationOneToOne: any;
|
|
43
43
|
};
|
|
44
44
|
export default useConductOne;
|
package/dist/index.js
CHANGED
|
@@ -8197,7 +8197,7 @@ var ConductTop = function ConductTop(_ref) {
|
|
|
8197
8197
|
listItem: [].concat(listConduct, [objectRequest], sessionResultTitle)
|
|
8198
8198
|
}))), isTeacher && isConversationOneToOne && React__default.createElement("div", {
|
|
8199
8199
|
className: "" + styles$4["title-right"]
|
|
8200
|
-
}, React__default.createElement(core.FormControlLabel, {
|
|
8200
|
+
}, !isResultSession ? React__default.createElement(core.FormControlLabel, {
|
|
8201
8201
|
control: React__default.createElement(core.Switch, {
|
|
8202
8202
|
checked: isConversation,
|
|
8203
8203
|
color: "primary",
|
|
@@ -8207,6 +8207,13 @@ var ConductTop = function ConductTop(_ref) {
|
|
|
8207
8207
|
}),
|
|
8208
8208
|
label: "1-1 Conversation",
|
|
8209
8209
|
labelPlacement: "start"
|
|
8210
|
+
}) : React__default.createElement(core.FormControlLabel, {
|
|
8211
|
+
control: React__default.createElement(core.Switch, {
|
|
8212
|
+
checked: isConversation,
|
|
8213
|
+
color: "primary"
|
|
8214
|
+
}),
|
|
8215
|
+
label: "1-1 Conversation",
|
|
8216
|
+
labelPlacement: "start"
|
|
8210
8217
|
})));
|
|
8211
8218
|
};
|
|
8212
8219
|
|
|
@@ -9171,7 +9178,7 @@ var useConductOne = function useConductOne() {
|
|
|
9171
9178
|
minute = _useCountDown.minute,
|
|
9172
9179
|
second = _useCountDown.second;
|
|
9173
9180
|
|
|
9174
|
-
var getDataQuestion =
|
|
9181
|
+
var getDataQuestion = function getDataQuestion() {
|
|
9175
9182
|
try {
|
|
9176
9183
|
var _temp6 = function _temp6() {
|
|
9177
9184
|
dispatch(marioCore.setLoading(false));
|
|
@@ -9229,12 +9236,7 @@ var useConductOne = function useConductOne() {
|
|
|
9229
9236
|
}
|
|
9230
9237
|
|
|
9231
9238
|
setInformationUser(body);
|
|
9232
|
-
|
|
9233
|
-
if (isConversationOneToOne) {
|
|
9234
|
-
setConversation(res.data.isOneToOneConversation);
|
|
9235
|
-
} else {
|
|
9236
|
-
setConversation(true);
|
|
9237
|
-
}
|
|
9239
|
+
setConversation(res.data.isOneToOneConversation);
|
|
9238
9240
|
}
|
|
9239
9241
|
|
|
9240
9242
|
if (isStudent && (_res$data10 = res.data) !== null && _res$data10 !== void 0 && (_res$data10$studentRe = _res$data10.studentResult) !== null && _res$data10$studentRe !== void 0 && _res$data10$studentRe.isDone) {
|
|
@@ -9288,7 +9290,8 @@ var useConductOne = function useConductOne() {
|
|
|
9288
9290
|
} catch (e) {
|
|
9289
9291
|
return Promise.reject(e);
|
|
9290
9292
|
}
|
|
9291
|
-
}
|
|
9293
|
+
};
|
|
9294
|
+
|
|
9292
9295
|
var updateQuestionAnswer = React.useCallback(function (questionId, text) {
|
|
9293
9296
|
if (!localStorage.getItem(rollBackQuestionList)) {
|
|
9294
9297
|
localStorage.setItem(rollBackQuestionList, JSON.stringify(listQuestionStudents));
|
|
@@ -9479,10 +9482,9 @@ var useConductOne = function useConductOne() {
|
|
|
9479
9482
|
return Promise.reject(e);
|
|
9480
9483
|
}
|
|
9481
9484
|
}, [sessionId]);
|
|
9482
|
-
var onChangeConversationSession = React.useCallback(function (
|
|
9485
|
+
var onChangeConversationSession = React.useCallback(function () {
|
|
9483
9486
|
try {
|
|
9484
9487
|
var _temp23 = _catch(function () {
|
|
9485
|
-
setConversation(isOneToOneConversation);
|
|
9486
9488
|
return Promise.resolve(toggleConversationQuestionSession(parseInt(sessionId))).then(function () {});
|
|
9487
9489
|
}, function (err) {
|
|
9488
9490
|
var _err$response6, _err$response6$data;
|
|
@@ -12016,6 +12018,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
12016
12018
|
learningSupportCategoryId = _useConductOne.learningSupportCategoryId,
|
|
12017
12019
|
setLearningSupportCategoryId = _useConductOne.setLearningSupportCategoryId,
|
|
12018
12020
|
isConversation = _useConductOne.isConversation,
|
|
12021
|
+
setConversation = _useConductOne.setConversation,
|
|
12019
12022
|
onChangeConversationSession = _useConductOne.onChangeConversationSession,
|
|
12020
12023
|
isConversationOneToOne = _useConductOne.isConversationOneToOne;
|
|
12021
12024
|
|
|
@@ -12125,6 +12128,11 @@ var ConductIndex = function ConductIndex() {
|
|
|
12125
12128
|
(_refConduct$current = refConduct.current) === null || _refConduct$current === void 0 ? void 0 : _refConduct$current.openModal();
|
|
12126
12129
|
};
|
|
12127
12130
|
|
|
12131
|
+
var onChangeOneToOneConversation = function onChangeOneToOneConversation(isConversation) {
|
|
12132
|
+
setConversation(isConversation);
|
|
12133
|
+
onChangeConversationSession();
|
|
12134
|
+
};
|
|
12135
|
+
|
|
12128
12136
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
12129
12137
|
|
|
12130
12138
|
var _useState3 = React.useState(false),
|
|
@@ -12179,7 +12187,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
12179
12187
|
gradeLevel: informationUser.gradeLevel,
|
|
12180
12188
|
clickOpenProfileDialog: clickOpenProfileDialog,
|
|
12181
12189
|
isConversation: isConversation,
|
|
12182
|
-
onChangeConversationSession:
|
|
12190
|
+
onChangeConversationSession: onChangeOneToOneConversation,
|
|
12183
12191
|
isTeacher: isTeacher,
|
|
12184
12192
|
isUserChangeSession: isUserChangeSession,
|
|
12185
12193
|
isConversationOneToOne: isConversationOneToOne
|
|
@@ -12210,7 +12218,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
12210
12218
|
return onChangeQuestionAnswer(questionSummarize[0].id, event.target.value);
|
|
12211
12219
|
},
|
|
12212
12220
|
value: (_questionSummarize$4 = questionSummarize[0]) === null || _questionSummarize$4 === void 0 ? void 0 : _questionSummarize$4.answer
|
|
12213
|
-
})))), isConversation && React__default.createElement(
|
|
12221
|
+
})))), isConversation && React__default.createElement("div", {
|
|
12214
12222
|
className: styles$4["block-question"]
|
|
12215
12223
|
}, React__default.createElement("div", {
|
|
12216
12224
|
className: styles$4["title-strategories"]
|
|
@@ -12270,7 +12278,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
12270
12278
|
overflow: "hidden"
|
|
12271
12279
|
},
|
|
12272
12280
|
disabled: true
|
|
12273
|
-
}))))), isTeacher && React__default.createElement("div", {
|
|
12281
|
+
}))))), isTeacher && isConversation && React__default.createElement("div", {
|
|
12274
12282
|
className: styles$4["block-question"]
|
|
12275
12283
|
}, React__default.createElement("div", {
|
|
12276
12284
|
className: styles$4["title-strategories"]
|
|
@@ -12295,7 +12303,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
12295
12303
|
valueText: listQuestionTeachers === null || listQuestionTeachers === void 0 ? void 0 : listQuestionTeachers.answer,
|
|
12296
12304
|
isUserChangeSession: false,
|
|
12297
12305
|
isTeacher: isTeacher
|
|
12298
|
-
}))
|
|
12306
|
+
})), React__default.createElement("div", {
|
|
12299
12307
|
className: styles$4["block-question"]
|
|
12300
12308
|
}, isUserChangeSession ? React__default.createElement(QuestionConduct, {
|
|
12301
12309
|
questionName: "How are you feeling about each area right now?",
|
|
@@ -41945,14 +41953,6 @@ var UpdateStudentProfile = function UpdateStudentProfile() {
|
|
|
41945
41953
|
});
|
|
41946
41954
|
}
|
|
41947
41955
|
|
|
41948
|
-
if (!!errors.firstNameParent1 && touched.firstNameParent1 || !!errors.lastNameParent1 && touched.lastNameParent1) {
|
|
41949
|
-
handleOpenParentModal1();
|
|
41950
|
-
}
|
|
41951
|
-
|
|
41952
|
-
if (!!errors.firstNameParent2 && touched.firstNameParent2 || !!errors.lastNameParent2 && touched.lastNameParent2) {
|
|
41953
|
-
handleOpenParentModal2();
|
|
41954
|
-
}
|
|
41955
|
-
|
|
41956
41956
|
var existParentProfile1 = !!(values !== null && values !== void 0 && values.secondaryFirstName) || !!(values !== null && values !== void 0 && values.secondaryLastName) || !!(values !== null && values !== void 0 && values.secondaryEmail) || !!(values !== null && values !== void 0 && values.secondaryPhone);
|
|
41957
41957
|
var existParentProfile2 = !!(values !== null && values !== void 0 && values.thirdFirstName) || !!(values !== null && values !== void 0 && values.thirdLastName) || !!(values !== null && values !== void 0 && values.thirdEmail) || !!(values !== null && values !== void 0 && values.thirdPhone);
|
|
41958
41958
|
return React__default.createElement(core.Grid, {
|