mario-teacher-student-client 3.0.1-admin → 3.0.3-admin

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.
Files changed (81) hide show
  1. package/dist/components/Button/SwitchComponent.d.ts +9 -0
  2. package/dist/components/Tabs/CustomTabNote.d.ts +3 -0
  3. package/dist/containers/ConductSurvey/components/ConductTop/ConductTop.d.ts +17 -0
  4. package/dist/containers/ConductSurvey/hooks/useConductOne.d.ts +21 -0
  5. package/dist/containers/ConductSurvey/hooks/useCountDown.d.ts +8 -0
  6. package/dist/containers/ConductSurvey/hooks/useIsMounted.d.ts +2 -0
  7. package/dist/containers/ConductSurvey/views/SessionResultComponent.d.ts +3 -0
  8. package/dist/containers/ExternalSurvey/components/IBLearnerComponent.d.ts +12 -0
  9. package/dist/containers/ExternalSurvey/hooks/useConductSurvey.d.ts +21 -0
  10. package/dist/containers/GoalPage/apiClient/apiGoals.d.ts +6 -0
  11. package/dist/containers/GoalPage/components/CardGoalItem.d.ts +3 -0
  12. package/dist/containers/GoalPage/components/CardItem/CardGoalItem.d.ts +4 -0
  13. package/dist/containers/GoalPage/components/CardItem/StatusTargetComponent.d.ts +4 -0
  14. package/dist/containers/GoalPage/components/CardItem/TargetItem.d.ts +4 -0
  15. package/dist/containers/GoalPage/components/CreateGoalModel.d.ts +4 -0
  16. package/dist/containers/GoalPage/components/CustomInputDatePicker.d.ts +4 -0
  17. package/dist/containers/GoalPage/components/FilterGoalPage.d.ts +3 -0
  18. package/dist/containers/GoalPage/components/Steps/BaseLine.d.ts +4 -0
  19. package/dist/containers/GoalPage/components/Steps/ChooseArea.d.ts +4 -0
  20. package/dist/containers/GoalPage/components/Steps/DetailFormCreate.d.ts +4 -0
  21. package/dist/containers/GoalPage/components/Steps/ModelPickTarget.d.ts +4 -0
  22. package/dist/containers/GoalPage/components/Steps/ModelSelectCategory.d.ts +4 -0
  23. package/dist/containers/GoalPage/constants/constants.d.ts +205 -0
  24. package/dist/containers/GoalPage/hook/useGoals.d.ts +19 -0
  25. package/dist/containers/GoalPage/services/goalService.d.ts +3 -0
  26. package/dist/containers/GoalPage/styles/makeStyles.d.ts +1 -0
  27. package/dist/containers/GoalPage/types/types.d.ts +71 -0
  28. package/dist/containers/GoalPage/views/MyGoals.d.ts +3 -0
  29. package/dist/containers/Home/components/mutipleSelectBox/mutipleSelectBox.d.ts +8 -0
  30. package/dist/containers/LearningStrategies/hook/useEditaLearningStrategies.d.ts +5 -0
  31. package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +3 -0
  32. package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +3 -0
  33. package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -0
  34. package/dist/containers/MyStudent/components/ClassReflectionTable.d.ts +3 -0
  35. package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/{conference.d.ts → Conference.d.ts} +0 -0
  36. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useChartConference.d.ts +19 -0
  37. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/ConferenceChart.d.ts +1 -0
  38. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/ConferenceChart.d.ts +6 -0
  39. package/dist/containers/MySurvey/styles/makeStyles.d.ts +2 -0
  40. package/dist/containers/MySurvey/views/MySurvey.d.ts +3 -0
  41. package/dist/containers/ScaffoldingExample/components/OneToOne.d.ts +3 -0
  42. package/dist/containers/ScaffoldingExample/components/PicChat.d.ts +2 -0
  43. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenFour.d.ts +8 -0
  44. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenOne.d.ts +8 -0
  45. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenThree.d.ts +8 -0
  46. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenTwo.d.ts +8 -0
  47. package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingNote.d.ts +10 -0
  48. package/dist/containers/ScaffoldingExample/components/ScreenTab.d.ts +3 -0
  49. package/dist/containers/ScaffoldingExample/components/SliderRange.d.ts +2 -0
  50. package/dist/containers/ScaffoldingExample/components/TeacherView/PrivateNotes/view/PrivateNote.d.ts +3 -0
  51. package/dist/containers/ScaffoldingExample/components/TeacherView/StudentNotes/view/StudentNote.d.ts +3 -0
  52. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/hooks/useTeacherNotes.d.ts +23 -0
  53. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/services/index.d.ts +12 -0
  54. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingFirstScreen.d.ts +12 -0
  55. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingQuestionAndAnswer.d.ts +12 -0
  56. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingSecondScreen.d.ts +3 -0
  57. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/TeacherScreen.d.ts +7 -0
  58. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherTab.d.ts +8 -0
  59. package/dist/containers/SettingPageV1/contants/contants.d.ts +19 -0
  60. package/dist/containers/SettingPageV1/contants/type.d.ts +17 -0
  61. package/dist/containers/Surveys/apiClient/survey.d.ts +2 -0
  62. package/dist/containers/Surveys/components/ChartOverview/BarChart.d.ts +9 -0
  63. package/dist/containers/Surveys/components/SurveyDetail.d.ts +3 -0
  64. package/dist/containers/Surveys/components/SurveyStudentCompleted.d.ts +3 -0
  65. package/dist/containers/Surveys/components/SurveyStudentMissed.d.ts +3 -0
  66. package/dist/containers/Surveys/components/SurveyStudentPending.d.ts +3 -0
  67. package/dist/containers/Surveys/hook/useActionNeededSurvey.d.ts +9 -0
  68. package/dist/containers/Surveys/hook/useAllSurvey.d.ts +10 -0
  69. package/dist/containers/Surveys/hook/usePendingSurvey.d.ts +10 -0
  70. package/dist/containers/Surveys/hook/useRepliedSurvey.d.ts +9 -0
  71. package/dist/containers/Surveys/views/ViewSurveyStudent.d.ts +3 -0
  72. package/dist/hooks/useUploadFile.d.ts +4 -0
  73. package/dist/index.css +1 -1
  74. package/dist/index.d.ts +1 -2
  75. package/dist/index.js +80 -146
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.modern.js +81 -146
  78. package/dist/index.modern.js.map +1 -1
  79. package/dist/services/File.d.ts +1 -0
  80. package/dist/utils/function.d.ts +1 -0
  81. package/package.json +107 -107
