mario-education 2.4.16-beta → 2.4.17-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 +3 -2
- package/dist/index.js +82 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +82 -30
- 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;
|
|
@@ -294,6 +294,7 @@ h6._3zOGW {
|
|
|
294
294
|
._2PMoX {
|
|
295
295
|
height: auto;
|
|
296
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;
|
|
@@ -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%",
|
|
@@ -20732,6 +20785,9 @@ var Dashboard = function Dashboard() {
|
|
|
20732
20785
|
}));
|
|
20733
20786
|
} else {
|
|
20734
20787
|
setTeacherId(0);
|
|
20788
|
+
setFilter(_extends({}, filter, {
|
|
20789
|
+
teacherId: undefined
|
|
20790
|
+
}));
|
|
20735
20791
|
}
|
|
20736
20792
|
};
|
|
20737
20793
|
|
|
@@ -20819,42 +20875,38 @@ var Dashboard = function Dashboard() {
|
|
|
20819
20875
|
},
|
|
20820
20876
|
value: handleFormatDate(filter.endDate),
|
|
20821
20877
|
min: handleFormatDate(filter.startDate)
|
|
20822
|
-
}))
|
|
20823
|
-
className: "" + styles$1["
|
|
20824
|
-
}, React__default.createElement("div", {
|
|
20825
|
-
className: "" + styles$1["bock-filter-wrap"]
|
|
20826
|
-
}, React__default.createElement("div", {
|
|
20827
|
-
className: "" + styles$1["form-filter-right"]
|
|
20878
|
+
})), React__default.createElement("div", {
|
|
20879
|
+
className: "" + styles$1["form-filter-left"]
|
|
20828
20880
|
}, React__default.createElement(TeacherItemSelector, {
|
|
20829
20881
|
onChange: handleFilterTeacher,
|
|
20830
20882
|
defaultValue: teacherId
|
|
20831
20883
|
})), React__default.createElement("div", {
|
|
20832
|
-
className: "" + styles$1["form-filter-
|
|
20884
|
+
className: "" + styles$1["form-filter-left"]
|
|
20833
20885
|
}, React__default.createElement(StudentItemSelector, {
|
|
20834
20886
|
onChange: handleFilterStudent,
|
|
20835
20887
|
value: studentId,
|
|
20836
20888
|
studentDefault: studentDefault
|
|
20837
20889
|
})), React__default.createElement("div", {
|
|
20838
|
-
className: "" + styles$1["form-filter-
|
|
20890
|
+
className: "" + styles$1["form-filter-left"]
|
|
20839
20891
|
}, React__default.createElement(InputSelector, {
|
|
20840
20892
|
options: genderOptions,
|
|
20841
20893
|
onChange: handleFilterGender,
|
|
20842
20894
|
placeholder: "Select Gender"
|
|
20843
20895
|
})), React__default.createElement("div", {
|
|
20844
|
-
className: "" + styles$1["form-filter-
|
|
20896
|
+
className: "" + styles$1["form-filter-left"]
|
|
20845
20897
|
}, React__default.createElement(InputSelector, {
|
|
20846
20898
|
options: gradeOptions(grades),
|
|
20847
20899
|
onChange: handleFilterGrades,
|
|
20848
20900
|
placeholder: "Select Grade",
|
|
20849
20901
|
isMultiSelect: true
|
|
20850
20902
|
})), React__default.createElement("div", {
|
|
20851
|
-
className: "" + styles$1["form-filter-
|
|
20903
|
+
className: "" + styles$1["form-filter-left"]
|
|
20852
20904
|
}, React__default.createElement(InputSelector, {
|
|
20853
20905
|
options: mtssOptions,
|
|
20854
20906
|
onChange: handleFilterMtss,
|
|
20855
20907
|
placeholder: "Select MTSS"
|
|
20856
|
-
}))
|
|
20857
|
-
className: "" + styles$1["form-filter-
|
|
20908
|
+
})), React__default.createElement("div", {
|
|
20909
|
+
className: "" + styles$1["form-filter-left"]
|
|
20858
20910
|
}, React__default.createElement(SubmitButton, {
|
|
20859
20911
|
text: "Filter",
|
|
20860
20912
|
onClick: onFilter,
|