mario-education 2.4.15-beta → 2.4.18-beta
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/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +1 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +2 -1
- package/dist/index.css +4 -3
- package/dist/index.js +112 -34
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +112 -34
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const colors: string[];
|
|
3
2
|
export declare const INITIAL_BEST_FRIENDS: {
|
|
4
3
|
friends: number;
|
|
@@ -16,4 +15,4 @@ export declare const LEARNING_STRATEGY_CHART_COLORS: string[];
|
|
|
16
15
|
export declare const LEARNING_STRATEGY_INIT: {
|
|
17
16
|
learningStrategies: never[];
|
|
18
17
|
};
|
|
19
|
-
export declare const GRAGE_DEFAULT:
|
|
18
|
+
export declare const GRAGE_DEFAULT: string[];
|
|
@@ -30,8 +30,9 @@ export declare const mtssOptions: {
|
|
|
30
30
|
export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
|
|
31
31
|
export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
|
|
32
32
|
export declare const optionsChartGrade: (maxDatas: number, colorCharts: string[]) => ApexOptions;
|
|
33
|
-
export declare const studentBySpecialNeedOptions: (seriesValue: IseriesChart) => ApexOptions;
|
|
33
|
+
export declare const studentBySpecialNeedOptions: (seriesValue: IseriesChart, colors: string[]) => ApexOptions;
|
|
34
34
|
export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
|
|
35
35
|
export declare const maxSeries: (series: ISeries[]) => number;
|
|
36
36
|
export declare const average: (arr: number[]) => number;
|
|
37
37
|
export declare const colorCharts: (series: ISeries[]) => string[];
|
|
38
|
+
export declare const colorChartsSpecialNeedOptions: (series: IseriesChart[]) => string[];
|
package/dist/index.css
CHANGED
|
@@ -229,7 +229,6 @@ h6._3zOGW {
|
|
|
229
229
|
|
|
230
230
|
._6yLxd {
|
|
231
231
|
min-width: 200px;
|
|
232
|
-
margin-left: 20px;
|
|
233
232
|
margin-bottom: 10px;
|
|
234
233
|
height: 100%;
|
|
235
234
|
background-color: hsl(0, 0%, 100%);
|
|
@@ -245,6 +244,7 @@ h6._3zOGW {
|
|
|
245
244
|
display: flex;
|
|
246
245
|
justify-content: flex-start;
|
|
247
246
|
flex-wrap: wrap;
|
|
247
|
+
padding: 0px 16px;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
._3e2pi {
|
|
@@ -261,7 +261,7 @@ h6._3zOGW {
|
|
|
261
261
|
height: 38px;
|
|
262
262
|
}
|
|
263
263
|
._1DlZ4{
|
|
264
|
-
|
|
264
|
+
width: 220px;
|
|
265
265
|
margin-right: 20px;
|
|
266
266
|
margin-bottom: 10px;
|
|
267
267
|
height: 38px;
|
|
@@ -293,7 +293,8 @@ h6._3zOGW {
|
|
|
293
293
|
|
|
294
294
|
._2PMoX {
|
|
295
295
|
height: auto;
|
|
296
|
-
width:
|
|
296
|
+
width: auto;
|
|
297
|
+
max-width: 315px;
|
|
297
298
|
}
|
|
298
299
|
|
|
299
300
|
._2asi- ._muT01 ._35BzZ {
|
package/dist/index.js
CHANGED
|
@@ -19095,7 +19095,7 @@ var INITIAL_ACTIVITY_FRIENDS = {
|
|
|
19095
19095
|
var LEARNING_STRATEGY_INIT = {
|
|
19096
19096
|
learningStrategies: []
|
|
19097
19097
|
};
|
|
19098
|
-
var GRAGE_DEFAULT = ["K", "G", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
19098
|
+
var GRAGE_DEFAULT = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
19099
19099
|
|
|
19100
19100
|
var TITLE$s = "Dashboard";
|
|
19101
19101
|
|
|
@@ -19673,6 +19673,26 @@ var optionsChartGrade = function optionsChartGrade(maxDatas, colorCharts) {
|
|
|
19673
19673
|
colors: ["#4B92CE"]
|
|
19674
19674
|
}
|
|
19675
19675
|
},
|
|
19676
|
+
states: {
|
|
19677
|
+
normal: {
|
|
19678
|
+
filter: {
|
|
19679
|
+
type: "none",
|
|
19680
|
+
value: 0
|
|
19681
|
+
}
|
|
19682
|
+
},
|
|
19683
|
+
hover: {
|
|
19684
|
+
filter: {
|
|
19685
|
+
type: "none",
|
|
19686
|
+
value: 0
|
|
19687
|
+
}
|
|
19688
|
+
},
|
|
19689
|
+
active: {
|
|
19690
|
+
filter: {
|
|
19691
|
+
type: "none",
|
|
19692
|
+
value: 0
|
|
19693
|
+
}
|
|
19694
|
+
}
|
|
19695
|
+
},
|
|
19676
19696
|
legend: {
|
|
19677
19697
|
show: false
|
|
19678
19698
|
},
|
|
@@ -19697,20 +19717,22 @@ var optionsChartGrade = function optionsChartGrade(maxDatas, colorCharts) {
|
|
|
19697
19717
|
axisTicks: {
|
|
19698
19718
|
show: false
|
|
19699
19719
|
}
|
|
19720
|
+
},
|
|
19721
|
+
tooltip: {
|
|
19722
|
+
x: {
|
|
19723
|
+
formatter: function formatter(value) {
|
|
19724
|
+
return "Grade " + value;
|
|
19725
|
+
}
|
|
19726
|
+
},
|
|
19727
|
+
y: {
|
|
19728
|
+
formatter: function formatter(value) {
|
|
19729
|
+
return value.toFixed(0);
|
|
19730
|
+
}
|
|
19731
|
+
}
|
|
19700
19732
|
}
|
|
19701
19733
|
};
|
|
19702
19734
|
};
|
|
19703
|
-
var
|
|
19704
|
-
var letters = '0123456789ABCDEF'.split('');
|
|
19705
|
-
var color = '#';
|
|
19706
|
-
|
|
19707
|
-
for (var i = 0; i < 6; i++) {
|
|
19708
|
-
color += letters[Math.floor(Math.random() * 16)];
|
|
19709
|
-
}
|
|
19710
|
-
|
|
19711
|
-
return color;
|
|
19712
|
-
});
|
|
19713
|
-
var studentBySpecialNeedOptions = function studentBySpecialNeedOptions(seriesValue) {
|
|
19735
|
+
var studentBySpecialNeedOptions = function studentBySpecialNeedOptions(seriesValue, colors) {
|
|
19714
19736
|
return {
|
|
19715
19737
|
legend: {
|
|
19716
19738
|
show: false
|
|
@@ -19740,7 +19762,7 @@ var studentBySpecialNeedOptions = function studentBySpecialNeedOptions(seriesVal
|
|
|
19740
19762
|
}
|
|
19741
19763
|
}
|
|
19742
19764
|
},
|
|
19743
|
-
colors:
|
|
19765
|
+
colors: colors,
|
|
19744
19766
|
dataLabels: {
|
|
19745
19767
|
enabled: false
|
|
19746
19768
|
},
|
|
@@ -19829,6 +19851,35 @@ var colorCharts = function colorCharts(series) {
|
|
|
19829
19851
|
}
|
|
19830
19852
|
});
|
|
19831
19853
|
};
|
|
19854
|
+
var colorChartsSpecialNeedOptions = function colorChartsSpecialNeedOptions(series) {
|
|
19855
|
+
return series[0].data.map(function (i) {
|
|
19856
|
+
switch (i) {
|
|
19857
|
+
case 1:
|
|
19858
|
+
return "#40D2CC";
|
|
19859
|
+
|
|
19860
|
+
case 2:
|
|
19861
|
+
return "#0D9994";
|
|
19862
|
+
|
|
19863
|
+
case 3:
|
|
19864
|
+
return "#78B6E2";
|
|
19865
|
+
|
|
19866
|
+
case 4:
|
|
19867
|
+
return "#1D74C5";
|
|
19868
|
+
|
|
19869
|
+
case 5:
|
|
19870
|
+
return "#FFB04F";
|
|
19871
|
+
|
|
19872
|
+
case 6:
|
|
19873
|
+
return "#DD7B00";
|
|
19874
|
+
|
|
19875
|
+
case 7:
|
|
19876
|
+
return "#CE4A49";
|
|
19877
|
+
|
|
19878
|
+
default:
|
|
19879
|
+
return "#850000";
|
|
19880
|
+
}
|
|
19881
|
+
});
|
|
19882
|
+
};
|
|
19832
19883
|
|
|
19833
19884
|
var ReadinessToLearn = function ReadinessToLearn(_ref) {
|
|
19834
19885
|
var data = _ref.data;
|
|
@@ -19965,7 +20016,7 @@ var CustomBarChart = function CustomBarChart(_ref) {
|
|
|
19965
20016
|
offsetX: 20,
|
|
19966
20017
|
markers: {
|
|
19967
20018
|
width: 12,
|
|
19968
|
-
radius:
|
|
20019
|
+
radius: 3
|
|
19969
20020
|
}
|
|
19970
20021
|
},
|
|
19971
20022
|
stroke: {
|
|
@@ -19974,7 +20025,7 @@ var CustomBarChart = function CustomBarChart(_ref) {
|
|
|
19974
20025
|
markers: {
|
|
19975
20026
|
size: 5
|
|
19976
20027
|
},
|
|
19977
|
-
colors: ["#40D2CC", "#78B6E2", "#FFB04F", "#
|
|
20028
|
+
colors: ["#40D2CC", "#78B6E2", "#FFB04F", "#CE4A49", "#1CB7B1", "#4B92CE", "#F09422", "#A23333", "#0D9994", "#1D74C5", "#DD7B00"],
|
|
19978
20029
|
xaxis: {
|
|
19979
20030
|
categories: chatMonth
|
|
19980
20031
|
},
|
|
@@ -19986,7 +20037,7 @@ var CustomBarChart = function CustomBarChart(_ref) {
|
|
|
19986
20037
|
offsetX: -20,
|
|
19987
20038
|
show: true,
|
|
19988
20039
|
formatter: function formatter(val) {
|
|
19989
|
-
return chartName === "Safety" ? val + "%" : "" + (val === null || val === void 0 ? void 0 : val.toFixed(
|
|
20040
|
+
return chartName === "Safety" ? val + "%" : "" + (val === null || val === void 0 ? void 0 : val.toFixed(2));
|
|
19990
20041
|
}
|
|
19991
20042
|
}
|
|
19992
20043
|
}
|
|
@@ -20075,7 +20126,7 @@ var StudentByGrade = function StudentByGrade(_ref) {
|
|
|
20075
20126
|
var data = _ref.data;
|
|
20076
20127
|
var newData = GRAGE_DEFAULT.map(function (i) {
|
|
20077
20128
|
return data.find(function (j) {
|
|
20078
|
-
return i ===
|
|
20129
|
+
return i === j.grade.toString();
|
|
20079
20130
|
}) || {
|
|
20080
20131
|
grade: i.toString(),
|
|
20081
20132
|
quantity: 0
|
|
@@ -20090,10 +20141,12 @@ var StudentByGrade = function StudentByGrade(_ref) {
|
|
|
20090
20141
|
type: "bar",
|
|
20091
20142
|
width: "100%",
|
|
20092
20143
|
height: 450
|
|
20093
|
-
}) : React__default.createElement("
|
|
20144
|
+
}) : React__default.createElement("div", {
|
|
20145
|
+
className: "d-flex justify-content-center align-items-center"
|
|
20146
|
+
}, React__default.createElement("img", {
|
|
20094
20147
|
className: "" + styles$1["image-no-data"],
|
|
20095
20148
|
src: "images/grade.png"
|
|
20096
|
-
}));
|
|
20149
|
+
})));
|
|
20097
20150
|
};
|
|
20098
20151
|
|
|
20099
20152
|
var labelNames = ["Male", "Female"];
|
|
@@ -20169,7 +20222,7 @@ var StudentWithSpecialNeeds = function StudentWithSpecialNeeds(_ref) {
|
|
|
20169
20222
|
}, series[0].data.some(function (i) {
|
|
20170
20223
|
return i;
|
|
20171
20224
|
}) ? React__default.createElement(ReactApexChart, {
|
|
20172
|
-
options: studentBySpecialNeedOptions(series[0]),
|
|
20225
|
+
options: studentBySpecialNeedOptions(series[0], colorChartsSpecialNeedOptions(series)),
|
|
20173
20226
|
series: series,
|
|
20174
20227
|
type: "bar",
|
|
20175
20228
|
width: "100%",
|
|
@@ -20577,7 +20630,8 @@ var Dashboard = function Dashboard() {
|
|
|
20577
20630
|
children: React__default.createElement(TopLearningStrategy, {
|
|
20578
20631
|
data: topLearningStrategies
|
|
20579
20632
|
})
|
|
20580
|
-
}
|
|
20633
|
+
}];
|
|
20634
|
+
var listChartStudentLeft = [{
|
|
20581
20635
|
label: "Students by Grade",
|
|
20582
20636
|
children: React__default.createElement(StudentByGrade, {
|
|
20583
20637
|
data: studentByGrade
|
|
@@ -20630,7 +20684,8 @@ var Dashboard = function Dashboard() {
|
|
|
20630
20684
|
children: React__default.createElement(ReadinessToLearn, {
|
|
20631
20685
|
data: readinessToLearning
|
|
20632
20686
|
})
|
|
20633
|
-
}
|
|
20687
|
+
}];
|
|
20688
|
+
var listChartStudentRight = [{
|
|
20634
20689
|
label: "Students by Gender",
|
|
20635
20690
|
children: React__default.createElement(StudentByGender, {
|
|
20636
20691
|
data: studentByGender
|
|
@@ -20730,6 +20785,9 @@ var Dashboard = function Dashboard() {
|
|
|
20730
20785
|
}));
|
|
20731
20786
|
} else {
|
|
20732
20787
|
setTeacherId(0);
|
|
20788
|
+
setFilter(_extends({}, filter, {
|
|
20789
|
+
teacherId: undefined
|
|
20790
|
+
}));
|
|
20733
20791
|
}
|
|
20734
20792
|
};
|
|
20735
20793
|
|
|
@@ -20817,42 +20875,38 @@ var Dashboard = function Dashboard() {
|
|
|
20817
20875
|
},
|
|
20818
20876
|
value: handleFormatDate(filter.endDate),
|
|
20819
20877
|
min: handleFormatDate(filter.startDate)
|
|
20820
|
-
}))
|
|
20821
|
-
className: "" + styles$1["
|
|
20822
|
-
}, React__default.createElement("div", {
|
|
20823
|
-
className: "" + styles$1["bock-filter-wrap"]
|
|
20824
|
-
}, React__default.createElement("div", {
|
|
20825
|
-
className: "" + styles$1["form-filter-right"]
|
|
20878
|
+
})), React__default.createElement("div", {
|
|
20879
|
+
className: "" + styles$1["form-filter-left"]
|
|
20826
20880
|
}, React__default.createElement(TeacherItemSelector, {
|
|
20827
20881
|
onChange: handleFilterTeacher,
|
|
20828
20882
|
defaultValue: teacherId
|
|
20829
20883
|
})), React__default.createElement("div", {
|
|
20830
|
-
className: "" + styles$1["form-filter-
|
|
20884
|
+
className: "" + styles$1["form-filter-left"]
|
|
20831
20885
|
}, React__default.createElement(StudentItemSelector, {
|
|
20832
20886
|
onChange: handleFilterStudent,
|
|
20833
20887
|
value: studentId,
|
|
20834
20888
|
studentDefault: studentDefault
|
|
20835
20889
|
})), React__default.createElement("div", {
|
|
20836
|
-
className: "" + styles$1["form-filter-
|
|
20890
|
+
className: "" + styles$1["form-filter-left"]
|
|
20837
20891
|
}, React__default.createElement(InputSelector, {
|
|
20838
20892
|
options: genderOptions,
|
|
20839
20893
|
onChange: handleFilterGender,
|
|
20840
20894
|
placeholder: "Select Gender"
|
|
20841
20895
|
})), React__default.createElement("div", {
|
|
20842
|
-
className: "" + styles$1["form-filter-
|
|
20896
|
+
className: "" + styles$1["form-filter-left"]
|
|
20843
20897
|
}, React__default.createElement(InputSelector, {
|
|
20844
20898
|
options: gradeOptions(grades),
|
|
20845
20899
|
onChange: handleFilterGrades,
|
|
20846
20900
|
placeholder: "Select Grade",
|
|
20847
20901
|
isMultiSelect: true
|
|
20848
20902
|
})), React__default.createElement("div", {
|
|
20849
|
-
className: "" + styles$1["form-filter-
|
|
20903
|
+
className: "" + styles$1["form-filter-left"]
|
|
20850
20904
|
}, React__default.createElement(InputSelector, {
|
|
20851
20905
|
options: mtssOptions,
|
|
20852
20906
|
onChange: handleFilterMtss,
|
|
20853
20907
|
placeholder: "Select MTSS"
|
|
20854
|
-
}))
|
|
20855
|
-
className: "" + styles$1["form-filter-
|
|
20908
|
+
})), React__default.createElement("div", {
|
|
20909
|
+
className: "" + styles$1["form-filter-left"]
|
|
20856
20910
|
}, React__default.createElement(SubmitButton, {
|
|
20857
20911
|
text: "Filter",
|
|
20858
20912
|
onClick: onFilter,
|
|
@@ -20899,6 +20953,30 @@ var Dashboard = function Dashboard() {
|
|
|
20899
20953
|
});
|
|
20900
20954
|
})), React__default.createElement(reactstrap.Row, {
|
|
20901
20955
|
className: "my-2"
|
|
20956
|
+
}, React__default.createElement(reactstrap.Col, {
|
|
20957
|
+
xs: 12,
|
|
20958
|
+
xl: 8
|
|
20959
|
+
}, listChartStudentLeft.map(function (i) {
|
|
20960
|
+
return React__default.createElement(reactstrap.Col, {
|
|
20961
|
+
key: i.label,
|
|
20962
|
+
className: "mb-4 p-0"
|
|
20963
|
+
}, React__default.createElement(DashboardCard, {
|
|
20964
|
+
label: i.label,
|
|
20965
|
+
children: i.children
|
|
20966
|
+
}));
|
|
20967
|
+
})), React__default.createElement(reactstrap.Col, {
|
|
20968
|
+
xs: 12,
|
|
20969
|
+
xl: 4
|
|
20970
|
+
}, listChartStudentRight.map(function (i) {
|
|
20971
|
+
return React__default.createElement(reactstrap.Col, {
|
|
20972
|
+
key: i.label,
|
|
20973
|
+
className: "mb-4 p-0"
|
|
20974
|
+
}, React__default.createElement(DashboardCard, {
|
|
20975
|
+
label: i.label,
|
|
20976
|
+
children: i.children
|
|
20977
|
+
}));
|
|
20978
|
+
}))), React__default.createElement(reactstrap.Row, {
|
|
20979
|
+
className: "my-2"
|
|
20902
20980
|
}, listChartBottom.map(function (i, index) {
|
|
20903
20981
|
return React__default.createElement(reactstrap.Col, {
|
|
20904
20982
|
xs: 12,
|