mario-education 2.4.150-level → 2.4.151-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/GenerateChartData.d.ts +3 -3
- package/dist/index.css +108 -0
- package/dist/index.js +73 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +73 -18
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -22501,7 +22501,7 @@ var TYPECHART;
|
|
|
22501
22501
|
TYPECHART[TYPECHART["DONUT"] = 4] = "DONUT";
|
|
22502
22502
|
})(TYPECHART || (TYPECHART = {}));
|
|
22503
22503
|
|
|
22504
|
-
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"};
|
|
22504
|
+
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","filter-mobile-block":"_1tKnn","filter-wrapper-mobile":"_1Zuq3","total-card-wrapper":"_1i0El"};
|
|
22505
22505
|
|
|
22506
22506
|
var CheckboxCustom = function CheckboxCustom(_ref) {
|
|
22507
22507
|
var _ref$background = _ref.background,
|
|
@@ -30530,7 +30530,7 @@ var TotalCard = function TotalCard(_ref) {
|
|
|
30530
30530
|
title = _ref.title,
|
|
30531
30531
|
value = _ref.value;
|
|
30532
30532
|
return React.createElement("div", {
|
|
30533
|
-
className: styles$1["title-card-box"] + " " + styles$1["box-item"] + " p-4 mb-2 shadow-md"
|
|
30533
|
+
className: styles$1["title-card-box"] + " " + styles$1["box-item"] + " p-4 mb-2 mb-sm-0 mb-lg-2 shadow-md"
|
|
30534
30534
|
}, React.createElement("div", {
|
|
30535
30535
|
className: "d-flex align-items-center justify-content-center"
|
|
30536
30536
|
}, React.createElement("img", {
|
|
@@ -30778,6 +30778,12 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
30778
30778
|
})));
|
|
30779
30779
|
};
|
|
30780
30780
|
|
|
30781
|
+
var chartPropsAreEqual = function chartPropsAreEqual(prevMovie, nextMovie) {
|
|
30782
|
+
return prevMovie === nextMovie;
|
|
30783
|
+
};
|
|
30784
|
+
|
|
30785
|
+
var GenerateChartData$1 = React.memo(GenerateChartData, chartPropsAreEqual);
|
|
30786
|
+
|
|
30781
30787
|
var Loading = function Loading() {
|
|
30782
30788
|
return React.createElement("div", {
|
|
30783
30789
|
className: "d-flex align-items-center justify-content-center"
|
|
@@ -31493,7 +31499,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31493
31499
|
display: "block",
|
|
31494
31500
|
width: "45%"
|
|
31495
31501
|
}
|
|
31496
|
-
}, React.createElement(GenerateChartData, {
|
|
31502
|
+
}, React.createElement(GenerateChartData$1, {
|
|
31497
31503
|
colors: ["#0F9655"],
|
|
31498
31504
|
typeChart: TYPECHART.AREA,
|
|
31499
31505
|
activeColumn: [true],
|
|
@@ -31508,7 +31514,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31508
31514
|
display: "block",
|
|
31509
31515
|
width: "45%"
|
|
31510
31516
|
}
|
|
31511
|
-
}, React.createElement(GenerateChartData, {
|
|
31517
|
+
}, React.createElement(GenerateChartData$1, {
|
|
31512
31518
|
colors: ["#C44140"],
|
|
31513
31519
|
typeChart: TYPECHART.LINE,
|
|
31514
31520
|
activeColumn: [true],
|
|
@@ -31523,7 +31529,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31523
31529
|
display: "block",
|
|
31524
31530
|
width: "45%"
|
|
31525
31531
|
}
|
|
31526
|
-
}, React.createElement(GenerateChartData, {
|
|
31532
|
+
}, React.createElement(GenerateChartData$1, {
|
|
31527
31533
|
colors: ["#169490", "#316CD9", "#FFB04F"],
|
|
31528
31534
|
typeChart: TYPECHART.LINE,
|
|
31529
31535
|
activeColumn: activeColumnPreparedness,
|
|
@@ -31538,7 +31544,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31538
31544
|
display: "block",
|
|
31539
31545
|
width: "45%"
|
|
31540
31546
|
}
|
|
31541
|
-
}, React.createElement(GenerateChartData, {
|
|
31547
|
+
}, React.createElement(GenerateChartData$1, {
|
|
31542
31548
|
typeChart: TYPECHART.AREA,
|
|
31543
31549
|
activeColumn: activeColumnSuccessIndicators,
|
|
31544
31550
|
series: successIndicatorsData,
|
|
@@ -31553,7 +31559,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31553
31559
|
display: "block",
|
|
31554
31560
|
width: "45%"
|
|
31555
31561
|
}
|
|
31556
|
-
}, React.createElement(GenerateChartData, {
|
|
31562
|
+
}, React.createElement(GenerateChartData$1, {
|
|
31557
31563
|
colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
|
|
31558
31564
|
name: "Learning Process",
|
|
31559
31565
|
typeChart: TYPECHART.AREA,
|
|
@@ -31933,6 +31939,10 @@ var Dashboard = function Dashboard() {
|
|
|
31933
31939
|
isExpandChart = _useState2[0],
|
|
31934
31940
|
setIsExpandChart = _useState2[1];
|
|
31935
31941
|
|
|
31942
|
+
var _useState3 = useState(false),
|
|
31943
|
+
isShowFilterMobile = _useState3[0],
|
|
31944
|
+
setIsShowFilterMobile = _useState3[1];
|
|
31945
|
+
|
|
31936
31946
|
var toggle = function toggle() {
|
|
31937
31947
|
setSelectedToPrint([]);
|
|
31938
31948
|
setModal(!modal);
|
|
@@ -32015,9 +32025,53 @@ var Dashboard = function Dashboard() {
|
|
|
32015
32025
|
})), React.createElement("p", {
|
|
32016
32026
|
className: styles$1["button-content"] + " mb-0"
|
|
32017
32027
|
}, t("export_to_pdf")))), React.createElement("div", {
|
|
32018
|
-
className:
|
|
32028
|
+
className: styles$1['filter-mobile-block'] + " p-3 my-4"
|
|
32019
32029
|
}, React.createElement("div", {
|
|
32020
|
-
|
|
32030
|
+
onClick: function onClick() {
|
|
32031
|
+
return setIsShowFilterMobile(!isShowFilterMobile);
|
|
32032
|
+
},
|
|
32033
|
+
className: "d-flex justify-content-between cursor-pointer"
|
|
32034
|
+
}, React.createElement("span", {
|
|
32035
|
+
className: "font-weight-bold"
|
|
32036
|
+
}, "Filter"), isShowFilterMobile ? React.createElement(FiChevronUp, {
|
|
32037
|
+
size: "1.5rem"
|
|
32038
|
+
}) : React.createElement(FiChevronDown, {
|
|
32039
|
+
size: "1.5rem"
|
|
32040
|
+
})), isShowFilterMobile ? React.createElement("div", {
|
|
32041
|
+
className: "d-flex flex-column " + styles$1["filter-wrapper-mobile"]
|
|
32042
|
+
}, React.createElement("div", {
|
|
32043
|
+
className: "d-flex flex-column mt-3 " + styles$1["filter-wrapper-mobile"]
|
|
32044
|
+
}, LIST_FILTERS_LEFT.map(function (e) {
|
|
32045
|
+
return React.createElement(SelectFilter, {
|
|
32046
|
+
name: e.name,
|
|
32047
|
+
icon: e.icon,
|
|
32048
|
+
handleChangeFilters: e.handleChangeFilters,
|
|
32049
|
+
filter: filter,
|
|
32050
|
+
option: e.option,
|
|
32051
|
+
onChangeFilters: onChangeFilters
|
|
32052
|
+
});
|
|
32053
|
+
})), React.createElement("div", {
|
|
32054
|
+
className: "d-flex flex-column " + styles$1["filter-wrapper-mobile"]
|
|
32055
|
+
}, LIST_FILTERS_RIGHT.map(function (e) {
|
|
32056
|
+
return React.createElement(SelectFilter, {
|
|
32057
|
+
name: e.name,
|
|
32058
|
+
icon: e.icon,
|
|
32059
|
+
handleChangeFilters: e.handleChangeFilters,
|
|
32060
|
+
filter: filter,
|
|
32061
|
+
studentId: e.studentId || 0,
|
|
32062
|
+
studentDefault: e.studentDefault,
|
|
32063
|
+
onChangeFilters: onChangeFilters,
|
|
32064
|
+
teacherUserId: teacherUserId,
|
|
32065
|
+
changeCurrentTeacherUserId: changeCurrentTeacherUserId,
|
|
32066
|
+
btnStyle: e.name === FILTER_NAME.StudentName ? {
|
|
32067
|
+
minWidth: 220,
|
|
32068
|
+
justifyContent: "center"
|
|
32069
|
+
} : {}
|
|
32070
|
+
});
|
|
32071
|
+
}))) : null), React.createElement("div", {
|
|
32072
|
+
className: "d-none d-sm-flex justify-content-between flex-wrap my-2"
|
|
32073
|
+
}, React.createElement("div", {
|
|
32074
|
+
className: "d-flex flex-wrap"
|
|
32021
32075
|
}, LIST_FILTERS_LEFT.map(function (e) {
|
|
32022
32076
|
return React.createElement(SelectFilter, {
|
|
32023
32077
|
name: e.name,
|
|
@@ -32046,7 +32100,7 @@ var Dashboard = function Dashboard() {
|
|
|
32046
32100
|
} : {}
|
|
32047
32101
|
});
|
|
32048
32102
|
}))), React.createElement("div", {
|
|
32049
|
-
className: "d-flex align-items-center justify-content-between flex-wrap mb-3"
|
|
32103
|
+
className: styles$1["total-card-wrapper"] + " d-flex align-items-center justify-content-center justify-content-lg-between flex-wrap mb-3"
|
|
32050
32104
|
}, totalCardData.map(function (item) {
|
|
32051
32105
|
return React.createElement(TotalCard, {
|
|
32052
32106
|
icon: item.icon,
|
|
@@ -32070,8 +32124,8 @@ var Dashboard = function Dashboard() {
|
|
|
32070
32124
|
}, React.createElement(Row, {
|
|
32071
32125
|
className: "d-flex"
|
|
32072
32126
|
}, React.createElement(Col, {
|
|
32073
|
-
md: !isExpandChart ? 6 : 12
|
|
32074
|
-
}, React.createElement(GenerateChartData, {
|
|
32127
|
+
md: !isExpandChart && chartIsOpened[0] ? 6 : 12
|
|
32128
|
+
}, React.createElement(GenerateChartData$1, {
|
|
32075
32129
|
isShowExpandIcon: true,
|
|
32076
32130
|
colors: ["#0F9655"],
|
|
32077
32131
|
name: t(averageStudentSafetyName),
|
|
@@ -32086,7 +32140,7 @@ var Dashboard = function Dashboard() {
|
|
|
32086
32140
|
})), React.createElement(Col, {
|
|
32087
32141
|
md: !isExpandChart ? 6 : 12,
|
|
32088
32142
|
className: ""
|
|
32089
|
-
}, React.createElement(GenerateChartData, {
|
|
32143
|
+
}, React.createElement(GenerateChartData$1, {
|
|
32090
32144
|
isShowExpandIcon: true,
|
|
32091
32145
|
colors: ["#C44140"],
|
|
32092
32146
|
name: t(averageStudentStressName),
|
|
@@ -32102,7 +32156,7 @@ var Dashboard = function Dashboard() {
|
|
|
32102
32156
|
className: "d-flex"
|
|
32103
32157
|
}, React.createElement(Col, {
|
|
32104
32158
|
md: 7
|
|
32105
|
-
}, React.createElement(GenerateChartData, {
|
|
32159
|
+
}, React.createElement(GenerateChartData$1, {
|
|
32106
32160
|
colors: ["#169490", "#316CD9", "#FFB04F"],
|
|
32107
32161
|
name: t(preparednessChartName),
|
|
32108
32162
|
typeChart: TYPECHART.AREA,
|
|
@@ -32115,7 +32169,7 @@ var Dashboard = function Dashboard() {
|
|
|
32115
32169
|
timeOfDay: filter.optionDate
|
|
32116
32170
|
})), React.createElement(Col, {
|
|
32117
32171
|
md: 5
|
|
32118
|
-
}, React.createElement(GenerateChartData, {
|
|
32172
|
+
}, React.createElement(GenerateChartData$1, {
|
|
32119
32173
|
colors: ["#D9EEE4", "#FAF0F0"],
|
|
32120
32174
|
name: t(overallReadinessToLearn),
|
|
32121
32175
|
typeChart: TYPECHART.DONUT,
|
|
@@ -32125,7 +32179,7 @@ var Dashboard = function Dashboard() {
|
|
|
32125
32179
|
series: dataOverallReadyToLearn.resultQuestion,
|
|
32126
32180
|
timeOfDay: filter.optionDate,
|
|
32127
32181
|
dayOfWeek: []
|
|
32128
|
-
}))), React.createElement(GenerateChartData, {
|
|
32182
|
+
}))), React.createElement(GenerateChartData$1, {
|
|
32129
32183
|
name: t(successIndicatorsName),
|
|
32130
32184
|
typeChart: TYPECHART.AREA,
|
|
32131
32185
|
onActiveColumn: handleActiveColumnOneToOne,
|
|
@@ -32157,7 +32211,7 @@ var Dashboard = function Dashboard() {
|
|
|
32157
32211
|
index: 1
|
|
32158
32212
|
}), React.createElement(Collapse, {
|
|
32159
32213
|
isOpen: chartIsOpened[1]
|
|
32160
|
-
}, React.createElement(GenerateChartData, {
|
|
32214
|
+
}, React.createElement(GenerateChartData$1, {
|
|
32161
32215
|
colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
|
|
32162
32216
|
name: t(learningProcessName),
|
|
32163
32217
|
typeChart: TYPECHART.AREA,
|
|
@@ -34925,7 +34979,8 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
34925
34979
|
})), React.createElement(Col, {
|
|
34926
34980
|
md: 5
|
|
34927
34981
|
}, React.createElement(Row, null, React.createElement(Col, {
|
|
34928
|
-
md:
|
|
34982
|
+
md: 9,
|
|
34983
|
+
lg: 7,
|
|
34929
34984
|
style: {
|
|
34930
34985
|
margin: "0 auto"
|
|
34931
34986
|
}
|