mario-teacher-student-client 9000.0.20 → 9000.0.21
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/ActionPoint/components/DoneList/hooks/useDoneList.d.ts +1 -0
- package/dist/containers/LearningStrategies/hook/useAddLearningStrategies.d.ts +5 -2
- package/dist/containers/Note/hook/useNote.d.ts +3 -2
- package/dist/index.css +51 -5
- package/dist/index.js +141 -62
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +141 -62
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const useEditLearningStrategies: () => {
|
|
2
2
|
learningStrategyData: any;
|
|
3
|
-
selectLearning: (checked: boolean,
|
|
4
|
-
handleChangeNote: (e: string,
|
|
3
|
+
selectLearning: (checked: boolean, id: number) => void;
|
|
4
|
+
handleChangeNote: (e: string, id: number) => void;
|
|
5
5
|
changeFilters: (e: string) => void;
|
|
6
6
|
filters: {
|
|
7
7
|
studentId: any;
|
|
@@ -11,5 +11,8 @@ declare const useEditLearningStrategies: () => {
|
|
|
11
11
|
selectData: any;
|
|
12
12
|
handleAddLearningStrategy: () => Promise<void>;
|
|
13
13
|
backToLearningStrategy: () => void;
|
|
14
|
+
handleCheckSelectItem: (id: number) => boolean;
|
|
15
|
+
handleShowNote: (id: number) => any;
|
|
16
|
+
handleShowSelectItemCount: () => number;
|
|
14
17
|
};
|
|
15
18
|
export default useEditLearningStrategies;
|
|
@@ -6,15 +6,16 @@ declare const useNote: () => {
|
|
|
6
6
|
startDate: any;
|
|
7
7
|
endDate: any;
|
|
8
8
|
allNoteList: any;
|
|
9
|
-
|
|
9
|
+
handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
10
|
search: string;
|
|
11
11
|
onClickFavorite: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
12
|
addNoteLink: () => void;
|
|
13
13
|
viewItemNoteLink: (id: number, typeNoteString: string) => void;
|
|
14
14
|
viewListNote: () => void;
|
|
15
|
-
inputSearch: import("react").MutableRefObject<any>;
|
|
16
15
|
updateFavorite: (id: number, favorite: boolean) => Promise<void>;
|
|
17
16
|
category: number;
|
|
18
17
|
handleChangeCategory: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
18
|
+
dataNoteAllSelect: () => Promise<void>;
|
|
19
|
+
inputSearch: import("react").MutableRefObject<any>;
|
|
19
20
|
};
|
|
20
21
|
export default useNote;
|
package/dist/index.css
CHANGED
|
@@ -2173,6 +2173,15 @@ p._1YLGi {
|
|
|
2173
2173
|
font-weight: 800;
|
|
2174
2174
|
margin-top: 5px; }
|
|
2175
2175
|
|
|
2176
|
+
._2Sccu {
|
|
2177
|
+
overflow: hidden;
|
|
2178
|
+
line-height: 18px;
|
|
2179
|
+
display: -webkit-box;
|
|
2180
|
+
-webkit-line-clamp: 2;
|
|
2181
|
+
word-wrap: break-word;
|
|
2182
|
+
text-overflow: ellipsis;
|
|
2183
|
+
-webkit-box-orient: vertical; }
|
|
2184
|
+
|
|
2176
2185
|
._3-Mx5 p:nth-child(1) {
|
|
2177
2186
|
color: #2d3748;
|
|
2178
2187
|
font-size: 18px;
|
|
@@ -2283,8 +2292,7 @@ h2._1OAmb {
|
|
|
2283
2292
|
margin-bottom: 15px; }
|
|
2284
2293
|
._2HAFW ._1rCfd {
|
|
2285
2294
|
font-size: 18px;
|
|
2286
|
-
font-weight: 600;
|
|
2287
|
-
word-wrap: break-word; }
|
|
2295
|
+
font-weight: 600; }
|
|
2288
2296
|
._2HAFW ._3qkoh ._R5ivj {
|
|
2289
2297
|
padding: 4px;
|
|
2290
2298
|
margin-top: -36px; }
|
|
@@ -2557,7 +2565,10 @@ h2._1OAmb {
|
|
|
2557
2565
|
font-size: 14px;
|
|
2558
2566
|
padding: 3px 0px;
|
|
2559
2567
|
text-align: center;
|
|
2560
|
-
color: rgba(0, 0, 0, 0.36);
|
|
2568
|
+
color: rgba(0, 0, 0, 0.36);
|
|
2569
|
+
width: 50px;
|
|
2570
|
+
overflow: hidden;
|
|
2571
|
+
text-overflow: ellipsis; }
|
|
2561
2572
|
._m1FkD ._3bMn1 ._37XQi ._3SStr {
|
|
2562
2573
|
font-size: 14px;
|
|
2563
2574
|
padding: 3px 0px;
|
|
@@ -2694,6 +2705,7 @@ h2._1OAmb {
|
|
|
2694
2705
|
padding-right: 20px;
|
|
2695
2706
|
width: 100% !important; }
|
|
2696
2707
|
._m1FkD ._2ta7E ._1XT7v {
|
|
2708
|
+
z-index: 1500;
|
|
2697
2709
|
background: #308252;
|
|
2698
2710
|
display: flex;
|
|
2699
2711
|
justify-content: center;
|
|
@@ -7072,8 +7084,8 @@ h2._1KpSK {
|
|
|
7072
7084
|
._16DL6 {
|
|
7073
7085
|
display: flex;
|
|
7074
7086
|
align-items: center;
|
|
7075
|
-
|
|
7076
|
-
|
|
7087
|
+
padding: 20px 0;
|
|
7088
|
+
justify-content: flex-end; }
|
|
7077
7089
|
._16DL6 ._D3iMS {
|
|
7078
7090
|
display: flex;
|
|
7079
7091
|
align-items: center;
|
|
@@ -7145,6 +7157,22 @@ h2._1KpSK {
|
|
|
7145
7157
|
._3WAzH {
|
|
7146
7158
|
color: red; }
|
|
7147
7159
|
|
|
7160
|
+
._3kupr {
|
|
7161
|
+
align-items: center;
|
|
7162
|
+
padding: 20px 0;
|
|
7163
|
+
justify-content: space-between; }
|
|
7164
|
+
._3kupr ._D3iMS {
|
|
7165
|
+
display: flex;
|
|
7166
|
+
align-items: center;
|
|
7167
|
+
justify-content: space-between; }
|
|
7168
|
+
._3kupr ._D3iMS ._336Y6 {
|
|
7169
|
+
display: flex;
|
|
7170
|
+
align-items: center;
|
|
7171
|
+
padding-left: 15px; }
|
|
7172
|
+
._3kupr ._D3iMS ._336Y6 > p {
|
|
7173
|
+
font-weight: 400;
|
|
7174
|
+
font-size: 14px; }
|
|
7175
|
+
|
|
7148
7176
|
@font-face {
|
|
7149
7177
|
font-family: "Lato-Regular";
|
|
7150
7178
|
src: url("/fonts/Lato-Regular.ttf");
|
|
@@ -7313,6 +7341,22 @@ h2._1KpSK {
|
|
|
7313
7341
|
._QCm7u {
|
|
7314
7342
|
color: red; }
|
|
7315
7343
|
|
|
7344
|
+
._2qCMB {
|
|
7345
|
+
align-items: center;
|
|
7346
|
+
justify-content: space-between;
|
|
7347
|
+
padding: 20px 0; }
|
|
7348
|
+
._2qCMB ._36FGn {
|
|
7349
|
+
display: flex;
|
|
7350
|
+
align-items: center;
|
|
7351
|
+
justify-content: space-between; }
|
|
7352
|
+
._2qCMB ._3JYbC {
|
|
7353
|
+
display: flex;
|
|
7354
|
+
align-items: center;
|
|
7355
|
+
padding-left: 15px; }
|
|
7356
|
+
._2qCMB ._3JYbC > p {
|
|
7357
|
+
font-weight: 400;
|
|
7358
|
+
font-size: 14px; }
|
|
7359
|
+
|
|
7316
7360
|
@font-face {
|
|
7317
7361
|
font-family: "Lato-Regular";
|
|
7318
7362
|
src: url("/fonts/Lato-Regular.ttf");
|
|
@@ -8269,6 +8313,8 @@ button._kb6Ui {
|
|
|
8269
8313
|
background: #308252;
|
|
8270
8314
|
color: white;
|
|
8271
8315
|
padding: 0 24px; }
|
|
8316
|
+
._1ip3G ._11XJ0:hover, ._1ip3G ._3jMMl:hover {
|
|
8317
|
+
background-color: #308252; }
|
|
8272
8318
|
._1ip3G ._1wRYk {
|
|
8273
8319
|
font-size: 24px;
|
|
8274
8320
|
font-weight: bold; }
|
package/dist/index.js
CHANGED
|
@@ -6522,7 +6522,7 @@ var HeaderComponent = function HeaderComponent(_ref) {
|
|
|
6522
6522
|
}))));
|
|
6523
6523
|
};
|
|
6524
6524
|
|
|
6525
|
-
var styles$5 = {"block-question":"_3bYTs","box-last":"_1SQC-","top-session":"_3dcqs","block-session-type":"_xLN0K","session-text":"_3ijmc","page-conduct":"_3A-A9","conduct-contain":"_1saEt","title-conduct":"_2HROs","name-conduct":"_3mJSQ","title":"_3RuBx","list-conduct":"_29kva","session-select":"_Dgvz2","item-conduct":"_T1fJ4","item":"_2hOFE","font-question":"_3-Mx5","talk-conduct":"_2MUjA","box-talk":"_3cwEi","box-p":"_1bzoU","font-title":"_1OAmb","box-question":"_D7nB-","title-strategories":"_3JCHg","strategories-image":"_YKzPb","img-session":"_1WobV","switch-session":"_3T9GL","body-session":"_FuViQ","modal-finished":"_1kr7b","title-modal":"_31ujp","body-modal":"_22YdW","tite-body":"_81XA0","btn-cancel":"_1p4Cd","btn-submit":"_36jLj","partner-profile-header":"_2HAFW","partner-name":"_1rCfd","close-btn":"_3qkoh","close-icon":"_R5ivj","partner-detail-content":"_3Yl8e","partner-detail-email":"_zsML4","partner-detail":"_A-c6O","health-note-text":"_20_3n","no-data":"_3tSGF","partner-profiles-diallog":"_gOdCz","partner-profile":"_3h4fG","profile-box-mobile":"_2xyvg","partner-profile-mobile":"_1IckI","partner-profile-header-mobile":"_2-Nhf","partner-profile-avt":"_sSpfT","partner-schedule":"_smLhQ","partner-schedule-meeting":"_1MX_1","no-schedule-box":"_3tmRq","schedule-meeting-element":"_vE2nJ","time-detail":"_JAWru","name-detail":"_3RlQ2","avatar_user":"_3d254","btn-done":"_9SOPe","btn-done-session":"_3Id4g","btn-scroll-top":"_WEfrE","info-container":"_3KbBU","time-ques":"_3Np_7"};
|
|
6525
|
+
var styles$5 = {"block-question":"_3bYTs","box-last":"_1SQC-","top-session":"_3dcqs","block-session-type":"_xLN0K","session-text":"_3ijmc","page-conduct":"_3A-A9","conduct-contain":"_1saEt","title-conduct":"_2HROs","name-conduct":"_3mJSQ","title":"_3RuBx","list-conduct":"_29kva","session-select":"_Dgvz2","item-conduct":"_T1fJ4","item":"_2hOFE","student-name":"_2Sccu","font-question":"_3-Mx5","talk-conduct":"_2MUjA","box-talk":"_3cwEi","box-p":"_1bzoU","font-title":"_1OAmb","box-question":"_D7nB-","title-strategories":"_3JCHg","strategories-image":"_YKzPb","img-session":"_1WobV","switch-session":"_3T9GL","body-session":"_FuViQ","modal-finished":"_1kr7b","title-modal":"_31ujp","body-modal":"_22YdW","tite-body":"_81XA0","btn-cancel":"_1p4Cd","btn-submit":"_36jLj","partner-profile-header":"_2HAFW","partner-name":"_1rCfd","close-btn":"_3qkoh","close-icon":"_R5ivj","partner-detail-content":"_3Yl8e","partner-detail-email":"_zsML4","partner-detail":"_A-c6O","health-note-text":"_20_3n","no-data":"_3tSGF","partner-profiles-diallog":"_gOdCz","partner-profile":"_3h4fG","profile-box-mobile":"_2xyvg","partner-profile-mobile":"_1IckI","partner-profile-header-mobile":"_2-Nhf","partner-profile-avt":"_sSpfT","partner-schedule":"_smLhQ","partner-schedule-meeting":"_1MX_1","no-schedule-box":"_3tmRq","schedule-meeting-element":"_vE2nJ","time-detail":"_JAWru","name-detail":"_3RlQ2","avatar_user":"_3d254","btn-done":"_9SOPe","btn-done-session":"_3Id4g","btn-scroll-top":"_WEfrE","info-container":"_3KbBU","time-ques":"_3Np_7"};
|
|
6526
6526
|
|
|
6527
6527
|
var BACKGROUND_COLOR = "#CDCDCD";
|
|
6528
6528
|
|
|
@@ -8700,7 +8700,8 @@ var ScaffoldingListingQuestions = function ScaffoldingListingQuestions(props) {
|
|
|
8700
8700
|
}, React__default.createElement("p", {
|
|
8701
8701
|
style: {
|
|
8702
8702
|
margin: 0,
|
|
8703
|
-
fontSize: "14px"
|
|
8703
|
+
fontSize: "14px",
|
|
8704
|
+
maxWidth: "95%"
|
|
8704
8705
|
}
|
|
8705
8706
|
}, i.question), React__default.createElement("div", {
|
|
8706
8707
|
className: "" + styles$7["search-input-icon"]
|
|
@@ -11193,7 +11194,7 @@ var BookSession = function BookSession() {
|
|
|
11193
11194
|
},
|
|
11194
11195
|
renderInput: function renderInput(params) {
|
|
11195
11196
|
return React__default.createElement(core.TextField, Object.assign({}, params, {
|
|
11196
|
-
label: recurrenceSelectText !== "" ? recurrenceSelectText : "
|
|
11197
|
+
label: recurrenceSelectText !== "" ? recurrenceSelectText : "Does not recurrence",
|
|
11197
11198
|
variant: "outlined"
|
|
11198
11199
|
}));
|
|
11199
11200
|
}
|
|
@@ -15004,7 +15005,8 @@ var OverviewLeft = function OverviewLeft(props) {
|
|
|
15004
15005
|
xs: true,
|
|
15005
15006
|
style: {
|
|
15006
15007
|
marginLeft: "20px"
|
|
15007
|
-
}
|
|
15008
|
+
},
|
|
15009
|
+
className: styles$5["student-name"]
|
|
15008
15010
|
}, React__default.createElement("span", {
|
|
15009
15011
|
className: "" + styles$5["partner-name"]
|
|
15010
15012
|
}, partnerData === null || partnerData === void 0 ? void 0 : partnerData.name))), React__default.createElement(core.Grid, {
|
|
@@ -16122,16 +16124,16 @@ var useRedinessToLearn = function useRedinessToLearn(studentId) {
|
|
|
16122
16124
|
var dataOfChart = [];
|
|
16123
16125
|
var stressData = ((_datapush$find = datapush.find(function (item) {
|
|
16124
16126
|
return item.questionText.toLowerCase().includes("stress");
|
|
16125
|
-
})) === null || _datapush$find === void 0 ? void 0 : _datapush$find.percentQuestion) || 0;
|
|
16127
|
+
})) === null || _datapush$find === void 0 ? void 0 : _datapush$find.percentQuestion.toFixed(2)) || 0;
|
|
16126
16128
|
var happinessData = ((_datapush$find2 = datapush.find(function (item) {
|
|
16127
16129
|
return item.questionText.toLowerCase().includes("happiness");
|
|
16128
|
-
})) === null || _datapush$find2 === void 0 ? void 0 : _datapush$find2.percentQuestion) || 0;
|
|
16130
|
+
})) === null || _datapush$find2 === void 0 ? void 0 : _datapush$find2.percentQuestion.toFixed(2)) || 0;
|
|
16129
16131
|
var enegyData = ((_datapush$find3 = datapush.find(function (item) {
|
|
16130
16132
|
return item.questionText.toLowerCase().includes("energy");
|
|
16131
|
-
})) === null || _datapush$find3 === void 0 ? void 0 : _datapush$find3.percentQuestion) || 0;
|
|
16133
|
+
})) === null || _datapush$find3 === void 0 ? void 0 : _datapush$find3.percentQuestion.toFixed(2)) || 0;
|
|
16132
16134
|
var focusData = ((_datapush$find4 = datapush.find(function (item) {
|
|
16133
16135
|
return item.questionText.toLowerCase().includes("focus");
|
|
16134
|
-
})) === null || _datapush$find4 === void 0 ? void 0 : _datapush$find4.percentQuestion) || 0;
|
|
16136
|
+
})) === null || _datapush$find4 === void 0 ? void 0 : _datapush$find4.percentQuestion.toFixed(2)) || 0;
|
|
16135
16137
|
dataOfChart.push(focusData);
|
|
16136
16138
|
dataOfChart.push(enegyData);
|
|
16137
16139
|
dataOfChart.push(happinessData);
|
|
@@ -26955,7 +26957,7 @@ var CardSwitch = function CardSwitch(_ref) {
|
|
|
26955
26957
|
}, React__default.createElement(core.Typography, null, "VIEW"), React__default.createElement(ArrowForwardIcon, null)))));
|
|
26956
26958
|
};
|
|
26957
26959
|
|
|
26958
|
-
var styles$m = {"about-box":"_FH_-Y","about-header":"_MqLnI","about-header-left":"_2wzM4","about-header-right":"_3BI1x","about-select":"_16DL6","about-select-box":"_D3iMS","about-select-switch":"_336Y6","dialog-box":"_Jpgoc","dialog-box-input":"_1FtGx","dialog-box-title":"_3p12Z","dialog-box-button":"_2NGoO","dialog-button-add":"_mfEtz","dialog-button-cancel":"_3He-r","about-item-margin":"_2w8dY","card-box":"_24FM8","box-content":"_18ocr","card-content":"_uWtvU","err-message":"_3WAzH"};
|
|
26960
|
+
var styles$m = {"about-box":"_FH_-Y","about-header":"_MqLnI","about-header-left":"_2wzM4","about-header-right":"_3BI1x","about-select":"_16DL6","about-select-box":"_D3iMS","about-select-switch":"_336Y6","dialog-box":"_Jpgoc","dialog-box-input":"_1FtGx","dialog-box-title":"_3p12Z","dialog-box-button":"_2NGoO","dialog-button-add":"_mfEtz","dialog-button-cancel":"_3He-r","about-item-margin":"_2w8dY","card-box":"_24FM8","box-content":"_18ocr","card-content":"_uWtvU","err-message":"_3WAzH","box-empty-thingteacher":"_3kupr"};
|
|
26959
26961
|
|
|
26960
26962
|
var STUDENT_URL$3 = marioCore.BASE_URL + "/api/Student";
|
|
26961
26963
|
var ADDITIONAL_THING = marioCore.BASE_URL + "/api/StudentAdditionalThing";
|
|
@@ -27271,7 +27273,7 @@ var ThingTeachersCanHelp = function ThingTeachersCanHelp(_ref) {
|
|
|
27271
27273
|
})));
|
|
27272
27274
|
};
|
|
27273
27275
|
|
|
27274
|
-
var styles$n = {"accomondation-box":"_3sAQg","accomondation-top":"_1ihyF","accomondation-top-title":"_J4sOM","accomondation-top-right":"_FyuFl","accomondation-top-switch":"_3Q1-h","accomondation-view":"_rnt9P","accomondation-content":"_FRYHf","accomondation-content-title":"_3_Q2d","accomondation-content-description":"_37yfd","accomondation-content-status":"_zUM9G","about-box":"_3WpQn","about-header":"_3cuO4","about-header-left":"_hvjPP","about-header-right":"_1v7Im","about-select":"_2h2rW","about-select-box":"_36FGn","about-select-switch":"_3JYbC","dialog-box":"_2T5oZ","dialog-box-input":"_1Otim","dialog-box-title":"_21HHi","dialog-box-button":"_1GRjX","dialog-button-add":"_sZfS_","dialog-button-cancel":"_3KGq0","about-item-margin":"_zIPKz","box-content":"_3PhcX","box-item":"_3_em5","card-content":"_1r6DT","err-message":"_QCm7u"};
|
|
27276
|
+
var styles$n = {"accomondation-box":"_3sAQg","accomondation-top":"_1ihyF","accomondation-top-title":"_J4sOM","accomondation-top-right":"_FyuFl","accomondation-top-switch":"_3Q1-h","accomondation-view":"_rnt9P","accomondation-content":"_FRYHf","accomondation-content-title":"_3_Q2d","accomondation-content-description":"_37yfd","accomondation-content-status":"_zUM9G","about-box":"_3WpQn","about-header":"_3cuO4","about-header-left":"_hvjPP","about-header-right":"_1v7Im","about-select":"_2h2rW","about-select-box":"_36FGn","about-select-switch":"_3JYbC","dialog-box":"_2T5oZ","dialog-box-input":"_1Otim","dialog-box-title":"_21HHi","dialog-box-button":"_1GRjX","dialog-button-add":"_sZfS_","dialog-button-cancel":"_3KGq0","about-item-margin":"_zIPKz","box-content":"_3PhcX","box-item":"_3_em5","card-content":"_1r6DT","err-message":"_QCm7u","box-empty-about-select":"_2qCMB"};
|
|
27275
27277
|
|
|
27276
27278
|
var STUDENT_URL$4 = marioCore.BASE_URL + "/api/Student";
|
|
27277
27279
|
var SECTION_URL = marioCore.BASE_URL + "/api/Section";
|
|
@@ -27703,7 +27705,7 @@ var useAccommodation = function useAccommodation() {
|
|
|
27703
27705
|
title: res.data.title,
|
|
27704
27706
|
description: res.data.description,
|
|
27705
27707
|
studentId: parseInt(studentId),
|
|
27706
|
-
type:
|
|
27708
|
+
type: res.data.type
|
|
27707
27709
|
});
|
|
27708
27710
|
});
|
|
27709
27711
|
}, function (err) {
|
|
@@ -29792,7 +29794,7 @@ var SimpleDialogAccomodation = function SimpleDialogAccomodation(props) {
|
|
|
29792
29794
|
htmlFor: "outlined-age-native-simple"
|
|
29793
29795
|
}, "Title"), React__default.createElement(core.Select, {
|
|
29794
29796
|
"native": true,
|
|
29795
|
-
disabled: !!idItem && idItem !== 0 ? true : false,
|
|
29797
|
+
disabled: !!idItem && idItem !== 0 && values.type !== "Personalized" ? true : false,
|
|
29796
29798
|
value: values.title,
|
|
29797
29799
|
onChange: function onChange(e) {
|
|
29798
29800
|
setFieldValue("title", e.target.value);
|
|
@@ -30005,7 +30007,6 @@ var AccomondationList = function AccomondationList() {
|
|
|
30005
30007
|
handleEdit: handleEdit,
|
|
30006
30008
|
isTeacher: isTeacher,
|
|
30007
30009
|
isAllowedEdit: isAllowedEdit,
|
|
30008
|
-
isAccommodationIEP: i.type.toUpperCase() == "IEP",
|
|
30009
30010
|
titleDelete: "Do you want to delete this accommodation ?"
|
|
30010
30011
|
}));
|
|
30011
30012
|
}) : null));
|
|
@@ -30213,11 +30214,17 @@ var AboutMyLearningList = function AboutMyLearningList() {
|
|
|
30213
30214
|
setOpen: setOpen,
|
|
30214
30215
|
dataItem: dataItem,
|
|
30215
30216
|
setDataItem: setDataItem
|
|
30216
|
-
})),
|
|
30217
|
-
className: "" + styles$n["about-select"]
|
|
30217
|
+
})), React__default.createElement(core.Grid, {
|
|
30218
|
+
className: "" + ((listData === null || listData === void 0 ? void 0 : listData.length) > 0 ? styles$n["about-select"] : styles$n["box-empty-about-select"])
|
|
30218
30219
|
}, React__default.createElement(core.Grid, {
|
|
30219
30220
|
className: "" + styles$n["about-select-box"]
|
|
30220
|
-
}, React__default.createElement(core.
|
|
30221
|
+
}, (listData === null || listData === void 0 ? void 0 : listData.length) == 0 && React__default.createElement(core.Box, {
|
|
30222
|
+
p: 2,
|
|
30223
|
+
className: "" + styles$n["box-data-mui"]
|
|
30224
|
+
}, React__default.createElement(core.Typography, {
|
|
30225
|
+
variant: "h5",
|
|
30226
|
+
className: styles$n["box-data"] + "\n "
|
|
30227
|
+
}, "No Data")), isTeacher && React__default.createElement(core.Grid, {
|
|
30221
30228
|
className: "" + styles$n["about-select-switch"]
|
|
30222
30229
|
}, React__default.createElement(core.Switch, {
|
|
30223
30230
|
checked: isChecked,
|
|
@@ -30443,11 +30450,17 @@ var ThingTeachersCanHelpList = function ThingTeachersCanHelpList() {
|
|
|
30443
30450
|
onDelete: handleDelete,
|
|
30444
30451
|
setOpen: setOpen,
|
|
30445
30452
|
getOneData: getOneData
|
|
30446
|
-
})),
|
|
30447
|
-
className: "" + styles$m["about-select"]
|
|
30453
|
+
})), React__default.createElement(core.Grid, {
|
|
30454
|
+
className: "" + ((listData === null || listData === void 0 ? void 0 : listData.length) > 0 ? styles$m["about-select"] : styles$m["box-empty-thingteacher"])
|
|
30448
30455
|
}, React__default.createElement(core.Grid, {
|
|
30449
30456
|
className: "" + styles$m["about-select-box"]
|
|
30450
|
-
}, React__default.createElement(core.
|
|
30457
|
+
}, (listData === null || listData === void 0 ? void 0 : listData.length) == 0 && React__default.createElement(core.Box, {
|
|
30458
|
+
p: 2,
|
|
30459
|
+
className: "" + styles$m["box-data-mui"]
|
|
30460
|
+
}, React__default.createElement(core.Typography, {
|
|
30461
|
+
variant: "h5",
|
|
30462
|
+
className: styles$m["box-data"] + "\n "
|
|
30463
|
+
}, "No Data")), isTeacher && React__default.createElement(core.Grid, {
|
|
30451
30464
|
className: "" + styles$m["about-select-switch"]
|
|
30452
30465
|
}, React__default.createElement(core.Switch, {
|
|
30453
30466
|
checked: isChecked,
|
|
@@ -31414,30 +31427,34 @@ var useNote = function useNote() {
|
|
|
31414
31427
|
render = _useState7[0],
|
|
31415
31428
|
setRender = _useState7[1];
|
|
31416
31429
|
|
|
31417
|
-
var inputSearch = React.useRef(null);
|
|
31418
31430
|
var dispatch = reactRedux.useDispatch();
|
|
31419
31431
|
var history = reactRouterDom.useHistory();
|
|
31420
31432
|
React.useEffect(function () {
|
|
31421
31433
|
dataNoteAllSelect();
|
|
31422
|
-
}, [isFavorite, startDate, endDate, render, category]);
|
|
31434
|
+
}, [isFavorite, startDate, endDate, render, category, search]);
|
|
31423
31435
|
|
|
31424
31436
|
var changeStartDate = function changeStartDate(date) {
|
|
31425
31437
|
setStartDate(date === null || date === void 0 ? void 0 : date.valueOf());
|
|
31426
31438
|
};
|
|
31427
31439
|
|
|
31428
|
-
var
|
|
31429
|
-
|
|
31430
|
-
|
|
31440
|
+
var inputSearch = React.useRef(null);
|
|
31441
|
+
|
|
31442
|
+
var handleChangeInputSearch = function handleChangeInputSearch(event) {
|
|
31443
|
+
var inputValue = event.target.value;
|
|
31431
31444
|
|
|
31432
31445
|
if (!!inputSearch.current) {
|
|
31433
31446
|
clearTimeout(inputSearch.current);
|
|
31434
31447
|
}
|
|
31435
31448
|
|
|
31436
31449
|
inputSearch.current = setTimeout(function () {
|
|
31437
|
-
|
|
31450
|
+
setSearch(inputValue);
|
|
31438
31451
|
}, 800);
|
|
31439
31452
|
};
|
|
31440
31453
|
|
|
31454
|
+
React.useEffect(function () {
|
|
31455
|
+
dataNoteAllSelect();
|
|
31456
|
+
}, [search]);
|
|
31457
|
+
|
|
31441
31458
|
var changeEndDate = function changeEndDate(date) {
|
|
31442
31459
|
setEndDate(date === null || date === void 0 ? void 0 : date.valueOf());
|
|
31443
31460
|
};
|
|
@@ -31526,16 +31543,17 @@ var useNote = function useNote() {
|
|
|
31526
31543
|
startDate: startDate,
|
|
31527
31544
|
endDate: endDate,
|
|
31528
31545
|
allNoteList: allNoteList,
|
|
31529
|
-
|
|
31546
|
+
handleChangeInputSearch: handleChangeInputSearch,
|
|
31530
31547
|
search: search,
|
|
31531
31548
|
onClickFavorite: onClickFavorite,
|
|
31532
31549
|
addNoteLink: addNoteLink,
|
|
31533
31550
|
viewItemNoteLink: viewItemNoteLink,
|
|
31534
31551
|
viewListNote: viewListNote,
|
|
31535
|
-
inputSearch: inputSearch,
|
|
31536
31552
|
updateFavorite: updateFavorite,
|
|
31537
31553
|
category: category,
|
|
31538
|
-
handleChangeCategory: handleChangeCategory
|
|
31554
|
+
handleChangeCategory: handleChangeCategory,
|
|
31555
|
+
dataNoteAllSelect: dataNoteAllSelect,
|
|
31556
|
+
inputSearch: inputSearch
|
|
31539
31557
|
};
|
|
31540
31558
|
};
|
|
31541
31559
|
|
|
@@ -31546,17 +31564,16 @@ var Note = function Note() {
|
|
|
31546
31564
|
changeEndDate = _useNote.changeEndDate,
|
|
31547
31565
|
changeStartDate = _useNote.changeStartDate,
|
|
31548
31566
|
startDate = _useNote.startDate,
|
|
31549
|
-
|
|
31550
|
-
onChangeSearch = _useNote.onChangeSearch,
|
|
31567
|
+
handleChangeInputSearch = _useNote.handleChangeInputSearch,
|
|
31551
31568
|
allNoteList = _useNote.allNoteList,
|
|
31552
31569
|
onClickFavorite = _useNote.onClickFavorite,
|
|
31553
31570
|
addNoteLink = _useNote.addNoteLink,
|
|
31554
31571
|
viewItemNoteLink = _useNote.viewItemNoteLink,
|
|
31555
|
-
inputSearch = _useNote.inputSearch,
|
|
31556
31572
|
updateFavorite = _useNote.updateFavorite,
|
|
31557
31573
|
endDate = _useNote.endDate,
|
|
31558
31574
|
category = _useNote.category,
|
|
31559
|
-
handleChangeCategory = _useNote.handleChangeCategory
|
|
31575
|
+
handleChangeCategory = _useNote.handleChangeCategory,
|
|
31576
|
+
inputSearch = _useNote.inputSearch;
|
|
31560
31577
|
|
|
31561
31578
|
var renderNoteList = function renderNoteList(note) {
|
|
31562
31579
|
var _note$type;
|
|
@@ -31628,6 +31645,7 @@ var Note = function Note() {
|
|
|
31628
31645
|
}, note.text)));
|
|
31629
31646
|
|
|
31630
31647
|
case "OnoToOne":
|
|
31648
|
+
case "Conference":
|
|
31631
31649
|
if (note.text) {
|
|
31632
31650
|
var noteItem = note.text.split("[/]");
|
|
31633
31651
|
|
|
@@ -31776,10 +31794,7 @@ var Note = function Note() {
|
|
|
31776
31794
|
}, React__default.createElement(SearchIcon, null)), React__default.createElement(core.InputBase, {
|
|
31777
31795
|
placeholder: "Search student",
|
|
31778
31796
|
className: "" + styles$u["inputInput"],
|
|
31779
|
-
onChange:
|
|
31780
|
-
return onChangeSearch(e);
|
|
31781
|
-
},
|
|
31782
|
-
value: search,
|
|
31797
|
+
onChange: handleChangeInputSearch,
|
|
31783
31798
|
inputProps: {
|
|
31784
31799
|
"aria-label": "search"
|
|
31785
31800
|
},
|
|
@@ -31787,7 +31802,7 @@ var Note = function Note() {
|
|
|
31787
31802
|
}))))), allNoteList.length > 0 ? allNoteList.map(function (item) {
|
|
31788
31803
|
return React__default.createElement("div", {
|
|
31789
31804
|
className: "" + styles$u["content-note"]
|
|
31790
|
-
}, (item === null || item === void 0 ? void 0 : item.type) === "Personalized" ? renderNoteList(item) :
|
|
31805
|
+
}, (item === null || item === void 0 ? void 0 : item.type) === "Personalized" ? renderNoteList(item) : (item === null || item === void 0 ? void 0 : item.text) && renderNoteList(item));
|
|
31791
31806
|
}) : React__default.createElement("div", {
|
|
31792
31807
|
className: "" + styles$u["no-data"]
|
|
31793
31808
|
}, React__default.createElement("p", {
|
|
@@ -34577,25 +34592,45 @@ var useEditLearningStrategies$1 = function useEditLearningStrategies() {
|
|
|
34577
34592
|
selectData = _useState3[0],
|
|
34578
34593
|
setSelectData = _useState3[1];
|
|
34579
34594
|
|
|
34580
|
-
var selectLearning = function selectLearning(checked,
|
|
34595
|
+
var selectLearning = function selectLearning(checked, id) {
|
|
34581
34596
|
var value = [].concat(selectData);
|
|
34582
34597
|
var item = value === null || value === void 0 ? void 0 : value.find(function (item) {
|
|
34583
|
-
return item ==
|
|
34598
|
+
return item.identification == id;
|
|
34584
34599
|
});
|
|
34585
34600
|
|
|
34586
34601
|
if (checked) {
|
|
34587
|
-
if (!!
|
|
34602
|
+
if (!!id && !item) value.push({
|
|
34603
|
+
id: id,
|
|
34604
|
+
identification: id
|
|
34605
|
+
});
|
|
34606
|
+
|
|
34607
|
+
if (!!id && item && item.id === null) {
|
|
34608
|
+
value[value.indexOf(item)].id = id;
|
|
34609
|
+
}
|
|
34588
34610
|
} else {
|
|
34589
|
-
value
|
|
34611
|
+
value[value.indexOf(item)].id = null;
|
|
34590
34612
|
}
|
|
34591
34613
|
|
|
34592
34614
|
setSelectData(value);
|
|
34593
34615
|
};
|
|
34594
34616
|
|
|
34595
|
-
var handleChangeNote = function handleChangeNote(e,
|
|
34596
|
-
var
|
|
34597
|
-
|
|
34598
|
-
|
|
34617
|
+
var handleChangeNote = function handleChangeNote(e, id) {
|
|
34618
|
+
var select = [].concat(selectData);
|
|
34619
|
+
var itemIndex = select === null || select === void 0 ? void 0 : select.findIndex(function (item) {
|
|
34620
|
+
return item.identification == id;
|
|
34621
|
+
});
|
|
34622
|
+
|
|
34623
|
+
if (itemIndex === -1) {
|
|
34624
|
+
select.push({
|
|
34625
|
+
id: null,
|
|
34626
|
+
note: e,
|
|
34627
|
+
identification: id
|
|
34628
|
+
});
|
|
34629
|
+
} else {
|
|
34630
|
+
select[itemIndex].note = e;
|
|
34631
|
+
}
|
|
34632
|
+
|
|
34633
|
+
setSelectData(select);
|
|
34599
34634
|
};
|
|
34600
34635
|
|
|
34601
34636
|
var backToLearningStrategy = function backToLearningStrategy() {
|
|
@@ -34606,17 +34641,26 @@ var useEditLearningStrategies$1 = function useEditLearningStrategies() {
|
|
|
34606
34641
|
try {
|
|
34607
34642
|
return Promise.resolve(_catch(function () {
|
|
34608
34643
|
var value = [];
|
|
34609
|
-
|
|
34644
|
+
var data = [];
|
|
34645
|
+
|
|
34646
|
+
for (var _iterator = _createForOfIteratorHelperLoose(selectData), _step; !(_step = _iterator()).done;) {
|
|
34647
|
+
var item = _step.value;
|
|
34648
|
+
if (item.id !== null) data.push(item);
|
|
34649
|
+
}
|
|
34650
|
+
|
|
34651
|
+
if (!data || data.length === 0) throw new Error("Please choose at least one Learning Strategies");
|
|
34610
34652
|
|
|
34611
34653
|
var _loop = function _loop() {
|
|
34612
|
-
var element =
|
|
34654
|
+
var element = _data[_i];
|
|
34613
34655
|
var item = learningStrategyData === null || learningStrategyData === void 0 ? void 0 : learningStrategyData.find(function (item) {
|
|
34614
|
-
return item.id == element;
|
|
34656
|
+
return item.id == element.id;
|
|
34615
34657
|
});
|
|
34616
|
-
value.push(item
|
|
34658
|
+
value.push(_extends({}, item, {
|
|
34659
|
+
note: element.note
|
|
34660
|
+
}));
|
|
34617
34661
|
};
|
|
34618
34662
|
|
|
34619
|
-
for (var
|
|
34663
|
+
for (var _i = 0, _data = data; _i < _data.length; _i++) {
|
|
34620
34664
|
_loop();
|
|
34621
34665
|
}
|
|
34622
34666
|
|
|
@@ -34634,6 +34678,33 @@ var useEditLearningStrategies$1 = function useEditLearningStrategies() {
|
|
|
34634
34678
|
}
|
|
34635
34679
|
};
|
|
34636
34680
|
|
|
34681
|
+
var handleCheckSelectItem = function handleCheckSelectItem(id) {
|
|
34682
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(selectData), _step2; !(_step2 = _iterator2()).done;) {
|
|
34683
|
+
var item = _step2.value;
|
|
34684
|
+
if (item.id === id) return true;
|
|
34685
|
+
}
|
|
34686
|
+
|
|
34687
|
+
return false;
|
|
34688
|
+
};
|
|
34689
|
+
|
|
34690
|
+
var handleShowNote = function handleShowNote(id) {
|
|
34691
|
+
var item = selectData === null || selectData === void 0 ? void 0 : selectData.find(function (item) {
|
|
34692
|
+
return item.identification == id;
|
|
34693
|
+
});
|
|
34694
|
+
return !!item && item.note ? item.note : "";
|
|
34695
|
+
};
|
|
34696
|
+
|
|
34697
|
+
var handleShowSelectItemCount = function handleShowSelectItemCount() {
|
|
34698
|
+
var data = [];
|
|
34699
|
+
|
|
34700
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose(selectData), _step3; !(_step3 = _iterator3()).done;) {
|
|
34701
|
+
var item = _step3.value;
|
|
34702
|
+
if (item.id !== null) data.push(item);
|
|
34703
|
+
}
|
|
34704
|
+
|
|
34705
|
+
return data.length;
|
|
34706
|
+
};
|
|
34707
|
+
|
|
34637
34708
|
React.useEffect(function () {
|
|
34638
34709
|
document.title = "Learning Strategies";
|
|
34639
34710
|
}, []);
|
|
@@ -34651,7 +34722,10 @@ var useEditLearningStrategies$1 = function useEditLearningStrategies() {
|
|
|
34651
34722
|
filters: filters,
|
|
34652
34723
|
selectData: selectData,
|
|
34653
34724
|
handleAddLearningStrategy: handleAddLearningStrategy,
|
|
34654
|
-
backToLearningStrategy: backToLearningStrategy
|
|
34725
|
+
backToLearningStrategy: backToLearningStrategy,
|
|
34726
|
+
handleCheckSelectItem: handleCheckSelectItem,
|
|
34727
|
+
handleShowNote: handleShowNote,
|
|
34728
|
+
handleShowSelectItemCount: handleShowSelectItemCount
|
|
34655
34729
|
};
|
|
34656
34730
|
};
|
|
34657
34731
|
|
|
@@ -34661,9 +34735,11 @@ function LearningStrategiesSave() {
|
|
|
34661
34735
|
selectLearning = _useAddLearningStrate.selectLearning,
|
|
34662
34736
|
handleChangeNote = _useAddLearningStrate.handleChangeNote,
|
|
34663
34737
|
changeFilters = _useAddLearningStrate.changeFilters,
|
|
34664
|
-
selectData = _useAddLearningStrate.selectData,
|
|
34665
34738
|
handleAddLearningStrategy = _useAddLearningStrate.handleAddLearningStrategy,
|
|
34666
|
-
backToLearningStrategy = _useAddLearningStrate.backToLearningStrategy
|
|
34739
|
+
backToLearningStrategy = _useAddLearningStrate.backToLearningStrategy,
|
|
34740
|
+
handleCheckSelectItem = _useAddLearningStrate.handleCheckSelectItem,
|
|
34741
|
+
handleShowNote = _useAddLearningStrate.handleShowNote,
|
|
34742
|
+
handleShowSelectItemCount = _useAddLearningStrate.handleShowSelectItemCount;
|
|
34667
34743
|
|
|
34668
34744
|
var handleBestFit = function handleBestFit(e) {
|
|
34669
34745
|
var string = !!e ? e : "";
|
|
@@ -34723,7 +34799,7 @@ function LearningStrategiesSave() {
|
|
|
34723
34799
|
xs: 8
|
|
34724
34800
|
}, React__default.createElement("div", {
|
|
34725
34801
|
className: "" + styles$x["search"]
|
|
34726
|
-
}, " ", React__default.createElement("p", null,
|
|
34802
|
+
}, " ", React__default.createElement("p", null, handleShowSelectItemCount() + " Selected Learning Strategies"))), React__default.createElement(core.Grid, {
|
|
34727
34803
|
item: true,
|
|
34728
34804
|
xs: 4
|
|
34729
34805
|
}, React__default.createElement("div", {
|
|
@@ -34740,7 +34816,7 @@ function LearningStrategiesSave() {
|
|
|
34740
34816
|
InputProps: {
|
|
34741
34817
|
endAdornment: React__default.createElement(core.IconButton, null, React__default.createElement(SearchIcon, null))
|
|
34742
34818
|
}
|
|
34743
|
-
})))), !!learningStrategyData && learningStrategyData.length > 0 ? learningStrategyData.map(function (e
|
|
34819
|
+
})))), !!learningStrategyData && learningStrategyData.length > 0 ? learningStrategyData.map(function (e) {
|
|
34744
34820
|
return React__default.createElement(core.Grid, {
|
|
34745
34821
|
container: true,
|
|
34746
34822
|
spacing: 2
|
|
@@ -34755,6 +34831,7 @@ function LearningStrategiesSave() {
|
|
|
34755
34831
|
onChange: function onChange(_i, value) {
|
|
34756
34832
|
return selectLearning(value, e.id);
|
|
34757
34833
|
},
|
|
34834
|
+
checked: handleCheckSelectItem(e.id),
|
|
34758
34835
|
color: "primary",
|
|
34759
34836
|
inputProps: {
|
|
34760
34837
|
"aria-label": "secondary checkbox"
|
|
@@ -34773,9 +34850,9 @@ function LearningStrategiesSave() {
|
|
|
34773
34850
|
}, React__default.createElement("div", {
|
|
34774
34851
|
className: "" + styles$x["content-note"]
|
|
34775
34852
|
}, "Add Note"), React__default.createElement(InputComponent, {
|
|
34776
|
-
valueText:
|
|
34777
|
-
onChange: function onChange(
|
|
34778
|
-
return handleChangeNote(
|
|
34853
|
+
valueText: handleShowNote(e.id),
|
|
34854
|
+
onChange: function onChange(event) {
|
|
34855
|
+
return handleChangeNote(event, e.id);
|
|
34779
34856
|
},
|
|
34780
34857
|
name: "",
|
|
34781
34858
|
placeholder: "Add note"
|
|
@@ -35599,7 +35676,8 @@ var useDoneList = function useDoneList() {
|
|
|
35599
35676
|
handleChangeDeadline: handleChangeDeadline,
|
|
35600
35677
|
handleChangeClassName: handleChangeClassName,
|
|
35601
35678
|
changeFilters: changeFilters,
|
|
35602
|
-
filters: filters
|
|
35679
|
+
filters: filters,
|
|
35680
|
+
isTeacher: isTeacher
|
|
35603
35681
|
};
|
|
35604
35682
|
};
|
|
35605
35683
|
|
|
@@ -35610,6 +35688,7 @@ var DoneList = function DoneList() {
|
|
|
35610
35688
|
classList = _doneListServices.classList,
|
|
35611
35689
|
handleChangeDeadline = _doneListServices.handleChangeDeadline,
|
|
35612
35690
|
handleChangeClassName = _doneListServices.handleChangeClassName,
|
|
35691
|
+
isTeacher = _doneListServices.isTeacher,
|
|
35613
35692
|
filters = _doneListServices.filters;
|
|
35614
35693
|
|
|
35615
35694
|
return React__default.createElement("div", {
|
|
@@ -35618,7 +35697,7 @@ var DoneList = function DoneList() {
|
|
|
35618
35697
|
className: "" + styles$A["wrapper"]
|
|
35619
35698
|
}, React__default.createElement("div", {
|
|
35620
35699
|
className: "" + styles$A["filter-box"]
|
|
35621
|
-
}, React__default.createElement(core.FormControl, {
|
|
35700
|
+
}, !isTeacher && React__default.createElement(core.FormControl, {
|
|
35622
35701
|
variant: "outlined",
|
|
35623
35702
|
style: {
|
|
35624
35703
|
marginRight: "10px"
|
|
@@ -37587,7 +37666,7 @@ var MyClassReflection = function MyClassReflection() {
|
|
|
37587
37666
|
className: "" + styles$B["student-detail"]
|
|
37588
37667
|
}, React__default.createElement("img", {
|
|
37589
37668
|
className: styles$B["reflection-avatar"] + " " + styles$B["avatar_user"],
|
|
37590
|
-
src: !!(row !== null && row !== void 0 && row.studentAvatar) ? row === null || row === void 0 ? void 0 : row.studentAvatar : DEFAULT_USER_AVATAR$n
|
|
37669
|
+
src: !!(row !== null && row !== void 0 && row.studentAvatar) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : row.studentAvatar) : DEFAULT_USER_AVATAR$n
|
|
37591
37670
|
}), row.studentName)), React__default.createElement(core.TableCell, {
|
|
37592
37671
|
align: "left",
|
|
37593
37672
|
style: {
|
|
@@ -37658,7 +37737,7 @@ var MyClassReflection = function MyClassReflection() {
|
|
|
37658
37737
|
marginRight: "10px"
|
|
37659
37738
|
},
|
|
37660
37739
|
className: styles$B["reflection-avatar"] + " " + styles$B["avatar_user"],
|
|
37661
|
-
src: !!(row !== null && row !== void 0 && row.teacherAvatar) ? row === null || row === void 0 ? void 0 : row.teacherAvatar : DEFAULT_USER_AVATAR$n
|
|
37740
|
+
src: !!(row !== null && row !== void 0 && row.teacherAvatar) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : row.teacherAvatar) : DEFAULT_USER_AVATAR$n
|
|
37662
37741
|
}), React__default.createElement(core.Typography, {
|
|
37663
37742
|
className: "" + styles$B["reflection-name"]
|
|
37664
37743
|
}, row.teacherName)), React__default.createElement(core.Grid, {
|