mario-core 2.9.244-release → 2.9.245-multi
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.js +0 -41
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +0 -41
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/Login/components/ButtonLogin.d.ts +0 -3
- package/dist/containers/Login/constant/config.d.ts +0 -6
- package/dist/redux/languages/action.d.ts +0 -1
- package/dist/redux/languages/reducer.d.ts +0 -2
- package/dist/utils/getCookie.d.ts +0 -2
package/dist/index.modern.js
CHANGED
|
@@ -43631,32 +43631,12 @@ var TeacherSelector = function TeacherSelector(_ref) {
|
|
|
43631
43631
|
var options = _ref.options,
|
|
43632
43632
|
isDisabled = _ref.isDisabled,
|
|
43633
43633
|
scrollBottom = _ref.scrollBottom,
|
|
43634
|
-
onCreateOption = _ref.onCreateOption,
|
|
43635
43634
|
rest = _objectWithoutPropertiesLoose(_ref, ["options", "isDisabled", "scrollBottom", "onCreateOption"]);
|
|
43636
43635
|
|
|
43637
43636
|
var _useState = useState(),
|
|
43638
43637
|
errorMessage = _useState[0],
|
|
43639
43638
|
setErrorMessage = _useState[1];
|
|
43640
43639
|
|
|
43641
|
-
var validateEmail = function validateEmail(email) {
|
|
43642
|
-
return String(email).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
43643
|
-
};
|
|
43644
|
-
|
|
43645
|
-
var handleCreateTeacherOption = function handleCreateTeacherOption(newTeacherEmail) {
|
|
43646
|
-
if (!validateEmail(newTeacherEmail)) {
|
|
43647
|
-
setErrorMessage("Invalid email format for email: " + newTeacherEmail);
|
|
43648
|
-
return;
|
|
43649
|
-
} else {
|
|
43650
|
-
setErrorMessage(undefined);
|
|
43651
|
-
}
|
|
43652
|
-
|
|
43653
|
-
var newTeacher = {
|
|
43654
|
-
label: newTeacherEmail,
|
|
43655
|
-
value: -new Date().getTime()
|
|
43656
|
-
};
|
|
43657
|
-
onCreateOption === null || onCreateOption === void 0 ? void 0 : onCreateOption(newTeacher);
|
|
43658
|
-
};
|
|
43659
|
-
|
|
43660
43640
|
var handleFocus = function handleFocus() {
|
|
43661
43641
|
setErrorMessage(undefined);
|
|
43662
43642
|
};
|
|
@@ -43669,7 +43649,6 @@ var TeacherSelector = function TeacherSelector(_ref) {
|
|
|
43669
43649
|
isDisabled: isDisabled,
|
|
43670
43650
|
options: options,
|
|
43671
43651
|
menuPlacement: scrollBottom ? "top" : "auto",
|
|
43672
|
-
onCreateOption: handleCreateTeacherOption,
|
|
43673
43652
|
onFocus: handleFocus
|
|
43674
43653
|
}, rest))), !!errorMessage && React.createElement("p", {
|
|
43675
43654
|
className: "text-danger mb-0 mt-1"
|
|
@@ -44365,28 +44344,24 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44365
44344
|
var _useTeacherList = useTeacherList(),
|
|
44366
44345
|
selectedTeachers = _useTeacherList.selectedTeachers,
|
|
44367
44346
|
teacherOptions = _useTeacherList.teacherOptions,
|
|
44368
|
-
handleCreateTeacherOption = _useTeacherList.handleCreateTeacherOption,
|
|
44369
44347
|
handleSelectTeacher = _useTeacherList.handleSelectTeacher,
|
|
44370
44348
|
setSelectedTeachers = _useTeacherList.setSelectedTeachers;
|
|
44371
44349
|
|
|
44372
44350
|
var _useAssistantList = useAssistantList(),
|
|
44373
44351
|
selectedAssistants = _useAssistantList.selectedAssistants,
|
|
44374
44352
|
assistantOptions = _useAssistantList.assistantOptions,
|
|
44375
|
-
handleCreateAssistantOption = _useAssistantList.handleCreateAssistantOption,
|
|
44376
44353
|
handleSelectAssistant = _useAssistantList.handleSelectAssistant,
|
|
44377
44354
|
setSelectedAssistants = _useAssistantList.setSelectedAssistants;
|
|
44378
44355
|
|
|
44379
44356
|
var _useCounselorList = useCounselorList(),
|
|
44380
44357
|
selectedCounselors = _useCounselorList.selectedCounselors,
|
|
44381
44358
|
counselorOptions = _useCounselorList.counselorOptions,
|
|
44382
|
-
handleCreateCounselorOption = _useCounselorList.handleCreateCounselorOption,
|
|
44383
44359
|
handleSelectCounselor = _useCounselorList.handleSelectCounselor,
|
|
44384
44360
|
setSelectedCounselors = _useCounselorList.setSelectedCounselors;
|
|
44385
44361
|
|
|
44386
44362
|
var _useSecondaryTeacherL = useSecondaryTeacherList(),
|
|
44387
44363
|
selectedSecondaryTeachers = _useSecondaryTeacherL.selectedSecondaryTeachers,
|
|
44388
44364
|
secondaryTeacherOptions = _useSecondaryTeacherL.secondaryTeacherOptions,
|
|
44389
|
-
handleCreateSecondaryTeacherOption = _useSecondaryTeacherL.handleCreateSecondaryTeacherOption,
|
|
44390
44365
|
handleSelectSecondaryTeacher = _useSecondaryTeacherL.handleSelectSecondaryTeacher,
|
|
44391
44366
|
setSelectedSecondaryTeachers = _useSecondaryTeacherL.setSelectedSecondaryTeachers;
|
|
44392
44367
|
|
|
@@ -44521,7 +44496,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44521
44496
|
return handleChangeStaffBulk("teacherId", e.value);
|
|
44522
44497
|
},
|
|
44523
44498
|
onCreateOption: function onCreateOption(value) {
|
|
44524
|
-
handleCreateTeacherOption(value, "");
|
|
44525
44499
|
handleChangeStaffBulk("teacherEmail", value.label);
|
|
44526
44500
|
},
|
|
44527
44501
|
placeholder: t("select_teacher"),
|
|
@@ -44535,7 +44509,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44535
44509
|
return handleChangeStaffBulk("assistantId", e.value);
|
|
44536
44510
|
},
|
|
44537
44511
|
onCreateOption: function onCreateOption(value) {
|
|
44538
|
-
handleCreateAssistantOption(value, "");
|
|
44539
44512
|
handleChangeStaffBulk("assistantEmail", value.label);
|
|
44540
44513
|
},
|
|
44541
44514
|
placeholder: t("select_assistant"),
|
|
@@ -44549,7 +44522,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44549
44522
|
return handleChangeStaffBulk("counselorId", e.value);
|
|
44550
44523
|
},
|
|
44551
44524
|
onCreateOption: function onCreateOption(value) {
|
|
44552
|
-
handleCreateCounselorOption(value, "");
|
|
44553
44525
|
handleChangeStaffBulk("counselorEmail", value.label);
|
|
44554
44526
|
},
|
|
44555
44527
|
placeholder: t("select_counselor"),
|
|
@@ -44563,7 +44535,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44563
44535
|
return handleChangeStaffBulk("secondaryTeacherId", e.value);
|
|
44564
44536
|
},
|
|
44565
44537
|
onCreateOption: function onCreateOption(value) {
|
|
44566
|
-
handleCreateSecondaryTeacherOption(value, "");
|
|
44567
44538
|
handleChangeStaffBulk("secondaryTeacherEmail", value.label);
|
|
44568
44539
|
},
|
|
44569
44540
|
placeholder: t("select_support_teacher"),
|
|
@@ -44658,9 +44629,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44658
44629
|
return i.value;
|
|
44659
44630
|
}), item.id);
|
|
44660
44631
|
},
|
|
44661
|
-
onCreateOption: function onCreateOption(value) {
|
|
44662
|
-
return handleCreateTeacherOption(value, item.id, true);
|
|
44663
|
-
},
|
|
44664
44632
|
placeholder: t("select_teacher"),
|
|
44665
44633
|
className: "flex-grow-1 mr-2"
|
|
44666
44634
|
})), React.createElement("td", {
|
|
@@ -44675,9 +44643,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44675
44643
|
onChange: function onChange(e) {
|
|
44676
44644
|
return handleSelectAssistant(e.value, item.id);
|
|
44677
44645
|
},
|
|
44678
|
-
onCreateOption: function onCreateOption(value) {
|
|
44679
|
-
return handleCreateAssistantOption(value, item.id, true);
|
|
44680
|
-
},
|
|
44681
44646
|
placeholder: t("select_assistant"),
|
|
44682
44647
|
className: "flex-grow-1 mr-2"
|
|
44683
44648
|
})), React.createElement("td", {
|
|
@@ -44692,9 +44657,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44692
44657
|
onChange: function onChange(e) {
|
|
44693
44658
|
return handleSelectCounselor(e.value, item.id);
|
|
44694
44659
|
},
|
|
44695
|
-
onCreateOption: function onCreateOption(value) {
|
|
44696
|
-
return handleCreateCounselorOption(value, item.id, true);
|
|
44697
|
-
},
|
|
44698
44660
|
placeholder: t("select_counselor"),
|
|
44699
44661
|
className: "flex-grow-1 mr-2"
|
|
44700
44662
|
})), React.createElement("td", {
|
|
@@ -44709,9 +44671,6 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44709
44671
|
onChange: function onChange(e) {
|
|
44710
44672
|
return handleSelectSecondaryTeacher(e.value, item.id);
|
|
44711
44673
|
},
|
|
44712
|
-
onCreateOption: function onCreateOption(value) {
|
|
44713
|
-
return handleCreateSecondaryTeacherOption(value, item.id, true);
|
|
44714
|
-
},
|
|
44715
44674
|
placeholder: t("select_support_teacher"),
|
|
44716
44675
|
className: "flex-grow-1 mr-2"
|
|
44717
44676
|
})), React.createElement("td", {
|