mario-education 2.4.146-level → 2.4.148-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/index.css +2057 -2057
- package/dist/index.js +44 -33
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +44 -33
- package/dist/index.modern.js.map +1 -1
- package/package.json +98 -98
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchCounselor/hooks/useSwitchAssistant.d.ts +0 -18
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/components/SwitchCounselorModal.d.ts +0 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/hooks/useSwitchCounselor.d.ts +0 -18
- /package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -14868,7 +14868,7 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
14868
14868
|
setFieldValue("isBeforeSession", !values.isBeforeSession);
|
|
14869
14869
|
setEditedTrue();
|
|
14870
14870
|
}
|
|
14871
|
-
})),
|
|
14871
|
+
})), parseInt(type) == TYPE_QUESTION.Default && React__default.createElement(reactstrap.Col, {
|
|
14872
14872
|
md: 12
|
|
14873
14873
|
}, React__default.createElement(reactstrap.CustomInput, {
|
|
14874
14874
|
type: "checkbox",
|
|
@@ -30648,11 +30648,13 @@ var CustomArcLabel = function CustomArcLabel(_ref) {
|
|
|
30648
30648
|
};
|
|
30649
30649
|
|
|
30650
30650
|
var TopLearningStrategy = function TopLearningStrategy(_ref2) {
|
|
30651
|
-
var _learningStrategies$f, _learningStrategies$f2;
|
|
30651
|
+
var _data$learningStrateg, _learningStrategies$f, _learningStrategies$f2;
|
|
30652
30652
|
|
|
30653
30653
|
var data = _ref2.data;
|
|
30654
30654
|
if (!data) return React__default.createElement(Loading, null);
|
|
30655
|
-
var learningStrategies = data.learningStrategies
|
|
30655
|
+
var learningStrategies = (data === null || data === void 0 ? void 0 : (_data$learningStrateg = data.learningStrategies) === null || _data$learningStrateg === void 0 ? void 0 : _data$learningStrateg.sort(function (a, b) {
|
|
30656
|
+
return average(b.usagePoint) - average(a.usagePoint);
|
|
30657
|
+
})) || [];
|
|
30656
30658
|
|
|
30657
30659
|
var _useTranslation = marioCore.useTranslation(),
|
|
30658
30660
|
t = _useTranslation.t;
|
|
@@ -31568,15 +31570,16 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
|
|
|
31568
31570
|
}, [chartWidth, studentPressure]);
|
|
31569
31571
|
var lineHeight = 20;
|
|
31570
31572
|
var tooltipHeight = tooltipStudents.length * lineHeight;
|
|
31573
|
+
var maxHeightTooltip = tooltipHeight + 30 > chartHeight - 50 ? chartHeight - 50 : tooltipHeight + 30;
|
|
31571
31574
|
return React__default.createElement("svg", {
|
|
31572
31575
|
ref: svgRef,
|
|
31573
31576
|
width: chartWidth,
|
|
31574
31577
|
height: chartHeight + 50
|
|
31575
31578
|
}, !!tooltipVisible && React__default.createElement("g", {
|
|
31576
|
-
transform: "translate(" + (tooltipX - 100) + "," + (tooltipY - tooltipHeight - 80) + ")"
|
|
31579
|
+
transform: "translate(" + (tooltipX - 100) + "," + Math.max(0, tooltipY - tooltipHeight - 80) + ")"
|
|
31577
31580
|
}, React__default.createElement("rect", {
|
|
31578
31581
|
width: "200",
|
|
31579
|
-
height:
|
|
31582
|
+
height: maxHeightTooltip + 10,
|
|
31580
31583
|
fill: "rgba(36, 36, 36, 0.8)",
|
|
31581
31584
|
rx: "5"
|
|
31582
31585
|
}), React__default.createElement("text", {
|
|
@@ -31585,25 +31588,33 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
|
|
|
31585
31588
|
fill: "#fff",
|
|
31586
31589
|
fontSize: "12px",
|
|
31587
31590
|
textAnchor: "start"
|
|
31588
|
-
}, tooltipStudents.length + " students are " + tooltipVisible),
|
|
31589
|
-
|
|
31591
|
+
}, tooltipStudents.length + " students are " + tooltipVisible), React__default.createElement("foreignObject", {
|
|
31592
|
+
x: "0",
|
|
31593
|
+
y: "30",
|
|
31594
|
+
width: "200",
|
|
31595
|
+
height: maxHeightTooltip
|
|
31596
|
+
}, React__default.createElement("div", {
|
|
31597
|
+
style: {
|
|
31598
|
+
overflowY: "auto",
|
|
31599
|
+
maxHeight: maxHeightTooltip - 20 + "px",
|
|
31600
|
+
padding: "5px 5px 5px 10px",
|
|
31601
|
+
color: "#fff",
|
|
31602
|
+
fontSize: "12px"
|
|
31603
|
+
}
|
|
31604
|
+
}, tooltipStudents.map(function (label, index) {
|
|
31605
|
+
return React__default.createElement("div", {
|
|
31590
31606
|
key: index
|
|
31591
|
-
}, React__default.createElement("
|
|
31592
|
-
|
|
31593
|
-
|
|
31594
|
-
|
|
31595
|
-
|
|
31596
|
-
|
|
31597
|
-
|
|
31598
|
-
|
|
31599
|
-
|
|
31600
|
-
|
|
31601
|
-
|
|
31602
|
-
fill: "#fff",
|
|
31603
|
-
fontSize: "12px",
|
|
31604
|
-
textAnchor: "start"
|
|
31605
|
-
}, label));
|
|
31606
|
-
})));
|
|
31607
|
+
}, React__default.createElement("span", {
|
|
31608
|
+
style: {
|
|
31609
|
+
display: "inline-block",
|
|
31610
|
+
width: "4px",
|
|
31611
|
+
height: "14px",
|
|
31612
|
+
backgroundColor: colorTooltip,
|
|
31613
|
+
borderRadius: "10px",
|
|
31614
|
+
marginRight: "10px"
|
|
31615
|
+
}
|
|
31616
|
+
}), React__default.createElement("span", null, label));
|
|
31617
|
+
})))));
|
|
31607
31618
|
};
|
|
31608
31619
|
|
|
31609
31620
|
var Dashboard = function Dashboard() {
|
|
@@ -31852,7 +31863,15 @@ var Dashboard = function Dashboard() {
|
|
|
31852
31863
|
dayOfWeek: dayOfWeekOneToOne,
|
|
31853
31864
|
timeOfDay: filter.optionDate,
|
|
31854
31865
|
colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"]
|
|
31855
|
-
})
|
|
31866
|
+
}), React__default.createElement("div", {
|
|
31867
|
+
className: "" + styles$1["mt-15"]
|
|
31868
|
+
}, React__default.createElement("p", {
|
|
31869
|
+
className: "" + styles$1["title-chart"]
|
|
31870
|
+
}, "Student Stress by Zone"), React__default.createElement("div", {
|
|
31871
|
+
className: "" + styles$1["box-chart-pressure"]
|
|
31872
|
+
}, React__default.createElement(StudentPressureChart, {
|
|
31873
|
+
studentPressure: studentPressure
|
|
31874
|
+
}))))), React__default.createElement("div", {
|
|
31856
31875
|
className: "shadow-lg mb-3 " + styles$1["chart-header-wrapper"]
|
|
31857
31876
|
}, React__default.createElement(HeaderChart, {
|
|
31858
31877
|
title: "Learning Progress",
|
|
@@ -31874,15 +31893,7 @@ var Dashboard = function Dashboard() {
|
|
|
31874
31893
|
avgQuestionLastMonth: []
|
|
31875
31894
|
}), React__default.createElement(TopLearningStrategy$1, {
|
|
31876
31895
|
data: topLearningStrategies
|
|
31877
|
-
})
|
|
31878
|
-
className: "" + styles$1["mt-15"]
|
|
31879
|
-
}, React__default.createElement("p", {
|
|
31880
|
-
className: "" + styles$1["title-chart"]
|
|
31881
|
-
}, t(studentPressureName)), React__default.createElement("div", {
|
|
31882
|
-
className: "" + styles$1["box-chart-pressure"]
|
|
31883
|
-
}, React__default.createElement(StudentPressureChart, {
|
|
31884
|
-
studentPressure: studentPressure
|
|
31885
|
-
}))))));
|
|
31896
|
+
}))));
|
|
31886
31897
|
};
|
|
31887
31898
|
|
|
31888
31899
|
var TypeEnumTemplate;
|