mario-core 2.9.323-release → 2.9.325-release
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/containers/User/hooks/useAssignStudent.d.ts +1 -1
- package/dist/index.js +30 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +30 -13
- package/dist/index.modern.js.map +1 -1
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/package.json +1 -1
- package/dist/hooks/useClassFontSize.d.ts +0 -4
package/dist/index.modern.js
CHANGED
|
@@ -1996,6 +1996,7 @@ var integrations = "Integrations";
|
|
|
1996
1996
|
var open_responses = "Open Responses";
|
|
1997
1997
|
var this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it = "This survey was sent all survey links that were sent will be invalid. Are you sure to delete it";
|
|
1998
1998
|
var assign_teacher = "Assign Teacher";
|
|
1999
|
+
var teachers_list = "Teachers list";
|
|
1999
2000
|
var lang_us = {
|
|
2000
2001
|
dashboard: dashboard,
|
|
2001
2002
|
user: user,
|
|
@@ -3991,7 +3992,8 @@ var lang_us = {
|
|
|
3991
3992
|
"this_check_in_will_be_deleted_from_all_databases._are_you_sure_you_want_to_continue?": "This check-in will be deleted from all databases. Are you sure you want to continue?",
|
|
3992
3993
|
open_responses: open_responses,
|
|
3993
3994
|
this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it: this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it,
|
|
3994
|
-
assign_teacher: assign_teacher
|
|
3995
|
+
assign_teacher: assign_teacher,
|
|
3996
|
+
teachers_list: teachers_list
|
|
3995
3997
|
};
|
|
3996
3998
|
|
|
3997
3999
|
var dashboard$1 = "Dashboard";
|
|
@@ -5952,6 +5954,7 @@ var integrations$1 = "Integrations";
|
|
|
5952
5954
|
var open_responses$1 = "Open Responses";
|
|
5953
5955
|
var this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it$1 = "This survey was sent all survey links that were sent will be invalid. Are you sure to delete it";
|
|
5954
5956
|
var assign_teacher$1 = "Assign Teacher";
|
|
5957
|
+
var teachers_list$1 = "Teachers list";
|
|
5955
5958
|
var lang_uk = {
|
|
5956
5959
|
dashboard: dashboard$1,
|
|
5957
5960
|
user: user$1,
|
|
@@ -7947,7 +7950,8 @@ var lang_uk = {
|
|
|
7947
7950
|
"this_check_in_will_be_deleted_from_all_databases._are_you_sure_you_want_to_continue?": "This check-in will be deleted from all databases. Are you sure you want to continue?",
|
|
7948
7951
|
open_responses: open_responses$1,
|
|
7949
7952
|
this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it: this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it$1,
|
|
7950
|
-
assign_teacher: assign_teacher$1
|
|
7953
|
+
assign_teacher: assign_teacher$1,
|
|
7954
|
+
teachers_list: teachers_list$1
|
|
7951
7955
|
};
|
|
7952
7956
|
|
|
7953
7957
|
var dashboard$2 = "لوحة المعلومات";
|
|
@@ -9941,6 +9945,7 @@ var you_filled_out_check_in_in_the_check_in_section = "لقد قمت بملء \"
|
|
|
9941
9945
|
var good_job_you_filled_out_support_network_in_the_my_support_network_section = "أحسنت! لقد قمت بملء \"شبكة الدعم\" في قسم \"شبكة الدعم الخاصة بي\".";
|
|
9942
9946
|
var good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section = "أحسنت! لقد قمت بملء \"استراتيجيات التعلم\" في قسم استراتيجيات التعلم الخاصة بي.";
|
|
9943
9947
|
var open_responses$2 = "الردود المفتوحة";
|
|
9948
|
+
var teachers_list$2 = "قائمة المعلمين";
|
|
9944
9949
|
var lang_ar = {
|
|
9945
9950
|
dashboard: dashboard$2,
|
|
9946
9951
|
user: user$2,
|
|
@@ -11971,7 +11976,8 @@ var lang_ar = {
|
|
|
11971
11976
|
"continue": "متابعة",
|
|
11972
11977
|
good_job_you_filled_out_support_network_in_the_my_support_network_section: good_job_you_filled_out_support_network_in_the_my_support_network_section,
|
|
11973
11978
|
good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section: good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section,
|
|
11974
|
-
open_responses: open_responses$2
|
|
11979
|
+
open_responses: open_responses$2,
|
|
11980
|
+
teachers_list: teachers_list$2
|
|
11975
11981
|
};
|
|
11976
11982
|
|
|
11977
11983
|
var dashboard$3 = "Cuadro de mandos";
|
|
@@ -13965,6 +13971,7 @@ var you_filled_out_check_in_in_the_check_in_section$1 = "Completaste \"Check In\
|
|
|
13965
13971
|
var good_job_you_filled_out_support_network_in_the_my_support_network_section$1 = "¡Buen trabajo! Completaste \"Red de soporte\" en la sección Mi red de soporte.";
|
|
13966
13972
|
var good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$1 = "¡Buen trabajo! Completaste \"Estrategias de aprendizaje\" en la sección Mis estrategias de aprendizaje.";
|
|
13967
13973
|
var open_responses$3 = "Respuestas abiertas";
|
|
13974
|
+
var teachers_list$3 = "Lista de profesores";
|
|
13968
13975
|
var lang_es = {
|
|
13969
13976
|
dashboard: dashboard$3,
|
|
13970
13977
|
user: user$3,
|
|
@@ -15995,7 +16002,8 @@ var lang_es = {
|
|
|
15995
16002
|
"continue": "Continuar",
|
|
15996
16003
|
good_job_you_filled_out_support_network_in_the_my_support_network_section: good_job_you_filled_out_support_network_in_the_my_support_network_section$1,
|
|
15997
16004
|
good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section: good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$1,
|
|
15998
|
-
open_responses: open_responses$3
|
|
16005
|
+
open_responses: open_responses$3,
|
|
16006
|
+
teachers_list: teachers_list$3
|
|
15999
16007
|
};
|
|
16000
16008
|
|
|
16001
16009
|
var dashboard$4 = "仪表板";
|
|
@@ -17989,6 +17997,7 @@ var you_filled_out_check_in_in_the_check_in_section$2 = "您已在签到部分
|
|
|
17989
17997
|
var good_job_you_filled_out_support_network_in_the_my_support_network_section$2 = "干得好!您已在我的支持网络部分填写“支持网络”。";
|
|
17990
17998
|
var good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$2 = "干得好!您已在我的学习策略部分填写“学习策略”。";
|
|
17991
17999
|
var open_responses$4 = "开放式回应";
|
|
18000
|
+
var teachers_list$4 = "教师名单";
|
|
17992
18001
|
var lang_zh = {
|
|
17993
18002
|
dashboard: dashboard$4,
|
|
17994
18003
|
user: user$4,
|
|
@@ -20019,7 +20028,8 @@ var lang_zh = {
|
|
|
20019
20028
|
"continue": "继续",
|
|
20020
20029
|
good_job_you_filled_out_support_network_in_the_my_support_network_section: good_job_you_filled_out_support_network_in_the_my_support_network_section$2,
|
|
20021
20030
|
good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section: good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$2,
|
|
20022
|
-
open_responses: open_responses$4
|
|
20031
|
+
open_responses: open_responses$4,
|
|
20032
|
+
teachers_list: teachers_list$4
|
|
20023
20033
|
};
|
|
20024
20034
|
|
|
20025
20035
|
var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
@@ -39437,9 +39447,10 @@ var Dashboard = function Dashboard() {
|
|
|
39437
39447
|
className: styles["learn-more"] + " align-self-md-center",
|
|
39438
39448
|
href: "https://marioframework.com/software",
|
|
39439
39449
|
target: "blank"
|
|
39440
|
-
}, "Learn More")), React.createElement(NavItem, null, React.createElement(
|
|
39441
|
-
className: styles["
|
|
39442
|
-
|
|
39450
|
+
}, "Learn More")), React.createElement(NavItem, null, React.createElement(NavLink, {
|
|
39451
|
+
className: styles["learn-more"] + " align-self-md-center",
|
|
39452
|
+
href: "mailto: Info@marioeducation.com",
|
|
39453
|
+
target: "blank"
|
|
39443
39454
|
}, "Contact")), React.createElement(NavItem, null, React.createElement(NavLink, {
|
|
39444
39455
|
className: styles["learn-more"] + " align-self-md-center",
|
|
39445
39456
|
href: "/privacy-policy",
|
|
@@ -44157,7 +44168,8 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
|
|
|
44157
44168
|
|
|
44158
44169
|
assignStudents([studentRequest]);
|
|
44159
44170
|
}, [JSON.stringify(teacherSelected), JSON.stringify(assistantSelected), JSON.stringify(counselorSelected), JSON.stringify(secondaryTeacherSelected)]);
|
|
44160
|
-
|
|
44171
|
+
|
|
44172
|
+
var handleAssignStaffToStudents = function handleAssignStaffToStudents(listUserIds, isTeacherExit) {
|
|
44161
44173
|
if (listUserIds.length === 0) {
|
|
44162
44174
|
dispatch(setAlert({
|
|
44163
44175
|
type: "danger",
|
|
@@ -44166,7 +44178,7 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
|
|
|
44166
44178
|
return;
|
|
44167
44179
|
}
|
|
44168
44180
|
|
|
44169
|
-
if (staffBulkAssign.teacher.length === 0) {
|
|
44181
|
+
if (staffBulkAssign.teacher.length === 0 && !isTeacherExit) {
|
|
44170
44182
|
dispatch(setAlert({
|
|
44171
44183
|
type: "danger",
|
|
44172
44184
|
message: "Please select teacher before assign!"
|
|
@@ -44194,7 +44206,7 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
|
|
|
44194
44206
|
});
|
|
44195
44207
|
handleToggleModel();
|
|
44196
44208
|
assignStudents([].concat(users));
|
|
44197
|
-
}
|
|
44209
|
+
};
|
|
44198
44210
|
|
|
44199
44211
|
var handleInactiveStudents = function handleInactiveStudents(listStudentIds, callback) {
|
|
44200
44212
|
try {
|
|
@@ -44306,6 +44318,11 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44306
44318
|
handleInactiveStudents = _useAssignStudent.handleInactiveStudents,
|
|
44307
44319
|
handleChangeTeacherBulk = _useAssignStudent.handleChangeTeacherBulk;
|
|
44308
44320
|
|
|
44321
|
+
var isExitTeachers = useMemo(function () {
|
|
44322
|
+
return userList.filter(function (item) {
|
|
44323
|
+
return isCheck.includes(item.id) && item.teachers.length > 0;
|
|
44324
|
+
}).length > 0;
|
|
44325
|
+
}, [JSON.stringify(isCheck)]);
|
|
44309
44326
|
var AssignStudentColumns = [{
|
|
44310
44327
|
name: "",
|
|
44311
44328
|
isCenter: true,
|
|
@@ -44396,7 +44413,7 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44396
44413
|
toggle: function toggle() {
|
|
44397
44414
|
return handleToggleModel();
|
|
44398
44415
|
}
|
|
44399
|
-
}, React.createElement(ModalHeader, null, t("assign_bulk_student")), React.createElement(ModalBody, null, React.createElement(CustomSelector, {
|
|
44416
|
+
}, React.createElement(ModalHeader, null, t("assign_bulk_student")), React.createElement(ModalBody, null, !isExitTeachers && React.createElement(CustomSelector, {
|
|
44400
44417
|
isMulti: true,
|
|
44401
44418
|
value: staffBulkAssign.teacher.map(function (e) {
|
|
44402
44419
|
return {
|
|
@@ -44468,7 +44485,7 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44468
44485
|
}, t("cancel")), React.createElement(Button, {
|
|
44469
44486
|
color: "primary",
|
|
44470
44487
|
onClick: function onClick() {
|
|
44471
|
-
return handleAssignStaffToStudents(isCheck);
|
|
44488
|
+
return handleAssignStaffToStudents(isCheck, isExitTeachers);
|
|
44472
44489
|
}
|
|
44473
44490
|
}, t("assign")))), React.createElement(Modal, {
|
|
44474
44491
|
centered: true,
|