mario-education 2.1.8 → 2.2.3

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.
@@ -5220,14 +5220,11 @@ var CSVType;
5220
5220
  CSVType["Subjects"] = "subjects";
5221
5221
  CSVType["Grades"] = "grades";
5222
5222
  CSVType["Attendances"] = "attendances";
5223
+ CSVType["ClassReflection"] = "classReflection";
5223
5224
  CSVType["Others"] = "others";
5224
5225
  })(CSVType || (CSVType = {}));
5225
5226
 
5226
5227
  var buttons = [{
5227
- text: "Import students",
5228
- backgroundColor: "#0abde3",
5229
- type: CSVType.Students
5230
- }, {
5231
5228
  text: "Import subjects",
5232
5229
  backgroundColor: "#1dd1a1",
5233
5230
  type: CSVType.Subjects
@@ -5239,6 +5236,10 @@ var buttons = [{
5239
5236
  text: "Import attendances",
5240
5237
  backgroundColor: "#feca57",
5241
5238
  type: CSVType.Attendances
5239
+ }, {
5240
+ text: "Import class reflections",
5241
+ backgroundColor: "#e74c3c",
5242
+ type: CSVType.ClassReflection
5242
5243
  }, {
5243
5244
  text: "Import others",
5244
5245
  backgroundColor: "#8395a7",
@@ -5325,6 +5326,7 @@ var CSVImport = function CSVImport() {
5325
5326
  className: "d-flex align-items-center"
5326
5327
  }, buttons.map(function (button) {
5327
5328
  return React.createElement(UploadCSVButton, {
5329
+ key: button.text,
5328
5330
  htmlFor: id,
5329
5331
  text: button.text,
5330
5332
  isDisabled: isLoading,
@@ -9847,7 +9849,8 @@ var initValue$e = {
9847
9849
  answers: [],
9848
9850
  isSurvey: true,
9849
9851
  subQuestions: [],
9850
- isMandatory: false
9852
+ isMandatory: false,
9853
+ isBeforeSession: false
9851
9854
  };
9852
9855
  var TITLE$e = "Question detail";
9853
9856
 
@@ -9972,6 +9975,7 @@ var useQuestionDetail = function useQuestionDetail(id) {
9972
9975
 
9973
9976
  var CREATE_QUESTION_HEADER = "Create question";
9974
9977
  var EDIT_QUESTION_HEADER = "Edit question";
9978
+ var EMOTIONALS_LENGTH = EMOTIONS.length;
9975
9979
 
9976
9980
  var QuestionDetail = function QuestionDetail() {
9977
9981
  var _useParams = useParams(),
@@ -10019,7 +10023,7 @@ var QuestionDetail = function QuestionDetail() {
10019
10023
  }
10020
10024
 
10021
10025
  if (QUESTION_TYPES.EMOTIONAL == e.value && values.type !== QUESTION_TYPES.EMOTIONAL) {
10022
- var defaultAnswerList = new Array(10).fill("").map(function (_item, index) {
10026
+ var defaultAnswerList = new Array(EMOTIONALS_LENGTH).fill("").map(function (_item, index) {
10023
10027
  return {
10024
10028
  text: "",
10025
10029
  id: generateRandomString(),
@@ -10140,11 +10144,11 @@ var QuestionDetail = function QuestionDetail() {
10140
10144
  md: 12
10141
10145
  }, React.createElement(CustomInput, {
10142
10146
  type: "checkbox",
10143
- id: "question-default-mandatory-checkbox",
10144
- label: "Mandatory",
10145
- checked: values.isMandatory,
10147
+ id: "question-default-before-session-checkbox",
10148
+ label: "Before session",
10149
+ checked: values.isBeforeSession,
10146
10150
  onChange: function onChange() {
10147
- setFieldValue("isMandatory", !values.isMandatory);
10151
+ setFieldValue("isBeforeSession", !values.isBeforeSession);
10148
10152
  setEditedTrue();
10149
10153
  }
10150
10154
  })))))))), React.createElement(AdditionalComponent, {
@@ -13025,7 +13029,6 @@ var AssignmentList = function AssignmentList() {
13025
13029
  filters = _useAssignmentList.filters,
13026
13030
  changeFilters = _useAssignmentList.changeFilters,
13027
13031
  getData = _useAssignmentList.getData,
13028
- removeData = _useAssignmentList.removeData,
13029
13032
  listSemester = _useAssignmentList.listSemester,
13030
13033
  isRoleAdmin = _useAssignmentList.isRoleAdmin;
13031
13034
 
@@ -13054,10 +13057,6 @@ var AssignmentList = function AssignmentList() {
13054
13057
  setEditedFalse();
13055
13058
  };
13056
13059
 
13057
- var onRemove = function onRemove(id) {
13058
- removeData(id);
13059
- };
13060
-
13061
13060
  var onRemoveStudentFromAssignment = function onRemoveStudentFromAssignment(assignmentStudentId) {
13062
13061
  onRemoveStudent(assignmentStudentId, getData);
13063
13062
  };
@@ -13134,10 +13133,6 @@ var AssignmentList = function AssignmentList() {
13134
13133
  onClick: function onClick() {
13135
13134
  return openModal(record.id);
13136
13135
  }
13137
- }), React.createElement(DeleteButtonIcon, {
13138
- onClick: function onClick() {
13139
- return onRemove(record.id);
13140
- }
13141
13136
  })));
13142
13137
  }))) : React.createElement(EmptyDataAlert, {
13143
13138
  label: "assignment"