mario-education 2.4.52-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.js CHANGED
@@ -26117,6 +26117,16 @@ var getConvertMinuteToHour = function getConvertMinuteToHour(timeSecond) {
26117
26117
 
26118
26118
  return hTime;
26119
26119
  };
26120
+
26121
+ var handleViewSeriesActive = function handleViewSeriesActive(active) {
26122
+ var _active$filter;
26123
+
26124
+ var item = ((_active$filter = active.filter(function (r) {
26125
+ return r == true;
26126
+ })) === null || _active$filter === void 0 ? void 0 : _active$filter.length) || 0;
26127
+ return Array.from(Array(item).keys());
26128
+ };
26129
+
26120
26130
  var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
26121
26131
  var history = reactRouterDom.useHistory();
26122
26132
  var listStudentWithId = [];
@@ -26482,6 +26492,7 @@ var optionBarChartAndArea = function optionBarChartAndArea(months, activeData, n
26482
26492
  decimalsInFloat: 0
26483
26493
  },
26484
26494
  tooltip: {
26495
+ enabledOnSeries: handleViewSeriesActive(activeData),
26485
26496
  y: {
26486
26497
  formatter: function formatter(value) {
26487
26498
  return value.toFixed(2) + "%";
@@ -27074,7 +27085,7 @@ var getBandScore = function getBandScore() {
27074
27085
  };
27075
27086
 
27076
27087
  var TITLE$s = "Dashboard";
27077
- var DEFAULT_START_DATE = moment().endOf("day").valueOf().valueOf() > moment().startOf("month").month("Aug").valueOf() ? moment().startOf("month").month("Aug").valueOf() : moment().startOf("month").month("Aug").subtract(1, "year").valueOf();
27088
+ var DEFAULT_START_DATE = moment().subtract(3, 'months').startOf("day").valueOf();
27078
27089
  var DEFAULT_END_DATE = moment().endOf("day").valueOf();
27079
27090
 
27080
27091
  var useDashboard = function useDashboard() {
@@ -27621,14 +27632,6 @@ var useChartDatas = function useChartDatas() {
27621
27632
  name: FILTER_NAME.EndDate,
27622
27633
  icon: "/images/calendar.svg",
27623
27634
  handleChangeFilters: handleChangeFilters
27624
- }, {
27625
- name: FILTER_NAME.StartDate,
27626
- icon: "/images/calendar.svg",
27627
- handleChangeFilters: handleChangeFilters
27628
- }, {
27629
- name: FILTER_NAME.EndDate,
27630
- icon: "/images/calendar.svg",
27631
- handleChangeFilters: handleChangeFilters
27632
27635
  }, {
27633
27636
  name: FILTER_NAME.Gender,
27634
27637
  icon: "/images/gender-icon.svg",
@@ -28158,7 +28161,9 @@ var SelectFilter = function SelectFilter(_ref) {
28158
28161
  onChange: function onChange(date) {
28159
28162
  return handleChangeStartDate(date);
28160
28163
  },
28161
- inline: true
28164
+ inline: true,
28165
+ maxDate: moment(filter === null || filter === void 0 ? void 0 : filter.endDate).toDate(),
28166
+ minDate: moment(filter === null || filter === void 0 ? void 0 : filter.endDate).subtract(3, "months").toDate()
28162
28167
  })));
28163
28168
  }
28164
28169
 
@@ -28182,7 +28187,9 @@ var SelectFilter = function SelectFilter(_ref) {
28182
28187
  onChange: function onChange(date) {
28183
28188
  return handleChangeEndDate(date);
28184
28189
  },
28185
- inline: true
28190
+ inline: true,
28191
+ maxDate: moment(filter === null || filter === void 0 ? void 0 : filter.startDate).add(3, "months").toDate(),
28192
+ minDate: moment(filter === null || filter === void 0 ? void 0 : filter.startDate).toDate()
28186
28193
  })));
28187
28194
  }
28188
28195