mario-education 2.4.37-admin → 2.4.40-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.
@@ -8,6 +8,8 @@ interface IProps {
8
8
  onChangeChart: (type: TYPECHART) => void;
9
9
  isOpen: boolean;
10
10
  options?: IChartOptions[];
11
+ contentTooltip?: string;
12
+ index: number;
11
13
  }
12
14
  declare const HeaderChart: FC<IProps>;
13
15
  export default HeaderChart;
@@ -11,6 +11,7 @@ declare const useChartDatas: () => {
11
11
  label: string;
12
12
  value: TYPECHART;
13
13
  }[];
14
+ contentTooltip: string;
14
15
  }[];
15
16
  user: any;
16
17
  filter: import("../configs/types").DashboardFilter;
package/dist/index.js CHANGED
@@ -19807,16 +19807,34 @@ var HeaderChart = function HeaderChart(_ref) {
19807
19807
  _ref$typeChart = _ref.typeChart,
19808
19808
  typeChart = _ref$typeChart === void 0 ? TYPECHART.BAR : _ref$typeChart,
19809
19809
  onChangeChart = _ref.onChangeChart,
19810
- options = _ref.options;
19810
+ options = _ref.options,
19811
+ contentTooltip = _ref.contentTooltip,
19812
+ index = _ref.index;
19813
+
19814
+ var _useState = React.useState(false),
19815
+ openTooltip = _useState[0],
19816
+ setOpenTooltip = _useState[1];
19817
+
19818
+ var handleOpenTooltip = function handleOpenTooltip() {
19819
+ setOpenTooltip(!openTooltip);
19820
+ };
19821
+
19811
19822
  return React__default.createElement("div", {
19812
- className: "d-flex justify-content-between align-items-center " + styles$1["header-chart"] + " "
19823
+ className: "d-flex justify-content-between align-items-center " + styles$1["header-chart"] + " ",
19824
+ onClick: onToggle
19813
19825
  }, React__default.createElement("div", {
19814
19826
  className: "" + styles$1["header-left"]
19815
19827
  }, React__default.createElement("span", {
19816
19828
  className: styles$1["header-title"] + " pr-2"
19817
19829
  }, title), React__default.createElement("i", {
19818
- className: styles$1["icon-chart"] + " fal fa-info-circle cursor-pointer"
19819
- })), React__default.createElement("div", {
19830
+ className: styles$1["icon-chart"] + " fal fa-info-circle cursor-pointer",
19831
+ id: "tooltip-" + index
19832
+ }), React__default.createElement(reactstrap.Tooltip, {
19833
+ placement: "right",
19834
+ isOpen: openTooltip,
19835
+ target: "tooltip-" + index,
19836
+ toggle: handleOpenTooltip
19837
+ }, contentTooltip)), React__default.createElement("div", {
19820
19838
  className: "" + styles$1["header-right"]
19821
19839
  }, isOpen && isShowChangeChart && (options === null || options === void 0 ? void 0 : options.length) && React__default.createElement("div", {
19822
19840
  className: "d-flex align-items-center d-inline-block pr-4"
@@ -27612,7 +27630,8 @@ var useChartDatas = function useChartDatas() {
27612
27630
  });
27613
27631
  },
27614
27632
  isShowChangeChart: false,
27615
- options: []
27633
+ options: [],
27634
+ contentTooltip: "The represenation of individual student responses to their own feelings of Energy, Focus, Happiness, Safety, and Stress at the time administered. Note that scores are set on a 1-100 scale with the exception of Stress which optimum stress is set at '0' to get a sense of High Stress vs Low Stress."
27616
27635
  }, {
27617
27636
  id: "high_impact_learning_strategie",
27618
27637
  label: "High Impact Learning Strategies",
@@ -27622,7 +27641,8 @@ var useChartDatas = function useChartDatas() {
27622
27641
  });
27623
27642
  },
27624
27643
  isShowChangeChart: false,
