mario-education 2.4.145-level → 2.4.147-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.
@@ -14865,7 +14865,7 @@ var QuestionDetail = function QuestionDetail() {
14865
14865
  setFieldValue("isBeforeSession", !values.isBeforeSession);
14866
14866
  setEditedTrue();
14867
14867
  }
14868
- })), values.isDefaultQuestionSurvey == true && React.createElement(Col, {
14868
+ })), parseInt(type) == TYPE_QUESTION.Default && React.createElement(Col, {
14869
14869
  md: 12
14870
14870
  }, React.createElement(CustomInput, {
14871
14871
  type: "checkbox",
@@ -31565,15 +31565,16 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
31565
31565
  }, [chartWidth, studentPressure]);
31566
31566
  var lineHeight = 20;
31567
31567
  var tooltipHeight = tooltipStudents.length * lineHeight;
31568
+ var maxHeightTooltip = tooltipHeight + 30 > chartHeight - 50 ? chartHeight - 50 : tooltipHeight + 30;
31568
31569
  return React.createElement("svg", {
31569
31570
  ref: svgRef,
31570
31571
  width: chartWidth,
31571
31572
  height: chartHeight + 50
31572
31573
  }, !!tooltipVisible && React.createElement("g", {
31573
- transform: "translate(" + (tooltipX - 100) + "," + (tooltipY - tooltipHeight - 80) + ")"
31574
+ transform: "translate(" + (tooltipX - 100) + "," + Math.max(0, tooltipY - tooltipHeight - 80) + ")"
31574
31575
  }, React.createElement("rect", {
31575
31576
  width: "200",
31576
- height: tooltipHeight + 30,
31577
+ height: maxHeightTooltip + 10,
31577
31578
  fill: "rgba(36, 36, 36, 0.8)",
31578
31579
  rx: "5"
31579
31580
  }), React.createElement("text", {
@@ -31582,25 +31583,33 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
31582
31583
  fill: "#fff",
31583
31584
  fontSize: "12px",
31584
31585
  textAnchor: "start"
31585
- }, tooltipStudents.length + " students are " + tooltipVisible), tooltipStudents.map(function (label, index) {
31586
- return React.createElement("g", {
31586
+ }, tooltipStudents.length + " students are " + tooltipVisible), React.createElement("foreignObject", {
31587
+ x: "0",
31588
+ y: "30",
31589
+ width: "200",
31590
+ height: maxHeightTooltip
31591
+ }, React.createElement("div", {
31592
+ style: {
31593
+ overflowY: "auto",
31594
+ maxHeight: maxHeightTooltip - 20 + "px",
31595
+ padding: "5px 5px 5px 10px",
31596
+ color: "#fff",
31597
+ fontSize: "12px"
31598
+ }
31599
+ }, tooltipStudents.map(function (label, index) {
31600
+ return React.createElement("div", {
31587
31601
  key: index
31588
- }, React.createElement("rect", {
31589
- x: "10",
31590
- y: lineHeight * (index + 1) - 12 + 20,
31591
- width: "4",
31592
- height: "14",
31593
- fill: colorTooltip,
31594
- rx: "10",
31595
- ry: "1"
31596
- }), React.createElement("text", {
31597
- x: "25",
31598
- y: lineHeight * (index + 1) + 20,
31599
- fill: "#fff",
31600
- fontSize: "12px",
31601
- textAnchor: "start"
31602
- }, label));
31603
- })));
31602
+ }, React.createElement("span", {
31603
+ style: {
31604
+ display: "inline-block",
31605
+ width: "4px",
31606
+ height: "14px",
31607
+ backgroundColor: colorTooltip,
31608
+ borderRadius: "10px",
31609
+ marginRight: "10px"
31610
+ }
31611
+ }), React.createElement("span", null, label));
31612
+ })))));
31604
31613
  };
31605
31614
 
31606
31615
  var Dashboard = function Dashboard() {
@@ -31849,7 +31858,15 @@ var Dashboard = function Dashboard() {
31849
31858
  dayOfWeek: dayOfWeekOneToOne,
31850
31859
  timeOfDay: filter.optionDate,
31851
31860
  colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"]
31852
- }))), React.createElement("div", {
31861
+ }), React.createElement("div", {
31862
+ className: "" + styles$1["mt-15"]
31863
+ }, React.createElement("p", {
31864
+ className: "" + styles$1["title-chart"]
31865
+ }, "Student Stress by Zone"), React.createElement("div", {
31866
+ className: "" + styles$1["box-chart-pressure"]
31867
+ }, React.createElement(StudentPressureChart, {
31868
+ studentPressure: studentPressure
31869
+ }))))), React.createElement("div", {
31853
31870
  className: "shadow-lg mb-3 " + styles$1["chart-header-wrapper"]
31854
31871
  }, React.createElement(HeaderChart, {
31855
31872
  title: "Learning Progress",
@@ -31871,15 +31888,7 @@ var Dashboard = function Dashboard() {
31871
31888
  avgQuestionLastMonth: []
31872
31889
  }), React.createElement(TopLearningStrategy$1, {
31873
31890
  data: topLearningStrategies
31874
- }), React.createElement("div", {
31875
- className: "" + styles$1["mt-15"]
31876
- }, React.createElement("p", {
31877
- className: "" + styles$1["title-chart"]
31878
- }, t(studentPressureName)), React.createElement("div", {
31879
- className: "" + styles$1["box-chart-pressure"]
31880
- }, React.createElement(StudentPressureChart, {
31881
- studentPressure: studentPressure
31882
- }))))));
31891
+ }))));
31883
31892
  };
31884
31893
 
31885
31894
  var TypeEnumTemplate;