mario-core 2.9.362-release → 2.9.364-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.css +28 -0
- package/dist/index.js +73 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +74 -24
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3,7 +3,7 @@ import i18n from 'i18next';
|
|
|
3
3
|
import { initReactI18next, useTranslation } from 'react-i18next';
|
|
4
4
|
export { I18nextProvider, useTranslation } from 'react-i18next';
|
|
5
5
|
import React, { useCallback, useState, useEffect, useRef, Suspense, memo, Fragment, forwardRef, useImperativeHandle, useMemo } from 'react';
|
|
6
|
-
import { Input, Form, FormGroup, Row, Col, Navbar, NavbarBrand, Collapse, Nav, NavItem, NavLink, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Button, Alert, Pagination, PaginationItem, PaginationLink, Table, Label, Modal, ModalHeader, ModalBody, ModalFooter, Popover, PopoverBody, TabContent, TabPane, CardText, CustomInput, Card, CardImg, CardBody, CardTitle, CardHeader } from 'reactstrap';
|
|
6
|
+
import { Input, Form, FormGroup, Row, Col, Navbar, NavbarBrand, Collapse, Nav, NavItem, NavLink, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Button, Alert, Pagination, PaginationItem, PaginationLink, Table, Label, Modal, ModalHeader, ModalBody, ModalFooter, Popover, PopoverBody, TabContent, TabPane, CardText, Tooltip, CustomInput, Card, CardImg, CardBody, CardTitle, CardHeader } from 'reactstrap';
|
|
7
7
|
import { Link, useLocation, useHistory, Switch, Route, Prompt, useParams } from 'react-router-dom';
|
|
8
8
|
import { useDispatch, useSelector } from 'react-redux';
|
|
9
9
|
import { Formik } from 'formik';
|
|
@@ -20549,7 +20549,7 @@ function _catch(body, recover) {
|
|
|
20549
20549
|
return result;
|
|
20550
20550
|
}
|
|
20551
20551
|
|
|
20552
|
-
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","class-link-sso-image":"_3EZva","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","school-icon":"_2OUwW","school-name":"_2Owso","login-description":"_fx-kA","digital-privacy-icon":"_141p1","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","privacy-policy":"_I4SVu","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","descriptions-icon":"_3SOdX","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","checkbox-keep-login":"_1AiX0","label-keep-login":"_2uNvW","option-text":"_pqn4y","form-user-name":"_39BJD","input":"_ozRAq","checkbox-remember":"_2K9b2","btn-rounder":"_2VvIr","btn-active":"_2A0HF","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","bg-animate":"_30npl","active":"_3oAH-","show":"_16rY4","fade-in":"_26nbh","behind":"_3A7Vv","login":"_F-hjL","login-content":"_149oA","logo-home":"_24U3W","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-minimized-logo":"_3846X","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","popover__sort__item":"_1ocBa","popover__sort__item--active":"_18NhM","popover__search__icon":"_2bquW","popover__search__input":"_3A4G4","popover__options":"_1MsEW","button-export":"_2rTzM","button-content":"_18y0w","button-icon":"_3cZAT","hide-in-mobile":"_1INnO","hamburger-menu":"_2yRc8","box-content-home-page":"_ABUIP","collapse-box":"_WX97m","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","title":"_g-p72","btn-login-with-sso":"_DrSlA","app-alert":"_3Vgah","app-alert--success":"_1jraB","p-0-12":"_1sfzz"};
|
|
20552
|
+
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","class-link-sso-image":"_3EZva","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","school-icon":"_2OUwW","school-name":"_2Owso","login-description":"_fx-kA","digital-privacy-icon":"_141p1","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","privacy-policy":"_I4SVu","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","descriptions-icon":"_3SOdX","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","checkbox-keep-login":"_1AiX0","label-keep-login":"_2uNvW","option-text":"_pqn4y","form-user-name":"_39BJD","input":"_ozRAq","checkbox-remember":"_2K9b2","btn-rounder":"_2VvIr","btn-active":"_2A0HF","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","bg-animate":"_30npl","active":"_3oAH-","show":"_16rY4","fade-in":"_26nbh","behind":"_3A7Vv","login":"_F-hjL","login-content":"_149oA","logo-home":"_24U3W","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-minimized-logo":"_3846X","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","popover__sort__item":"_1ocBa","popover__sort__item--active":"_18NhM","popover__search__icon":"_2bquW","popover__search__input":"_3A4G4","popover__options":"_1MsEW","button-export":"_2rTzM","button-content":"_18y0w","button-icon":"_3cZAT","hide-in-mobile":"_1INnO","hamburger-menu":"_2yRc8","box-content-home-page":"_ABUIP","collapse-box":"_WX97m","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","title":"_g-p72","btn-login-with-sso":"_DrSlA","app-alert":"_3Vgah","app-alert--success":"_1jraB","p-0-12":"_1sfzz","table-fixed":"_2geWX","fixed-width":"_3QMZ8","fixed-width-40":"_2RT7O","fixed-width-80":"_c0zqU","equal-width":"_3ewxz"};
|
|
20553
20553
|
|
|
20554
20554
|
var style = {
|
|
20555
20555
|
fontSize: "0.85rem"
|
|
@@ -44722,13 +44722,13 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44722
44722
|
isCenter: true,
|
|
44723
44723
|
onSelectAll: handleSelectAll,
|
|
44724
44724
|
isCheckAll: isCheckAll,
|
|
44725
|
-
className: "text-center"
|
|
44725
|
+
className: "text-center " + styles['fixed-width-40']
|
|
44726
44726
|
}, {
|
|
44727
44727
|
name: "student_name",
|
|
44728
44728
|
isCenter: true,
|
|
44729
44729
|
sortBy: UserOrder.Name,
|
|
44730
44730
|
searchBy: SearchBy.Name,
|
|
44731
|
-
className: "align-top fixed-width
|
|
44731
|
+
className: "align-top " + styles['fixed-width'],
|
|
44732
44732
|
getOption: function getOption(user) {
|
|
44733
44733
|
return {
|
|
44734
44734
|
label: user || "empty",
|
|
@@ -44740,7 +44740,7 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44740
44740
|
isCenter: true,
|
|
44741
44741
|
sortBy: UserOrder.Email,
|
|
44742
44742
|
searchBy: SearchBy.Email,
|
|
44743
|
-
className: "align-top fixed-width
|
|
44743
|
+
className: "align-top " + styles['fixed-width'],
|
|
44744
44744
|
getOption: function getOption(user) {
|
|
44745
44745
|
return {
|
|
44746
44746
|
label: user || "empty",
|
|
@@ -44749,20 +44749,31 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44749
44749
|
}
|
|
44750
44750
|
}, {
|
|
44751
44751
|
name: "teacher_email",
|
|
44752
|
-
className: "align-top text-center equal-width
|
|
44752
|
+
className: "align-top text-center " + styles['equal-width']
|
|
44753
44753
|
}, {
|
|
44754
44754
|
name: "assistant_email",
|
|
44755
|
-
className: "align-top text-center equal-width
|
|
44755
|
+
className: "align-top text-center " + styles['equal-width']
|
|
44756
44756
|
}, {
|
|
44757
44757
|
name: "counselor_email",
|
|
44758
|
-
className: "align-top text-center equal-width
|
|
44758
|
+
className: "align-top text-center " + styles['equal-width']
|
|
44759
44759
|
}, {
|
|
44760
44760
|
name: "support_teacher_email",
|
|
44761
|
-
className: "align-top text-center equal-width
|
|
44761
|
+
className: "align-top text-center " + styles['equal-width']
|
|
44762
44762
|
}, {
|
|
44763
44763
|
name: "action",
|
|
44764
|
-
className: "text-center text-center"
|
|
44764
|
+
className: "text-center text-center " + styles['fixed-width-80']
|
|
44765
44765
|
}];
|
|
44766
|
+
|
|
44767
|
+
var _useState = useState(null),
|
|
44768
|
+
openTooltip = _useState[0],
|
|
44769
|
+
setOpenTooltip = _useState[1];
|
|
44770
|
+
|
|
44771
|
+
var toggle = function toggle(id) {
|
|
44772
|
+
setOpenTooltip(function (prev) {
|
|
44773
|
+
return prev === id ? null : id;
|
|
44774
|
+
});
|
|
44775
|
+
};
|
|
44776
|
+
|
|
44766
44777
|
return React.createElement("div", {
|
|
44767
44778
|
className: "fadeIn animated"
|
|
44768
44779
|
}, React.createElement("h5", {
|
|
@@ -44924,35 +44935,74 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44924
44935
|
hover: true,
|
|
44925
44936
|
striped: true,
|
|
44926
44937
|
size: "sm",
|
|
44927
|
-
className: "table-fixed
|
|
44938
|
+
className: "" + styles['table-fixed']
|
|
44928
44939
|
}, React.createElement("thead", null, React.createElement(TableHeader, {
|
|
44929
44940
|
isStudentFilter: true,
|
|
44930
44941
|
headers: AssignStudentColumns,
|
|
44931
44942
|
filters: filters,
|
|
44932
44943
|
fullName: fullName,
|
|
44933
44944
|
onChangeFilters: changeFilters
|
|
44934
|
-
})), React.createElement("tbody", null, userList.map(function (item) {
|
|
44945
|
+
})), React.createElement("tbody", null, userList.map(function (item, index) {
|
|
44935
44946
|
return React.createElement("tr", {
|
|
44936
44947
|
key: item.id
|
|
44937
44948
|
}, React.createElement("td", {
|
|
44938
|
-
className: "align-middle text-center"
|
|
44949
|
+
className: "align-middle text-center " + styles['fixed-width-40']
|
|
44939
44950
|
}, React.createElement("input", {
|
|
44940
44951
|
id: item.id,
|
|
44941
44952
|
type: "checkbox",
|
|
44942
44953
|
onChange: handleClickCheck,
|
|
44943
44954
|
checked: isCheck.includes(item.id)
|
|
44944
44955
|
})), React.createElement("td", {
|
|
44945
|
-
className: "align-middle fixed-width
|
|
44946
|
-
|
|
44947
|
-
|
|
44948
|
-
|
|
44949
|
-
|
|
44950
|
-
|
|
44956
|
+
className: "align-middle " + styles['fixed-width'],
|
|
44957
|
+
id: "student_name_" + item.id + "_" + index,
|
|
44958
|
+
onMouseEnter: function onMouseEnter() {
|
|
44959
|
+
return toggle("student_name_" + item.id + "_" + index);
|
|
44960
|
+
},
|
|
44961
|
+
onMouseLeave: function onMouseLeave() {
|
|
44962
|
+
return toggle("student_name_" + item.id + "_" + index);
|
|
44963
|
+
}
|
|
44964
|
+
}, React.createElement("p", null, item.fullName), React.createElement(Tooltip, {
|
|
44965
|
+
placement: "top",
|
|
44966
|
+
isOpen: openTooltip === "student_name_" + item.id + "_" + index,
|
|
44967
|
+
target: "student_name_" + item.id + "_" + index
|
|
44968
|
+
}, item.fullName)), React.createElement("td", {
|
|
44969
|
+
className: "align-middle " + styles['fixed-width'],
|
|
44970
|
+
id: "student_email_" + item.id + "_" + index,
|
|
44971
|
+
onMouseEnter: function onMouseEnter() {
|
|
44972
|
+
return toggle("student_email_" + item.id + "_" + index);
|
|
44973
|
+
},
|
|
44974
|
+
onMouseLeave: function onMouseLeave() {
|
|
44975
|
+
return toggle("student_email_" + item.id + "_" + index);
|
|
44976
|
+
}
|
|
44977
|
+
}, React.createElement("p", null, item.email), React.createElement(Tooltip, {
|
|
44978
|
+
placement: "top",
|
|
44979
|
+
isOpen: openTooltip === "student_email_" + item.id + "_" + index,
|
|
44980
|
+
target: "student_email_" + item.id + "_" + index
|
|
44981
|
+
}, item.email)), React.createElement("td", {
|
|
44982
|
+
className: "align-middle " + styles['equal-width']
|
|
44983
|
+
}, !!item.teachers && item.teachers.length > 0 ? React.createElement(React.Fragment, null, React.createElement("div", {
|
|
44984
|
+
id: "student_teacher_" + item.id + "_" + index,
|
|
44985
|
+
onMouseEnter: function onMouseEnter() {
|
|
44986
|
+
return toggle("student_teacher_" + item.id + "_" + index);
|
|
44987
|
+
},
|
|
44988
|
+
onMouseLeave: function onMouseLeave() {
|
|
44989
|
+
return toggle("student_teacher_" + item.id + "_" + index);
|
|
44990
|
+
}
|
|
44991
|
+
}, item.teachers.map(function (record) {
|
|
44992
|
+
return React.createElement("p", {
|
|
44993
|
+
key: record.mainTeacherEmail,
|
|
44994
|
+
className: "mb-0"
|
|
44995
|
+
}, record.mainTeacherName, " - ", record.mainTeacherEmail);
|
|
44996
|
+
})), React.createElement(Tooltip, {
|
|
44997
|
+
placement: "top",
|
|
44998
|
+
isOpen: openTooltip === "student_teacher_" + item.id + "_" + index,
|
|
44999
|
+
target: "student_teacher_" + item.id + "_" + index
|
|
45000
|
+
}, item.teachers.map(function (record) {
|
|
44951
45001
|
return React.createElement("p", {
|
|
44952
45002
|
key: record.mainTeacherEmail,
|
|
44953
45003
|
className: "mb-0"
|
|
44954
45004
|
}, record.mainTeacherName, " - ", record.mainTeacherEmail);
|
|
44955
|
-
})) : React.createElement(TeacherSelector, {
|
|
45005
|
+
}))) : React.createElement(TeacherSelector, {
|
|
44956
45006
|
isMulti: true,
|
|
44957
45007
|
value: selectedTeachers === null || selectedTeachers === void 0 ? void 0 : selectedTeachers[item.id],
|
|
44958
45008
|
options: teacherOptions,
|
|
@@ -44964,7 +45014,7 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44964
45014
|
placeholder: t("select_teacher"),
|
|
44965
45015
|
className: "flex-grow-1 mr-2"
|
|
44966
45016
|
})), React.createElement("td", {
|
|
44967
|
-
className: "align-middle equal-width
|
|
45017
|
+
className: "align-middle " + styles['equal-width']
|
|
44968
45018
|
}, !!item.assistantEmail ? React.createElement(React.Fragment, null, React.createElement("p", {
|
|
44969
45019
|
className: "mb-0"
|
|
44970
45020
|
}, item.assistantEmail), React.createElement("p", {
|
|
@@ -44978,7 +45028,7 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44978
45028
|
placeholder: t("select_assistant"),
|
|
44979
45029
|
className: "flex-grow-1 mr-2"
|
|
44980
45030
|
})), React.createElement("td", {
|
|
44981
|
-
className: "align-middle equal-width
|
|
45031
|
+
className: "align-middle " + styles['equal-width']
|
|
44982
45032
|
}, !!item.counselorEmail ? React.createElement(React.Fragment, null, React.createElement("p", {
|
|
44983
45033
|
className: "mb-0"
|
|
44984
45034
|
}, item.counselorEmail), React.createElement("p", {
|
|
@@ -44992,7 +45042,7 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
44992
45042
|
placeholder: t("select_counselor"),
|
|
44993
45043
|
className: "flex-grow-1 mr-2"
|
|
44994
45044
|
})), React.createElement("td", {
|
|
44995
|
-
className: "align-middle equal-width
|
|
45045
|
+
className: "align-middle " + styles['equal-width']
|
|
44996
45046
|
}, !!item.secondaryTeacherEmail ? React.createElement(React.Fragment, null, React.createElement("p", {
|
|
44997
45047
|
className: "mb-0"
|
|
44998
45048
|
}, item.secondaryTeacherEmail), React.createElement("p", {
|
|
@@ -45006,7 +45056,7 @@ var AssignStudentList = function AssignStudentList() {
|
|
|
45006
45056
|
placeholder: t("select_support_teacher"),
|
|
45007
45057
|
className: "flex-grow-1 mr-2"
|
|
45008
45058
|
})), React.createElement("td", {
|
|
45009
|
-
className: "align-middle"
|
|
45059
|
+
className: "align-middle " + styles['fixed-width-80']
|
|
45010
45060
|
}, React.createElement("div", {
|
|
45011
45061
|
className: "d-flex"
|
|
45012
45062
|
}, React.createElement(LinkEditButton, {
|