mario-teacher-student-client 2.1.97-beta → 2.1.99-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/index.css CHANGED
@@ -14868,6 +14868,10 @@ h4._3lNz0 {
14868
14868
  background-color: #ffd9d7;
14869
14869
  color: #822727; }
14870
14870
 
14871
+ ._3tbAL ._1T4kH {
14872
+ background-color: #ffd9d7;
14873
+ color: #822727; }
14874
+
14871
14875
  ._3tbAL ._S8XOD {
14872
14876
  background-color: #f6f4c6;
14873
14877
  color: #744210;
package/dist/index.js CHANGED
@@ -13868,7 +13868,7 @@ var usePreviewSurvey = function usePreviewSurvey() {
13868
13868
  questionTemplates: item.questionTemplates.map(function (r) {
13869
13869
  return {
13870
13870
  questionId: r.id,
13871
- text: r.text,
13871
+ questionText: r.text,
13872
13872
  type: r.type,
13873
13873
  fromLabel: r.fromLabel,
13874
13874
  toLabel: r.toLabel
@@ -61669,7 +61669,7 @@ var CustomHeaderComponent = function CustomHeaderComponent(_ref) {
61669
61669
  }, contentButton), !!iconButton && iconButton)));
61670
61670
  };
61671
61671
 
61672
- var styles$O = {"icon-add-header":"_3msvE","sup-require":"_3cLXA","span-title":"_2zJd0","checked-favorite":"_-DbRo","table-desktop":"_1F8xx","data-grid":"_3TDU4","MuiDataGrid-columnSeparator":"_3ig99","block-list-survey":"_U4jvh","box-filter":"_20SVW","block-total":"_2RcnX","filter-select":"_2WWzW","box-filter-left":"_MEKLd","filter-item":"_3KQ0G","btn-favorite-text":"_2HxpA","box-filter-right":"_wfMx1","search-input-icon":"_2pk-H","inputInput":"_TfkuE","table-border":"_OEcTC","time-Date":"_3N7z7","time-Hours-Minute":"_1jOw7","table-row":"_2jcL8","arrow-icon":"_10hwb","table-cell":"_3YpBx","btn-function":"__J0jK","avatar_user":"_2nLvF","data-grid-content":"_3sCAB","row_name":"_2fnqB","innerHtml":"_3r42i","table-class-type":"_3tbAL","btn-open":"_1Vgmy","row-status":"_oItGm","pending":"_3Yw4h","replied":"_1zClB","actionneeded":"_2K_LM","bg-yellow":"_S8XOD","bg-green":"_3M-Iu","bg-red":"_1kk0-","noscheduled":"_Qmz2t","scheduled":"_HLo9e","completed":"_3U4Kw","schedule-now":"_w2de6","block-filter":"_3boYk","block-filter-right":"_Jb-VQ","title-filter":"_EkM6A","create-survey-container":"_13Als","box-create-survey":"_3ZeD0","box-form-input":"_2_Lbs","form-input-title":"_2eMwZ","check-box-btn":"_2SP5U","stepper":"_2dIQT","step-label":"_2fUwq","dialog-select-template":"_3N8Q3","icon-btn":"_1rTF7","icon-remove":"_2vYxh","title-btn":"_82x3C","title-box-model":"_3wglS","box-content-select":"_3nfCh","title-content-select":"_1mLDw","description-content-select":"_Hg1l5","box-function":"_3aIy7","cancel_btn":"_33pHa","confirm_btn":"_1Oqku","confirm_btn_title":"_lxY0i","confirm_btn_icon":"_2zK6C","box-function-flex":"_3MS9Q","box-collapse":"_82XGO","box-collapse-top":"_7DXq2","box-collapse-right":"_3ZAAk","collapse-chip":"_3vGgC","collapse-left-title":"_1a4Re","box-collapse-content-item":"_37Ftp","block-review-detail":"_1Lmrp","title-block":"_25k4D","block-content-review":"_2MyxF","box-content":"_2M2ub","title-content":"_2qWnj","block-template-review":"_26NEY","block-template-left":"_lrxw0","name-template-left":"_1ubim","select-right":"_3b0L0","description-template-left":"_1erRk","additional-box":"_3d0rZ","space-content":"_3rWo3","table-title":"_2v5b5","table-status":"_3Zgbw","Close":"_3_Z98","Active":"_1UqNT","box-header-select":"_1wJqN","header-select-name":"_Q-qNa","header-select-icon":"_3UAh4","list-question-select":"_AgPAZ","new-survey":"_3RD_x","title":"_21CPc","box-survey":"_1ikO6","avt-user":"_38Qdy","infor":"_2W6Cn","content-text":"_3fS-4","name":"_2V9ri","time":"_3LxCt"};
61672
+ var styles$O = {"icon-add-header":"_3msvE","sup-require":"_3cLXA","span-title":"_2zJd0","checked-favorite":"_-DbRo","table-desktop":"_1F8xx","data-grid":"_3TDU4","MuiDataGrid-columnSeparator":"_3ig99","block-list-survey":"_U4jvh","box-filter":"_20SVW","block-total":"_2RcnX","filter-select":"_2WWzW","box-filter-left":"_MEKLd","filter-item":"_3KQ0G","btn-favorite-text":"_2HxpA","box-filter-right":"_wfMx1","search-input-icon":"_2pk-H","inputInput":"_TfkuE","table-border":"_OEcTC","time-Date":"_3N7z7","time-Hours-Minute":"_1jOw7","table-row":"_2jcL8","arrow-icon":"_10hwb","table-cell":"_3YpBx","btn-function":"__J0jK","avatar_user":"_2nLvF","data-grid-content":"_3sCAB","row_name":"_2fnqB","innerHtml":"_3r42i","table-class-type":"_3tbAL","btn-open":"_1Vgmy","row-status":"_oItGm","pending":"_3Yw4h","replied":"_1zClB","actionneeded":"_2K_LM","actionneed":"_1T4kH","bg-yellow":"_S8XOD","bg-green":"_3M-Iu","bg-red":"_1kk0-","noscheduled":"_Qmz2t","scheduled":"_HLo9e","completed":"_3U4Kw","schedule-now":"_w2de6","block-filter":"_3boYk","block-filter-right":"_Jb-VQ","title-filter":"_EkM6A","create-survey-container":"_13Als","box-create-survey":"_3ZeD0","box-form-input":"_2_Lbs","form-input-title":"_2eMwZ","check-box-btn":"_2SP5U","stepper":"_2dIQT","step-label":"_2fUwq","dialog-select-template":"_3N8Q3","icon-btn":"_1rTF7","icon-remove":"_2vYxh","title-btn":"_82x3C","title-box-model":"_3wglS","box-content-select":"_3nfCh","title-content-select":"_1mLDw","description-content-select":"_Hg1l5","box-function":"_3aIy7","cancel_btn":"_33pHa","confirm_btn":"_1Oqku","confirm_btn_title":"_lxY0i","confirm_btn_icon":"_2zK6C","box-function-flex":"_3MS9Q","box-collapse":"_82XGO","box-collapse-top":"_7DXq2","box-collapse-right":"_3ZAAk","collapse-chip":"_3vGgC","collapse-left-title":"_1a4Re","box-collapse-content-item":"_37Ftp","block-review-detail":"_1Lmrp","title-block":"_25k4D","block-content-review":"_2MyxF","box-content":"_2M2ub","title-content":"_2qWnj","block-template-review":"_26NEY","block-template-left":"_lrxw0","name-template-left":"_1ubim","select-right":"_3b0L0","description-template-left":"_1erRk","additional-box":"_3d0rZ","space-content":"_3rWo3","table-title":"_2v5b5","table-status":"_3Zgbw","Close":"_3_Z98","Active":"_1UqNT","box-header-select":"_1wJqN","header-select-name":"_Q-qNa","header-select-icon":"_3UAh4","list-question-select":"_AgPAZ","new-survey":"_3RD_x","title":"_21CPc","box-survey":"_1ikO6","avt-user":"_38Qdy","infor":"_2W6Cn","content-text":"_3fS-4","name":"_2V9ri","time":"_3LxCt"};
61673
61673
 
61674
61674
  var CardTotal = function CardTotal(_ref) {
61675
61675
  var title = _ref.title,
@@ -62813,7 +62813,7 @@ var AllStudentSurvey = function AllStudentSurvey() {
62813
62813
  className: "" + styles$O["table-class-type"]
62814
62814
  }, React__default.createElement(core.Typography, {
62815
62815
  className: styles$O["row-status"] + " " + styles$O[row === null || row === void 0 ? void 0 : (_row$status = row.status) === null || _row$status === void 0 ? void 0 : (_row$status$replace = _row$status.replace(/\s/g, "")) === null || _row$status$replace === void 0 ? void 0 : _row$status$replace.toLowerCase()]
62816
- }, row === null || row === void 0 ? void 0 : row.status)), React__default.createElement(core.TableCell, {
62816
+ }, (row === null || row === void 0 ? void 0 : row.status) !== "ActionNeed" ? row === null || row === void 0 ? void 0 : row.status : "ActionNeed")), React__default.createElement(core.TableCell, {
62817
62817
  component: "th",
62818
62818
  scope: "row",
62819
62819
  height: 80,
@@ -63584,9 +63584,10 @@ var useListSurveyDetail$1 = function useListSurveyDetail() {
63584
63584
  return selectIds.indexOf(v) == i;
63585
63585
  });
63586
63586
  setDataFormCreateSurvey(_extends({}, dataFormCreateSurvey, {
63587
- studentIds: result
63587
+ studentIds: result,
63588
+ activeStep: 0
63588
63589
  }));
63589
- }, [students]);
63590
+ }, [students, dataFormCreateSurvey]);
63590
63591
 
