mario-education 2.4.49-admin → 2.4.54-admin
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 +877 -877
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +96 -93
package/dist/index.modern.js
CHANGED
|
@@ -26114,6 +26114,16 @@ var getConvertMinuteToHour = function getConvertMinuteToHour(timeSecond) {
|
|
|
26114
26114
|
|
|
26115
26115
|
return hTime;
|
|
26116
26116
|
};
|
|
26117
|
+
|
|
26118
|
+
var handleViewSeriesActive = function handleViewSeriesActive(active) {
|
|
26119
|
+
var _active$filter;
|
|
26120
|
+
|
|
26121
|
+
var item = ((_active$filter = active.filter(function (r) {
|
|
26122
|
+
return r == true;
|
|
26123
|
+
})) === null || _active$filter === void 0 ? void 0 : _active$filter.length) || 0;
|
|
26124
|
+
return Array.from(Array(item).keys());
|
|
26125
|
+
};
|
|
26126
|
+
|
|
26117
26127
|
var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
|
|
26118
26128
|
var history = useHistory();
|
|
26119
26129
|
var listStudentWithId = [];
|
|
@@ -26479,6 +26489,7 @@ var optionBarChartAndArea = function optionBarChartAndArea(months, activeData, n
|
|
|
26479
26489
|
decimalsInFloat: 0
|
|
26480
26490
|
},
|
|
26481
26491
|
tooltip: {
|
|
26492
|
+
enabledOnSeries: handleViewSeriesActive(activeData),
|
|
26482
26493
|
y: {
|
|
26483
26494
|
formatter: function formatter(value) {
|
|
26484
26495
|
return value.toFixed(2) + "%";
|
|
@@ -27071,7 +27082,7 @@ var getBandScore = function getBandScore() {
|
|
|
27071
27082
|
};
|
|
27072
27083
|
|
|
27073
27084
|
var TITLE$s = "Dashboard";
|
|
27074
|
-
var DEFAULT_START_DATE = moment().
|
|
27085
|
+
var DEFAULT_START_DATE = moment().subtract(3, 'months').startOf("day").valueOf();
|
|
27075
27086
|
var DEFAULT_END_DATE = moment().endOf("day").valueOf();
|
|
27076
27087
|
|
|
27077
27088
|
var useDashboard = function useDashboard() {
|
|
@@ -28147,7 +28158,9 @@ var SelectFilter = function SelectFilter(_ref) {
|
|
|
28147
28158
|
onChange: function onChange(date) {
|
|
28148
28159
|
return handleChangeStartDate(date);
|
|
28149
28160
|
},
|
|
28150
|
-
inline: true
|
|
28161
|
+
inline: true,
|
|
28162
|
+
maxDate: moment(filter === null || filter === void 0 ? void 0 : filter.endDate).toDate(),
|
|
28163
|
+
minDate: moment(filter === null || filter === void 0 ? void 0 : filter.endDate).subtract(3, "months").toDate()
|
|
28151
28164
|
})));
|
|
28152
28165
|
}
|
|
28153
28166
|
|
|
@@ -28171,7 +28184,9 @@ var SelectFilter = function SelectFilter(_ref) {
|
|
|
28171
28184
|
onChange: function onChange(date) {
|
|
28172
28185
|
return handleChangeEndDate(date);
|
|
28173
28186
|
},
|
|
28174
|
-
inline: true
|
|
28187
|
+
inline: true,
|
|
28188
|
+
maxDate: moment(filter === null || filter === void 0 ? void 0 : filter.startDate).add(3, "months").toDate(),
|
|
28189
|
+
minDate: moment(filter === null || filter === void 0 ? void 0 : filter.startDate).toDate()
|
|
28175
28190
|
})));
|
|
28176
28191
|
}
|
|
28177
28192
|
|