mario-core 2.9.224-release → 2.9.225-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/index.modern.js
CHANGED
|
@@ -4,7 +4,7 @@ import { initReactI18next, useTranslation } from 'react-i18next';
|
|
|
4
4
|
export { I18nextProvider, useTranslation } from 'react-i18next';
|
|
5
5
|
import moment from 'moment';
|
|
6
6
|
import React, { useState, useCallback, useEffect, forwardRef, useRef, useMemo, Suspense, memo, Fragment, useImperativeHandle } from 'react';
|
|
7
|
-
import { Input, Modal, ModalHeader, ModalBody, ModalFooter, Button, Row, Col, Form, FormGroup, Navbar, NavbarBrand, Collapse, Nav, NavItem, NavLink, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Alert, Pagination, PaginationItem, PaginationLink, Table, Label, Popover, PopoverBody, TabContent, TabPane, CustomInput, Card, CardImg, CardBody, CardTitle, CardHeader
|
|
7
|
+
import { Input, Modal, ModalHeader, ModalBody, ModalFooter, Button, Row, Col, Form, FormGroup, Navbar, NavbarBrand, Collapse, Nav, NavItem, NavLink, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Alert, Pagination, PaginationItem, PaginationLink, Table, Label, Popover, PopoverBody, TabContent, TabPane, CardText, CustomInput, Card, CardImg, CardBody, CardTitle, CardHeader } from 'reactstrap';
|
|
8
8
|
import { useHistory, Link, useLocation, Switch, Route, Prompt, useParams } from 'react-router-dom';
|
|
9
9
|
import { Formik } from 'formik';
|
|
10
10
|
import { object, string, boolean, number, array } from 'yup';
|
|
@@ -29,6 +29,7 @@ import { BiSearchAlt2, BiFilterAlt } from 'react-icons/bi';
|
|
|
29
29
|
import { HiFilter } from 'react-icons/hi';
|
|
30
30
|
import { AiOutlineSortAscending, AiOutlineSortDescending, AiOutlineEye } from 'react-icons/ai';
|
|
31
31
|
import CreatableSelect from 'react-select/creatable';
|
|
32
|
+
import { IoIosWarning } from 'react-icons/io';
|
|
32
33
|
import DatePicker from 'react-datepicker';
|
|
33
34
|
import toDate from 'date-fns/toDate';
|
|
34
35
|
import { MdAttachFile } from 'react-icons/md';
|
|
@@ -1844,6 +1845,8 @@ var my_learning_progress = "My Learning Progress";
|
|
|
1844
1845
|
var responses_and_response_rates_per_question = "Responses and Response Rates Per Question";
|
|
1845
1846
|
var responses_comparisons = "Responses Comparisons";
|
|
1846
1847
|
var dropdown_and_verbal_questions_responses = "Dropdown and Verbal Questions Responses";
|
|
1848
|
+
var weekly_quests = "Weekly quests";
|
|
1849
|
+
var inactive_students = "Inactive Students";
|
|
1847
1850
|
var lang_us = {
|
|
1848
1851
|
dashboard: dashboard,
|
|
1849
1852
|
user: user,
|
|
@@ -3671,7 +3674,9 @@ var lang_us = {
|
|
|
3671
3674
|
"this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
|
|
3672
3675
|
responses_and_response_rates_per_question: responses_and_response_rates_per_question,
|
|
3673
3676
|
responses_comparisons: responses_comparisons,
|
|
3674
|
-
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses
|
|
3677
|
+
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses,
|
|
3678
|
+
weekly_quests: weekly_quests,
|
|
3679
|
+
inactive_students: inactive_students
|
|
3675
3680
|
};
|
|
3676
3681
|
|
|
3677
3682
|
var dashboard$1 = "Dashboard";
|
|
@@ -5482,6 +5487,7 @@ var print_my_accommodations$1 = "Print my accommodations";
|
|
|
5482
5487
|
var my_learning_progress$1 = "My Learning Progress";
|
|
5483
5488
|
var responses_comparisons$1 = "Responses Comparisons";
|
|
5484
5489
|
var dropdown_and_verbal_questions_responses$1 = "Dropdown and Verbal Questions Responses";
|
|
5490
|
+
var inactive_students$1 = "Inactive Students";
|
|
5485
5491
|
var lang_uk = {
|
|
5486
5492
|
dashboard: dashboard$1,
|
|
5487
5493
|
user: user$1,
|
|
@@ -7310,7 +7316,8 @@ var lang_uk = {
|
|
|
7310
7316
|
"here_your_teacher_can_edit_or_add_your_accommodation_details._please_note_that_you_can_view_the_information,_but_for_any_edits_or_additions,_kindly_contact_your_teacher_directly.": "Here your teacher can edit or add your accommodation details. Please note that you can view the information, but for any edits or additions, kindly contact your teacher directly.",
|
|
7311
7317
|
"this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
|
|
7312
7318
|
responses_comparisons: responses_comparisons$1,
|
|
7313
|
-
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$1
|
|
7319
|
+
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$1,
|
|
7320
|
+
inactive_students: inactive_students$1
|
|
7314
7321
|
};
|
|
7315
7322
|
|
|
7316
7323
|
var dashboard$2 = "لوحة المعلومات";
|
|
@@ -9113,6 +9120,7 @@ var my_learning_progress$2 = "My Learning Progress";
|
|
|
9113
9120
|
var responses_and_response_rates_per_question$2 = "الردود ومعدلات الاستجابة لكل سؤال";
|
|
9114
9121
|
var responses_comparisons$2 = "مقارنات الردود";
|
|
9115
9122
|
var dropdown_and_verbal_questions_responses$2 = "القائمة المنسدلة والأسئلة اللفظية الردود";
|
|
9123
|
+
var inactive_students$2 = "الطلاب غير النشطين";
|
|
9116
9124
|
var lang_ar = {
|
|
9117
9125
|
dashboard: dashboard$2,
|
|
9118
9126
|
user: user$2,
|
|
@@ -10930,7 +10938,8 @@ var lang_ar = {
|
|
|
10930
10938
|
"this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
|
|
10931
10939
|
responses_and_response_rates_per_question: responses_and_response_rates_per_question$2,
|
|
10932
10940
|
responses_comparisons: responses_comparisons$2,
|
|
10933
|
-
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$2
|
|
10941
|
+
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$2,
|
|
10942
|
+
inactive_students: inactive_students$2
|
|
10934
10943
|
};
|
|
10935
10944
|
|
|
10936
10945
|
var dashboard$3 = "Panel de Control";
|
|
@@ -11664,6 +11673,7 @@ var my_learning_plan_beta$3 = "My Learning Plan (Beta)";
|
|
|
11664
11673
|
var responses_and_response_rates_per_question$3 = "Respuestas y tasas de respuesta por pregunta";
|
|
11665
11674
|
var responses_comparisons$3 = "Comparaciones de respuestas";
|
|
11666
11675
|
var dropdown_and_verbal_questions_responses$3 = "Preguntas desplegables y verbales Respuestas";
|
|
11676
|
+
var inactive_students$3 = "Estudiantes inactivos";
|
|
11667
11677
|
var lang_es = {
|
|
11668
11678
|
dashboard: dashboard$3,
|
|
11669
11679
|
user: user$3,
|
|
@@ -12405,7 +12415,8 @@ var lang_es = {
|
|
|
12405
12415
|
"this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
|
|
12406
12416
|
responses_and_response_rates_per_question: responses_and_response_rates_per_question$3,
|
|
12407
12417
|
responses_comparisons: responses_comparisons$3,
|
|
12408
|
-
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$3
|
|
12418
|
+
dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$3,
|
|
12419
|
+
inactive_students: inactive_students$3
|
|
12409
12420
|
};
|
|
12410
12421
|
|
|
12411
12422
|
var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
@@ -34714,6 +34725,9 @@ var create$7 = function create(data) {
|
|
|
34714
34725
|
var update$7 = function update(data) {
|
|
34715
34726
|
return api.put(USER_URL$1 + "/" + data.id, data);
|
|
34716
34727
|
};
|
|
34728
|
+
var updateStatusAll = function updateStatusAll(ids) {
|
|
34729
|
+
return api.put(USER_URL$1 + "/update-status-all", ids);
|
|
34730
|
+
};
|
|
34717
34731
|
var remove$3 = function remove(id) {
|
|
34718
34732
|
return api["delete"](EDU_USER_URL + "/delete-item-user/" + id);
|
|
34719
34733
|
};
|
|
@@ -36532,11 +36546,27 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
|
|
|
36532
36546
|
staffBulkAssign = _useState2[0],
|
|
36533
36547
|
setStaffBulkAssign = _useState2[1];
|
|
36534
36548
|
|
|
36549
|
+
var _useState3 = useState(false),
|
|
36550
|
+
openInactiveModal = _useState3[0],
|
|
36551
|
+
setOpenInactiveModal = _useState3[1];
|
|
36552
|
+
|
|
36535
36553
|
var handleToggleModel = function handleToggleModel() {
|
|
36536
36554
|
setOpenModelBulk(!openModelBulk);
|
|
36537
36555
|
setStaffBulkAssign(_extends({}, initialStaffBulk));
|
|
36538
36556
|
};
|
|
36539
36557
|
|
|
36558
|
+
var handleToggleInactiveModal = function handleToggleInactiveModal(listUserIds) {
|
|
36559
|
+
if (listUserIds && listUserIds.length === 0) {
|
|
36560
|
+
dispatch(setAlert({
|
|
36561
|
+
type: "danger",
|
|
36562
|
+
message: "Please select students!"
|
|
36563
|
+
}));
|
|
36564
|
+
return;
|
|
36565
|
+
}
|
|
36566
|
+
|
|
36567
|
+
setOpenInactiveModal(!openInactiveModal);
|
|
36568
|
+
};
|
|
36569
|
+
|
|
36540
36570
|
var handleChangeStaffBulk = function handleChangeStaffBulk(name, id) {
|
|
36541
36571
|
var _extends2;
|
|
36542
36572
|
|
|
@@ -36698,6 +36728,41 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
|
|
|
36698
36728
|
handleToggleModel();
|
|
36699
36729
|
assignStudents([].concat(users));
|
|
36700
36730
|
}, [JSON.stringify(staffBulkAssign)]);
|
|
36731
|
+
|
|
36732
|
+
var handleInactiveStudents = function handleInactiveStudents(listStudentIds, callback) {
|
|
36733
|
+
try {
|
|
36734
|
+
var _temp7 = function _temp7() {
|
|
36735
|
+
setOpenInactiveModal(!openInactiveModal);
|
|
36736
|
+
dispatch(setLoading(false));
|
|
36737
|
+
};
|
|
36738
|
+
|
|
36739
|
+
dispatch(setLoading(true));
|
|
36740
|
+
|
|
36741
|
+
var _temp8 = _catch(function () {
|
|
36742
|
+
return Promise.resolve(updateStatusAll(listStudentIds)).then(function (res) {
|
|
36743
|
+
if (res.status == 200) {
|
|
36744
|
+
dispatch(setAlert({
|
|
36745
|
+
type: "success",
|
|
36746
|
+
message: "Inactive " + listStudentIds.length + " Students successfully"
|
|
36747
|
+
}));
|
|
36748
|
+
callback();
|
|
36749
|
+
}
|
|
36750
|
+
});
|
|
36751
|
+
}, function (error) {
|
|
36752
|
+
var _error$response, _error$response$data;
|
|
36753
|
+
|
|
36754
|
+
dispatch(setAlert({
|
|
36755
|
+
type: "danger",
|
|
36756
|
+
message: ((_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.title) || error.message
|
|
36757
|
+
}));
|
|
36758
|
+
});
|
|
36759
|
+
|
|
36760
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
|
|
36761
|
+
} catch (e) {
|
|
36762
|
+
return Promise.reject(e);
|
|
36763
|
+
}
|
|
36764
|
+
};
|
|
36765
|
+
|
|
36701
36766
|
return {
|
|
36702
36767
|
handleAssignSingleStudent: handleAssignSingleStudent,
|
|
36703
36768
|
handleAssignMultiStudent: handleAssignMultiStudent,
|
|
@@ -36705,7 +36770,10 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
|
|
|
36705
36770
|
handleToggleModel: handleToggleModel,
|
|
36706
36771
|
handleChangeStaffBulk: handleChangeStaffBulk,
|
|
36707
36772
|
staffBulkAssign: staffBulkAssign,
|
|
36708
|
-
handleAssignStaffToStudents: handleAssignStaffToStudents
|
|
36773
|
+
handleAssignStaffToStudents: handleAssignStaffToStudents,
|
|
36774
|
+
handleToggleInactiveModal: handleToggleInactiveModal,
|
|
36775
|
+
openInactiveModal: openInactiveModal,
|
|
36776
|
+
handleInactiveStudents: handleInactiveStudents
|
|
36709
36777
|
};
|
|
36710
36778
|
};
|
|
36711
36779
|
|
|
@@ -36768,7 +36836,10 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
36768
36836
|
handleToggleModel = _useAssignStudent.handleToggleModel,
|
|
36769
36837
|
staffBulkAssign = _useAssignStudent.staffBulkAssign,
|
|
36770
36838
|
handleChangeStaffBulk = _useAssignStudent.handleChangeStaffBulk,
|
|
36771
|
-
handleAssignStaffToStudents = _useAssignStudent.handleAssignStaffToStudents
|
|
36839
|
+
handleAssignStaffToStudents = _useAssignStudent.handleAssignStaffToStudents,
|
|
36840
|
+
handleToggleInactiveModal = _useAssignStudent.handleToggleInactiveModal,
|
|
36841
|
+
openInactiveModal = _useAssignStudent.openInactiveModal,
|
|
36842
|
+
handleInactiveStudents = _useAssignStudent.handleInactiveStudents;
|
|
36772
36843
|
|
|
36773
36844
|
var AssignStudentColumns = [{
|
|
36774
36845
|
name: "",
|
|
@@ -36843,12 +36914,18 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
36843
36914
|
},
|
|
36844
36915
|
color: "primary"
|
|
36845
36916
|
}, t("assign_for_selected_students")), React.createElement(Button, {
|
|
36846
|
-
className: "
|
|
36917
|
+
className: "ml-2",
|
|
36847
36918
|
onClick: function onClick() {
|
|
36848
36919
|
return handleToggleModel();
|
|
36849
36920
|
},
|
|
36850
36921
|
color: "primary"
|
|
36851
|
-
}, t("assign_bulk"))
|
|
36922
|
+
}, t("assign_bulk")), React.createElement(Button, {
|
|
36923
|
+
className: "ml-2",
|
|
36924
|
+
onClick: function onClick() {
|
|
36925
|
+
return handleToggleInactiveModal(isCheck);
|
|
36926
|
+
},
|
|
36927
|
+
color: "primary"
|
|
36928
|
+
}, t("inactive_students")))), React.createElement(Modal, {
|
|
36852
36929
|
centered: true,
|
|
36853
36930
|
isOpen: openModelBulk,
|
|
36854
36931
|
toggle: function toggle() {
|
|
@@ -36921,7 +36998,39 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
36921
36998
|
onClick: function onClick() {
|
|
36922
36999
|
return handleAssignStaffToStudents(isCheck);
|
|
36923
37000
|
}
|
|
36924
|
-
}, t("assign")))), React.createElement(
|
|
37001
|
+
}, t("assign")))), React.createElement(Modal, {
|
|
37002
|
+
centered: true,
|
|
37003
|
+
isOpen: openInactiveModal,
|
|
37004
|
+
toggle: function toggle() {
|
|
37005
|
+
return handleToggleInactiveModal();
|
|
37006
|
+
}
|
|
37007
|
+
}, React.createElement(ModalHeader, null, t("inactive_students")), React.createElement(ModalBody, {
|
|
37008
|
+
style: {
|
|
37009
|
+
display: 'flex',
|
|
37010
|
+
gap: 12
|
|
37011
|
+
}
|
|
37012
|
+
}, React.createElement(IoIosWarning, {
|
|
37013
|
+
color: "red",
|
|
37014
|
+
size: 30
|
|
37015
|
+
}), React.createElement(CardText, {
|
|
37016
|
+
style: {
|
|
37017
|
+
fontSize: 20,
|
|
37018
|
+
margin: 0,
|
|
37019
|
+
display: 'flex',
|
|
37020
|
+
alignItems: 'center'
|
|
37021
|
+
}
|
|
37022
|
+
}, "Are you sure you want to inactive " + isCheck.length + " students?")), React.createElement(ModalFooter, {
|
|
37023
|
+
className: "text-right"
|
|
37024
|
+
}, React.createElement(Button, {
|
|
37025
|
+
onClick: function onClick() {
|
|
37026
|
+
return handleToggleInactiveModal();
|
|
37027
|
+
}
|
|
37028
|
+
}, t("cancel")), React.createElement(Button, {
|
|
37029
|
+
color: "primary",
|
|
37030
|
+
onClick: function onClick() {
|
|
37031
|
+
return handleInactiveStudents(isCheck, handleResetData);
|
|
37032
|
+
}
|
|
37033
|
+
}, t("confirm")))), React.createElement(Row, {
|
|
36925
37034
|
className: "mb-2"
|
|
36926
37035
|
}, React.createElement(Col, {
|
|
36927
37036
|
md: 12
|