mario-teacher-student-client 2.1.85-beta → 2.1.87-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.
@@ -0,0 +1,4 @@
1
+ export declare const describeQuestion: {
2
+ key: string;
3
+ value: string;
4
+ }[];
@@ -8,13 +8,6 @@ declare const useAddLearningStrategies: () => {
8
8
  learningStrategyData: any;
9
9
  selectLearning: (checked: boolean, data: Props) => void;
10
10
  handleChangeNote: (e: string, id: number) => void;
11
- changeFilters: (e: string) => void;
12
- filters: {
13
- studentId: any;
14
- isShowChoose: boolean;
15
- searchString: string;
16
- selected: string;
17
- };
18
11
  selectData: any;
19
12
  handleAddLearningStrategy: () => Promise<void>;
20
13
  backToLearningStrategy: () => void;
@@ -23,6 +16,5 @@ declare const useAddLearningStrategies: () => {
23
16
  handleShowSelectItemCount: () => number;
24
17
  classFontSize: string;
25
18
  bestFits: string[];
26
- selectedChange: (e: string[]) => void;
27
19
  };
28
20
  export default useAddLearningStrategies;
@@ -17,8 +17,9 @@ declare const useEditLearningStrategies: () => {
17
17
  isTeacher: any;
18
18
  classFontSize: string;
19
19
  bestFits: string[];
20
- selectedChange: (e: string[]) => Promise<void>;
20
+ selectedChange: (e: string[]) => void;
21
21
  nameStudent: string;
22
22
  isParent: any;
23
+ changeFilters: (e: string) => void;
23
24
  };
24
25
  export default useEditLearningStrategies;
@@ -16,5 +16,6 @@ declare const useStudentList: () => {
16
16
  setStudentAssistant: import("react").Dispatch<import("react").SetStateAction<number>>;
17
17
  isRoleTeacherAndAssistant: boolean;
18
18
  nameTeacherAssistant: any;
19
+ downloadTemplate: () => Promise<void>;
19
20
  };
20
21
  export default useStudentList;
package/dist/index.css CHANGED
@@ -43,6 +43,17 @@
43
43
  ._1jTMg {
44
44
  display: none; } }
45
45
 
46
+ ._1DlZO {
47
+ display: flex;
48
+ align-items: center; }
49
+ ._1DlZO ._29Hwk {
50
+ margin-left: 10px; }
51
+
52
+ ._2pyf5 > p {
53
+ font-size: 16px;
54
+ color: rgba(0, 0, 0, 0.54);
55
+ margin-top: 12px; }
56
+
46
57
  ._2oMWx ._1M4r8 {
47
58
  background: #fff;
48
59
  text-transform: uppercase;
@@ -115,7 +126,7 @@ h2._13S5D {
115
126
  color: #2d3748;
116
127
  font-size: 14px;
117
128
  font-weight: bold;
118
- margin-top: 12px; }
129
+ margin: 0; }
119
130
 
120
131
  ._t-JhH p:nth-child(2) {
121
132
  font-size: 16px;
@@ -148,7 +159,8 @@ p._1YLGi {
148
159
  display: block; } }
149
160
  ._2gqE- ._337MJ {
150
161
  flex: 1 0 30%;
151
- margin-right: 5px; }
162
+ margin-right: 5px;
163
+ margin-top: 12px; }
152
164
  ._2gqE- ._k_dl- {
153
165
  display: block;
154
166
  width: 100%; }
package/dist/index.js CHANGED
@@ -423,7 +423,7 @@ var getStudentSimpleProfile = function getStudentSimpleProfile() {
423
423
  return marioCore.api.get("" + STUDENT_PROFILE);
424
424
  };
425
425
 
426
- var styleIndex = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","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","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"};
426
+ var styleIndex = {"reset-the-content":"_1zJw3","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","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","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"};
427
427
 
