mario-teacher-student-client 2.2.24-beta → 2.2.26-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/containers/GoalPage/components/Steps/ModelPickTarget.d.ts +4 -0
- package/dist/containers/GoalPage/styles/makeStyles.d.ts +1 -0
- package/dist/containers/GoalPage/types/types.d.ts +14 -0
- package/dist/containers/SettingPageV1/hook/useSettingPage.d.ts +2 -2
- package/dist/index.css +13 -3
- package/dist/index.js +170 -171
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +171 -172
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStylesSelect: (props?: any) => Record<"formControl" | "selectEmpty", string>;
|
|
@@ -7,4 +7,18 @@ export interface ParamTypes {
|
|
|
7
7
|
export interface IPropModelCreate {
|
|
8
8
|
open: boolean;
|
|
9
9
|
onToggleModel: Function;
|
|
10
|
+
activeStep: number;
|
|
11
|
+
handleChangeStep: Function;
|
|
12
|
+
}
|
|
13
|
+
export interface ISelectCategory {
|
|
14
|
+
onChangeStep: Function;
|
|
15
|
+
}
|
|
16
|
+
export interface IChooseArea {
|
|
17
|
+
onChangeStep: Function;
|
|
18
|
+
}
|
|
19
|
+
export interface IDetailFormCreate {
|
|
20
|
+
onChangeStep: Function;
|
|
21
|
+
}
|
|
22
|
+
export interface IPickTarget {
|
|
23
|
+
onChangeStep: Function;
|
|
10
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ISetting } from "../contants/type";
|
|
1
2
|
declare const useSettingPage: () => {
|
|
2
|
-
|
|
3
|
-
dataGet: any;
|
|
3
|
+
dataSwitchNotification: ISetting;
|
|
4
4
|
handleChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
5
|
saveSetting: () => Promise<void>;
|
|
6
6
|
classFontSize: string;
|
package/dist/index.css
CHANGED
|
@@ -1070,6 +1070,14 @@ p._1YLGi {
|
|
|
1070
1070
|
font-size: 20px;
|
|
1071
1071
|
padding: 10px 20px; }
|
|
1072
1072
|
|
|
1073
|
+
._2Nd8Z {
|
|
1074
|
+
align-items: center; }
|
|
1075
|
+
._2Nd8Z ._XYA0v {
|
|
1076
|
+
margin-bottom: 0;
|
|
1077
|
+
margin-right: 25px; }
|
|
1078
|
+
._2Nd8Z ._88rqO {
|
|
1079
|
+
font-size: 17px; }
|
|
1080
|
+
|
|
1073
1081
|
@font-face {
|
|
1074
1082
|
font-family: "Lato-Regular";
|
|
1075
1083
|
src: url("/fonts/Lato-Regular.ttf");
|
|
@@ -13897,7 +13905,7 @@ h2._1KpSK {
|
|
|
13897
13905
|
margin-left: 10px; }
|
|
13898
13906
|
|
|
13899
13907
|
._2Uw02 {
|
|
13900
|
-
padding: 24px
|
|
13908
|
+
padding: 24px;
|
|
13901
13909
|
display: flex;
|
|
13902
13910
|
border-bottom: 1px solid #e8e8e8;
|
|
13903
13911
|
justify-content: space-between; }
|
|
@@ -13905,7 +13913,7 @@ h2._1KpSK {
|
|
|
13905
13913
|
border-radius: 12px;
|
|
13906
13914
|
background: #006E60;
|
|
13907
13915
|
color: white;
|
|
13908
|
-
padding:
|
|
13916
|
+
padding: 10px 24px;
|
|
13909
13917
|
font-size: 1.3rem;
|
|
13910
13918
|
display: block; }
|
|
13911
13919
|
@media only screen and (max-width: 600px) {
|
|
@@ -13913,6 +13921,8 @@ h2._1KpSK {
|
|
|
13913
13921
|
display: none; } }
|
|
13914
13922
|
._2Uw02 ._1Dw3g ._2sosp {
|
|
13915
13923
|
margin-left: 12px; }
|
|
13924
|
+
._2Uw02 ._1Dw3g:hover {
|
|
13925
|
+
background: #3b8d82; }
|
|
13916
13926
|
._2Uw02 ._1fWN6 {
|
|
13917
13927
|
font-size: 1.7rem;
|
|
13918
13928
|
font-family: 'Montserrat-Bold' !important;
|
|
@@ -13931,7 +13941,7 @@ h2._1KpSK {
|
|
|
13931
13941
|
font-size: 1.1rem; }
|
|
13932
13942
|
|
|
13933
13943
|
._3vPJ6 {
|
|
13934
|
-
padding: 24px
|
|
13944
|
+
padding: 24px;
|
|
13935
13945
|
font-size: 1.1rem;
|
|
13936
13946
|
font-weight: 400; }
|
|
13937
13947
|
._3vPJ6 ._2Yxck, ._3vPJ6 ._1lVI8 {
|
package/dist/index.js
CHANGED
|
@@ -429,7 +429,7 @@ var getStudentSimpleProfile = function getStudentSimpleProfile() {
|
|
|
429
429
|
return marioCore.api.get("" + STUDENT_PROFILE);
|
|
430
430
|
};
|
|
431
431
|
|
|
432
|
-
var styles = {"reset-the-content":"_1zJw3","btn-duplicate-survey":"_11N79","menu-item-strategories":"_1oZYB","time-Date":"_1Q7w6","time-Hours-Minute":"_3ZcQD","arrow-icon":"_2NJ7E","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","box-title-question":"_1DlZO","tooltip-question":"_29Hwk","font-description":"_2pyf5","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","block-right":"_2CN0T","filter-item":"_3jAEH","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","font-large":"_3Sup6","font-small":"_2JnMg","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","conference-learning-strategories":"_3o_lQ","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","title":"_g-p72","description":"_2U60d","form-title":"_qDlsm","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg","accomondation-content":"_2qhHZ","accomondation-content-title-box":"_XTfSF","accomondation-content-title":"_1Z_hd","accomondation-body":"_1DtTP","accomondation-content-function":"_3fJXr","function-edit":"_368JR","function-delete":"_2I-ej","accomondation-block-content":"_1fpsj","accomondation-block-note":"_2INhO","accomondation-content-description":"_2BEap","accomondation-content-status":"_UdBci","content-function-mobile":"_3gaSR","card-box":"_3Flx1","card-top":"_3Mi_n","card-top-title":"_21QGx","card-top-right":"_2eeiS","card-top-switch":"_9VWFe","card-view":"_Jwjv5","card-content":"_3AVYm","block-circle":"_3o7Sh","block-item-3":"_3JeRP","item-circle":"_2wunA","block-item-4":"_3P83R","icon-btn":"_3xYAk","slider-avatar":"_2wH1X","btn-delete":"_z69mr","send-icon":"_3oH01","label-single-choice":"_3oSdM","radio-choice":"_2RwcR","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","custom-header":"_22CX0","custom-header-right":"_3EDTf","custom-header-title":"_d8RZe","custom-header-button":"_2OUSw","custom-button-content":"_1oCai","disable-button":"_3rQql","border-none":"_3MpEU","block-btn-header":"_25ahZ","custom-preview-button":"_mpfwz","grey-background":"_2ryO2","total-card-box":"_1Xx6l","total-card-title":"_3vk3b","total-card-value":"_IHasQ","status-default":"_165c9","pending":"_ZcAbu","active":"_3oAH-","close":"_3XmhO","box-filter":"_KT2NK","block-total":"_2GGFc","filter-select":"_3xiAo","box-filter-left":"_1hkQM","btn-favorite-text":"_3m4oI","box-filter-right":"_1SOsh","search-input-icon":"_Od6MC","inputInput":"_2st_0","filter-item-collapse":"_2opDJ","box-show-filter-mobile":"_3xvBF","icon-show-all-filter":"_3gNUH","space-item":"_1G-S_","block-card-name":"_2Wl9Z","block-card-title":"_3Qn6F","block-card-btn":"_1Z1H6","block-card-btn-title":"_3svb4","block-card-btn-icon":"_2Bg4S","table-cell":"_2uhRa","box-notification":"_iDxHF","notification-1":"_2ZvNu","notification-2":"_2zBWP","notification-3":"_1T24i","notification-4":"_2obEM","notification-5":"_20aq-","notification-6":"_RWFl1","box-item":"_Wtc0p","notification-7":"_3rw4Y","notification-assistant-1":"_1ybh1","notification-assistant-2":"_2o31Q","notification-assistant-3":"_11hn9","notification-assistant-4":"_2sPVk","notification-assistant-5":"_3ln0K","notification-assistant-6":"_3dsZQ","notification-student-1":"_1XdPP","notification-student-2":"_1I9Dc","notification-student-3":"_3DwX3","notification-student-4":"_2TKDh","notification-student-5":"_14nq1","notification-student-6":"_1zCX0","btn-got-it":"_uwWqF","btn-choice":"_hPL_o","yes-active":"_2AK7h","no-active":"_1UouU","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI"};
|
|
432
|
+
var styles = {"reset-the-content":"_1zJw3","btn-duplicate-survey":"_11N79","menu-item-strategories":"_1oZYB","time-Date":"_1Q7w6","time-Hours-Minute":"_3ZcQD","arrow-icon":"_2NJ7E","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","box-title-question":"_1DlZO","tooltip-question":"_29Hwk","font-description":"_2pyf5","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","block-right":"_2CN0T","filter-item":"_3jAEH","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","font-large":"_3Sup6","font-small":"_2JnMg","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","conference-learning-strategories":"_3o_lQ","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","title":"_g-p72","description":"_2U60d","form-title":"_qDlsm","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg","accomondation-content":"_2qhHZ","accomondation-content-title-box":"_XTfSF","accomondation-content-title":"_1Z_hd","accomondation-body":"_1DtTP","accomondation-content-function":"_3fJXr","function-edit":"_368JR","function-delete":"_2I-ej","accomondation-block-content":"_1fpsj","accomondation-block-note":"_2INhO","accomondation-content-description":"_2BEap","accomondation-content-status":"_UdBci","content-function-mobile":"_3gaSR","card-box":"_3Flx1","card-top":"_3Mi_n","card-top-title":"_21QGx","card-top-right":"_2eeiS","card-top-switch":"_9VWFe","card-view":"_Jwjv5","card-content":"_3AVYm","block-circle":"_3o7Sh","block-item-3":"_3JeRP","item-circle":"_2wunA","block-item-4":"_3P83R","icon-btn":"_3xYAk","slider-avatar":"_2wH1X","btn-delete":"_z69mr","send-icon":"_3oH01","label-single-choice":"_3oSdM","radio-choice":"_2RwcR","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","custom-header":"_22CX0","custom-header-right":"_3EDTf","custom-header-title":"_d8RZe","custom-header-button":"_2OUSw","custom-button-content":"_1oCai","disable-button":"_3rQql","border-none":"_3MpEU","block-btn-header":"_25ahZ","custom-preview-button":"_mpfwz","grey-background":"_2ryO2","total-card-box":"_1Xx6l","total-card-title":"_3vk3b","total-card-value":"_IHasQ","status-default":"_165c9","pending":"_ZcAbu","active":"_3oAH-","close":"_3XmhO","box-filter":"_KT2NK","block-total":"_2GGFc","filter-select":"_3xiAo","box-filter-left":"_1hkQM","btn-favorite-text":"_3m4oI","box-filter-right":"_1SOsh","search-input-icon":"_Od6MC","inputInput":"_2st_0","filter-item-collapse":"_2opDJ","box-show-filter-mobile":"_3xvBF","icon-show-all-filter":"_3gNUH","space-item":"_1G-S_","block-card-name":"_2Wl9Z","block-card-title":"_3Qn6F","block-card-btn":"_1Z1H6","block-card-btn-title":"_3svb4","block-card-btn-icon":"_2Bg4S","table-cell":"_2uhRa","box-notification":"_iDxHF","notification-1":"_2ZvNu","notification-2":"_2zBWP","notification-3":"_1T24i","notification-4":"_2obEM","notification-5":"_20aq-","notification-6":"_RWFl1","box-item":"_Wtc0p","notification-7":"_3rw4Y","notification-assistant-1":"_1ybh1","notification-assistant-2":"_2o31Q","notification-assistant-3":"_11hn9","notification-assistant-4":"_2sPVk","notification-assistant-5":"_3ln0K","notification-assistant-6":"_3dsZQ","notification-student-1":"_1XdPP","notification-student-2":"_1I9Dc","notification-student-3":"_3DwX3","notification-student-4":"_2TKDh","notification-student-5":"_14nq1","notification-student-6":"_1zCX0","btn-got-it":"_uwWqF","btn-choice":"_hPL_o","yes-active":"_2AK7h","no-active":"_1UouU","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","box-switch":"_2Nd8Z","title-label":"_XYA0v","title-text":"_88rqO"};
|
|
433
433
|
|
|
434
434
|
function toVal(mix) {
|
|
435
435
|
var k, y, str='';
|
|
@@ -870,11 +870,16 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
870
870
|
|
|
871
871
|
return (_state$common4 = state.common) === null || _state$common4 === void 0 ? void 0 : _state$common4.menuBar;
|
|
872
872
|
});
|
|
873
|
+
var isEnableSurvey = reactRedux.useSelector(function (state) {
|
|
874
|
+
var _state$common5;
|
|
875
|
+
|
|
876
|
+
return (_state$common5 = state.common) === null || _state$common5 === void 0 ? void 0 : _state$common5.isEnableSurvey;
|
|
877
|
+
});
|
|
873
878
|
var isParentPage = location.pathname.includes("/parent");
|
|
874
879
|
var isLoginFirst = reactRedux.useSelector(function (state) {
|
|
875
|
-
var _state$
|
|
880
|
+
var _state$common6;
|
|
876
881
|
|
|
877
|
-
return (_state$
|
|
882
|
+
return (_state$common6 = state.common) === null || _state$common6 === void 0 ? void 0 : _state$common6.user.isLoginFirst;
|
|
878
883
|
});
|
|
879
884
|
|
|
880
885
|
var _useState = React.useState(new Date()),
|
|
@@ -964,6 +969,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
964
969
|
return Promise.resolve(getInformation()).then(function (res) {
|
|
965
970
|
dispatch(marioCore.setEnableIEP(res.data.isEnableIEP));
|
|
966
971
|
dispatch(marioCore.setConversationOneToOne(res.data.isConversationOneToOne));
|
|
972
|
+
dispatch(marioCore.setEnableSurvey(res.data.isEnableSurvey));
|
|
967
973
|
});
|
|
968
974
|
}, function (err) {
|
|
969
975
|
console.error(err);
|
|
@@ -1097,8 +1103,8 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
1097
1103
|
name: "Settings",
|
|
1098
1104
|
icon: React__default.createElement(SettingsIcon, null)
|
|
1099
1105
|
}];
|
|
1100
|
-
navigations =
|
|
1101
|
-
return item.name
|
|
1106
|
+
navigations = isEnableSurvey ? navigations : navigations.filter(function (item) {
|
|
1107
|
+
return !item.name.includes('Survey');
|
|
1102
1108
|
});
|
|
1103
1109
|
|
|
1104
1110
|
var onStepNext = function onStepNext() {
|
|
@@ -12338,7 +12344,7 @@ var useNotes = function useNotes(sessionId, sessionResultId, conferenceId, confe
|
|
|
12338
12344
|
|
|
12339
12345
|
var getNotes = function getNotes() {
|
|
12340
12346
|
try {
|
|
12341
|
-
return Promise.resolve(
|
|
12347
|
+
return Promise.resolve(sessionId ? getAllNote$2(dispatch, sessionId) : getAllConferenceNote$1(dispatch, conferenceId)).then(function (data) {
|
|
12342
12348
|
var _data$privateNote, _data$teacherNotes, _data$studentNotes;
|
|
12343
12349
|
|
|
12344
12350
|
setPrivateNote((_data$privateNote = data === null || data === void 0 ? void 0 : data.privateNote) != null ? _data$privateNote : "");
|
|
@@ -12882,12 +12888,16 @@ var MainViewScaffolding = function MainViewScaffolding(props) {
|
|
|
12882
12888
|
"float": "right",
|
|
12883
12889
|
margin: "10px"
|
|
12884
12890
|
}
|
|
12885
|
-
},
|
|
12891
|
+
}, React__default.createElement(core.Grid, {
|
|
12892
|
+
hidden: openScaffolding
|
|
12893
|
+
}, React__default.createElement(ScaffoldingBtn, {
|
|
12886
12894
|
hover: hover,
|
|
12887
12895
|
onHover: onHover,
|
|
12888
12896
|
onLeave: onLeave,
|
|
12889
12897
|
handleOpen: onOpenScaffolding
|
|
12890
|
-
})
|
|
12898
|
+
})), React__default.createElement(core.Grid, {
|
|
12899
|
+
hidden: !openScaffolding
|
|
12900
|
+
}, React__default.createElement(ScaffoldingFloatTab, {
|
|
12891
12901
|
onClose: onCloseScaffolding,
|
|
12892
12902
|
sessionId: sessionId,
|
|
12893
12903
|
sessionResultId: sessionResultId,
|
|
@@ -12895,7 +12905,7 @@ var MainViewScaffolding = function MainViewScaffolding(props) {
|
|
|
12895
12905
|
conferenceResultId: conferenceResultId,
|
|
12896
12906
|
informationUser: informationUser,
|
|
12897
12907
|
isUserChangeSession: isUserChangeSession
|
|
12898
|
-
}));
|
|
12908
|
+
})));
|
|
12899
12909
|
};
|
|
12900
12910
|
|
|
12901
12911
|
function areEqual(prevProps, nextProps) {
|
|
@@ -15336,8 +15346,8 @@ var Loading$1 = function Loading() {
|
|
|
15336
15346
|
};
|
|
15337
15347
|
|
|
15338
15348
|
var timeGenerator = function timeGenerator(time) {
|
|
15339
|
-
if (time
|
|
15340
|
-
return time - 12 + " PM";
|
|
15349
|
+
if (time < 12) return time + " AM";
|
|
15350
|
+
return (time != 12 ? time - 12 : time) + " PM";
|
|
15341
15351
|
};
|
|
15342
15352
|
|
|
15343
15353
|
var Timeline = function Timeline(_ref) {
|
|
@@ -32493,16 +32503,12 @@ var Overview = function Overview(props) {
|
|
|
32493
32503
|
},
|
|
32494
32504
|
KeyboardButtonProps: {
|
|
32495
32505
|
"aria-label": "change date"
|
|
32496
|
-
}
|
|
32497
|
-
minDate: moment(filterDateChart.endDate).subtract(4, 'months').valueOf(),
|
|
32498
|
-
maxDate: filterDateChart.endDate
|
|
32506
|
+
}
|
|
32499
32507
|
})), React__default.createElement("div", {
|
|
32500
32508
|
className: styles$9["date-time-end"] + " date-picker-overview"
|
|
32501
32509
|
}, React__default.createElement("p", {
|
|
32502
32510
|
className: "" + styles$9["text"]
|
|
32503
32511
|
}, "To"), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
32504
|
-
minDate: filterDateChart.startDate || null,
|
|
32505
|
-
maxDate: moment(filterDateChart.startDate).add(4, 'months').valueOf(),
|
|
32506
32512
|
inputVariant: "outlined",
|
|
32507
32513
|
format: "Do MMM YYYY",
|
|
32508
32514
|
id: "time-picker",
|
|
@@ -53146,6 +53152,26 @@ var ViewItemNote = function ViewItemNote() {
|
|
|
53146
53152
|
|
|
53147
53153
|
var styles$A = {"header-page":"_2Uw02","button-save":"_1Dw3g","icon-save":"_2sosp","text-name-header":"_1fWN6","font-large":"_yEfpt","text-button-header":"_3zCCA","font-small":"_TQnSp","content-setting":"_3vPJ6","title-activity":"_2Yxck","title-email":"_1lVI8","switch":"_3EUQE","title-label":"_L2otV","content-email":"_1Z4F1","text-email":"_1IWJK","title-text":"_22idv","content-schedule":"_qw1VO","title-schedule":"_3Sogu","item-schedule":"_2hqMI","button-save-mobile":"_GJ7NM"};
|
|
53148
53154
|
|
|
53155
|
+
var defaultFontSmall$B = 12;
|
|
53156
|
+
var defaultFontLarge$B = 20;
|
|
53157
|
+
var initialSetting = {
|
|
53158
|
+
actionPointSchedule: false,
|
|
53159
|
+
completeClassReflection: false,
|
|
53160
|
+
completeConference: false,
|
|
53161
|
+
completeOneToOne: false,
|
|
53162
|
+
emailActionPointSchedule: false,
|
|
53163
|
+
emailCompleteClassReflection: false,
|
|
53164
|
+
emailCompleteConference: false,
|
|
53165
|
+
emailCompleteOneToOne: false,
|
|
53166
|
+
emailScheduleConference: false,
|
|
53167
|
+
emailScheduleOneToOne: false,
|
|
53168
|
+
isTurnOnAllEmail: false,
|
|
53169
|
+
isTurnOnAllNotification: false,
|
|
53170
|
+
scheduleConference: false,
|
|
53171
|
+
scheduleOneToOne: false,
|
|
53172
|
+
id: 0
|
|
53173
|
+
};
|
|
53174
|
+
|
|
53149
53175
|
var apiGetSetting = function apiGetSetting() {
|
|
53150
53176
|
return marioCore.api.get(marioCore.BASE_URL + "/api/Setting/setting");
|
|
53151
53177
|
};
|
|
@@ -53209,47 +53235,22 @@ var putDataSetting = function putDataSetting(dispatch, body) {
|
|
|
53209
53235
|
}
|
|
53210
53236
|
};
|
|
53211
53237
|
|
|
53212
|
-
var defaultFontSmall$B = 12;
|
|
53213
|
-
var defaultFontLarge$B = 20;
|
|
53214
|
-
|
|
53215
53238
|
var useSettingPage = function useSettingPage() {
|
|
53216
|
-
var _useState = React.useState({
|
|
53217
|
-
isReceiveNotificationBookedSession: false,
|
|
53218
|
-
isReceiveNotificationPrebookedSession: false,
|
|
53219
|
-
IsSendNotiMail: 0
|
|
53220
|
-
}),
|
|
53221
|
-
dataGet = _useState[0],
|
|
53222
|
-
setDataGet = _useState[1];
|
|
53223
|
-
|
|
53224
53239
|
var dispatch = reactRedux.useDispatch();
|
|
53225
53240
|
var defaultFont = reactRedux.useSelector(function (state) {
|
|
53226
53241
|
var _state$common;
|
|
53227
53242
|
|
|
53228
53243
|
return (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.defaultFontSize;
|
|
53229
53244
|
});
|
|
53230
|
-
React.useEffect(function () {
|
|
53231
|
-
getApi();
|
|
53232
|
-
}, []);
|
|
53233
|
-
var classFontSize = React.useMemo(function () {
|
|
53234
|
-
if (defaultFont == defaultFontLarge$B) {
|
|
53235
|
-
return "font-large";
|
|
53236
|
-
}
|
|
53237
|
-
|
|
53238
|
-
if (defaultFont == defaultFontSmall$B) {
|
|
53239
|
-
return "font-small";
|
|
53240
|
-
}
|
|
53241
53245
|
|
|
53242
|
-
|
|
53243
|
-
|
|
53246
|
+
var _useState = React.useState(initialSetting),
|
|
53247
|
+
dataSwitchNotification = _useState[0],
|
|
53248
|
+
setDataSwitchNotification = _useState[1];
|
|
53244
53249
|
|
|
53245
53250
|
var getApi = function getApi() {
|
|
53246
53251
|
try {
|
|
53247
53252
|
return Promise.resolve(getDataSetting(dispatch)).then(function (res) {
|
|
53248
|
-
|
|
53249
|
-
isReceiveNotificationBookedSession: res === null || res === void 0 ? void 0 : res.isReceiveNotificationBookedSession,
|
|
53250
|
-
isReceiveNotificationPrebookedSession: res === null || res === void 0 ? void 0 : res.isReceiveNotificationPrebookedSession,
|
|
53251
|
-
IsSendNotiMail: (res === null || res === void 0 ? void 0 : res.isSendNotiMail) == true ? 1 : 0
|
|
53252
|
-
});
|
|
53253
|
+
setDataSwitchNotification(res);
|
|
53253
53254
|
});
|
|
53254
53255
|
} catch (e) {
|
|
53255
53256
|
return Promise.reject(e);
|
|
@@ -53258,35 +53259,35 @@ var useSettingPage = function useSettingPage() {
|
|
|
53258
53259
|
|
|
53259
53260
|
var saveSetting = function saveSetting() {
|
|
53260
53261
|
try {
|
|
53261
|
-
|
|
53262
|
-
IsReceiveNotificationBookedSession: dataGet === null || dataGet === void 0 ? void 0 : dataGet.isReceiveNotificationBookedSession,
|
|
53263
|
-
isReceiveNotificationPrebookedSession: dataGet.isReceiveNotificationPrebookedSession,
|
|
53264
|
-
IsSendNotiMail: (dataGet === null || dataGet === void 0 ? void 0 : dataGet.IsSendNotiMail) == 1 ? true : false
|
|
53265
|
-
};
|
|
53266
|
-
return Promise.resolve(putDataSetting(dispatch, data)).then(function () {});
|
|
53262
|
+
return Promise.resolve(putDataSetting(dispatch, dataSwitchNotification)).then(function () {});
|
|
53267
53263
|
} catch (e) {
|
|
53268
53264
|
return Promise.reject(e);
|
|
53269
53265
|
}
|
|
53270
53266
|
};
|
|
53271
53267
|
|
|
53272
|
-
var handleChangeRadio = function handleChangeRadio(event) {
|
|
53273
|
-
setDataGet(_extends({}, dataGet, {
|
|
53274
|
-
IsSendNotiMail: Number(event.target.value)
|
|
53275
|
-
}));
|
|
53276
|
-
};
|
|
53277
|
-
|
|
53278
53268
|
var handleChange = function handleChange(event) {
|
|
53279
53269
|
var _extends2;
|
|
53280
53270
|
|
|
53281
|
-
|
|
53271
|
+
setDataSwitchNotification(_extends({}, dataSwitchNotification, (_extends2 = {}, _extends2[event.target.name] = event.target.checked, _extends2)));
|
|
53282
53272
|
};
|
|
53283
53273
|
|
|
53274
|
+
var classFontSize = React.useMemo(function () {
|
|
53275
|
+
if (defaultFont == defaultFontLarge$B) {
|
|
53276
|
+
return "font-large";
|
|
53277
|
+
}
|
|
53278
|
+
|
|
53279
|
+
if (defaultFont == defaultFontSmall$B) {
|
|
53280
|
+
return "font-small";
|
|
53281
|
+
}
|
|
53282
|
+
|
|
53283
|
+
return "";
|
|
53284
|
+
}, [defaultFont]);
|
|
53284
53285
|
React.useEffect(function () {
|
|
53286
|
+
getApi();
|
|
53285
53287
|
document.title = "Settings";
|
|
53286
53288
|
}, []);
|
|
53287
53289
|
return {
|
|
53288
|
-
|
|
53289
|
-
dataGet: dataGet,
|
|
53290
|
+
dataSwitchNotification: dataSwitchNotification,
|
|
53290
53291
|
handleChange: handleChange,
|
|
53291
53292
|
saveSetting: saveSetting,
|
|
53292
53293
|
classFontSize: classFontSize,
|
|
@@ -53294,31 +53295,45 @@ var useSettingPage = function useSettingPage() {
|
|
|
53294
53295
|
};
|
|
53295
53296
|
};
|
|
53296
53297
|
|
|
53298
|
+
var SwitchComponent = function SwitchComponent(_ref) {
|
|
53299
|
+
var title = _ref.title,
|
|
53300
|
+
value = _ref.value,
|
|
53301
|
+
_onChange = _ref.onChange,
|
|
53302
|
+
name = _ref.name;
|
|
53303
|
+
return React__default.createElement(core.Grid, {
|
|
53304
|
+
className: "" + styles["box-switch"]
|
|
53305
|
+
}, React__default.createElement(core.FormControlLabel, {
|
|
53306
|
+
value: value,
|
|
53307
|
+
control: React__default.createElement(core.Switch, {
|
|
53308
|
+
color: "primary",
|
|
53309
|
+
checked: value,
|
|
53310
|
+
name: name,
|
|
53311
|
+
onChange: function onChange(event) {
|
|
53312
|
+
return _onChange(event);
|
|
53313
|
+
}
|
|
53314
|
+
}),
|
|
53315
|
+
label: !value ? "No" : "Yes",
|
|
53316
|
+
className: "" + styles["title-label"]
|
|
53317
|
+
}), React__default.createElement("span", {
|
|
53318
|
+
className: "" + styles["title-text"]
|
|
53319
|
+
}, title));
|
|
53320
|
+
};
|
|
53321
|
+
|
|
53297
53322
|
function SettingPage() {
|
|
53298
53323
|
var _useTranslation = marioCore.useTranslation(),
|
|
53299
53324
|
t = _useTranslation.t;
|
|
53300
53325
|
|
|
53301
53326
|
var _useSettingPage = useSettingPage(),
|
|
53302
|
-
handleChangeRadio = _useSettingPage.handleChangeRadio,
|
|
53303
53327
|
saveSetting = _useSettingPage.saveSetting,
|
|
53304
53328
|
handleChange = _useSettingPage.handleChange,
|
|
53305
|
-
|
|
53329
|
+
dataSwitchNotification = _useSettingPage.dataSwitchNotification,
|
|
53306
53330
|
classFontSize = _useSettingPage.classFontSize;
|
|
53307
53331
|
|
|
53308
53332
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(core.Grid, {
|
|
53309
|
-
container: true,
|
|
53310
|
-
spacing: 2
|
|
53311
|
-
}, React__default.createElement(core.Grid, {
|
|
53312
|
-
item: true,
|
|
53313
|
-
xs: 12
|
|
53314
|
-
}, React__default.createElement("div", {
|
|
53315
53333
|
className: styles$A["header-page"] + " " + styles$A[classFontSize]
|
|
53316
|
-
}, React__default.createElement(core.Typography, {
|
|
53317
|
-
variant: "h3",
|
|
53318
|
-
component: "h3"
|
|
53319
53334
|
}, React__default.createElement("span", {
|
|
53320
53335
|
className: "" + styles$A["text-name-header"]
|
|
53321
|
-
}, t("settings"))
|
|
53336
|
+
}, t("settings")), React__default.createElement(core.Button, {
|
|
53322
53337
|
variant: "contained",
|
|
53323
53338
|
className: "" + styles$A["button-save"],
|
|
53324
53339
|
onClick: saveSetting
|
|
@@ -53326,109 +53341,93 @@ function SettingPage() {
|
|
|
53326
53341
|
className: "" + styles$A["text-button-header"]
|
|
53327
53342
|
}, t("save_changes"), React__default.createElement(SaveIcon, {
|
|
53328
53343
|
className: "" + styles$A["icon-save"]
|
|
53329
|
-
}))))
|
|
53344
|
+
})))), React__default.createElement(core.Grid, {
|
|
53330
53345
|
className: styles$A["content-setting"] + " " + styles$A[classFontSize]
|
|
53331
|
-
}, React__default.createElement(core.Grid, {
|
|
53332
|
-
container: true,
|
|
53333
|
-
spacing: 2
|
|
53334
|
-
}, React__default.createElement(core.Grid, {
|
|
53335
|
-
item: true,
|
|
53336
|
-
xs: 12
|
|
53337
53346
|
}, React__default.createElement("p", {
|
|
53338
53347
|
className: "" + styles$A["title-activity"]
|
|
53339
|
-
},
|
|
53340
|
-
|
|
53341
|
-
|
|
53342
|
-
|
|
53343
|
-
|
|
53344
|
-
|
|
53345
|
-
|
|
53346
|
-
}, React__default.createElement("span", {
|
|
53347
|
-
className: "" + styles$A["title-text"]
|
|
53348
|
-
}, t("schedule_notifications"))), React__default.createElement(core.Grid, {
|
|
53349
|
-
item: true,
|
|
53350
|
-
xs: 3,
|
|
53351
|
-
md: 6,
|
|
53352
|
-
className: "" + styles$A["switch"]
|
|
53353
|
-
}, React__default.createElement(core.FormControlLabel, {
|
|
53354
|
-
value: dataGet.isReceiveNotificationBookedSession,
|
|
53355
|
-
control: React__default.createElement(core.Switch, {
|
|
53356
|
-
color: "primary",
|
|
53357
|
-
checked: dataGet.isReceiveNotificationBookedSession,
|
|
53358
|
-
name: "isReceiveNotificationBookedSession",
|
|
53359
|
-
onChange: handleChange
|
|
53360
|
-
}),
|
|
53361
|
-
label: (dataGet === null || dataGet === void 0 ? void 0 : dataGet.isReceiveNotificationBookedSession) === true ? t("yes") : t("no"),
|
|
53362
|
-
className: "" + styles$A["title-label"]
|
|
53363
|
-
}))), React__default.createElement(core.Grid, {
|
|
53364
|
-
container: true,
|
|
53365
|
-
spacing: 2
|
|
53366
|
-
}, React__default.createElement(core.Grid, {
|
|
53367
|
-
item: true,
|
|
53368
|
-
xs: 9,
|
|
53369
|
-
md: 6
|
|
53370
|
-
}, React__default.createElement("span", {
|
|
53371
|
-
className: "" + styles$A["title-text"]
|
|
53372
|
-
}, t("preschedule_notifications"))), React__default.createElement(core.Grid, {
|
|
53373
|
-
item: true,
|
|
53374
|
-
xs: 3,
|
|
53375
|
-
md: 6,
|
|
53376
|
-
className: "" + styles$A["switch"]
|
|
53377
|
-
}, React__default.createElement(core.FormControlLabel, {
|
|
53378
|
-
value: dataGet.isReceiveNotificationPrebookedSession,
|
|
53379
|
-
control: React__default.createElement(core.Switch, {
|
|
53380
|
-
color: "primary",
|
|
53381
|
-
checked: dataGet.isReceiveNotificationPrebookedSession,
|
|
53382
|
-
name: "isReceiveNotificationPrebookedSession",
|
|
53383
|
-
onChange: handleChange
|
|
53384
|
-
}),
|
|
53385
|
-
label: (dataGet === null || dataGet === void 0 ? void 0 : dataGet.isReceiveNotificationPrebookedSession) === true ? t("yes") : t("no"),
|
|
53386
|
-
className: "" + styles$A["title-label"]
|
|
53387
|
-
}))), React__default.createElement(core.Grid, {
|
|
53388
|
-
container: true,
|
|
53389
|
-
spacing: 2
|
|
53390
|
-
}, React__default.createElement(core.Grid, {
|
|
53391
|
-
item: true,
|
|
53392
|
-
xs: 12
|
|
53393
|
-
}, React__default.createElement(core.FormControl, {
|
|
53394
|
-
component: "fieldset"
|
|
53348
|
+
}, "In-App Notifications"), React__default.createElement(SwitchComponent, {
|
|
53349
|
+
name: "isTurnOnAllNotification",
|
|
53350
|
+
title: "Turn off all notifications",
|
|
53351
|
+
value: dataSwitchNotification.isTurnOnAllNotification,
|
|
53352
|
+
onChange: handleChange
|
|
53353
|
+
})), React__default.createElement(core.Grid, {
|
|
53354
|
+
className: styles$A["content-setting"] + " " + styles$A[classFontSize]
|
|
53395
53355
|
}, React__default.createElement("p", {
|
|
53396
|
-
className: "" + styles$A["title-
|
|
53397
|
-
},
|
|
53398
|
-
|
|
53399
|
-
|
|
53400
|
-
|
|
53401
|
-
|
|
53402
|
-
|
|
53403
|
-
|
|
53404
|
-
|
|
53405
|
-
|
|
53406
|
-
|
|
53407
|
-
|
|
53408
|
-
|
|
53409
|
-
|
|
53410
|
-
|
|
53411
|
-
|
|
53412
|
-
|
|
53413
|
-
|
|
53414
|
-
|
|
53415
|
-
|
|
53416
|
-
|
|
53417
|
-
})
|
|
53418
|
-
|
|
53419
|
-
|
|
53420
|
-
|
|
53421
|
-
|
|
53422
|
-
|
|
53423
|
-
|
|
53424
|
-
|
|
53425
|
-
|
|
53426
|
-
|
|
53427
|
-
}, React__default.createElement(
|
|
53428
|
-
className: "" + styles$A[
|
|
53429
|
-
},
|
|
53430
|
-
className: "" + styles$A["
|
|
53431
|
-
})
|
|
53356
|
+
className: "" + styles$A["title-activity"]
|
|
53357
|
+
}, "Notify me when..."), React__default.createElement(SwitchComponent, {
|
|
53358
|
+
name: "scheduleOneToOne",
|
|
53359
|
+
title: "A student schedules a 1-1",
|
|
53360
|
+
value: dataSwitchNotification.scheduleOneToOne,
|
|
53361
|
+
onChange: handleChange
|
|
53362
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53363
|
+
name: "scheduleConference",
|
|
53364
|
+
title: "A student schedules a conference",
|
|
53365
|
+
value: dataSwitchNotification.scheduleConference,
|
|
53366
|
+
onChange: handleChange
|
|
53367
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53368
|
+
name: "completeOneToOne",
|
|
53369
|
+
title: "A student completes a 1-1 check-in",
|
|
53370
|
+
value: dataSwitchNotification.completeOneToOne,
|
|
53371
|
+
onChange: handleChange
|
|
53372
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53373
|
+
name: "completeConference",
|
|
53374
|
+
title: "A student completes a conference self-assessment rubric",
|
|
53375
|
+
value: dataSwitchNotification.completeConference,
|
|
53376
|
+
onChange: handleChange
|
|
53377
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53378
|
+
name: "completeClassReflection",
|
|
53379
|
+
title: "A student or teacher completes a class reflection",
|
|
53380
|
+
value: dataSwitchNotification.completeClassReflection,
|
|
53381
|
+
onChange: handleChange
|
|
53382
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53383
|
+
name: "actionPointSchedule",
|
|
53384
|
+
title: "Action points are due based on chosen schedule",
|
|
53385
|
+
value: dataSwitchNotification.actionPointSchedule,
|
|
53386
|
+
onChange: handleChange
|
|
53387
|
+
})), React__default.createElement(core.Grid, {
|
|
53388
|
+
className: styles$A["content-setting"] + " " + styles$A[classFontSize]
|
|
53389
|
+
}, React__default.createElement("p", {
|
|
53390
|
+
className: "" + styles$A["title-activity"]
|
|
53391
|
+
}, "Email Notifications"), React__default.createElement(SwitchComponent, {
|
|
53392
|
+
name: "isTurnOnAllEmail",
|
|
53393
|
+
title: "Turn off all notifications",
|
|
53394
|
+
value: dataSwitchNotification.isTurnOnAllEmail,
|
|
53395
|
+
onChange: handleChange
|
|
53396
|
+
})), React__default.createElement(core.Grid, {
|
|
53397
|
+
className: styles$A["content-setting"] + " " + styles$A[classFontSize]
|
|
53398
|
+
}, React__default.createElement("p", {
|
|
53399
|
+
className: "" + styles$A["title-activity"]
|
|
53400
|
+
}, "Notify me when..."), React__default.createElement(SwitchComponent, {
|
|
53401
|
+
name: "emailScheduleOneToOne",
|
|
53402
|
+
title: "A student schedules a 1-1",
|
|
53403
|
+
value: dataSwitchNotification.emailScheduleOneToOne,
|
|
53404
|
+
onChange: handleChange
|
|
53405
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53406
|
+
name: "emailScheduleConference",
|
|
53407
|
+
title: "A student schedules a conference",
|
|
53408
|
+
value: dataSwitchNotification.emailScheduleConference,
|
|
53409
|
+
onChange: handleChange
|
|
53410
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53411
|
+
name: "emailCompleteOneToOne",
|
|
53412
|
+
title: "A student completes a 1-1 check-in",
|
|
53413
|
+
value: dataSwitchNotification.emailCompleteOneToOne,
|
|
53414
|
+
onChange: handleChange
|
|
53415
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53416
|
+
name: "emailCompleteConference",
|
|
53417
|
+
title: "A student completes a conference self-assessment rubric",
|
|
53418
|
+
value: dataSwitchNotification.emailCompleteConference,
|
|
53419
|
+
onChange: handleChange
|
|
53420
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53421
|
+
name: "emailCompleteClassReflection",
|
|
53422
|
+
title: "A student or teacher completes a class reflection",
|
|
53423
|
+
value: dataSwitchNotification.emailCompleteClassReflection,
|
|
53424
|
+
onChange: handleChange
|
|
53425
|
+
}), React__default.createElement(SwitchComponent, {
|
|
53426
|
+
name: "emailActionPointSchedule",
|
|
53427
|
+
title: "Action points are due based on chosen schedule",
|
|
53428
|
+
value: dataSwitchNotification.emailActionPointSchedule,
|
|
53429
|
+
onChange: handleChange
|
|
53430
|
+
})));
|
|
53432
53431
|
}
|
|
53433
53432
|
|
|
53434
53433
|
var _templateObject$4;
|