mario-education 2.2.9 → 2.3.0
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
|
@@ -5410,7 +5410,7 @@ var SemesterDetailModal = function SemesterDetailModal(props, ref) {
|
|
|
5410
5410
|
})), React.createElement(Col, {
|
|
5411
5411
|
md: 6
|
|
5412
5412
|
}, React.createElement(DatePicker, {
|
|
5413
|
-
value: utcToLocalTime(values.startTime, "Do MMMM YYYY"),
|
|
5413
|
+
value: !!values.startTime ? utcToLocalTime(values.startTime, "Do MMMM YYYY") : "",
|
|
5414
5414
|
todayButton: "Today",
|
|
5415
5415
|
peekNextMonth: true,
|
|
5416
5416
|
showMonthDropdown: true,
|
|
@@ -5441,7 +5441,7 @@ var SemesterDetailModal = function SemesterDetailModal(props, ref) {
|
|
|
5441
5441
|
})), React.createElement(Col, {
|
|
5442
5442
|
md: 6
|
|
5443
5443
|
}, React.createElement(DatePicker, {
|
|
5444
|
-
value: utcToLocalTime(values.endTime, "Do MMMM YYYY"),
|
|
5444
|
+
value: !!values.endTime ? utcToLocalTime(values.endTime, "Do MMMM YYYY") : "",
|
|
5445
5445
|
todayButton: "Today",
|
|
5446
5446
|
peekNextMonth: true,
|
|
5447
5447
|
showMonthDropdown: true,
|
|
@@ -11729,109 +11729,6 @@ var TutorialScreenContainer = function TutorialScreenContainer() {
|
|
|
11729
11729
|
});
|
|
11730
11730
|
};
|
|
11731
11731
|
|
|
11732
|
-
var QuestionBankList$1 = function QuestionBankList(_ref) {
|
|
11733
|
-
var isDefaultQuestion = _ref.isDefaultQuestion,
|
|
11734
|
-
isDefaultQuestionGeneral = _ref.isDefaultQuestionGeneral;
|
|
11735
|
-
|
|
11736
|
-
var _useQuestionList = useQuestionList(isDefaultQuestion, isDefaultQuestionGeneral),
|
|
11737
|
-
totalItems = _useQuestionList.totalItems,
|
|
11738
|
-
gridOptions = _useQuestionList.gridOptions,
|
|
11739
|
-
setRef = _useQuestionList.setRef,
|
|
11740
|
-
goToDetail = _useQuestionList.goToDetail,
|
|
11741
|
-
filters = _useQuestionList.filters,
|
|
11742
|
-
changeFilters = _useQuestionList.changeFilters,
|
|
11743
|
-
updateOrderQuestions = _useQuestionList.updateOrderQuestions;
|
|
11744
|
-
|
|
11745
|
-
var onRowDragEnd = function onRowDragEnd(e) {
|
|
11746
|
-
var dataAfterDrag = e.node.parent.childrenAfterFilter.map(function (item, index) {
|
|
11747
|
-
return {
|
|
11748
|
-
id: item.data.id,
|
|
11749
|
-
orderDrag: ++index
|
|
11750
|
-
};
|
|
11751
|
-
});
|
|
11752
|
-
updateOrderQuestions(dataAfterDrag, isDefaultQuestionGeneral);
|
|
11753
|
-
};
|
|
11754
|
-
|
|
11755
|
-
return React.createElement("div", {
|
|
11756
|
-
className: "animated fadeIn"
|
|
11757
|
-
}, React.createElement(Row, {
|
|
11758
|
-
className: "my-2"
|
|
11759
|
-
}, React.createElement(Col, {
|
|
11760
|
-
md: 8
|
|
11761
|
-
}, React.createElement(SearchBoxContainer, {
|
|
11762
|
-
text: "Create question",
|
|
11763
|
-
onClick: function onClick() {
|
|
11764
|
-
return goToDetail();
|
|
11765
|
-
},
|
|
11766
|
-
initValue: filters.searchString,
|
|
11767
|
-
onSearch: function onSearch(searchString) {
|
|
11768
|
-
return changeFilters({
|
|
11769
|
-
searchString: searchString
|
|
11770
|
-
});
|
|
11771
|
-
},
|
|
11772
|
-
placeholder: "Type something to Search question"
|
|
11773
|
-
})), isDefaultQuestion && React.createElement(Col, {
|
|
11774
|
-
md: 2
|
|
11775
|
-
}, React.createElement(DefaultQuestionStudentTeacherFilter, {
|
|
11776
|
-
isDefaultQuestionTeacher: filters.isDefaultQuestionTeacher,
|
|
11777
|
-
onChange: function onChange(e) {
|
|
11778
|
-
return changeFilters({
|
|
11779
|
-
isDefaultQuestionTeacher: e ? e.value : null
|
|
11780
|
-
});
|
|
11781
|
-
}
|
|
11782
|
-
})), isDefaultQuestionGeneral && React.createElement(Col, {
|
|
11783
|
-
md: 2
|
|
11784
|
-
}, React.createElement(DefaultQuestionStudentTeacherFilter, {
|
|
11785
|
-
isDefaultQuestionTeacher: filters.isDefaultQuestionGeneralClassTeacher,
|
|
11786
|
-
onChange: function onChange(e) {
|
|
11787
|
-
return changeFilters({
|
|
11788
|
-
isDefaultQuestionGeneralClassTeacher: e ? e.value : null
|
|
11789
|
-
});
|
|
11790
|
-
},
|
|
11791
|
-
isDefaultGeneralClass: true
|
|
11792
|
-
})), React.createElement(Col, {
|
|
11793
|
-
md: isDefaultQuestion || isDefaultQuestionGeneral ? 2 : 4,
|
|
11794
|
-
className: "d-flex align-items-center justify-content-end"
|
|
11795
|
-
}, "Total of questions: ", totalItems)), React.createElement(Row, {
|
|
11796
|
-
className: "mb-2"
|
|
11797
|
-
}, React.createElement(Col, {
|
|
11798
|
-
md: 12,
|
|
11799
|
-
className: "mb-2"
|
|
11800
|
-
}, React.createElement("div", {
|
|
11801
|
-
className: "ag-theme-balham w-100"
|
|
11802
|
-
}, React.createElement(AgGridReact, {
|
|
11803
|
-
domLayout: "autoHeight",
|
|
11804
|
-
gridOptions: gridOptions,
|
|
11805
|
-
masterDetail: true,
|
|
11806
|
-
onGridReady: function onGridReady(params) {
|
|
11807
|
-
setRef(params.api);
|
|
11808
|
-
},
|
|
11809
|
-
rowDragManaged: true,
|
|
11810
|
-
animateRows: true,
|
|
11811
|
-
modules: [MasterDetailModule, ClientSideRowModelModule],
|
|
11812
|
-
onRowDragEnd: onRowDragEnd
|
|
11813
|
-
}))), React.createElement(Col, {
|
|
11814
|
-
md: 12
|
|
11815
|
-
}, React.createElement(CustomPagination, {
|
|
11816
|
-
filters: filters,
|
|
11817
|
-
totalRecordCount: totalItems,
|
|
11818
|
-
changePageSize: function changePageSize(pageSize) {
|
|
11819
|
-
return changeFilters({
|
|
11820
|
-
pageSize: pageSize
|
|
11821
|
-
});
|
|
11822
|
-
},
|
|
11823
|
-
changePage: function changePage(currentPage) {
|
|
11824
|
-
return changeFilters({
|
|
11825
|
-
currentPage: currentPage
|
|
11826
|
-
});
|
|
11827
|
-
}
|
|
11828
|
-
}))));
|
|
11829
|
-
};
|
|
11830
|
-
|
|
11831
|
-
QuestionBankList$1.defaultProps = {
|
|
11832
|
-
isDefaultQuestion: false
|
|
11833
|
-
};
|
|
11834
|
-
|
|
11835
11732
|
var schema$c = object({
|
|
11836
11733
|
name: string().required("Name is required")
|
|
11837
11734
|
});
|
|
@@ -12260,25 +12157,7 @@ var QuestionCateList = function QuestionCateList() {
|
|
|
12260
12157
|
var tabs$3 = [{
|
|
12261
12158
|
path: "/admin/question/question-list",
|
|
12262
12159
|
title: "Question list",
|
|
12263
|
-
component: QuestionBankList
|
|
12264
|
-
}, {
|
|
12265
|
-
path: "/admin/question/default-question-list",
|
|
12266
|
-
title: "Default question list",
|
|
12267
|
-
component: function component() {
|
|
12268
|
-
return React.createElement(QuestionBankList$1, {
|
|
12269
|
-
isDefaultQuestion: true,
|
|
12270
|
-
isDefaultQuestionGeneral: false
|
|
12271
|
-
});
|
|
12272
|
-
}
|
|
12273
|
-
}, {
|
|
12274
|
-
path: "/admin/question/default-question-general-list",
|
|
12275
|
-
title: "Default question general class list",
|
|
12276
|
-
component: function component() {
|
|
12277
|
-
return React.createElement(QuestionBankList$1, {
|
|
12278
|
-
isDefaultQuestion: false,
|
|
12279
|
-
isDefaultQuestionGeneral: true
|
|
12280
|
-
});
|
|
12281
|
-
}
|
|
12160
|
+
component: QuestionBankList
|
|
12282
12161
|
}, {
|
|
12283
12162
|
path: "/admin/question/question-category",
|
|
12284
12163
|
title: "Question category",
|
|
@@ -17328,6 +17207,7 @@ var HighImpact = function HighImpact(_ref) {
|
|
|
17328
17207
|
}, [data]);
|
|
17329
17208
|
if (!data) return React.createElement(Loading, null);
|
|
17330
17209
|
var series = [{
|
|
17210
|
+
name: "",
|
|
17331
17211
|
data: ratings
|
|
17332
17212
|
}];
|
|
17333
17213
|
var options = {
|
|
@@ -17521,7 +17401,10 @@ var Quantity = function Quantity(_ref) {
|
|
|
17521
17401
|
if (!data) return React.createElement(Loading, null);
|
|
17522
17402
|
var teacherPercentage = data.teacherPercentage,
|
|
17523
17403
|
studentPercentage = data.studentPercentage,
|
|
17524
|
-
assistantPercentage = data.assistantPercentage
|
|
17404
|
+
assistantPercentage = data.assistantPercentage,
|
|
17405
|
+
numberOfTeachers = data.numberOfTeachers,
|
|
17406
|
+
numberOfStudents = data.numberOfStudents,
|
|
17407
|
+
numberOfAssistants = data.numberOfAssistants;
|
|
17525
17408
|
var series = [teacherPercentage, studentPercentage, assistantPercentage].map(function (number) {
|
|
17526
17409
|
return Number(number.toFixed(2));
|
|
17527
17410
|
});
|
|
@@ -17547,15 +17430,15 @@ var Quantity = function Quantity(_ref) {
|
|
|
17547
17430
|
var details = [{
|
|
17548
17431
|
label: "Teachers",
|
|
17549
17432
|
color: colors$3[0],
|
|
17550
|
-
value:
|
|
17433
|
+
value: numberOfTeachers
|
|
17551
17434
|
}, {
|
|
17552
17435
|
label: "Students",
|
|
17553
17436
|
color: colors$3[1],
|
|
17554
|
-
value:
|
|
17437
|
+
value: numberOfStudents
|
|
17555
17438
|
}, {
|
|
17556
17439
|
label: "Assistants",
|
|
17557
17440
|
color: colors$3[2],
|
|
17558
|
-
value:
|
|
17441
|
+
value: numberOfAssistants
|
|
17559
17442
|
}];
|
|
17560
17443
|
return React.createElement("div", {
|
|
17561
17444
|
className: "d-flex h-100"
|
|
@@ -17569,8 +17452,6 @@ var Quantity = function Quantity(_ref) {
|
|
|
17569
17452
|
bordered: true,
|
|
17570
17453
|
size: "sm"
|
|
17571
17454
|
}, React.createElement("tbody", null, details.map(function (item) {
|
|
17572
|
-
var _item$value;
|
|
17573
|
-
|
|
17574
17455
|
return React.createElement("tr", {
|
|
17575
17456
|
key: item.label
|
|
17576
17457
|
}, React.createElement("td", null, item.label), React.createElement("td", {
|
|
@@ -17580,8 +17461,8 @@ var Quantity = function Quantity(_ref) {
|
|
|
17580
17461
|
style: {
|
|
17581
17462
|
backgroundColor: item.color
|
|
17582
17463
|
}
|
|
17583
|
-
})), React.createElement("td", null,
|
|
17584
|
-
}))))), React.createElement("div", {
|
|
17464
|
+
})), React.createElement("td", null, item.value));
|
|
17465
|
+
}))), React.createElement("p", null, "The number of user for each role"))), React.createElement("div", {
|
|
17585
17466
|
className: "d-flex align-items-end"
|
|
17586
17467
|
}, React.createElement(ReactApexChart, {
|
|
17587
17468
|
options: options,
|