mario-education 2.4.11-beta → 2.4.12-beta

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.
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
- import { GoalProgressReport } from "../configs/types";
2
+ import { IReadinessToLearning } from "../configs/types";
3
3
  interface Props {
4
- data: GoalProgressReport[] | null;
4
+ data: IReadinessToLearning[];
5
5
  }
6
6
  declare const ReadinessToLearn: FC<Props>;
7
7
  export default ReadinessToLearn;
@@ -1,3 +1,7 @@
1
- /// <reference types="react" />
2
- declare const TopLearningStrategy: ({ data }: any) => JSX.Element;
1
+ import { FC } from "react";
2
+ import { IlearningStrategies } from "../configs/types";
3
+ interface ITopLearningStrategy {
4
+ data: IlearningStrategies;
5
+ }
6
+ declare const TopLearningStrategy: FC<ITopLearningStrategy>;
3
7
  export default TopLearningStrategy;
@@ -12,3 +12,6 @@ export declare const INITIAL_ACTIVITY_FRIENDS: {
12
12
  curious: number;
13
13
  };
14
14
  export declare const LEARNING_STRATEGY_CHART_COLORS: string[];
15
+ export declare const LEARNING_STRATEGY_INIT: {
16
+ learningStrategies: never[];
17
+ };
@@ -104,4 +104,16 @@ export interface ISeries {
104
104
  name: string;
105
105
  data: number[];
106
106
  }
107
+ export interface IlearningItem {
108
+ learningStrategyName: string;
109
+ usageCount: number;
110
+ usagePoint: number[];
111
+ }
112
+ export interface IlearningStrategies {
113
+ learningStrategies: IlearningItem[];
114
+ }
115
+ export interface IReadinessToLearning {
116
+ questionText: string;
117
+ percentQuestion: number;
118
+ }
107
119
  export {};
@@ -23,7 +23,9 @@ export declare const genderOptions: {
23
23
  value: LegalGenderType;
24
24
  label: string;
25
25
  }[];
26
- export declare const learningStrategyChartOptions: (labelNames: string[]) => ApexOptions;
26
+ export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
27
+ export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
27
28
  export declare const optionsChartGrade: (maxDatas: number, grades: string[]) => ApexOptions;
28
29
  export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
29
30
  export declare const maxSeries: (series: ISeries[]) => number;
31
+ export declare const average: (arr: number[]) => number;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IStudentByGrade, IsyntheticFriendCircle } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IsyntheticFriendCircle } from "../configs/types";
3
3
  declare const useDashboard: () => {
4
4
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
5
5
  filter: DashboardFilter;
6
6
  listTotalTime: any;
7
- readinessToLearning: any;
8
- topLearningStrategies: any;
7
+ readinessToLearning: IReadinessToLearning[];
8
+ topLearningStrategies: IlearningStrategies;
9
9
  studentByGrade: IStudentByGrade[];
10
10
  chartOneToOneData: never[];
11
11
  chartClassReflection: never[];
@@ -5,5 +5,7 @@ declare const useQuestionList: () => {
5
5
  changeFilters: (updatedFilters: any) => void;
6
6
  getData: () => Promise<void>;
7
7
  removeData: (id: number) => void;
8
+ currentSort: any[];
9
+ onSortChange: (sortBy: string, index: number) => void;
8
10
  };
9
11
  export default useQuestionList;
@@ -0,0 +1,16 @@
1
+ export declare const sortTypes: {
2
+ up: {
3
+ class: string;
4
+ };
5
+ down: {
6
+ class: string;
7
+ };
8
+ default: {
9
+ class: string;
10
+ };
11
+ };
12
+ export declare const questionScaffoldingHeaders: {
13
+ name: string;
14
+ column: string;
15
+ }[];
16
+ export declare const SORT_DATA_DEFAULT: any[];
package/dist/index.css CHANGED
@@ -126,6 +126,7 @@ h6._3zOGW {
126
126
  ._1Jgr2 {
127
127
  padding: 16px;
128
128
  min-height: 450px;
129
+ height: 100%;
129
130
  display: flex;
130
131
  flex-direction: column;
131
132
  background: #ffffff;