428
428
  function toVal(mix) {
429
429
  var k, y, str='';
@@ -4028,6 +4028,9 @@ var getNoteByStudentId = function getNoteByStudentId(studentId) {
4028
4028
  }
4029
4029
  });
4030
4030
  };
4031
+ var downloadTemplateFile = function downloadTemplateFile() {
4032
+ return marioCore.api.get(TEACHER_URL$1 + "/download-template-file");
4033
+ };
4031
4034
 
4032
4035
  var useChangeRoteQuestion = function useChangeRoteQuestion() {
4033
4036
  var dispatch = reactRedux.useDispatch();
@@ -8642,6 +8645,69 @@ var SingleChoiceComponent = function SingleChoiceComponent(_ref) {
8642
8645
  })));
8643
8646
  };
8644
8647
 
8648
+ var describeQuestion = [{
8649
+ key: "<p>Well-being</p>",
8650
+ value: "Well-being is feeling good mentally (in your head) and physically (in your body). Do you have habits and routines that help you look after yourself? Some people boost their well-being by eating healthily, being active, spending time with friends and family, doing things they enjoy, or helping others. "
8651
+ }, {
8652
+ key: "<p>Growth</p>",
8653
+ value: "Growth is all about becoming the best version of yourself. This is done through learning, trying new things, working hard, and taking risks. Are you happy with the progress you are making towards your goals and in other areas of your life? "
8654
+ }, {
8655
+ key: "<p>Relationships</p>",
8656
+ value: "Relationships are connections with other people. Good relationships have trust, respect, honesty, and safety. How are you getting on with family, friends, and teachers? Do you have relationships that bring you happiness and people you can talk to?"
8657
+ }, {
8658
+ key: "<p>Productivity</p>",
8659
+ value: "Productivity is about getting things done in a way that is smarter, not harder. This means you know what needs to be done and how you're going to do it. While doing your work today, were you able to help yourself stay focused and finish the task?"
8660
+ }, {
8661
+ key: "<p>Academics</p>",
8662
+ value: "Academics relate to your learning, through work you do at school and home. Are you doing your classwork and homework every day? Do your grades show your teachers, parents, and even yourself how hard you are working to learn? "
8663
+ }, {
8664
+ key: "<p>Self-efficacy</p>",
8665
+ value: "Self-efficacy is when you believe in yourself and that you can do something well. Are you happy with something you have done well today? Do you think you can be successful in what you have to do today? "
8666
+ }, {
8667
+ key: "<p>Focus</p>",
8668
+ value: "Focus is when you pay attention to a task or a person and don't get distracted. If you're trying to focus on your teacher, then you are only thinking about what the teacher is saying. Have you been able to stay on task today? Can you clear your mind to do your work? "
8669
+ }, {
8670
+ key: "<p>Happiness</p>",
8671
+ value: "Happiness is a good feeling that can come from anything you enjoy or from generally being satisfied with the way your life is going. While it's not possible to be happy all the time, you can always find something to be happy about. Has there been a moment that made you smile today? What things/people/activities bring you joy and make you feel good?"
8672
+ }, {
8673
+ key: "<p>Safety</p>",
8674
+ value: "When you feel safe, you are not scared or in danger. It means you are comfortable and happy at home, at school, and wherever your normal activities take you. Are you able to be yourself? Do you feel like people care about you and that your thoughts and feelings matter? "
8675
+ }, {
8676
+ key: "<p>Stress</p>",
8677
+ value: "Stress is a feeling people get when they are worried, scared, or don't know what to do. You may feel powerless or like you have too many things to manage when you are stressed. Are you feeling overwhelmed or worried? How do you feel about your stress level at the moment? "
8678
+ }, {
8679
+ key: "<p>Are you Ready to Learn?</p>",
8680
+ value: "After looking at your answers today, are you ready to do what's asked of you in class or do you need help to get in a good place to learn? Being ready to learn means your mind and body are working together to prepare you to learn new things and deepen your understanding of the learning already covered."
8681
+ }, {
8682
+ key: "<p>How much did you learn from this session?</p>",
8683
+ value: "How helpful was our conversation today?"
8684
+ }, {
8685
+ key: "<p>What is your level of pride in yourself today?</p>",
8686
+ value: "Being proud of yourself is when you feel good about something you did or who you are as a person. How satisfied or happy are you about your actions today? "
8687
+ }, {
8688
+ key: "<p>What is the most important thing you learned from this session?</p>",
8689
+ value: "What is the one thing you are going to keep doing well or start doing differently? OR What is one thing you learned about yourself, others, or the world around you?"
8690
+ }, {
8691
+ key: "<p>Energy</p>",
8692
+ value: "Energy provides the strength and power to do something. This can be something physical, like running a race, or mental, like taking an assessment. Do you feel like you have enough energy to get through the day? How do you feel about your energy levels at the moment? "
8693
+ }];
8694
+
8695
+ var theme = core.createTheme({
8696
+ overrides: {
8697
+ MuiTooltip: {
8698
+ tooltip: {
8699
+ fontSize: "14px",
8700
+ color: "#FFFFFF",
8701
+ backgroundColor: "#156DA1",
8702
+ padding: "10px 15px"
8703
+ },
8704
+ arrow: {
8705
+ color: "#156DA1"
8706
+ }
8707
+ }
8708
+ }
8709
+ });
8710
+
8645
8711
  var QuestionComponent = function QuestionComponent(_ref) {
8646
8712
  var questionItemName = _ref.questionItemName,
8647
8713
  minText = _ref.minText,
@@ -8731,16 +8797,37 @@ var QuestionComponent = function QuestionComponent(_ref) {
8731
8797
  }
8732
8798
  };
