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.
@@ -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().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();
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() {
@@ -27618,14 +27629,6 @@ var useChartDatas = function useChartDatas() {
27618
27629
  name: FILTER_NAME.EndDate,
27619
27630
  icon: "/images/calendar.svg",
27620
27631
  handleChangeFilters: handleChangeFilters
27621
- }, {
27622
- name: FILTER_NAME.StartDate,
27623
- icon: "/images/calendar.svg",
27624
- handleChangeFilters: handleChangeFilters
27625
- }, {
27626
- name: FILTER_NAME.EndDate,
27627
- icon: "/images/calendar.svg",
27628
- handleChangeFilters: handleChangeFilters
27629
27632
  }, {
27630
27633
  name: FILTER_NAME.Gender,
27631
27634
  icon: "/images/gender-icon.svg",
@@ -28155,7 +28158,9 @@ var SelectFilter = function SelectFilter(_ref) {
28155
28158
  onChange: function onChange(date) {
28156
28159
  return handleChangeStartDate(date);
28157
28160
  },
28158
- 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()
28159
28164
  })));
28160
28165
  }
28161
28166
 
@@ -28179,7 +28184,9 @@ var SelectFilter = function SelectFilter(_ref) {
28179
28184
  onChange: function onChange(date) {
28180
28185
  return handleChangeEndDate(date);
28181
28186
  },
28182
- 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()
28183
28190
  })));
28184
28191
  }
28185
28192