mario-education 2.4.10-beta → 2.4.11-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,3 +1,7 @@
1
- /// <reference types="react" />
2
- declare const StudentByGrade: ({ data }: any) => JSX.Element;
1
+ import { FC } from "react";
2
+ import { IStudentByGrade } from "../configs/types";
3
+ interface IGradeStudentChart {
4
+ data: IStudentByGrade[];
5
+ }
6
+ declare const StudentByGrade: FC<IGradeStudentChart>;
3
7
  export default StudentByGrade;
@@ -96,4 +96,12 @@ export declare enum LegalGenderType {
96
96
  Male = 0,
97
97
  Female = 1
98
98
  }
99
+ export interface IStudentByGrade {
100
+ grade: string;
101
+ quantity: number;
102
+ }
103
+ export interface ISeries {
104
+ name: string;
105
+ data: number[];
106
+ }
99
107
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ApexOptions } from "apexcharts";
2
2
  import { IOptionSelector } from "../../../components/Select/InputSelector";
3
- import { IActivityCircle, IsyntheticFriendCircle, LegalGenderType } from "./types";
3
+ import { IActivityCircle, ISeries, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType } from "./types";
4
4
  export declare const getColors: (length: number) => string[];
5
5
  export declare const friendCircleItems: ({ bestFriends, friends, couldBeFriends, supportive }: IsyntheticFriendCircle) => {
6
6
  id: number;
@@ -24,3 +24,6 @@ export declare const genderOptions: {
24
24
  label: string;
25
25
  }[];
26
26
  export declare const learningStrategyChartOptions: (labelNames: string[]) => ApexOptions;
27
+ export declare const optionsChartGrade: (maxDatas: number, grades: string[]) => ApexOptions;
28
+ export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
29
+ export declare const maxSeries: (series: ISeries[]) => number;
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IsyntheticFriendCircle } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, 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
7
  readinessToLearning: any;
8
8
  topLearningStrategies: any;
9
- studentByGrade: undefined;
9
+ studentByGrade: IStudentByGrade[];
10
10
  chartOneToOneData: never[];
11
11
  chartClassReflection: never[];
12
12
  chartConference: never[];
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ declare type ScaffoldingDetail = {
3
+ question: string;
4
+ category: string;
5
+ level: string;
6
+ };
7
+ declare const useQuestionDetail: () => {
8
+ id: number;
9
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
10
+ questionDetail: ScaffoldingDetail;
11
+ confirmData: (values: any, cb: any) => Promise<void>;
12
+ initValue: ScaffoldingDetail;
13
+ reset: () => void;
14
+ edited: boolean;
15
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
16
+ setEditedTrue: () => Promise<void>;
17
+ setEditedFalse: () => Promise<void>;
18
+ };
19
+ export default useQuestionDetail;
@@ -0,0 +1,9 @@
1
+ declare const useQuestionList: () => {
2
+ questionScaffoldingList: any;
3
+ totalItems: number;
4
+ filters: import("mario-core").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useQuestionList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const QuestionScaffolding: FC;
3
+ export default QuestionScaffolding;
@@ -0,0 +1,6 @@
1
+ import { Filter } from "mario-core";
2
+ export declare const get: (filter?: Filter | undefined) => Promise<import("axios").AxiosResponse<any>>;
3
+ export declare const getById: (id: number) => Promise<import("axios").AxiosResponse<any>>;
4
+ export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;