mario-education 2.2.6 → 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.
|
@@ -7,6 +7,9 @@ export declare type QuantityReport = {
|
|
|
7
7
|
teacherPercentage: number;
|
|
8
8
|
studentPercentage: number;
|
|
9
9
|
assistantPercentage: number;
|
|
10
|
+
numberOfTeachers: number;
|
|
11
|
+
numberOfStudents: number;
|
|
12
|
+
numberOfAssistants: number;
|
|
10
13
|
};
|
|
11
14
|
export declare type SkillReportItem = {
|
|
12
15
|
skillName: string;
|
package/dist/index.js
CHANGED
|
@@ -5413,7 +5413,7 @@ var SemesterDetailModal = function SemesterDetailModal(props, ref) {
|
|
|
5413
5413
|
})), React__default.createElement(reactstrap.Col, {
|
|
5414
5414
|
md: 6
|
|
5415
5415
|
}, React__default.createElement(DatePicker, {
|
|
5416
|
-
value: marioCore.utcToLocalTime(values.startTime, "
|
|
5416
|
+
value: !!values.startTime ? marioCore.utcToLocalTime(values.startTime, "Do MMMM YYYY") : "",
|
|
5417
5417
|
todayButton: "Today",
|
|
5418
5418
|
peekNextMonth: true,
|
|
5419
5419
|
showMonthDropdown: true,
|
|
@@ -5444,7 +5444,7 @@ var SemesterDetailModal = function SemesterDetailModal(props, ref) {
|
|
|
5444
5444
|
})), React__default.createElement(reactstrap.Col, {
|
|
5445
5445
|
md: 6
|
|
5446
5446
|
}, React__default.createElement(DatePicker, {
|
|
5447
|
-
value: marioCore.utcToLocalTime(values.endTime, "
|
|
5447
|
+
value: !!values.endTime ? marioCore.utcToLocalTime(values.endTime, "Do MMMM YYYY") : "",
|
|
5448
5448
|
todayButton: "Today",
|
|
5449
5449
|
peekNextMonth: true,
|
|
5450
5450
|
showMonthDropdown: true,
|
|
@@ -6060,9 +6060,9 @@ var SemesterList = function SemesterList() {
|
|
|
6060
6060
|
}
|
|
6061
6061
|
})), React__default.createElement("td", {
|
|
6062
6062
|
className: "align-middle"
|
|
6063
|
-
}, marioCore.utcToLocalTime(record.startTime, "
|
|
6063
|
+
}, marioCore.utcToLocalTime(record.startTime, "Do MMMM YYYY")), React__default.createElement("td", {
|
|
6064
6064
|
className: "align-middle"
|
|
6065
|
-
}, marioCore.utcToLocalTime(record.endTime, "
|
|
6065
|
+
}, marioCore.utcToLocalTime(record.endTime, "Do MMMM YYYY")), React__default.createElement("td", {
|
|
6066
6066
|
className: "text-center align-middle"
|
|
6067
6067
|
}, React__default.createElement(marioCore.DeleteButtonIcon, {
|
|
6068
6068
|
onClick: function onClick() {
|
|
@@ -7244,9 +7244,9 @@ var SchoolBlankDayList = function SchoolBlankDayList() {
|
|
|
7244
7244
|
}
|
|
7245
7245
|
})), React__default.createElement("td", {
|
|
7246
7246
|
className: "align-middle"
|
|
7247
|
-
}, marioCore.utcToLocalTime(record.startTime,
|
|
7247
|
+
}, marioCore.utcToLocalTime(record.startTime, "Do MMMM YYYY")), React__default.createElement("td", {
|
|
7248
7248
|
className: "align-middle"
|
|
7249
|
-
}, marioCore.utcToLocalTime(record.endTime,
|
|
7249
|
+
}, marioCore.utcToLocalTime(record.endTime, "Do MMMM YYYY")), React__default.createElement("td", {
|
|
7250
7250
|
className: "text-center align-middle"
|
|
7251
7251
|
}, React__default.createElement(marioCore.DeleteButtonIcon, {
|
|
7252
7252
|
onClick: function onClick() {
|
|
@@ -11732,109 +11732,6 @@ var TutorialScreenContainer = function TutorialScreenContainer() {
|
|
|
11732
11732
|
});
|
|
11733
11733
|
};
|
|
11734
11734
|
|
|
11735
|
-
var QuestionBankList$1 = function QuestionBankList(_ref) {
|
|
11736
|
-
var isDefaultQuestion = _ref.isDefaultQuestion,
|
|
11737
|
-
isDefaultQuestionGeneral = _ref.isDefaultQuestionGeneral;
|
|
11738
|
-
|
|
11739
|
-
var _useQuestionList = useQuestionList(isDefaultQuestion, isDefaultQuestionGeneral),
|
|
11740
|
-
totalItems = _useQuestionList.totalItems,
|
|
11741
|
-
gridOptions = _useQuestionList.gridOptions,
|
|
11742
|
-
setRef = _useQuestionList.setRef,
|
|
11743
|
-
goToDetail = _useQuestionList.goToDetail,
|
|
11744
|
-
filters = _useQuestionList.filters,
|
|
11745
|
-
changeFilters = _useQuestionList.changeFilters,
|
|
11746
|
-
updateOrderQuestions = _useQuestionList.updateOrderQuestions;
|
|
11747
|
-
|
|
11748
|
-
var onRowDragEnd = function onRowDragEnd(e) {
|
|
11749
|
-
var dataAfterDrag = e.node.parent.childrenAfterFilter.map(function (item, index) {
|
|
11750
|
-
return {
|
|
11751
|
-
id: item.data.id,
|
|
11752
|
-
orderDrag: ++index
|
|
11753
|
-
};
|
|
11754
|
-
});
|
|
11755
|
-
updateOrderQuestions(dataAfterDrag, isDefaultQuestionGeneral);
|
|
11756
|
-
};
|
|
11757
|
-
|
|
11758
|
-
return React__default.createElement("div", {
|
|
11759
|
-
className: "animated fadeIn"
|
|
11760
|
-
}, React__default.createElement(reactstrap.Row, {
|
|
11761
|
-
className: "my-2"
|
|
11762
|
-
}, React__default.createElement(reactstrap.Col, {
|
|
11763
|
-
md: 8
|
|
11764
|
-
}, React__default.createElement(marioCore.SearchBoxContainer, {
|
|
11765
|
-
text: "Create question",
|
|
11766
|
-
onClick: function onClick() {
|
|
11767
|
-
return goToDetail();
|
|
11768
|
-
},
|
|
11769
|
-
initValue: filters.searchString,
|
|
11770
|
-
onSearch: function onSearch(searchString) {
|
|
11771
|
-
return changeFilters({
|
|
11772
|
-
searchString: searchString
|
|
11773
|
-
});
|
|
11774
|
-
},
|
|
11775
|
-
placeholder: "Type something to Search question"
|
|
11776
|
-
})), isDefaultQuestion && React__default.createElement(reactstrap.Col, {
|
|
11777
|
-
md: 2
|
|
11778
|
-
}, React__default.createElement(DefaultQuestionStudentTeacherFilter, {
|
|
11779
|
-
isDefaultQuestionTeacher: filters.isDefaultQuestionTeacher,
|
|
11780
|
-
onChange: function onChange(e) {
|
|
11781
|
-
return changeFilters({
|
|
11782
|
-
isDefaultQuestionTeacher: e ? e.value : null
|
|
11783
|
-
});
|
|
11784
|
-
}
|
|
11785
|
-
})), isDefaultQuestionGeneral && React__default.createElement(reactstrap.Col, {
|
|
11786
|
-
md: 2
|
|
11787
|
-
}, React__default.createElement(DefaultQuestionStudentTeacherFilter, {
|
|
11788
|
-
isDefaultQuestionTeacher: filters.isDefaultQuestionGeneralClassTeacher,
|
|
11789
|
-
onChange: function onChange(e) {
|
|
11790
|
-
return changeFilters({
|
|
11791
|
-
isDefaultQuestionGeneralClassTeacher: e ? e.value : null
|
|
11792
|
-
});
|
|
11793
|
-
},
|
|
11794
|
-
isDefaultGeneralClass: true
|
|
11795
|
-
})), React__default.createElement(reactstrap.Col, {
|
|
11796
|
-
md: isDefaultQuestion || isDefaultQuestionGeneral ? 2 : 4,
|
|
11797
|
-
className: "d-flex align-items-center justify-content-end"
|
|
11798
|
-
}, "Total of questions: ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
11799
|
-
className: "mb-2"
|
|
11800
|
-
}, React__default.createElement(reactstrap.Col, {
|
|
11801
|
-
md: 12,
|
|
11802
|
-
className: "mb-2"
|
|
11803
|
-
}, React__default.createElement("div", {
|
|
11804
|
-
className: "ag-theme-balham w-100"
|
|
11805
|
-
}, React__default.createElement(react.AgGridReact, {
|
|
11806
|
-
domLayout: "autoHeight",
|
|
11807
|
-
gridOptions: gridOptions,
|
|
11808
|
-
masterDetail: true,
|
|
11809
|
-
onGridReady: function onGridReady(params) {
|
|
11810
|
-
setRef(params.api);
|
|
11811
|
-
},
|
|
11812
|
-
rowDragManaged: true,
|
|
11813
|
-
animateRows: true,
|
|
11814
|
-
modules: [masterDetail.MasterDetailModule, clientSideRowModel.ClientSideRowModelModule],
|
|
11815
|
-
onRowDragEnd: onRowDragEnd
|
|
11816
|
-
}))), React__default.createElement(reactstrap.Col, {
|
|
11817
|
-
md: 12
|
|
11818
|
-
}, React__default.createElement(marioCore.CustomPagination, {
|
|
11819
|
-
filters: filters,
|
|
11820
|
-
totalRecordCount: totalItems,
|
|
11821
|
-
changePageSize: function changePageSize(pageSize) {
|
|
11822
|
-
return changeFilters({
|
|
11823
|
-
pageSize: pageSize
|
|
11824
|
-
});
|
|
11825
|
-
},
|
|
11826
|
-
changePage: function changePage(currentPage) {
|
|
11827
|
-
return changeFilters({
|
|
11828
|
-
currentPage: currentPage
|
|
11829
|
-
});
|
|
11830
|
-
}
|
|
11831
|
-
}))));
|
|
11832
|
-
};
|
|
11833
|
-
|
|
11834
|
-
QuestionBankList$1.defaultProps = {
|
|
11835
|
-
isDefaultQuestion: false
|
|
11836
|
-
};
|
|
11837
|
-
|
|
11838
11735
|
var schema$c = yup.object({
|
|
11839
11736
|
name: yup.string().required("Name is required")
|
|
11840
11737
|
});
|
|
@@ -12263,25 +12160,7 @@ var QuestionCateList = function QuestionCateList() {
|
|
|
12263
12160
|
var tabs$3 = [{
|
|
12264
12161
|
path: "/admin/question/question-list",
|
|
12265
12162
|
title: "Question list",
|
|
12266
|
-
component: QuestionBankList
|
|
12267
|
-
}, {
|
|
12268
|
-
path: "/admin/question/default-question-list",
|
|
12269
|
-
title: "Default question list",
|
|
12270
|
-
component: function component() {
|
|
12271
|
-
return React__default.createElement(QuestionBankList$1, {
|
|
12272
|
-
isDefaultQuestion: true,
|
|
12273
|
-
isDefaultQuestionGeneral: false
|
|
12274
|
-
});
|
|
12275
|
-
}
|
|
12276
|
-
}, {
|
|
12277
|
-
path: "/admin/question/default-question-general-list",
|
|
12278
|
-
title: "Default question general class list",
|
|
12279
|
-
component: function component() {
|
|
12280
|
-
return React__default.createElement(QuestionBankList$1, {
|
|
12281
|
-
isDefaultQuestion: false,
|
|
12282
|
-
isDefaultQuestionGeneral: true
|
|
12283
|
-
});
|
|
12284
|
-
}
|
|
12163
|
+
component: QuestionBankList
|
|
12285
12164
|
}, {
|
|
12286
12165
|
path: "/admin/question/question-category",
|
|
12287
12166
|
title: "Question category",
|
|
@@ -17268,107 +17147,6 @@ var DashboardCard = function DashboardCard(_ref) {
|
|
|
17268
17147
|
}, children));
|
|
17269
17148
|
};
|
|
17270
17149
|
|
|
17271
|
-
var colors = ["#1C77AC", "#00979B", "#8B0000", "#87E0E0", "#2EB82E"];
|
|
17272
|
-
var levels = [{
|
|
17273
|
-
name: "No progress",
|
|
17274
|
-
field: "noProgress"
|
|
17275
|
-
}, {
|
|
17276
|
-
name: "Slight",
|
|
17277
|
-
field: "slight"
|
|
17278
|
-
}, {
|
|
17279
|
-
name: "Moderate",
|
|
17280
|
-
field: "moderate"
|
|
17281
|
-
}, {
|
|
17282
|
-
name: "Significant",
|
|
17283
|
-
field: "significant"
|
|
17284
|
-
}, {
|
|
17285
|
-
name: "Achieved",
|
|
17286
|
-
field: "achieved"
|
|
17287
|
-
}];
|
|
17288
|
-
|
|
17289
|
-
var GoalProgressReport = function GoalProgressReport(_ref) {
|
|
17290
|
-
var data = _ref.data;
|
|
17291
|
-
var series = React.useMemo(function () {
|
|
17292
|
-
if (!data) return [];
|
|
17293
|
-
|
|
17294
|
-
try {
|
|
17295
|
-
return levels.map(function (level) {
|
|
17296
|
-
return {
|
|
17297
|
-
name: level.name,
|
|
17298
|
-
data: data.map(function (item) {
|
|
17299
|
-
return item[level.field];
|
|
17300
|
-
})
|
|
17301
|
-
};
|
|
17302
|
-
});
|
|
17303
|
-
} catch (_unused) {
|
|
17304
|
-
return [];
|
|
17305
|
-
}
|
|
17306
|
-
}, [data]);
|
|
17307
|
-
var categories = React.useMemo(function () {
|
|
17308
|
-
if (!data) return [];
|
|
17309
|
-
|
|
17310
|
-
try {
|
|
17311
|
-
return data.map(function (item) {
|
|
17312
|
-
return item.createdAt;
|
|
17313
|
-
});
|
|
17314
|
-
} catch (_unused2) {
|
|
17315
|
-
return [];
|
|
17316
|
-
}
|
|
17317
|
-
}, [data]);
|
|
17318
|
-
if (!data) return React__default.createElement(marioCore.Loading, null);
|
|
17319
|
-
var options = {
|
|
17320
|
-
chart: {
|
|
17321
|
-
type: "bar",
|
|
17322
|
-
height: 350,
|
|
17323
|
-
stacked: true,
|
|
17324
|
-
stackType: "100%",
|
|
17325
|
-
toolbar: {
|
|
17326
|
-
show: false
|
|
17327
|
-
}
|
|
17328
|
-
},
|
|
17329
|
-
plotOptions: {
|
|
17330
|
-
bar: {
|
|
17331
|
-
horizontal: false,
|
|
17332
|
-
columnWidth: "80%"
|
|
17333
|
-
}
|
|
17334
|
-
},
|
|
17335
|
-
colors: colors,
|
|
17336
|
-
responsive: [{
|
|
17337
|
-
breakpoint: 480,
|
|
17338
|
-
options: {
|
|
17339
|
-
legend: {
|
|
17340
|
-
position: "bottom",
|
|
17341
|
-
offsetX: -10,
|
|
17342
|
-
offsetY: 0
|
|
17343
|
-
}
|
|
17344
|
-
}
|
|
17345
|
-
}],
|
|
17346
|
-
xaxis: {
|
|
17347
|
-
categories: categories
|
|
17348
|
-
},
|
|
17349
|
-
fill: {
|
|
17350
|
-
opacity: 1
|
|
17351
|
-
},
|
|
17352
|
-
legend: {
|
|
17353
|
-
position: "right",
|
|
17354
|
-
offsetX: 0,
|
|
17355
|
-
offsetY: 50,
|
|
17356
|
-
onItemClick: {
|
|
17357
|
-
toggleDataSeries: false
|
|
17358
|
-
},
|
|
17359
|
-
onItemHover: {
|
|
17360
|
-
highlightDataSeries: false
|
|
17361
|
-
}
|
|
17362
|
-
}
|
|
17363
|
-
};
|
|
17364
|
-
return React__default.createElement("div", null, React__default.createElement(ReactApexChart, {
|
|
17365
|
-
options: options,
|
|
17366
|
-
series: series,
|
|
17367
|
-
type: "bar",
|
|
17368
|
-
height: 350
|
|
17369
|
-
}));
|
|
17370
|
-
};
|
|
17371
|
-
|
|
17372
17150
|
var Loading = function Loading() {
|
|
17373
17151
|
return React__default.createElement("div", {
|
|
17374
17152
|
className: "d-flex align-items-center justify-content-center"
|
|
@@ -17390,14 +17168,14 @@ var Loading = function Loading() {
|
|
|
17390
17168
|
}, "Loading...")));
|
|
17391
17169
|
};
|
|
17392
17170
|
|
|
17393
|
-
var colors
|
|
17171
|
+
var colors = ["rgba(129, 236, 236, 0.8)", "rgba(116, 185, 255, 0.8)", "rgba(250, 177, 160, 0.8)", "rgba(255, 234, 167, 0.8)", "rgba(178, 190, 195, 0.8)", "rgba(85, 239, 196, 0.8)", "rgba(120, 111, 166, 0.8)", "rgba(243, 166, 131, 0.8)"];
|
|
17394
17172
|
|
|
17395
17173
|
var getColors = function getColors(length) {
|
|
17396
|
-
if (colors
|
|
17397
|
-
var newColors = [].concat(colors
|
|
17174
|
+
if (colors.length >= length) return colors;
|
|
17175
|
+
var newColors = [].concat(colors);
|
|
17398
17176
|
|
|
17399
17177
|
while (newColors.length < length) {
|
|
17400
|
-
newColors = [].concat(newColors, colors
|
|
17178
|
+
newColors = [].concat(newColors, colors);
|
|
17401
17179
|
}
|
|
17402
17180
|
|
|
17403
17181
|
return newColors;
|
|
@@ -17432,6 +17210,7 @@ var HighImpact = function HighImpact(_ref) {
|
|
|
17432
17210
|
}, [data]);
|
|
17433
17211
|
if (!data) return React__default.createElement(Loading, null);
|
|
17434
17212
|
var series = [{
|
|
17213
|
+
name: "",
|
|
17435
17214
|
data: ratings
|
|
17436
17215
|
}];
|
|
17437
17216
|
var options = {
|
|
@@ -17488,7 +17267,7 @@ var HighImpact = function HighImpact(_ref) {
|
|
|
17488
17267
|
})));
|
|
17489
17268
|
};
|
|
17490
17269
|
|
|
17491
|
-
var colors$
|
|
17270
|
+
var colors$1 = ["#1abc9c", "#c0392b"];
|
|
17492
17271
|
|
|
17493
17272
|
var LoginCouting = function LoginCouting(_ref) {
|
|
17494
17273
|
var data = _ref.data;
|
|
@@ -17505,11 +17284,11 @@ var LoginCouting = function LoginCouting(_ref) {
|
|
|
17505
17284
|
var series = [{
|
|
17506
17285
|
name: "Teacher",
|
|
17507
17286
|
data: teacherCount,
|
|
17508
|
-
color: colors$
|
|
17287
|
+
color: colors$1[0]
|
|
17509
17288
|
}, {
|
|
17510
17289
|
name: "Student",
|
|
17511
17290
|
data: studentCount,
|
|
17512
|
-
color: colors$
|
|
17291
|
+
color: colors$1[1]
|
|
17513
17292
|
}];
|
|
17514
17293
|
var options = {
|
|
17515
17294
|
chart: {
|
|
@@ -17526,7 +17305,7 @@ var LoginCouting = function LoginCouting(_ref) {
|
|
|
17526
17305
|
markers: {
|
|
17527
17306
|
size: 4,
|
|
17528
17307
|
colors: ["#fff"],
|
|
17529
|
-
strokeColors: colors$
|
|
17308
|
+
strokeColors: colors$1,
|
|
17530
17309
|
strokeWidth: 2,
|
|
17531
17310
|
strokeOpacity: 0.9,
|
|
17532
17311
|
strokeDashArray: 0,
|
|
@@ -17558,17 +17337,12 @@ var LoginCouting = function LoginCouting(_ref) {
|
|
|
17558
17337
|
}));
|
|
17559
17338
|
};
|
|
17560
17339
|
|
|
17561
|
-
var colors$
|
|
17340
|
+
var colors$2 = ["#00cec9", "#00b894"];
|
|
17562
17341
|
|
|
17563
17342
|
var PerceivedImpact = function PerceivedImpact(_ref) {
|
|
17564
17343
|
var data = _ref.data;
|
|
17565
17344
|
if (!data) return React__default.createElement(Loading, null);
|
|
17566
17345
|
var series = [{
|
|
17567
|
-
name: "Teacher",
|
|
17568
|
-
data: data.map(function (item) {
|
|
17569
|
-
return item.teacherRating;
|
|
17570
|
-
})
|
|
17571
|
-
}, {
|
|
17572
17346
|
name: "Student",
|
|
17573
17347
|
data: data.map(function (item) {
|
|
17574
17348
|
return item.studentRating;
|
|
@@ -17585,7 +17359,7 @@ var PerceivedImpact = function PerceivedImpact(_ref) {
|
|
|
17585
17359
|
show: false
|
|
17586
17360
|
}
|
|
17587
17361
|
},
|
|
17588
|
-
colors: colors$
|
|
17362
|
+
colors: colors$2,
|
|
17589
17363
|
plotOptions: {
|
|
17590
17364
|
bar: {
|
|
17591
17365
|
horizontal: false,
|
|
@@ -17623,14 +17397,17 @@ var PerceivedImpact = function PerceivedImpact(_ref) {
|
|
|
17623
17397
|
}));
|
|
17624
17398
|
};
|
|
17625
17399
|
|
|
17626
|
-
var colors$
|
|
17400
|
+
var colors$3 = ["#00b894", "#00cec9", "#0984e3"];
|
|
17627
17401
|
|
|
17628
17402
|
var Quantity = function Quantity(_ref) {
|
|
17629
17403
|
var data = _ref.data;
|
|
17630
17404
|
if (!data) return React__default.createElement(Loading, null);
|
|
17631
17405
|
var teacherPercentage = data.teacherPercentage,
|
|
17632
17406
|
studentPercentage = data.studentPercentage,
|
|
17633
|
-
assistantPercentage = data.assistantPercentage
|
|
17407
|
+
assistantPercentage = data.assistantPercentage,
|
|
17408
|
+
numberOfTeachers = data.numberOfTeachers,
|
|
17409
|
+
numberOfStudents = data.numberOfStudents,
|
|
17410
|
+
numberOfAssistants = data.numberOfAssistants;
|
|
17634
17411
|
var series = [teacherPercentage, studentPercentage, assistantPercentage].map(function (number) {
|
|
17635
17412
|
return Number(number.toFixed(2));
|
|
17636
17413
|
});
|
|
@@ -17640,7 +17417,7 @@ var Quantity = function Quantity(_ref) {
|
|
|
17640
17417
|
type: "pie"
|
|
17641
17418
|
},
|
|
17642
17419
|
labels: ["Teachers", "Students", "Assistants"],
|
|
17643
|
-
colors: colors$
|
|
17420
|
+
colors: colors$3,
|
|
17644
17421
|
legend: {
|
|
17645
17422
|
show: false
|
|
17646
17423
|
},
|
|
@@ -17655,16 +17432,16 @@ var Quantity = function Quantity(_ref) {
|
|
|
17655
17432
|
};
|
|
17656
17433
|
var details = [{
|
|
17657
17434
|
label: "Teachers",
|
|
17658
|
-
color: colors$
|
|
17659
|
-
value:
|
|
17435
|
+
color: colors$3[0],
|
|
17436
|
+
value: numberOfTeachers
|
|
17660
17437
|
}, {
|
|
17661
17438
|
label: "Students",
|
|
17662
|
-
color: colors$
|
|
17663
|
-
value:
|
|
17439
|
+
color: colors$3[1],
|
|
17440
|
+
value: numberOfStudents
|
|
17664
17441
|
}, {
|
|
17665
17442
|
label: "Assistants",
|
|
17666
|
-
color: colors$
|
|
17667
|
-
value:
|
|
17443
|
+
color: colors$3[2],
|
|
17444
|
+
value: numberOfAssistants
|
|
17668
17445
|
}];
|
|
17669
17446
|
return React__default.createElement("div", {
|
|
17670
17447
|
className: "d-flex h-100"
|
|
@@ -17678,8 +17455,6 @@ var Quantity = function Quantity(_ref) {
|
|
|
17678
17455
|
bordered: true,
|
|
17679
17456
|
size: "sm"
|
|
17680
17457
|
}, React__default.createElement("tbody", null, details.map(function (item) {
|
|
17681
|
-
var _item$value;
|
|
17682
|
-
|
|
17683
17458
|
return React__default.createElement("tr", {
|
|
17684
17459
|
key: item.label
|
|
17685
17460
|
}, React__default.createElement("td", null, item.label), React__default.createElement("td", {
|
|
@@ -17689,8 +17464,8 @@ var Quantity = function Quantity(_ref) {
|
|
|
17689
17464
|
style: {
|
|
17690
17465
|
backgroundColor: item.color
|
|
17691
17466
|
}
|
|
17692
|
-
})), React__default.createElement("td", null,
|
|
17693
|
-
}))))), React__default.createElement("div", {
|
|
17467
|
+
})), React__default.createElement("td", null, item.value));
|
|
17468
|
+
}))), React__default.createElement("p", null, "The number of user for each role"))), React__default.createElement("div", {
|
|
17694
17469
|
className: "d-flex align-items-end"
|
|
17695
17470
|
}, React__default.createElement(ReactApexChart, {
|
|
17696
17471
|
options: options,
|
|
@@ -17700,95 +17475,12 @@ var Quantity = function Quantity(_ref) {
|
|
|
17700
17475
|
})));
|
|
17701
17476
|
};
|
|
17702
17477
|
|
|
17703
|
-
var colors$5 = ["#f0932b", "#22a6b3", "#6ab04c"];
|
|
17704
|
-
var categories = ["Before intervention", "During intervention", "After intervention"];
|
|
17705
|
-
|
|
17706
|
-
var findGradeLabel = function findGradeLabel(value, bandScores) {
|
|
17707
|
-
var sortedBandScores = bandScores === null || bandScores === void 0 ? void 0 : bandScores.sort(function (item1, item2) {
|
|
17708
|
-
return item1.value - item2.value;
|
|
17709
|
-
});
|
|
17710
|
-
|
|
17711
|
-
if ((sortedBandScores === null || sortedBandScores === void 0 ? void 0 : sortedBandScores.length) > 0) {
|
|
17712
|
-
for (var i = 0; i < sortedBandScores.length; i++) {
|
|
17713
|
-
var _sortedBandScores$i, _sortedBandScores;
|
|
17714
|
-
|
|
17715
|
-
if (((_sortedBandScores$i = sortedBandScores[i]) === null || _sortedBandScores$i === void 0 ? void 0 : _sortedBandScores$i.value) <= value && value <= ((_sortedBandScores = sortedBandScores[i + 1]) === null || _sortedBandScores === void 0 ? void 0 : _sortedBandScores.value)) {
|
|
17716
|
-
var _sortedBandScores$i2, _sortedBandScores2, _sortedBandScores3;
|
|
17717
|
-
|
|
17718
|
-
if (value - ((_sortedBandScores$i2 = sortedBandScores[i]) === null || _sortedBandScores$i2 === void 0 ? void 0 : _sortedBandScores$i2.value) <= ((_sortedBandScores2 = sortedBandScores[i + 1]) === null || _sortedBandScores2 === void 0 ? void 0 : _sortedBandScores2.value) - value) {
|
|
17719
|
-
var _sortedBandScores$i3;
|
|
17720
|
-
|
|
17721
|
-
return (_sortedBandScores$i3 = sortedBandScores[i]) === null || _sortedBandScores$i3 === void 0 ? void 0 : _sortedBandScores$i3.label;
|
|
17722
|
-
}
|
|
17723
|
-
|
|
17724
|
-
return (_sortedBandScores3 = sortedBandScores[i + 1]) === null || _sortedBandScores3 === void 0 ? void 0 : _sortedBandScores3.label;
|
|
17725
|
-
}
|
|
17726
|
-
}
|
|
17727
|
-
}
|
|
17728
|
-
|
|
17729
|
-
return "";
|
|
17730
|
-
};
|
|
17731
|
-
|
|
17732
|
-
var Grade = function Grade(_ref) {
|
|
17733
|
-
var data = _ref.data;
|
|
17734
|
-
if (!data) return React__default.createElement(Loading, null);
|
|
17735
|
-
var series = [{
|
|
17736
|
-
data: [data.beforeIntervention, data.duringIntervention, data.afterIntervention]
|
|
17737
|
-
}];
|
|
17738
|
-
var options = {
|
|
17739
|
-
chart: {
|
|
17740
|
-
height: 350,
|
|
17741
|
-
type: "bar",
|
|
17742
|
-
toolbar: {
|
|
17743
|
-
show: false
|
|
17744
|
-
}
|
|
17745
|
-
},
|
|
17746
|
-
colors: colors$5,
|
|
17747
|
-
plotOptions: {
|
|
17748
|
-
bar: {
|
|
17749
|
-
columnWidth: "45%",
|
|
17750
|
-
distributed: true
|
|
17751
|
-
}
|
|
17752
|
-
},
|
|
17753
|
-
dataLabels: {
|
|
17754
|
-
enabled: false
|
|
17755
|
-
},
|
|
17756
|
-
legend: {
|
|
17757
|
-
show: false
|
|
17758
|
-
},
|
|
17759
|
-
xaxis: {
|
|
17760
|
-
categories: categories
|
|
17761
|
-
},
|
|
17762
|
-
yaxis: {
|
|
17763
|
-
max: Math.max.apply(Math, data.bandScores.map(function (item) {
|
|
17764
|
-
return item.value;
|
|
17765
|
-
})),
|
|
17766
|
-
min: Math.min.apply(Math, data.bandScores.map(function (item) {
|
|
17767
|
-
return item.value;
|
|
17768
|
-
})),
|
|
17769
|
-
labels: {
|
|
17770
|
-
formatter: function formatter(val) {
|
|
17771
|
-
return findGradeLabel(val, data.bandScores);
|
|
17772
|
-
}
|
|
17773
|
-
}
|
|
17774
|
-
}
|
|
17775
|
-
};
|
|
17776
|
-
return React__default.createElement("div", null, React__default.createElement(ReactApexChart, {
|
|
17777
|
-
options: options,
|
|
17778
|
-
series: series,
|
|
17779
|
-
type: "bar",
|
|
17780
|
-
height: 350
|
|
17781
|
-
}));
|
|
17782
|
-
};
|
|
17783
|
-
|
|
17784
17478
|
var Dashboard = function Dashboard() {
|
|
17785
17479
|
var _useDashboard = useDashboard(),
|
|
17786
17480
|
loginCounting = _useDashboard.loginCounting,
|
|
17787
17481
|
quantity = _useDashboard.quantity,
|
|
17788
|
-
goalProgress = _useDashboard.goalProgress,
|
|
17789
17482
|
highImpact = _useDashboard.highImpact,
|
|
17790
|
-
perceivedImpact = _useDashboard.perceivedImpact
|
|
17791
|
-
grade = _useDashboard.grade;
|
|
17483
|
+
perceivedImpact = _useDashboard.perceivedImpact;
|
|
17792
17484
|
|
|
17793
17485
|
var cards = [{
|
|
17794
17486
|
label: "High-impact learning strategies of current school year",
|
|
@@ -17801,7 +17493,7 @@ var Dashboard = function Dashboard() {
|
|
|
17801
17493
|
data: perceivedImpact
|
|
17802
17494
|
})
|
|
17803
17495
|
}, {
|
|
17804
|
-
label: "Students & teachers
|
|
17496
|
+
label: "Students & teachers logins per day",
|
|
17805
17497
|
children: React__default.createElement(LoginCouting, {
|
|
17806
17498
|
data: loginCounting
|
|
17807
17499
|
})
|
|
@@ -17810,16 +17502,6 @@ var Dashboard = function Dashboard() {
|
|
|
17810
17502
|
children: React__default.createElement(Quantity, {
|
|
17811
17503
|
data: quantity
|
|
17812
17504
|
})
|
|
17813
|
-
}, {
|
|
17814
|
-
label: "Goal progress",
|
|
17815
|
-
children: React__default.createElement(GoalProgressReport, {
|
|
17816
|
-
data: goalProgress
|
|
17817
|
-
})
|
|
17818
|
-
}, {
|
|
17819
|
-
label: "Grades",
|
|
17820
|
-
children: React__default.createElement(Grade, {
|
|
17821
|
-
data: grade
|
|
17822
|
-
})
|
|
17823
17505
|
}];
|
|
17824
17506
|
return React__default.createElement("div", null, React__default.createElement("h4", {
|
|
17825
17507
|
className: "mb-5"
|