27625
- options: []
27644
+ options: [],
27645
+ contentTooltip: "Both the composite of individual students reporting their percieved use of John Hattie's High Impact Learning Strategies measured against the actual application with a teacher in total."
27626
27646
  }, {
27627
27647
  id: "1_to_1",
27628
27648
  label: "1 To 1",
@@ -27646,10 +27666,11 @@ var useChartDatas = function useChartDatas() {
27646
27666
  }, {
27647
27667
  label: "Bar charts",
27648
27668
  value: TYPECHART.BAR
27649
- }]
27669
+ }],
27670
+ contentTooltip: "The composite results of the survey completed by individual students seeking their own perception of performance in the 6 key areas followed by 3 specific areas of well being over time."
27650
27671
  }, {
27651
27672
  id: "class_reflection",
27652
- label: "Class Reflection",
27673
+ label: "Reflection",
27653
27674
  children: function children(typeChart, isPDF) {
27654
27675
  return React__default.createElement(ColumnChartAndPercent$1, {
27655
27676
  data: dataConvertedClassReflection,
@@ -27671,10 +27692,11 @@ var useChartDatas = function useChartDatas() {
27671
27692
  }, {
27672
27693
  label: "Line charts",
27673
27694
  value: TYPECHART.LINE
27674
- }]
27695
+ }],
27696
+ contentTooltip: "The result of surveys sent to any individual (external or internal) that connects with the student to assist in measuring the individual student's: Productivity, Happiness, Energy, Focus, and Stress over time."
27675
27697
  }, {
27676
27698
  id: "conference",
27677
- label: "Conference",
27699
+ label: "Conferences",
27678
27700
  children: function children(typeChart, isPDF) {
27679
27701
  return React__default.createElement(ColumnChartAndPercent$1, {
27680
27702
  data: dataConvertedConference,
@@ -27695,7 +27717,8 @@ var useChartDatas = function useChartDatas() {
27695
27717
  }, {
27696
27718
  label: "Bar charts",
27697
27719
  value: TYPECHART.BAR
27698
- }]
27720
+ }],
27721
+ contentTooltip: "The composite representation of individual aggregate scores located at the bottom of individual Conferences conducted between Teachers and Students over time. Note that scores of 'Not Applicable' do not get measured."
27699
27722
  }, {
27700
27723
  id: "safety",
27701
27724
  label: "Safety",
@@ -27720,7 +27743,8 @@ var useChartDatas = function useChartDatas() {
27720
27743
  }, {
27721
27744
  label: "Line charts",
27722
27745
  value: TYPECHART.LINE
27723
- }]
27746
+ }],
27747
+ contentTooltip: "The visual represenation of all the responses from the question asking students to rate their perceived level of safety for themselves at your school over time."
27724
27748
  }, {
27725
27749
  id: "Student_by_age",
27726
27750
  label: "Student by Age",
@@ -27732,7 +27756,8 @@ var useChartDatas = function useChartDatas() {
27732
27756
  });
27733
27757
  },
27734
27758
  isShowChangeChart: false,
27735
- options: []
27759
+ options: [],
27760
+ contentTooltip: "The specific represenation of students by gender and grade level at your school."
27736
27761
  }, {
27737
27762
  id: "student_by_grade",
27738
27763
  label: "Students by Designation",
@@ -27742,7 +27767,8 @@ var useChartDatas = function useChartDatas() {
27742
27767
  });
27743
27768
  },
27744
27769
  isShowChangeChart: false,
27745
- options: []
27770
+ options: [],
27771
+ contentTooltip: "The composite representation of students by individual grades in your school with specific designations."
27746
27772
  }];
27747
27773
  var initialTypeChart = chartDashBoards.map(function (i) {
27748
27774
  return i.options.length > 0 ? i.options[0].value : TYPECHART.AREA;
@@ -29427,7 +29453,9 @@ var Dashboard = function Dashboard() {
29427
29453
  return _onChangeChart(index, type, chartDashBoard === null || chartDashBoard === void 0 ? void 0 : chartDashBoard.options);
29428
29454
  },
29429
29455
  isOpen: chartIsOpened[index],
29430
- options: chartDashBoard.options
29456
+ options: chartDashBoard.options,
29457
+ contentTooltip: chartDashBoard === null || chartDashBoard === void 0 ? void 0 : chartDashBoard.contentTooltip,
29458
+ index: index
29431
29459
  }), React__default.createElement(reactstrap.Collapse, {
29432
29460
  isOpen: chartIsOpened[index]
29433
29461
  }, chartDashBoard.children(typeChartList[index])));