@@ -12917,6 +12917,7 @@ var ConductIndex = function ConductIndex() {
12917
12917
  listQuestionStudents = _useConductOne.listQuestionStudents,
12918
12918
  listQuestionTeachers = _useConductOne.listQuestionTeachers,
12919
12919
  listLearningStrategory = _useConductOne.listLearningStrategory,
12920
+ listLearningStrategoryCategory = _useConductOne.listLearningStrategoryCategory,
12920
12921
  updateQuestionAnswer = _useConductOne.updateQuestionAnswer,
12921
12922
  isUnlocked = _useConductOne.isUnlocked,
12922
12923
  setIsUnclocked = _useConductOne.setIsUnclocked,
@@ -12938,6 +12939,7 @@ var ConductIndex = function ConductIndex() {
12938
12939
  isUserChangeSession = _useConductOne.isUserChangeSession,
12939
12940
  numberOfEdit = _useConductOne.numberOfEdit,
12940
12941
  learningSupportCategoryId = _useConductOne.learningSupportCategoryId,
12942
+ setLearningSupportCategoryId = _useConductOne.setLearningSupportCategoryId,
12941
12943
  isConversation = _useConductOne.isConversation,
12942
12944
  setConversation = _useConductOne.setConversation,
12943
12945
  onChangeConversationSession = _useConductOne.onChangeConversationSession,
@@ -12988,6 +12990,11 @@ var ConductIndex = function ConductIndex() {
12988
12990
  record = _useAudioRecorder.record,
12989
12991
  stop = _useAudioRecorder.stop;
12990
12992
 
12993
+ var onChangeSessionCategory = function onChangeSessionCategory(event) {
12994
+ var value = event.target.value;
12995
+ setLearningSupportCategoryId(parseInt(value));
12996
+ };
12997
+
12991
12998
  var onChangeAfterSession = function onChangeAfterSession(checkedAfter) {
12992
12999
  setIsUnclocked(checkedAfter);
12993
13000
  onChangeToogleAfterSession();
@@ -13070,6 +13077,19 @@ var ConductIndex = function ConductIndex() {
13070
13077
  setOpenScaffolding(false);
13071
13078
  };
13072
13079
 
13080
+ var compare = function compare(a, b) {
13081
+ if (a.name < b.name) {
13082
+ return -1;
13083
+ }
13084
+
13085
+ if (a.name > b.name) {
13086
+ return 1;
13087
+ }
13088
+
13089
+ return 0;
13090
+ };
13091
+
13092
+ var listSorted = !!listLearningStrategoryCategory && listLearningStrategoryCategory.sort(compare);
13073
13093
  return React__default.createElement("div", {
13074
13094
  className: styles$5["page-conduct"] + " " + styles$5[classFontSize]
13075
13095
  }, React__default.createElement(HeaderComponent, {
@@ -13149,6 +13169,66 @@ var ConductIndex = function ConductIndex() {
13149
13169
  className: styles$5["block-question"]
13150
13170
  }, React__default.createElement("div", {
13151
13171
  className: styles$5["title-strategories"]
13172
+ }, React__default.createElement("div", {
13173
+ className: styles$5["strategories-title"]
13174
+ }, React__default.createElement("h2", {
13175
+ className: styles$5["font-title"]
13176
+ }, "Session Type"))), React__default.createElement("div", {
13177
+ className: styles$5["block-session-type"]
13178
+ }, React__default.createElement("div", {
13179
+ className: styles$5["session-text"]
13180
+ }, React__default.createElement("h2", null, "What is this session type?")), React__default.createElement("div", {
13181
+ className: styles$5["session-select"]
13182
+ }, React__default.createElement(FormControl, {
13183
+ variant: "outlined",
13184
+ style: {
13185
+ minWidth: 300
13186
+ }
13187
+ }, React__default.createElement(InputLabel, {
13188
+ htmlFor: "outlined-age-native-simple"
13189
+ }, "Session type"), isUserChangeSession ? React__default.createElement(Select, {
13190
+ "native": true,
13191
+ value: learningSupportCategoryId,
13192
+ onChange: function onChange(event) {
13193
+ return onChangeSessionCategory(event);
13194
+ },
13195
+ label: "Session type",
13196
+ inputProps: {
13197
+ name: "age",
13198
+ id: "outlined-age-native-simple"
13199
+ },
13200
+ style: {
13201
+ borderRadius: "12px",
13202
+ overflow: "hidden"
13203
+ }
13204
+ }, React__default.createElement("option", {
13205
+ "aria-label": "None",
13206
+ value: ""
13207
+ }), listSorted === null || listSorted === void 0 ? void 0 : listSorted.map(function (item) {
13208
+ return React__default.createElement("option", {
13209
+ value: item.id,
13210
+ style: {
13211
+ color: "black"
13212
+ },
13213
+ key: item.id
13214
+ }, item.name);
13215
+ })) : React__default.createElement(Select, {
13216
+ "native": true,
13217
+ value: setLearningSupportCategoryId,
13218
+ label: "Session type",
13219
+ inputProps: {
13220
+ name: "age",
13221
+ id: "outlined-age-native-simple"
13222
+ },
13223
+ style: {
13224
+ borderRadius: "12px",
13225
+ overflow: "hidden"
13226
+ },
13227
+ disabled: true
13228
+ }))))), isTeacher && isConversation && React__default.createElement("div", {
13229
+ className: styles$5["block-question"]
13230
+ }, React__default.createElement("div", {
13231
+ className: styles$5["title-strategories"]
13152
13232
  }, React__default.createElement("div", {
13153
13233
  className: styles$5["strategories-image"]
13154
13234
  }, React__default.createElement("img", {
@@ -47959,151 +48039,6 @@ var ChangePassword = function ChangePassword() {
47959
48039
  });
47960
48040
  };
47961
48041
 
47962
- var useStageDebug = function useStageDebug(userId, year, month) {
47963
- var dispatch = useDispatch();
47964
- var history = useHistory();
47965
-
47966
- var _useState = useState(),
47967
- dataEvent = _useState[0],
47968
- setDataEvent = _useState[1];
47969
-
47970
- var getDataEvent = useCallback(function () {
47971
- try {
47972
- var _temp2 = _catch(function () {
47973
- return Promise.resolve(getEventCalendar(userId, year, month)).then(function (res) {
47974
- setDataEvent(res.data);
47975
- });
47976
- }, function (err) {
47977
- var _err$response, _err$response$data;
47978
-
47979
- dispatch(setAlert({
47980
- type: "danger",
47981
- message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message
47982
- }));
47983
- });
47984
-
47985
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
47986
- } catch (e) {
47987
- return Promise.reject(e);
47988
- }
47989
- }, []);
47990
-
47991
- var initPage = function initPage() {
47992
- try {
47993
- var _temp5 = function _temp5() {
47994
- return Promise.resolve(getDataEvent()).then(function () {});
47995
- };
47996
-
47997
- var _temp6 = function () {
47998
- if (!!userId) return Promise.resolve(checkAuthentication()).then(function () {});
47999
- }();
48000
-
48001
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
48002
- } catch (e) {
48003
- return Promise.reject(e);
48004
- }
48005
- };
48006
-
48007
- var checkAuthentication = function checkAuthentication() {
48008
- try {
48009
- var _temp8 = _catch(function () {
48010
- return Promise.resolve(firstCheckToken()).then(function (tokenStatus) {
48011
- tokenStatus ? loadInfo() : resetAuth();
48012
- });
48013
- }, function () {
48014
- resetAuth();
48015
- });
48016
-
48017
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
48018
- } catch (e) {
48019
- return Promise.reject(e);
48020
- }
48021
- };
48022
-
48023
- var loadInfo = function loadInfo() {
48024
- try {
48025
- var _temp12 = _catch(function () {
48026
- return Promise.resolve(getInfo()).then(function (info) {
48027
- var _info$data;
48028
-
48029
- function _temp10() {
48030
- dispatch(setUser(userData));
48031
- }
48032
-
48033
- if (!info) {
48034
- resetAuth();
48035
- }
48036
-
48037
- var roles = (_info$data = info.data) === null || _info$data === void 0 ? void 0 : _info$data.roles;
48038
- var userData = info.data;
48039
- var isTeacher = roles.includes("Teacher");
48040
- var isStudent = roles.includes("Student");
48041
-
48042
- var _temp9 = function () {
48043
- if (isTeacher || isStudent) {
48044
- return Promise.resolve(getStudentSimpleProfile()).then(function (profileRes) {
48045
- var _profileRes$data7;
48046
-
48047
- if (isStudent) {
48048
- var _profileRes$data, _profileRes$data2, _profileRes$data3, _profileRes$data4, _profileRes$data5;
48049
-
48050
- userData.studentId = (_profileRes$data = profileRes.data) === null || _profileRes$data === void 0 ? void 0 : _profileRes$data.id;
48051
- userData.mainTeacherId = (_profileRes$data2 = profileRes.data) === null || _profileRes$data2 === void 0 ? void 0 : _profileRes$data2.mainTeacherId;
48052
- userData.mainTeacherName = (_profileRes$data3 = profileRes.data) === null || _profileRes$data3 === void 0 ? void 0 : _profileRes$data3.mainTeacherName;
48053
- userData.mainTeacherUserId = (_profileRes$data4 = profileRes.data) === null || _profileRes$data4 === void 0 ? void 0 : _profileRes$data4.mainTeacherUserId;
48054
- userData.mainTeacherProfileImageFileName = (_profileRes$data5 = profileRes.data) === null || _profileRes$data5 === void 0 ? void 0 : _profileRes$data5.mainTeacherProfileImageFileName;
48055
- } else {
48056
- var _profileRes$data6;
48057
-
48058
- userData.teacherId = (_profileRes$data6 = profileRes.data) === null || _profileRes$data6 === void 0 ? void 0 : _profileRes$data6.id;
48059
- }
48060
-
48061
- userData.name = (_profileRes$data7 = profileRes.data) === null || _profileRes$data7 === void 0 ? void 0 : _profileRes$data7.name;
48062
- });
48063
- }
48064
- }();
48065
-
48066
- return _temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9);
48067
- });
48068
- }, function () {
48069
- resetAuth();
48070
- });
48071
-
48072
- return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(function () {}) : void 0);
48073
- } catch (e) {
48074
- return Promise.reject(e);
48075
- }
48076
- };
48077
-
48078
- var resetAuth = function resetAuth() {
48079
- localStorage.removeItem(ACCESS_TOKEN);
48080
- history.push("/");
48081
- };
48082
-
48083
- useEffect(function () {
48084
- initPage();
48085
- }, []);
48086
- return {
48087
- dataEvent: dataEvent
48088
- };
48089
- };
48090
-
48091
- var StageDebugPage = function StageDebugPage() {
48092
- var currentYear = parseInt(moment().format("YYYY"));
48093
- var currentMonth = parseInt(moment().format("MM"));
48094
- var user = useSelector(function (state) {
48095
- return state.common.user;
48096
- });
48097
-
48098
- var _useStageDebug = useStageDebug(user, currentYear, currentMonth),
48099
- dataEvent = _useStageDebug.dataEvent;
48100
-
48101
- return React__default.createElement(CurrentFullCalendar, {
48102
- eventList: dataEvent === null || dataEvent === void 0 ? void 0 : dataEvent.calendarEvents,
48103
- isTeacher: true
48104
- });
48105
- };
48106
-
48107
48042
  var LearningPlan$1 = function LearningPlan() {
48108
48043
  var _useState = useState(''),
48109
48044
  value = _useState[0],
@@ -71681,5 +71616,5 @@ var SurveyOverview = function SurveyOverview() {
71681
71616
  }));
71682
71617
  };
71683
71618
 
71684
- export { AboutMyLearningList, AccomondationList, ActionPoint, ActivityCircleLearning, AddClassReflection, AddClassSchedule, AddNote, BookSession, BookSessionConferences, ChangePassword, ConductIndex, ConferenceRubric, CreateStudent, CreateSurvey, DetailStrengthsAndChallenges, EditNote, EduTeacherViewDetail, ExternalReflection, ExternalSurvey, FriendCircleLearning, GoalDetail, GoalList, HomePage, LearningPlan$1 as LearningPlan, LearningStrategies, LearningStrategiesSave, ListActivityLearning, ListFriendCircle, ListPersonalinterrest, ListStudent, ListSurveys, MainLayout, MyClassReflection, MyClassSchedule, MyConferences, MyOneToOne, MyProfile, MyStudent, NewGoal, NewLearningPlan, Note, ParentPage, PersonalLearningGoal, PlpPage, PreviewSurvey, PrivacyPolicy, ResultConferenceRubric, ResultReflection, SessionDetail, SessionResultComponent, SettingPage, StageDebugPage, StartReflection, StudentDetail, StudentReflection, SurveyDetail, SurveyIndex, SurveyOverview, SurveyResult, SurveyStudentList, TeacherClassReflection, TeachingStrategiesAdd, ThankYouCard, ThankYouError, ThingTeachersCanHelpList as ThinkTeacherCanHelpList, TrainingLink, UiCompletedOneToOne, UpdateStudentProfile, ViewItemNote };
71619
+ export { AboutMyLearningList, AccomondationList, ActionPoint, ActivityCircleLearning, AddClassReflection, AddClassSchedule, AddNote, BookSession, BookSessionConferences, ChangePassword, ConductIndex, ConferenceRubric, CreateStudent, CreateSurvey, DetailStrengthsAndChallenges, EditNote, EduTeacherViewDetail, ExternalReflection, ExternalSurvey, FriendCircleLearning, GoalDetail, GoalList, HomePage, LearningPlan$1 as LearningPlan, LearningStrategies, LearningStrategiesSave, ListActivityLearning, ListFriendCircle, ListPersonalinterrest, ListStudent, ListSurveys, MainLayout, MyClassReflection, MyClassSchedule, MyConferences, MyOneToOne, MyProfile, MyStudent, NewGoal, NewLearningPlan, Note, ParentPage, PersonalLearningGoal, PlpPage, PreviewSurvey, PrivacyPolicy, ResultConferenceRubric, ResultReflection, SessionDetail, SessionResultComponent, SettingPage, StartReflection, StudentDetail, StudentReflection, SurveyDetail, SurveyIndex, SurveyOverview, SurveyResult, SurveyStudentList, TeacherClassReflection, TeachingStrategiesAdd, ThankYouCard, ThankYouError, ThingTeachersCanHelpList as ThinkTeacherCanHelpList, TrainingLink, UiCompletedOneToOne, UpdateStudentProfile, ViewItemNote };
71685
71620
  //# sourceMappingURL=index.modern.js.map