8733
8799
 
8800
+ var handleRenderDescribe = function handleRenderDescribe(key) {
8801
+ var _describeQuestion$fin;
8802
+
8803
+ return ((_describeQuestion$fin = describeQuestion.find(function (r) {
8804
+ return r.key === key;
8805
+ })) === null || _describeQuestion$fin === void 0 ? void 0 : _describeQuestion$fin.value) || null;
8806
+ };
8807
+
8734
8808
  var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
8809
+ var dangerouslySetInnerHTML = (questionItemName === null || questionItemName === void 0 ? void 0 : questionItemName.split("\n")) || [];
8735
8810
  return screenWidth > 600 ? React__default.createElement("div", {
8736
8811
  className: styleIndex["question-block"] + " " + styleIndex[classFontSize]
8737
8812
  }, React__default.createElement("div", {
8738
8813
  className: styleIndex["question-text"]
8739
- }, React__default.createElement("div", {
8740
- className: styleIndex["font-question"],
8741
- dangerouslySetInnerHTML: {
8742
- __html: questionItemName
8743
- }
8814
+ }, dangerouslySetInnerHTML.map(function (r, index) {
8815
+ return React__default.createElement("div", {
8816
+ className: "" + styleIndex["box-title-question"]
8817
+ }, React__default.createElement("div", {
8818
+ className: "" + (index > 0 ? styleIndex["font-description"] : styleIndex["font-question"]),
8819
+ dangerouslySetInnerHTML: {
8820
+ __html: r
8821
+ }
8822
+ }), !!handleRenderDescribe(r) && React__default.createElement(core.MuiThemeProvider, {
8823
+ theme: theme
8824
+ }, React__default.createElement(core.Tooltip, {
8825
+ arrow: true,
8826
+ title: handleRenderDescribe(r) || "",
8827
+ className: "" + styleIndex["tooltip-question"]
8828
+ }, React__default.createElement("i", {
8829
+ className: "fal fa-info-circle"
8830
+ }))));
8744
8831
  })), React__default.createElement("div", {
8745
8832
  className: styleIndex["question-slider"]
8746
8833
  }, renderQuestion(questionTypeId))) : React__default.createElement("div", {
@@ -16459,6 +16546,42 @@ var useStudentList$1 = function useStudentList() {
16459
16546
  return hTime;
16460
16547
  };
16461
16548
 
16549
+ var downloadTemplate = function downloadTemplate() {
16550
+ try {
16551
+ var _temp15 = function _temp15() {
16552
+ dispatch(marioCore.setLoading(false));
16553
+ };
16554
+
16555
+ dispatch(marioCore.setLoading(true));
16556
+
16557
+ var _temp16 = _catch(function () {
16558
+ return Promise.resolve(downloadTemplateFile()).then(function (res) {
16559
+ var data = new Blob([res.data.content], {
16560
+ type: 'text/csv'
16561
+ });
16562
+ var fileURL = window.URL.createObjectURL(data);
16563
+ var a = document.createElement("a");
16564
+ a.href = fileURL;
16565
+ a.setAttribute("download", res.data.nameFile);
16566
+ a.click();
16567
+ dispatch(marioCore.setAlert({
16568
+ type: "success",
16569
+ message: "Download successfully"
16570
+ }));
16571
+ });
16572
+ }, function (err) {
16573
+ dispatch(marioCore.setAlert({
16574
+ type: "danger",
16575
+ message: err.message
16576
+ }));
16577
+ });
16578
+
16579
+ return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(_temp15) : _temp15(_temp16));
16580
+ } catch (e) {
16581
+ return Promise.reject(e);
16582
+ }
16583
+ };
16584
+
16462
16585
  React.useEffect(function () {
16463
16586
  getData();
16464
16587
  }, [filters]);
@@ -16477,7 +16600,8 @@ var useStudentList$1 = function useStudentList() {
16477
16600
  setAssistantId: setAssistantId,
16478
16601
  setStudentAssistant: setStudentAssistant,
16479
16602
  isRoleTeacherAndAssistant: isRoleTeacherAndAssistant,
16480
- nameTeacherAssistant: nameTeacherAssistant
16603
+ nameTeacherAssistant: nameTeacherAssistant,
16604
+ downloadTemplate: downloadTemplate
16481
16605
  };
16482
16606
  };
16483
16607
 
@@ -16590,7 +16714,8 @@ var StudentList = function StudentList() {
16590
16714
  onSubmitAssistant = _useStudentList.onSubmitAssistant,
16591
16715
  setStudentAssistant = _useStudentList.setStudentAssistant,
16592
16716
  isRoleTeacherAndAssistant = _useStudentList.isRoleTeacherAndAssistant,
16593
- nameTeacherAssistant = _useStudentList.nameTeacherAssistant;
16717
+ nameTeacherAssistant = _useStudentList.nameTeacherAssistant,
16718
+ downloadTemplate = _useStudentList.downloadTemplate;
16594
16719
 
16595
16720
  var classes = useStyles();
16596
16721
  var history = reactRouterDom.useHistory();
@@ -16737,6 +16862,12 @@ var StudentList = function StudentList() {
16737
16862
  event.target.value = null;
16738
16863
  }
16739
16864
  }), React__default.createElement(Label, {
16865
+ role: "button",
16866
+ className: "mr-3",
16867
+ onClick: function onClick() {
16868
+ return downloadTemplate();
16869
+ }
16870
+ }, React__default.createElement("p", null, "Download Template ", React__default.createElement(ImportIcon, null))), React__default.createElement(Label, {
16740
16871
  htmlFor: "uploadFile",
16741
16872
  role: "button",
16742
16873
  tabIndex: 0
@@ -23745,8 +23876,7 @@ var useThingTeachersCanHelp = function useThingTeachersCanHelp() {
23745
23876
  var _temp12 = _catch(function () {
23746
23877
  return Promise.resolve(updateItem$1(id, _extends({}, data, {
23747
23878
  studentId: isTeacher || isParent ? parseInt(studentId) : currentId
23748
- }))).then(function (res) {
23749
- !!res.data && getAll(filters);
23879
+ }))).then(function () {
23750
23880
  dispatch(marioCore.setAlert({
23751
23881
  type: "success",
23752
23882
  message: "Update successfully"
@@ -51655,6 +51785,29 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
51655
51785
  learningStrategyData = _useState3[0],
51656
51786
  setLearningStrategyData = _useState3[1];
51657
51787
 
51788
+ var _useState4 = React.useState({
51789
+ studentId: studentId,
51790
+ isShowChoose: false,
51791
+ searchString: "",
51792
+ selected: ""
51793
+ }),
51794
+ filters = _useState4[0],
51795
+ setFilters = _useState4[1];
51796
+
51797
+ var changeFilters = function changeFilters(e) {
51798
+ setFilters(_extends({}, filters, {
51799
+ searchString: e
51800
+ }));
51801
+ };
51802
+
51803
+ var selectedChange = function selectedChange(e) {
51804
+ setFilters(_extends({}, filters, {
51805
+ studentId: studentId,
51806
+ isShowChoose: false,
51807
+ selected: e.length ? e.join(",") : ""
51808
+ }));
51809
+ };
51810
+
51658
51811
  var defaultFont = reactRedux.useSelector(function (state) {
51659
51812
  var _state$common;
51660
51813
 
@@ -51683,9 +51836,9 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
51683
51836
  }));
51684
51837
  };
51685
51838
 
51686
- var _useState4 = React.useState(false),
51687
- openConfirmDelete = _useState4[0],
51688
- setOpenConfirmDelete = _useState4[1];
51839
+ var _useState5 = React.useState(false),
51840
+ openConfirmDelete = _useState5[0],
51841
+ setOpenConfirmDelete = _useState5[1];
51689
51842
 
51690
51843
  var handleOpenConfirmDeleteDialog = function handleOpenConfirmDeleteDialog(id) {
51691
51844
  setIdItem(id);
@@ -51737,10 +51890,7 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
51737
51890
  var updateItem = function updateItem() {
51738
51891
  try {
51739
51892
  return Promise.resolve(update(idItem, getOneData, studentId)).then(function () {
51740
- return Promise.resolve(getAll({
51741
- studentId: studentId,
51742
- isShowChoose: true
51743
- })).then(function () {
51893
+ return Promise.resolve(getAll(filters)).then(function () {
51744
51894
  setOpen(false);
51745
51895
  });
51746
51896
  });
@@ -51749,18 +51899,6 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
51749
51899
  }
51750
51900
  };
51751
51901
 
51752
- var selectedChange = function selectedChange(e) {
51753
- try {
51754
- return Promise.resolve(getAll({
51755
- studentId: studentId,
51756
- isShowChoose: true,
51757
- selected: e.length ? e.join(",") : ""
51758
- })).then(function () {});
51759
- } catch (e) {
51760
- return Promise.reject(e);
51761
- }
51762
- };
51763
-
51764
51902
  React.useEffect(function () {
51765
51903
  if (open && !!idItem) getById(idItem, studentId);
51766
51904
  }, [idItem]);
@@ -51768,13 +51906,10 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
51768
51906
  setLearningStrategyData(data);
51769
51907
  }, [data]);
51770
51908
  React.useEffect(function () {
51771
- getAll({
51772
- studentId: studentId,
51773
- isShowChoose: true
51774
- });
51775
- getAllow(studentId);
51776
- }, []);
51909
+ getAll(filters);
51910
+ }, [filters]);
51777
51911
  React.useEffect(function () {
51912
+ getAllow(studentId);
51778
51913
  getBestFits();
51779
51914
  }, []);
51780
51915
  React.useEffect(function () {
@@ -51801,7 +51936,8 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
51801
51936
  bestFits: bestFits,
51802
51937
  selectedChange: selectedChange,
51803
51938
  nameStudent: nameStudent,
51804
- isParent: isParent
51939
+ isParent: isParent,
51940
+ changeFilters: changeFilters
51805
51941
  };
51806
51942
  };
51807
51943
 
@@ -51828,9 +51964,9 @@ function LearningStrategies() {
51828
51964
  isTeacher = _useEditLearningStrat.isTeacher,
51829
51965
  classFontSize = _useEditLearningStrat.classFontSize,
51830
51966
  bestFits = _useEditLearningStrat.bestFits,
51831
- selectedChange = _useEditLearningStrat.selectedChange,
51832
51967
  nameStudent = _useEditLearningStrat.nameStudent,
51833
- isParent = _useEditLearningStrat.isParent;
51968
+ isParent = _useEditLearningStrat.isParent,
51969
+ selectedChange = _useEditLearningStrat.selectedChange;
51834
51970
 
51835
51971
  var user = reactRedux.useSelector(function (state) {
51836
51972
  var _state$common;
@@ -52027,7 +52163,6 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
52027
52163
  studentId = _useParams.studentId;
52028
52164
 
52029
52165
  var _useLearningStrategy = useLearningStrategy(),
52030
- getAll = _useLearningStrategy.getAll,
52031
52166
  data = _useLearningStrategy.data,
52032
52167
  create = _useLearningStrategy.create,
52033
52168
  getBestFits = _useLearningStrategy.getBestFits,
@@ -52037,15 +52172,6 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
52037
52172
  learningStrategyData = _useState[0],
52038
52173
  setLearningStrategyData = _useState[1];
52039
52174
 
52040
- var _useState2 = React.useState({
52041
- studentId: studentId,
52042
- isShowChoose: false,
52043
- searchString: "",
52044
- selected: ""
52045
- }),
52046
- filters = _useState2[0],
52047
- setFilters = _useState2[1];
52048
-
52049
52175
  var defaultFont = reactRedux.useSelector(function (state) {
52050
52176
  var _state$common;
52051
52177
 
@@ -52063,15 +52189,9 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
52063
52189
  return "";
52064
52190
  }, [defaultFont]);
52065
52191
 
52066
- var changeFilters = function changeFilters(e) {
52067
- setFilters(_extends({}, filters, {
52068
- searchString: e
52069
- }));
52070
- };
52071
-
52072
- var _useState3 = React.useState([]),
52073
- selectData = _useState3[0],
52074
- setSelectData = _useState3[1];
52192
+ var _useState2 = React.useState([]),
52193
+ selectData = _useState2[0],
52194
+ setSelectData = _useState2[1];
52075
52195
 
52076
52196
  var selectLearning = function selectLearning(checked, data) {
52077
52197
  var value = [].concat(selectData);
@@ -52174,23 +52294,12 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
52174
52294
  return data.length;
52175
52295
  };
52176
52296
 
52177
- var selectedChange = function selectedChange(e) {
52178
- setFilters(_extends({}, filters, {
52179
- studentId: studentId,
52180
- isShowChoose: false,
52181
- selected: e.length ? e.join(",") : ""
52182
- }));
52183
- };
52184
-
52185
52297
  React.useEffect(function () {
52186
52298
  document.title = "Learning Strategies";
52187
52299
  }, []);
52188
52300
  React.useEffect(function () {
52189
52301
  setLearningStrategyData(data);
52190
52302
  }, [data]);
52191
- React.useEffect(function () {
52192
- getAll(filters);
52193
- }, [filters]);
52194
52303
  React.useEffect(function () {
52195
52304
  getBestFits();
52196
52305
  }, []);
@@ -52198,8 +52307,6 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
52198
52307
  learningStrategyData: learningStrategyData,
52199
52308
  selectLearning: selectLearning,
52200
52309
  handleChangeNote: handleChangeNote,
52201
- changeFilters: changeFilters,
52202
- filters: filters,
52203
52310
  selectData: selectData,
52204
52311
  handleAddLearningStrategy: handleAddLearningStrategy,
52205
52312
  backToLearningStrategy: backToLearningStrategy,
@@ -52207,8 +52314,7 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
52207
52314
  handleShowNote: handleShowNote,
52208
52315
  handleShowSelectItemCount: handleShowSelectItemCount,
52209
52316
  classFontSize: classFontSize,
52210
- bestFits: bestFits,
52211
- selectedChange: selectedChange
52317
+ bestFits: bestFits
52212
52318
  };
52213
52319
  };
52214
52320
 
@@ -52217,15 +52323,17 @@ function LearningStrategiesSave() {
52217
52323
  learningStrategyData = _useAddLearningStrate.learningStrategyData,
52218
52324
  selectLearning = _useAddLearningStrate.selectLearning,
52219
52325
  handleChangeNote = _useAddLearningStrate.handleChangeNote,
52220
- changeFilters = _useAddLearningStrate.changeFilters,
52221
52326
  handleAddLearningStrategy = _useAddLearningStrate.handleAddLearningStrategy,
52222
52327
  backToLearningStrategy = _useAddLearningStrate.backToLearningStrategy,
52223
52328
  handleCheckSelectItem = _useAddLearningStrate.handleCheckSelectItem,
52224
52329
  handleShowNote = _useAddLearningStrate.handleShowNote,
52225
52330
  handleShowSelectItemCount = _useAddLearningStrate.handleShowSelectItemCount,
52226
52331
  classFontSize = _useAddLearningStrate.classFontSize,
52227
- bestFits = _useAddLearningStrate.bestFits,
52228
- selectedChange = _useAddLearningStrate.selectedChange;
52332
+ bestFits = _useAddLearningStrate.bestFits;
52333
+
52334
+ var _useEditLearningStrat = useEditLearningStrategies(),
52335
+ changeFilters = _useEditLearningStrat.changeFilters,
52336
+ selectedChange = _useEditLearningStrat.selectedChange;
52229
52337
 
52230
52338
  var handleBestFit = function handleBestFit(e) {
52231
52339
  var string = !!e ? e : "";
@@ -55070,6 +55178,9 @@ var NewGoal = function NewGoal() {
55070
55178
  var _useParams = reactRouterDom.useParams(),
55071
55179
  studentId = _useParams.studentId;
55072
55180
 
55181
+ var domainName = window.location.hostname;
55182
+ var isCheckDomainRubyoung = domainName.includes("rubyyoung");
55183
+
55073
55184
  var _useState = React.useState([]),
55074
55185
  goalCheckpoint = _useState[0],
55075
55186
  setGoalCheckpoint = _useState[1];
@@ -55157,7 +55268,7 @@ var NewGoal = function NewGoal() {
55157
55268
  enableReinitialize: true,
55158
55269
  onSubmit: function onSubmit(values) {
55159
55270
  var result = _extends({}, values, {
55160
- status: values.status.replace(/\s/g, '')
55271
+ status: values.status.replace(/\s/g, "")
55161
55272
  });
55162
55273
 
55163
55274
  create(result, goalBaselines, goalCheckpoint);
@@ -55237,13 +55348,15 @@ var NewGoal = function NewGoal() {
55237
55348
  defaultValue: "top",
55238
55349
  className: "" + styles$8["baseline-group"]
55239
55350
  }, goalBaselines.length > 0 ? goalBaselines.map(function (i) {
55240
- return React__default.createElement(core.FormControlLabel, {
55351
+ return React__default.createElement(core.Grid, null, !isCheckDomainRubyoung ? React__default.createElement(core.FormControlLabel, {
55241
55352
  value: i.name || "",
55242
55353
  control: React__default.createElement(core.Radio, {
55243
55354
  color: "primary"
55244
55355
  }),
55245
55356
  label: i.name || ""
55246
- });
55357
+ }) : React__default.createElement(core.Typography, {
55358
+ className: "" + styles$8["baseline-content"]
55359
+ }, i.name));
55247
55360
  }) : null))), React__default.createElement(core.Grid, {
55248
55361
  onClick: function onClick() {
55249
55362
  return handleClickOpenDialogBaseLine();