63591
63592
  var handleChangeDate = function handleChangeDate(date) {
63592
63593
  setDataFormCreateSurvey(_extends({}, dataFormCreateSurvey, {
@@ -63703,7 +63704,11 @@ var useListSurveyDetail$1 = function useListSurveyDetail() {
63703
63704
  dispatch(marioCore.setLoading(true));
63704
63705
 
63705
63706
  var _temp8 = _catch(function () {
63706
- return Promise.resolve(createSurvey(dataFormCreateSurvey)).then(function () {
63707
+ return Promise.resolve(createSurvey(_extends({}, dataFormCreateSurvey, {
63708
+ templateQuestions: dataFormCreateSurvey.templateQuestions.filter(function (r) {
63709
+ return r.questionTemplates.length > 0;
63710
+ })
63711
+ }))).then(function () {
63707
63712
  history.push("/list-survey");
63708
63713
  localStorage.removeItem("dataFormSurvey");
63709
63714
  dispatch(marioCore.setAlert({
@@ -63748,7 +63753,11 @@ var useListSurveyDetail$1 = function useListSurveyDetail() {
63748
63753
  }
63749
63754
  }, []);
63750
63755
  React.useEffect(function () {
63751
- localStorage.setItem("dataFormSurvey", JSON.stringify(dataFormCreateSurvey));
63756
+ localStorage.setItem("dataFormSurvey", JSON.stringify(_extends({}, dataFormCreateSurvey, {
63757
+ templateQuestions: dataFormCreateSurvey.templateQuestions.filter(function (r) {
63758
+ return r.questionTemplates.length > 0;
63759
+ })
63760
+ })));
63752
63761
  }, [dataFormCreateSurvey]);
63753
63762
  React.useEffect(function () {
63754
63763
  getData();