mario-education 2.4.149-level → 2.4.150-level
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/components/ReadinessToLearn.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +5 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +8 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +9 -5
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchCounselor/hooks/useSwitchAssistant.d.ts +18 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/components/SwitchCounselorModal.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/hooks/useSwitchCounselor.d.ts +18 -0
- package/dist/index.css +2053 -2057
- package/dist/index.js +357 -77
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +357 -77
- package/dist/index.modern.js.map +1 -1
- package/package.json +98 -98
- /package/dist/MarioFramework.Education/ClientApp/src/utils/{serviceType.interface.d.ts → servicetype.interface.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -22504,7 +22504,7 @@ var TYPECHART;
|
|
|
22504
22504
|
TYPECHART[TYPECHART["DONUT"] = 4] = "DONUT";
|
|
22505
22505
|
})(TYPECHART || (TYPECHART = {}));
|
|
22506
22506
|
|
|
22507
|
-
var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","image-grade":"_3ZX0b","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk","shadow-lg":"_2eMbe","chart-header-wrapper":"_6ZvFg","devide-component":"_24CNV","header-chart":"_2vtSi","header-left":"_IpsVf","icon-chart":"_gzxWe","header-right":"_37IcR","header-title":"_2G6Wz","button-export":"_3xpNv","button-content":"_3H5Ly","button-icon":"_J_n-D","icon-config":"_3AALV","cursor-pointer":"_11Xjn","btn-show-chart":"_2htKu","rotate-180":"_q1nUO","header-chart-generate":"_s8xMf","block-header-chart":"_tHUJ_","name-chart":"_3xKHX","title-chart":"_pFFg9","description-chart":"_3hqV3","title-chart-generate":"_3rdqX","expand-icon":"_nwv00","custom-tooltip":"_29aQo","custom-tooltip-month":"_2SJIY","tooltip-data-cursor":"_2lZv_","tooltip-data-box":"_8NzTd","tooltip-data":"_1EP1I","name":"_1J69a","data":"_3-8OW","checkbox-chart":"_1qXAT","column-chart-percent":"_3NgrB","chart-background":"_32fu3","custom-marker":"_DmMzw","mark-custom":"_1eUXn","item-legend":"_3hrrC","label-legend-custom":"_Q-iiW","mark-legend":"_cD4ey","percent":"_2HWhv","listItem":"_2Hdbu","item":"_3RJ2T","item-checkbox":"_3dK0P","box-checkbox":"_1bHgZ","check-box":"_QwDVv","item-detail":"_1QgWc","question":"_348ls","avr-question":"_1VfnR","volatility":"_3eW34","arr":"_1bljF","month-text":"_30y0h","arrow":"_1HtM3","arrow-up":"_3qqQU","percent-text":"_2Fgfn","arrow-down":"_1yXO7","point-custom":"_2JNm-","student-by-age":"_38ikt","total-student":"_1TnWs","pie-chart":"_3BTJi","options-gender":"_1Ws0m","legend":"_2HnO_","text-lengend":"_2BFJw","student-by-grade":"_2az-l","bubble-chart-custom":"_2j8fp","x-axis-custom-wrap":"_1BN5z","axis-content":"_1rYav","legend-wrap":"_3-zAs","label-chart":"_24PRg","list-percent":"_1PPhv","percent-item":"_1rjWR","chart-custom":"_f-Ti4","
|
|
22507
|
+
var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","image-grade":"_3ZX0b","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk","shadow-lg":"_2eMbe","chart-header-wrapper":"_6ZvFg","devide-component":"_24CNV","header-chart":"_2vtSi","header-left":"_IpsVf","icon-chart":"_gzxWe","header-right":"_37IcR","header-title":"_2G6Wz","button-export":"_3xpNv","button-content":"_3H5Ly","button-icon":"_J_n-D","icon-config":"_3AALV","cursor-pointer":"_11Xjn","btn-show-chart":"_2htKu","rotate-180":"_q1nUO","header-chart-generate":"_s8xMf","block-header-chart":"_tHUJ_","name-chart":"_3xKHX","title-chart":"_pFFg9","description-chart":"_3hqV3","title-chart-generate":"_3rdqX","expand-icon":"_nwv00","custom-tooltip":"_29aQo","custom-tooltip-month":"_2SJIY","tooltip-data-cursor":"_2lZv_","tooltip-data-box":"_8NzTd","tooltip-data":"_1EP1I","name":"_1J69a","data":"_3-8OW","checkbox-chart":"_1qXAT","column-chart-percent":"_3NgrB","chart-background":"_32fu3","custom-marker":"_DmMzw","mark-custom":"_1eUXn","item-legend":"_3hrrC","label-legend-custom":"_Q-iiW","mark-legend":"_cD4ey","percent":"_2HWhv","listItem":"_2Hdbu","item":"_3RJ2T","item-checkbox":"_3dK0P","box-checkbox":"_1bHgZ","check-box":"_QwDVv","item-detail":"_1QgWc","question":"_348ls","avr-question":"_1VfnR","volatility":"_3eW34","arr":"_1bljF","month-text":"_30y0h","arrow":"_1HtM3","arrow-up":"_3qqQU","percent-text":"_2Fgfn","arrow-down":"_1yXO7","point-custom":"_2JNm-","student-by-age":"_38ikt","total-student":"_1TnWs","pie-chart":"_3BTJi","options-gender":"_1Ws0m","legend":"_2HnO_","text-lengend":"_2BFJw","student-by-grade":"_2az-l","bubble-chart-custom":"_2j8fp","x-axis-custom-wrap":"_1BN5z","axis-content":"_1rYav","legend-wrap":"_3-zAs","label-chart":"_24PRg","list-percent":"_1PPhv","percent-item":"_1rjWR","chart-custom":"_f-Ti4","title-grade":"_1hZ_V","title-modal":"_3L9WC","header-desc-modal":"_1TFtP","form-checkbox":"_37aqf","checkbox-content":"_1iabV","btn-export":"_1eQAg","image-logo":"_1eqkj","chart-to-canvas":"_2IQ8b","chart-pdf":"_sQ21k","box-top-5-most":"_3Eas5"};
|
|
22508
22508
|
|
|
22509
22509
|
var CheckboxCustom = function CheckboxCustom(_ref) {
|
|
22510
22510
|
var _ref$background = _ref.background,
|
|
@@ -28369,11 +28369,6 @@ var LEARNING_STRATEGY_INIT = {
|
|
|
28369
28369
|
learningStrategies: []
|
|
28370
28370
|
};
|
|
28371
28371
|
var GRAGE_DEFAULT = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
28372
|
-
var INITIAl_COLUNM_CHART_AND_PERCENT = {
|
|
28373
|
-
overviewQuestionChoice: [],
|
|
28374
|
-
type: "",
|
|
28375
|
-
overViewQuestionLastMonth: []
|
|
28376
|
-
};
|
|
28377
28372
|
var INITIAL_AGE_OF_STUDENT = {
|
|
28378
28373
|
ageOfFeMaleStudent: {
|
|
28379
28374
|
nineToTwelve: 0,
|
|
@@ -28403,6 +28398,7 @@ var INITIAl_STUDENT_DASHBOARD = {
|
|
|
28403
28398
|
totalCheckIn: 0
|
|
28404
28399
|
};
|
|
28405
28400
|
var COLOR_CHART_AND_PERCENTS = ["#73C8E5", "#97AFB9", "#FFB04F", "#FF7670", "#00B8B2", "#00B8FF", "#C6A762", "#C94645", "#006E60", "#336DDA", "#994700"];
|
|
28401
|
+
var COLOR_CHART_BUBBLE = ["#169490", "#316CD9", "#FFB04F", "#0F9655"];
|
|
28406
28402
|
var GENDER_OPTION = [{
|
|
28407
28403
|
value: -1,
|
|
28408
28404
|
label: "All"
|
|
@@ -28456,8 +28452,9 @@ var learningProcessName = "learning_process";
|
|
|
28456
28452
|
var topLearningStrategyName = "learning_strategies";
|
|
28457
28453
|
var topMostUsedStrategiesName = "top_5_most_used_strategies";
|
|
28458
28454
|
var overallReadinessToLearn = "overall_readiness_to_learn";
|
|
28459
|
-
var
|
|
28460
|
-
var
|
|
28455
|
+
var studentStressByZone = "student_stress_by_zone";
|
|
28456
|
+
var studentDistribution = "student_distribution";
|
|
28457
|
+
var chartNames = [averageStudentSafetyName, averageStudentStressName, preparednessChartName, overallReadinessToLearn, successIndicatorsName, learningProcessName, topLearningStrategyName, studentStressByZone, studentDistribution];
|
|
28461
28458
|
|
|
28462
28459
|
var gradeOptions = function gradeOptions(grades, studentUserId) {
|
|
28463
28460
|
var result = !studentUserId ? GRAGE_DEFAULT : GRAGE_DEFAULT.filter(function (val) {
|
|
@@ -28600,6 +28597,156 @@ var getConvertMinuteToHour = function getConvertMinuteToHour(timeSecond) {
|
|
|
28600
28597
|
|
|
28601
28598
|
return hTime;
|
|
28602
28599
|
};
|
|
28600
|
+
|
|
28601
|
+
var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
|
|
28602
|
+
var history = reactRouterDom.useHistory();
|
|
28603
|
+
data === null || data === void 0 ? void 0 : data.forEach(function (element) {
|
|
28604
|
+
var _element$studentPerce;
|
|
28605
|
+
|
|
28606
|
+
element === null || element === void 0 ? void 0 : (_element$studentPerce = element.studentPercentQuestion) === null || _element$studentPerce === void 0 ? void 0 : _element$studentPerce.forEach(function (item) {
|
|
28607
|
+
});
|
|
28608
|
+
});
|
|
28609
|
+
return {
|
|
28610
|
+
colors: COLOR_CHART_BUBBLE,
|
|
28611
|
+
chart: {
|
|
28612
|
+
height: 250,
|
|
28613
|
+
toolbar: {
|
|
28614
|
+
show: false
|
|
28615
|
+
},
|
|
28616
|
+
events: {
|
|
28617
|
+
dataPointSelection: function dataPointSelection(_event, chartContext, config) {
|
|
28618
|
+
var studentName = chartContext.data.threeDSeries[config.dataPointIndex];
|
|
28619
|
+
var series = config.w.config.series[config.seriesIndex].data;
|
|
28620
|
+
var student = series.find(function (r) {
|
|
28621
|
+
return r.includes(studentName);
|
|
28622
|
+
});
|
|
28623
|
+
!!student && history.push("/student-detail/overview/" + student[student.length - 1] + "?isReadOnly=true");
|
|
28624
|
+
}
|
|
28625
|
+
}
|
|
28626
|
+
},
|
|
28627
|
+
dataLabels: {
|
|
28628
|
+
enabled: false
|
|
28629
|
+
},
|
|
28630
|
+
fill: {
|
|
28631
|
+
opacity: 0.8
|
|
28632
|
+
},
|
|
28633
|
+
grid: {
|
|
28634
|
+
strokeDashArray: 5,
|
|
28635
|
+
borderColor: "#D3D3D3",
|
|
28636
|
+
xaxis: {
|
|
28637
|
+
lines: {
|
|
28638
|
+
show: true
|
|
28639
|
+
}
|
|
28640
|
+
}
|
|
28641
|
+
},
|
|
28642
|
+
xaxis: {
|
|
28643
|
+
tickAmount: 4,
|
|
28644
|
+
tickPlacement: "between",
|
|
28645
|
+
labels: {
|
|
28646
|
+
show: true,
|
|
28647
|
+
style: {
|
|
28648
|
+
colors: "#FFFFFF"
|
|
28649
|
+
}
|
|
28650
|
+
},
|
|
28651
|
+
tooltip: {
|
|
28652
|
+
enabled: false
|
|
28653
|
+
},
|
|
28654
|
+
axisBorder: {
|
|
28655
|
+
show: false
|
|
28656
|
+
},
|
|
28657
|
+
axisTicks: {
|
|
28658
|
+
show: false
|
|
28659
|
+
}
|
|
28660
|
+
},
|
|
28661
|
+
yaxis: [{
|
|
28662
|
+
min: 0,
|
|
28663
|
+
max: 100,
|
|
28664
|
+
tickAmount: 5,
|
|
28665
|
+
axisBorder: {
|
|
28666
|
+
show: true
|
|
28667
|
+
},
|
|
28668
|
+
labels: {
|
|
28669
|
+
style: {
|
|
28670
|
+
colors: "#D3D3D3",
|
|
28671
|
+
fontSize: "16px",
|
|
28672
|
+
fontFamily: "Roboto",
|
|
28673
|
+
fontWeight: 400,
|
|
28674
|
+
cssClass: "apexcharts-yaxis-label"
|
|
28675
|
+
},
|
|
28676
|
+
formatter: function formatter(value) {
|
|
28677
|
+
return Math.round(value) !== value ? value.toFixed(2) + "%" : value + "%";
|
|
28678
|
+
}
|
|
28679
|
+
}
|
|
28680
|
+
}, {
|
|
28681
|
+
min: 0,
|
|
28682
|
+
max: 100,
|
|
28683
|
+
tickAmount: 5,
|
|
28684
|
+
opposite: true,
|
|
28685
|
+
axisBorder: {
|
|
28686
|
+
show: true
|
|
28687
|
+
},
|
|
28688
|
+
labels: {
|
|
28689
|
+
style: {
|
|
28690
|
+
colors: "#D3D3D3",
|
|
28691
|
+
fontSize: "16px",
|
|
28692
|
+
fontFamily: "Roboto",
|
|
28693
|
+
fontWeight: 400,
|
|
28694
|
+
cssClass: "apexcharts-yaxis-label"
|
|
28695
|
+
},
|
|
28696
|
+
formatter: function formatter(value) {
|
|
28697
|
+
return Math.round(value) !== value ? value.toFixed(2) + "%" : value + "%";
|
|
28698
|
+
}
|
|
28699
|
+
}
|
|
28700
|
+
}],
|
|
28701
|
+
tooltip: {
|
|
28702
|
+
enabled: true,
|
|
28703
|
+
x: {
|
|
28704
|
+
show: false
|
|
28705
|
+
},
|
|
28706
|
+
y: {
|
|
28707
|
+
formatter: undefined,
|
|
28708
|
+
title: {
|
|
28709
|
+
formatter: function formatter() {
|
|
28710
|
+
return "Percent";
|
|
28711
|
+
}
|
|
28712
|
+
}
|
|
28713
|
+
},
|
|
28714
|
+
z: {
|
|
28715
|
+
formatter: undefined,
|
|
28716
|
+
title: "Student: "
|
|
28717
|
+
}
|
|
28718
|
+
},
|
|
28719
|
+
labels: seriesName,
|
|
28720
|
+
legend: {
|
|
28721
|
+
show: false,
|
|
28722
|
+
offsetY: 18,
|
|
28723
|
+
markers: {
|
|
28724
|
+
width: 12,
|
|
28725
|
+
height: 12,
|
|
28726
|
+
radius: 2
|
|
28727
|
+
},
|
|
28728
|
+
position: "bottom",
|
|
28729
|
+
horizontalAlign: "center"
|
|
28730
|
+
}
|
|
28731
|
+
};
|
|
28732
|
+
};
|
|
28733
|
+
|
|
28734
|
+
var getRandomArbitrary = function getRandomArbitrary(min, max) {
|
|
28735
|
+
return Math.random() * (max - min) + min;
|
|
28736
|
+
};
|
|
28737
|
+
|
|
28738
|
+
var convertDataToSeriesBullderChart = function convertDataToSeriesBullderChart(data) {
|
|
28739
|
+
return data.map(function (i, index) {
|
|
28740
|
+
var _i$studentPercentQues;
|
|
28741
|
+
|
|
28742
|
+
return {
|
|
28743
|
+
name: i.questionText.replace("<p>", "").replace("</p>", ""),
|
|
28744
|
+
data: ((_i$studentPercentQues = i.studentPercentQuestion) === null || _i$studentPercentQues === void 0 ? void 0 : _i$studentPercentQues.map(function (question) {
|
|
28745
|
+
return [getRandomArbitrary((index + 1) * 1000 - 330, (index + 1) * 1000 + 330), question.percentQuestion, question.studentName, question.studentId];
|
|
28746
|
+
})) || []
|
|
28747
|
+
};
|
|
28748
|
+
});
|
|
28749
|
+
};
|
|
28603
28750
|
var optionColumnChartAndPercents = function optionColumnChartAndPercents(months, activeData, isRidgeCharts, colors, dayOfWeek) {
|
|
28604
28751
|
return {
|
|
28605
28752
|
chart: {
|
|
@@ -28889,15 +29036,10 @@ var convertToSeriesColumnChartAndPercent = function convertToSeriesColumnChartAn
|
|
|
28889
29036
|
};
|
|
28890
29037
|
});
|
|
28891
29038
|
};
|
|
28892
|
-
var
|
|
28893
|
-
return
|
|
28894
|
-
|
|
28895
|
-
|
|
28896
|
-
return i.resultQuestion.reduce(function (a, b) {
|
|
28897
|
-
return a + b.avgOfStudentChoice;
|
|
28898
|
-
}, 0);
|
|
28899
|
-
})
|
|
28900
|
-
}];
|
|
29039
|
+
var seriesNameBubbleChartCustom = function seriesNameBubbleChartCustom(series) {
|
|
29040
|
+
return series.map(function (i) {
|
|
29041
|
+
return i.questionText.replace("<p>", "").replace("</p>", "");
|
|
29042
|
+
});
|
|
28901
29043
|
};
|
|
28902
29044
|
var getLastQuarterRange = function getLastQuarterRange() {
|
|
28903
29045
|
var lastQuarter = moment().utc().quarter() - 1;
|
|
@@ -28949,6 +29091,11 @@ var getAllTotalTime = function getAllTotalTime(filter) {
|
|
|
28949
29091
|
params: filter
|
|
28950
29092
|
});
|
|
28951
29093
|
};
|
|
29094
|
+
var getReadinessToLearning = function getReadinessToLearning(filter) {
|
|
29095
|
+
return marioCore.api.get(REPORT_URL + "/top-readiness-learn", {
|
|
29096
|
+
params: filter
|
|
29097
|
+
});
|
|
29098
|
+
};
|
|
28952
29099
|
var getTopLearningStrategies = function getTopLearningStrategies(filter) {
|
|
28953
29100
|
return marioCore.api.get(REPORT_URL + "/top-learning-strategies", {
|
|
28954
29101
|
params: filter
|
|
@@ -29039,8 +29186,6 @@ var getAllAcademicYearApi = function getAllAcademicYearApi(filters) {
|
|
|
29039
29186
|
var TITLE$y = "Dashboard";
|
|
29040
29187
|
|
|
29041
29188
|
var useDashboard = function useDashboard() {
|
|
29042
|
-
var _learningProgress$ove;
|
|
29043
|
-
|
|
29044
29189
|
var dispatch = reactRedux.useDispatch();
|
|
29045
29190
|
|
|
29046
29191
|
var _useState = React.useState({
|
|
@@ -29065,17 +29210,17 @@ var useDashboard = function useDashboard() {
|
|
|
29065
29210
|
listTotalTime = _useState2[0],
|
|
29066
29211
|
setListTotalTime = _useState2[1];
|
|
29067
29212
|
|
|
29068
|
-
var _useState3 = React.useState(
|
|
29069
|
-
|
|
29070
|
-
|
|
29213
|
+
var _useState3 = React.useState([]),
|
|
29214
|
+
readinessToLearning = _useState3[0],
|
|
29215
|
+
setReadinessToLearning = _useState3[1];
|
|
29071
29216
|
|
|
29072
|
-
var _useState4 = React.useState(
|
|
29073
|
-
|
|
29074
|
-
|
|
29217
|
+
var _useState4 = React.useState(LEARNING_STRATEGY_INIT),
|
|
29218
|
+
topLearningStrategies = _useState4[0],
|
|
29219
|
+
setTopLearningStrategies = _useState4[1];
|
|
29075
29220
|
|
|
29076
|
-
var _useState5 = React.useState(
|
|
29077
|
-
|
|
29078
|
-
|
|
29221
|
+
var _useState5 = React.useState([]),
|
|
29222
|
+
studentByGrade = _useState5[0],
|
|
29223
|
+
setStudentByGrade = _useState5[1];
|
|
29079
29224
|
|
|
29080
29225
|
var _useState6 = React.useState(),
|
|
29081
29226
|
friendCircles = _useState6[0],
|
|
@@ -29240,13 +29385,65 @@ var useDashboard = function useDashboard() {
|
|
|
29240
29385
|
dataOverallReadyToLearn = _useState27[0],
|
|
29241
29386
|
setDataOverallReadyToLearn = _useState27[1];
|
|
29242
29387
|
|
|
29243
|
-
var
|
|
29244
|
-
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
var
|
|
29248
|
-
|
|
29249
|
-
|
|
29388
|
+
var _useState28 = React.useState([]),
|
|
29389
|
+
seriesConference = _useState28[0],
|
|
29390
|
+
setSeriesConference = _useState28[1];
|
|
29391
|
+
|
|
29392
|
+
var _useState29 = React.useState([]),
|
|
29393
|
+
activeColumnConference = _useState29[0],
|
|
29394
|
+
setActiveColumnConference = _useState29[1];
|
|
29395
|
+
|
|
29396
|
+
var _useState30 = React.useState([]),
|
|
29397
|
+
avgConferenceLastMonth = _useState30[0],
|
|
29398
|
+
setAvgConferenceLastMonth = _useState30[1];
|
|
29399
|
+
|
|
29400
|
+
var _useState31 = React.useState([]),
|
|
29401
|
+
dataConvertedConference = _useState31[0],
|
|
29402
|
+
setDataConvertedConference = _useState31[1];
|
|
29403
|
+
|
|
29404
|
+
var _useState32 = React.useState([]),
|
|
29405
|
+
monthsConference = _useState32[0],
|
|
29406
|
+
setMonthsConference = _useState32[1];
|
|
29407
|
+
|
|
29408
|
+
var _useState33 = React.useState([]),
|
|
29409
|
+
dayOfWeekConference = _useState33[0],
|
|
29410
|
+
setDayOfWeekConference = _useState33[1];
|
|
29411
|
+
|
|
29412
|
+
var handleSetDataChartConference = function handleSetDataChartConference(data) {
|
|
29413
|
+
var _data$overviewQuestio2;
|
|
29414
|
+
|
|
29415
|
+
var questions = convertDataToDataChart(data === null || data === void 0 ? void 0 : data.overviewQuestionChoice);
|
|
29416
|
+
var months = (data === null || data === void 0 ? void 0 : (_data$overviewQuestio2 = data.overviewQuestionChoice) === null || _data$overviewQuestio2 === void 0 ? void 0 : _data$overviewQuestio2.map(function (i) {
|
|
29417
|
+
return (i === null || i === void 0 ? void 0 : i.month) || "";
|
|
29418
|
+
})) || [];
|
|
29419
|
+
var newSeriesConference = convertToSeriesColumnChartAndPercent(questions, data === null || data === void 0 ? void 0 : data.overviewQuestionChoice);
|
|
29420
|
+
var dayOfWeeks = data.overviewQuestionChoice.map(function (r) {
|
|
29421
|
+
return marioCore.utcToLocalTime(r.startDate, "DD-MM-yyyy") + " - " + marioCore.utcToLocalTime(r.endDate, "DD-MM-yyyy");
|
|
29422
|
+
});
|
|
29423
|
+
|
|
29424
|
+
if (newSeriesConference.length >= 0) {
|
|
29425
|
+
if (activeColumnConference.filter(function (r) {
|
|
29426
|
+
return r == true;
|
|
29427
|
+
}).length == 0 || activeColumnConference.length != newSeriesConference.length) {
|
|
29428
|
+
setActiveColumnConference([true].concat(newSeriesConference.map(function (_i) {
|
|
29429
|
+
return false;
|
|
29430
|
+
}).splice(0, newSeriesConference.length - 1)));
|
|
29431
|
+
}
|
|
29432
|
+
}
|
|
29433
|
+
|
|
29434
|
+
setDataConvertedConference(questions);
|
|
29435
|
+
setDayOfWeekConference(dayOfWeeks);
|
|
29436
|
+
setMonthsConference(months);
|
|
29437
|
+
setSeriesConference(newSeriesConference);
|
|
29438
|
+
setAvgConferenceLastMonth(data.overViewQuestionLastMonth);
|
|
29439
|
+
};
|
|
29440
|
+
|
|
29441
|
+
var handleActiveColumnConference = function handleActiveColumnConference(index) {
|
|
29442
|
+
var newActiveColumn = [].concat(activeColumnConference);
|
|
29443
|
+
newActiveColumn[index] = !newActiveColumn[index];
|
|
29444
|
+
setActiveColumnConference(newActiveColumn);
|
|
29445
|
+
};
|
|
29446
|
+
|
|
29250
29447
|
var callApi = React.useCallback(function (apiCaller, setData, defaultData, type) {
|
|
29251
29448
|
try {
|
|
29252
29449
|
var _temp2 = _catch(function () {
|
|
@@ -29356,7 +29553,7 @@ var useDashboard = function useDashboard() {
|
|
|
29356
29553
|
try {
|
|
29357
29554
|
document.title = TITLE$y;
|
|
29358
29555
|
dispatch(marioCore.setLoading(true));
|
|
29359
|
-
return Promise.resolve(Promise.any([callApi(getAllTotalTime, setListTotalTime, []), callApi(getTopLearningStrategies, setTopLearningStrategies, []), callApi(getStudentByGrade, setStudentByGrade, []), callApi(getOverviewQuestionChart, handleSetDataChartOneToOne, [], "OneToOne"), callApi(getOverviewQuestionChart,
|
|
29556
|
+
return Promise.resolve(Promise.any([callApi(getAllTotalTime, setListTotalTime, []), callApi(getReadinessToLearning, setReadinessToLearning, []), callApi(getTopLearningStrategies, setTopLearningStrategies, []), callApi(getStudentByGrade, setStudentByGrade, []), callApi(getOverviewQuestionChart, handleSetDataChartOneToOne, [], "OneToOne"), callApi(getOverviewQuestionChart, handleSetDataChartConference, [], "Conference"), callApi(getFriendCircleItems, setFriendCircles, INITIAL_BEST_FRIENDS), callApi(getActivityCircleItems, setActivityCircles, INITIAL_ACTIVITY_FRIENDS), callApi(getStudentBySpecialNeed, setStudentBySpecialNeed, []), callApi(getStudentByAge, setStudentByAge, INITIAL_AGE_OF_STUDENT), callApi(getStudentByGender, setStudentByGender, []), callApi(getStudentPressure, setStudentPressure, initStudentPressure), callApi(getOverallReadinessToLearn, setDataOverallReadyToLearn, INITIAL_OVERALL_READY_TO_LEARN)])).then(function () {
|
|
29360
29557
|
dispatch(marioCore.setLoading(false));
|
|
29361
29558
|
});
|
|
29362
29559
|
} catch (e) {
|
|
@@ -29377,9 +29574,9 @@ var useDashboard = function useDashboard() {
|
|
|
29377
29574
|
setFilter: setFilter,
|
|
29378
29575
|
filter: filter,
|
|
29379
29576
|
listTotalTime: listTotalTime,
|
|
29577
|
+
readinessToLearning: readinessToLearning,
|
|
29380
29578
|
topLearningStrategies: topLearningStrategies,
|
|
29381
29579
|
studentByGrade: studentByGrade,
|
|
29382
|
-
learningProgress: learningProgress,
|
|
29383
29580
|
friendCircles: friendCircles,
|
|
29384
29581
|
activityCircles: activityCircles,
|
|
29385
29582
|
studentBySpecialNeed: studentBySpecialNeed,
|
|
@@ -29407,19 +29604,24 @@ var useDashboard = function useDashboard() {
|
|
|
29407
29604
|
successIndicatorsData: successIndicatorsData,
|
|
29408
29605
|
activeColumnSuccessIndicators: activeColumnSuccessIndicators,
|
|
29409
29606
|
activeColumnPreparedness: activeColumnPreparedness,
|
|
29410
|
-
seriesLearningProgress: seriesLearningProgress,
|
|
29411
|
-
monthsLearningProgress: monthsLearningProgress,
|
|
29412
|
-
dayOfWeekLearningProgress: dayOfWeekLearningProgress,
|
|
29413
29607
|
avgQuestionLastMonth: avgQuestionLastMonth,
|
|
29414
29608
|
gradeList: gradeList,
|
|
29415
29609
|
studentPressure: studentPressure,
|
|
29416
|
-
dataOverallReadyToLearn: dataOverallReadyToLearn
|
|
29610
|
+
dataOverallReadyToLearn: dataOverallReadyToLearn,
|
|
29611
|
+
seriesConference: seriesConference,
|
|
29612
|
+
avgConferenceLastMonth: avgConferenceLastMonth,
|
|
29613
|
+
dataConvertedConference: dataConvertedConference,
|
|
29614
|
+
monthsConference: monthsConference,
|
|
29615
|
+
dayOfWeekConference: dayOfWeekConference,
|
|
29616
|
+
handleActiveColumnConference: handleActiveColumnConference,
|
|
29617
|
+
activeColumnConference: activeColumnConference
|
|
29417
29618
|
};
|
|
29418
29619
|
};
|
|
29419
29620
|
|
|
29420
29621
|
var useChartDatas = function useChartDatas() {
|
|
29421
29622
|
var _useDashboard = useDashboard(),
|
|
29422
29623
|
topLearningStrategies = _useDashboard.topLearningStrategies,
|
|
29624
|
+
readinessToLearning = _useDashboard.readinessToLearning,
|
|
29423
29625
|
handleChangeFilters = _useDashboard.handleChangeFilters,
|
|
29424
29626
|
handleChangeAcademicYearFilters = _useDashboard.handleChangeAcademicYearFilters,
|
|
29425
29627
|
bandScore = _useDashboard.bandScore,
|
|
@@ -29442,11 +29644,15 @@ var useChartDatas = function useChartDatas() {
|
|
|
29442
29644
|
preparednessData = _useDashboard.preparednessData,
|
|
29443
29645
|
safetyData = _useDashboard.safetyData,
|
|
29444
29646
|
stressData = _useDashboard.stressData,
|
|
29445
|
-
seriesLearningProgress = _useDashboard.seriesLearningProgress,
|
|
29446
|
-
monthsLearningProgress = _useDashboard.monthsLearningProgress,
|
|
29447
|
-
dayOfWeekLearningProgress = _useDashboard.dayOfWeekLearningProgress,
|
|
29448
29647
|
avgQuestionLastMonth = _useDashboard.avgQuestionLastMonth,
|
|
29449
|
-
gradeList = _useDashboard.gradeList
|
|
29648
|
+
gradeList = _useDashboard.gradeList,
|
|
29649
|
+
seriesConference = _useDashboard.seriesConference,
|
|
29650
|
+
avgConferenceLastMonth = _useDashboard.avgConferenceLastMonth,
|
|
29651
|
+
dataConvertedConference = _useDashboard.dataConvertedConference,
|
|
29652
|
+
monthsConference = _useDashboard.monthsConference,
|
|
29653
|
+
dayOfWeekConference = _useDashboard.dayOfWeekConference,
|
|
29654
|
+
handleActiveColumnConference = _useDashboard.handleActiveColumnConference,
|
|
29655
|
+
activeColumnConference = _useDashboard.activeColumnConference;
|
|
29450
29656
|
|
|
29451
29657
|
var _useState = React.useState([]),
|
|
29452
29658
|
selectedToPrint = _useState[0],
|
|
@@ -29601,12 +29807,17 @@ var useChartDatas = function useChartDatas() {
|
|
|
29601
29807
|
preparednessData: preparednessData,
|
|
29602
29808
|
safetyData: safetyData,
|
|
29603
29809
|
stressData: stressData,
|
|
29604
|
-
|
|
29605
|
-
|
|
29606
|
-
|
|
29810
|
+
seriesConference: seriesConference,
|
|
29811
|
+
avgConferenceLastMonth: avgConferenceLastMonth,
|
|
29812
|
+
dataConvertedConference: dataConvertedConference,
|
|
29813
|
+
monthsConference: monthsConference,
|
|
29814
|
+
dayOfWeekConference: dayOfWeekConference,
|
|
29815
|
+
handleActiveColumnConference: handleActiveColumnConference,
|
|
29816
|
+
activeColumnConference: activeColumnConference,
|
|
29607
29817
|
avgQuestionLastMonth: avgQuestionLastMonth,
|
|
29608
29818
|
studentPressure: studentPressure,
|
|
29609
|
-
dataOverallReadyToLearn: dataOverallReadyToLearn
|
|
29819
|
+
dataOverallReadyToLearn: dataOverallReadyToLearn,
|
|
29820
|
+
readinessToLearning: readinessToLearning
|
|
29610
29821
|
};
|
|
29611
29822
|
};
|
|
29612
29823
|
|
|
@@ -30352,7 +30563,7 @@ var AreaChart = function AreaChart(_ref) {
|
|
|
30352
30563
|
return "<div class=" + styles$1["custom-tooltip"] + "> \n <p class=" + styles$1["custom-tooltip-month"] + "> " + dayOfWeek[dataPointIndex] + " </p>\n " + seriesItem.map(function (r, index) {
|
|
30353
30564
|
var _r$data$dataPointInde;
|
|
30354
30565
|
|
|
30355
|
-
return "<div class=" + styles$1["tooltip-data-box"] + ">\n <div class=" + styles$1["tooltip-data-cursor"] + " style=\"background: " + colorsItem[index] + "\"></div>\n <div class=" + styles$1["tooltip-data"] + ">\n <p class=" + styles$1["name"] + ">" + r.name + ":</p>\n <p class=" + styles$1["data"] + ">" + ((_r$data$dataPointInde = r.data[dataPointIndex]) === null || _r$data$dataPointInde === void 0 ? void 0 : _r$data$dataPointInde.toFixed(2)) + "%</p>\n </div>\n </div>";
|
|
30566
|
+
return "<div key={" + index + "} class=" + styles$1["tooltip-data-box"] + ">\n <div class=" + styles$1["tooltip-data-cursor"] + " style=\"background: " + colorsItem[index] + "\"></div>\n <div class=" + styles$1["tooltip-data"] + ">\n <p class=" + styles$1["name"] + ">" + r.name + ":</p>\n <p class=" + styles$1["data"] + ">" + ((_r$data$dataPointInde = r.data[dataPointIndex]) === null || _r$data$dataPointInde === void 0 ? void 0 : _r$data$dataPointInde.toFixed(2)) + "%</p>\n </div>\n </div>";
|
|
30356
30567
|
}) + "\n </div>";
|
|
30357
30568
|
}
|
|
30358
30569
|
};
|
|
@@ -30470,6 +30681,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
30470
30681
|
return r.name.charAt(0).toUpperCase() + r.name.slice(1);
|
|
30471
30682
|
}) || [];
|
|
30472
30683
|
return React__default.createElement("div", {
|
|
30684
|
+
key: name,
|
|
30473
30685
|
className: "w-100 h-100 " + styles$1["column-chart-percent"]
|
|
30474
30686
|
}, React__default.createElement("div", {
|
|
30475
30687
|
className: "" + styles$1["header-chart-generate"]
|
|
@@ -30800,17 +31012,19 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
30800
31012
|
activeColumnPreparedness = props.activeColumnPreparedness,
|
|
30801
31013
|
activeColumnSuccessIndicators = props.activeColumnSuccessIndicators,
|
|
30802
31014
|
avgQuestionLastMonth = props.avgQuestionLastMonth,
|
|
30803
|
-
dayOfWeekLearningProgress = props.dayOfWeekLearningProgress,
|
|
30804
31015
|
dayOfWeekOneToOne = props.dayOfWeekOneToOne,
|
|
30805
|
-
monthsLearningProgress = props.monthsLearningProgress,
|
|
30806
31016
|
monthsOneToOne = props.monthsOneToOne,
|
|
30807
31017
|
preparednessData = props.preparednessData,
|
|
30808
31018
|
safetyData = props.safetyData,
|
|
30809
|
-
seriesLearningProgress = props.seriesLearningProgress,
|
|
30810
31019
|
stressData = props.stressData,
|
|
30811
31020
|
successIndicatorsData = props.successIndicatorsData,
|
|
30812
31021
|
topLearningStrategiesData = props.topLearningStrategiesData,
|
|
30813
|
-
timeOfDay = props.timeOfDay
|
|
31022
|
+
timeOfDay = props.timeOfDay,
|
|
31023
|
+
seriesConference = props.seriesConference,
|
|
31024
|
+
monthsConference = props.monthsConference,
|
|
31025
|
+
activeColumnConference = props.activeColumnConference,
|
|
31026
|
+
dayOfWeekConference = props.dayOfWeekConference,
|
|
31027
|
+
avgConferenceLastMonth = props.avgConferenceLastMonth;
|
|
30814
31028
|
|
|
30815
31029
|
var _useTranslation = marioCore.useTranslation(),
|
|
30816
31030
|
t = _useTranslation.t;
|
|
@@ -31343,13 +31557,15 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31343
31557
|
width: "45%"
|
|
31344
31558
|
}
|
|
31345
31559
|
}, React__default.createElement(GenerateChartData, {
|
|
31346
|
-
colors: ["#73C8E5"],
|
|
31560
|
+
colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
|
|
31561
|
+
name: "Learning Process",
|
|
31347
31562
|
typeChart: TYPECHART.AREA,
|
|
31348
|
-
activeColumn:
|
|
31349
|
-
series:
|
|
31350
|
-
months:
|
|
31351
|
-
dayOfWeek:
|
|
31352
|
-
avgQuestionLastMonth:
|
|
31563
|
+
activeColumn: activeColumnConference,
|
|
31564
|
+
series: seriesConference,
|
|
31565
|
+
months: monthsConference,
|
|
31566
|
+
dayOfWeek: dayOfWeekConference,
|
|
31567
|
+
avgQuestionLastMonth: avgConferenceLastMonth,
|
|
31568
|
+
timeOfDay: timeOfDay
|
|
31353
31569
|
})), React__default.createElement("div", {
|
|
31354
31570
|
id: "learning_strategy"
|
|
31355
31571
|
}, React__default.createElement(TopLearningStrategy$1, {
|
|
@@ -31617,6 +31833,60 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
|
|
|
31617
31833
|
})))));
|
|
31618
31834
|
};
|
|
31619
31835
|
|
|
31836
|
+
var BubbleChartCustom = function BubbleChartCustom(_ref) {
|
|
31837
|
+
var data = _ref.data;
|
|
31838
|
+
|
|
31839
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
31840
|
+
t = _useTranslation.t;
|
|
31841
|
+
|
|
31842
|
+
if (!data) return React__default.createElement("div", {
|
|
31843
|
+
className: "flex justify-content-center align-items-center",
|
|
31844
|
+
style: {
|
|
31845
|
+
height: 450
|
|
31846
|
+
}
|
|
31847
|
+
}, React__default.createElement("div", null, "No Data"));
|
|
31848
|
+
var seriesName = seriesNameBubbleChartCustom(data);
|
|
31849
|
+
return React__default.createElement("div", {
|
|
31850
|
+
className: "" + styles$1["size-100"]
|
|
31851
|
+
}, React__default.createElement("div", {
|
|
31852
|
+
className: "" + styles$1["block-header-chart"]
|
|
31853
|
+
}, React__default.createElement("p", {
|
|
31854
|
+
className: styles$1["title-chart"] + " " + styles$1["ml-10"]
|
|
31855
|
+
}, t(studentDistribution))), React__default.createElement("div", {
|
|
31856
|
+
className: "" + styles$1["bubble-chart-custom"]
|
|
31857
|
+
}, React__default.createElement("div", {
|
|
31858
|
+
className: styles$1["chart-custom"]
|
|
31859
|
+
}, React__default.createElement("div", {
|
|
31860
|
+
className: styles$1["chart-buddle"]
|
|
31861
|
+
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
31862
|
+
className: styles$1["legend-wrap"]
|
|
31863
|
+
}, seriesName.map(function (i, index) {
|
|
31864
|
+
return React__default.createElement("div", {
|
|
31865
|
+
className: "" + styles$1["item"],
|
|
31866
|
+
key: index
|
|
31867
|
+
}, React__default.createElement("div", {
|
|
31868
|
+
className: "" + styles$1["mark-custom"],
|
|
31869
|
+
style: {
|
|
31870
|
+
backgroundColor: COLOR_CHART_BUBBLE[index]
|
|
31871
|
+
}
|
|
31872
|
+
}), React__default.createElement("label", {
|
|
31873
|
+
className: "" + styles$1["label-legend-custom"]
|
|
31874
|
+
}, i));
|
|
31875
|
+
})), React__default.createElement(Chart, {
|
|
31876
|
+
options: readinesToLearnoptions(seriesName, data),
|
|
31877
|
+
type: "scatter",
|
|
31878
|
+
series: convertDataToSeriesBullderChart(data),
|
|
31879
|
+
width: "100%",
|
|
31880
|
+
height: 250
|
|
31881
|
+
}))))));
|
|
31882
|
+
};
|
|
31883
|
+
|
|
31884
|
+
function propsAreEqual$1(prevProps, nextProps) {
|
|
31885
|
+
return JSON.stringify(prevProps === null || prevProps === void 0 ? void 0 : prevProps.data) === JSON.stringify(nextProps === null || nextProps === void 0 ? void 0 : nextProps.data);
|
|
31886
|
+
}
|
|
31887
|
+
|
|
31888
|
+
var BubbleChartCustom$1 = React__default.memo(BubbleChartCustom, propsAreEqual$1);
|
|
31889
|
+
|
|
31620
31890
|
var Dashboard = function Dashboard() {
|
|
31621
31891
|
var _useChartDatas = useChartDatas(),
|
|
31622
31892
|
user = _useChartDatas.user,
|
|
@@ -31638,12 +31908,16 @@ var Dashboard = function Dashboard() {
|
|
|
31638
31908
|
preparednessData = _useChartDatas.preparednessData,
|
|
31639
31909
|
safetyData = _useChartDatas.safetyData,
|
|
31640
31910
|
stressData = _useChartDatas.stressData,
|
|
31641
|
-
|
|
31642
|
-
|
|
31643
|
-
|
|
31911
|
+
seriesConference = _useChartDatas.seriesConference,
|
|
31912
|
+
avgConferenceLastMonth = _useChartDatas.avgConferenceLastMonth,
|
|
31913
|
+
monthsConference = _useChartDatas.monthsConference,
|
|
31914
|
+
dayOfWeekConference = _useChartDatas.dayOfWeekConference,
|
|
31915
|
+
activeColumnConference = _useChartDatas.activeColumnConference,
|
|
31916
|
+
handleActiveColumnConference = _useChartDatas.handleActiveColumnConference,
|
|
31644
31917
|
avgQuestionLastMonth = _useChartDatas.avgQuestionLastMonth,
|
|
31645
31918
|
studentPressure = _useChartDatas.studentPressure,
|
|
31646
|
-
dataOverallReadyToLearn = _useChartDatas.dataOverallReadyToLearn
|
|
31919
|
+
dataOverallReadyToLearn = _useChartDatas.dataOverallReadyToLearn,
|
|
31920
|
+
readinessToLearning = _useChartDatas.readinessToLearning;
|
|
31647
31921
|
|
|
31648
31922
|
var _useBehavior = useBehavior(),
|
|
31649
31923
|
chartIsOpened = _useBehavior.chartIsOpened,
|
|
@@ -31711,16 +31985,18 @@ var Dashboard = function Dashboard() {
|
|
|
31711
31985
|
activeColumnPreparedness: activeColumnPreparedness,
|
|
31712
31986
|
activeColumnSuccessIndicators: activeColumnSuccessIndicators,
|
|
31713
31987
|
avgQuestionLastMonth: avgQuestionLastMonth,
|
|
31714
|
-
dayOfWeekLearningProgress: dayOfWeekLearningProgress,
|
|
31715
31988
|
dayOfWeekOneToOne: dayOfWeekOneToOne,
|
|
31716
|
-
monthsLearningProgress: monthsLearningProgress,
|
|
31717
31989
|
monthsOneToOne: monthsOneToOne,
|
|
31718
31990
|
preparednessData: preparednessData,
|
|
31719
31991
|
safetyData: safetyData,
|
|
31720
|
-
seriesLearningProgress: seriesLearningProgress,
|
|
31721
31992
|
stressData: stressData,
|
|
31722
31993
|
successIndicatorsData: successIndicatorsData,
|
|
31723
|
-
timeOfDay: filter.optionDate
|
|
31994
|
+
timeOfDay: filter.optionDate,
|
|
31995
|
+
seriesConference: seriesConference,
|
|
31996
|
+
monthsConference: monthsConference,
|
|
31997
|
+
activeColumnConference: activeColumnConference,
|
|
31998
|
+
dayOfWeekConference: dayOfWeekConference,
|
|
31999
|
+
avgConferenceLastMonth: avgConferenceLastMonth
|
|
31724
32000
|
}))), React__default.createElement("div", {
|
|
31725
32001
|
className: "d-flex align-items-center justify-content-between"
|
|
31726
32002
|
}, React__default.createElement("div", {
|
|
@@ -31863,11 +32139,13 @@ var Dashboard = function Dashboard() {
|
|
|
31863
32139
|
dayOfWeek: dayOfWeekOneToOne,
|
|
31864
32140
|
timeOfDay: filter.optionDate,
|
|
31865
32141
|
colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"]
|
|
32142
|
+
}), React__default.createElement(BubbleChartCustom$1, {
|
|
32143
|
+
data: readinessToLearning
|
|
31866
32144
|
}), React__default.createElement("div", {
|
|
31867
32145
|
className: "" + styles$1["mt-15"]
|
|
31868
32146
|
}, React__default.createElement("p", {
|
|
31869
32147
|
className: "" + styles$1["title-chart"]
|
|
31870
|
-
},
|
|
32148
|
+
}, t(studentStressByZone)), React__default.createElement("div", {
|
|
31871
32149
|
className: "" + styles$1["box-chart-pressure"]
|
|
31872
32150
|
}, React__default.createElement(StudentPressureChart, {
|
|
31873
32151
|
studentPressure: studentPressure
|
|
@@ -31883,14 +32161,16 @@ var Dashboard = function Dashboard() {
|
|
|
31883
32161
|
}), React__default.createElement(reactstrap.Collapse, {
|
|
31884
32162
|
isOpen: chartIsOpened[1]
|
|
31885
32163
|
}, React__default.createElement(GenerateChartData, {
|
|
31886
|
-
colors: ["#73C8E5"],
|
|
32164
|
+
colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
|
|
31887
32165
|
name: t(learningProcessName),
|
|
31888
32166
|
typeChart: TYPECHART.AREA,
|
|
31889
|
-
|
|
31890
|
-
|
|
31891
|
-
|
|
31892
|
-
|
|
31893
|
-
|
|
32167
|
+
onActiveColumn: handleActiveColumnConference,
|
|
32168
|
+
activeColumn: activeColumnConference,
|
|
32169
|
+
series: seriesConference,
|
|
32170
|
+
months: monthsConference,
|
|
32171
|
+
dayOfWeek: dayOfWeekConference,
|
|
32172
|
+
avgQuestionLastMonth: avgConferenceLastMonth,
|
|
32173
|
+
timeOfDay: filter.optionDate
|
|
31894
32174
|
}), React__default.createElement(TopLearningStrategy$1, {
|
|
31895
32175
|
data: topLearningStrategies
|
|
31896
32176
|
}))));
|
|
@@ -33929,11 +34209,11 @@ var TopMostSurveyUsed = function TopMostSurveyUsed(_ref) {
|
|
|
33929
34209
|
}));
|
|
33930
34210
|
};
|
|
33931
34211
|
|
|
33932
|
-
var propsAreEqual$
|
|
34212
|
+
var propsAreEqual$2 = function propsAreEqual(preProps, nextProps) {
|
|
33933
34213
|
return JSON.stringify(preProps) === JSON.stringify(nextProps);
|
|
33934
34214
|
};
|
|
33935
34215
|
|
|
33936
|
-
var TopMostSurveyUsed$1 = React__default.memo(TopMostSurveyUsed, propsAreEqual$
|
|
34216
|
+
var TopMostSurveyUsed$1 = React__default.memo(TopMostSurveyUsed, propsAreEqual$2);
|
|
33937
34217
|
|
|
33938
34218
|
var maxSeries = function maxSeries(series) {
|
|
33939
34219
|
var max = 0;
|