mario-teacher-student-client 2.1.86-admin → 2.1.87-admin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -778,6 +778,24 @@ p._1YLGi {
778
778
  font-size: 14px;
779
779
  text-align: center; }
780
780
 
781
+ ._hPL_o {
782
+ padding: 5px 20px;
783
+ margin-right: 20px;
784
+ border: none;
785
+ background-color: lightgrey;
786
+ border-radius: 5px;
787
+ font-size: 14px;
788
+ font-weight: bold;
789
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px; }
790
+
791
+ ._2AK7h {
792
+ background-color: #308252 !important;
793
+ color: white; }
794
+
795
+ ._1UouU {
796
+ background-color: #ff2800 !important;
797
+ color: white; }
798
+
781
799
  @font-face {
782
800
  font-family: "Lato-Regular";
783
801
  src: url("/fonts/Lato-Regular.ttf");
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","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"};
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","btn-choice":"_hPL_o","yes-active":"_2AK7h","no-active":"_1UouU"};
427
427
 
428
428
  function toVal(mix) {
429
429
  var k, y, str='';
@@ -8635,11 +8635,22 @@ var SingleChoiceComponent = function SingleChoiceComponent(_ref) {
8635
8635
  isUserChangeSession = _ref$isUserChangeSess === void 0 ? true : _ref$isUserChangeSess,
8636
8636
  _ref$questionAnswer = _ref.questionAnswer,
8637
8637
  questionAnswer = _ref$questionAnswer === void 0 ? [] : _ref$questionAnswer;
8638
+
8639
+ var _useState = React.useState(valueText || ""),
8640
+ active = _useState[0],
8641
+ setActive = _useState[1];
8642
+
8643
+ var isYesNoQuestion = questionAnswer.includes("Yes" );
8644
+
8645
+ var handleActive = function handleActive(value) {
8646
+ setActive(value);
8647
+ };
8648
+
8638
8649
  return React__default.createElement(core.Grid, {
8639
8650
  className: "" + styleIndex["totally-safe-select"]
8640
8651
  }, React__default.createElement(core.Grid, {
8641
8652
  className: "" + styleIndex["label-single-choice"]
8642
- }, React__default.createElement(core.Typography, null, minText), React__default.createElement(core.Typography, null, maxText)), React__default.createElement(core.RadioGroup, {
8653
+ }, React__default.createElement(core.Typography, null, minText), React__default.createElement(core.Typography, null, maxText)), !isYesNoQuestion ? React__default.createElement(core.RadioGroup, {
8643
8654
  row: true,
8644
8655
  "aria-label": "position",
8645
8656
  name: "position",
@@ -8657,6 +8668,17 @@ var SingleChoiceComponent = function SingleChoiceComponent(_ref) {
8657
8668
  label: "" + data,
8658
8669
  labelPlacement: "top"
8659
8670
  });
8671
+ })) : React__default.createElement(React__default.Fragment, null, questionAnswer === null || questionAnswer === void 0 ? void 0 : questionAnswer.map(function (i) {
8672
+ return React__default.createElement("input", {
8673
+ disabled: !isUserChangeSession,
8674
+ type: "button",
8675
+ value: i,
8676
+ onClick: function onClick() {
8677
+ onChangeQuestionAnswer === null || onChangeQuestionAnswer === void 0 ? void 0 : onChangeQuestionAnswer(questionId, i);
8678
+ handleActive(i);
8679
+ },
8680
+ className: styleIndex["btn-choice"] + " " + (active === valueText && valueText === i && styleIndex[valueText.toLowerCase() + "-active"])
8681
+ });
8660
8682
  })));
8661
8683
  };
8662
8684