mario-education 2.4.14-beta → 2.4.15-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.
@@ -3,6 +3,7 @@ interface Props {
3
3
  text?: string;
4
4
  onClick?(): void;
5
5
  style?: any;
6
+ className?: string;
6
7
  }
7
8
  declare const SubmitButton: FC<Props>;
8
9
  export default SubmitButton;
@@ -0,0 +1,17 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ value?: any;
4
+ onChange: any;
5
+ externalStudentIds?: number[];
6
+ studentDefault?: Student;
7
+ }
8
+ export interface Student {
9
+ studentId: number;
10
+ email: string;
11
+ fullName: string;
12
+ id: string;
13
+ label?: string;
14
+ value?: string;
15
+ }
16
+ declare const StudentItemSelector: FC<Props>;
17
+ export default StudentItemSelector;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ defaultValue: number | null | undefined;
4
+ onChange: Function;
5
+ }
6
+ export interface Option {
7
+ label: string;
8
+ value: number;
9
+ }
10
+ declare const TeacherItemSelector: FC<Props>;
11
+ export default TeacherItemSelector;
@@ -1,3 +1,7 @@
1
- /// <reference types="react" />
2
- declare const StudentWithSpecialNeeds: ({ data }: any) => JSX.Element;
1
+ import { FC } from "react";
2
+ import { IStudentBySpecialNeed } from "../configs/types";
3
+ interface IProps {
4
+ data: IStudentBySpecialNeed[];
5
+ }
6
+ declare const StudentWithSpecialNeeds: FC<IProps>;
3
7
  export default StudentWithSpecialNeeds;
@@ -65,6 +65,7 @@ export declare type DashboardFilter = {
65
65
  grade?: string[];
66
66
  teacherId?: number;
67
67
  mtss?: MtssType;
68
+ studentId?: number;
68
69
  };
69
70
  export interface ICircleChartItem {
70
71
  id: number;
@@ -123,4 +124,12 @@ export declare enum MtssType {
123
124
  Tier2 = 1,
124
125
  Tier3 = 2
125
126
  }
127
+ export interface IStudentBySpecialNeed {
128
+ nameDesignation: string;
129
+ numberDesignation: number;
130
+ }
131
+ export interface IseriesChart {
132
+ name: string[];
133
+ data: number[];
134
+ }
126
135
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ApexOptions } from "apexcharts";
2
2
  import { IOptionSelector } from "../../../components/Select/InputSelector";
3
- import { IActivityCircle, ISeries, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
3
+ import { IActivityCircle, ISeries, IseriesChart, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } 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;
@@ -30,6 +30,7 @@ export declare const mtssOptions: {
30
30
  export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
31
31
  export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
32
32
  export declare const optionsChartGrade: (maxDatas: number, colorCharts: string[]) => ApexOptions;
33
+ export declare const studentBySpecialNeedOptions: (seriesValue: IseriesChart) => ApexOptions;
33
34
  export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
34
35
  export declare const maxSeries: (series: ISeries[]) => number;
35
36
  export declare const average: (arr: number[]) => number;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IsyntheticFriendCircle } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle } from "../configs/types";
3
3
  declare const useDashboard: () => {
4
4
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
5
5
  filter: DashboardFilter;
@@ -13,7 +13,7 @@ declare const useDashboard: () => {
13
13
  learningProgress: never[];
14
14
  friendCircles: IsyntheticFriendCircle | undefined;
15
15
  activityCircles: IActivityCircle | undefined;
16
- studentBySpecialNeed: undefined;
16
+ studentBySpecialNeed: IStudentBySpecialNeed[];
17
17
  studentByAge: undefined;
18
18
  studentByGender: undefined;
19
19
  grades: string[];
@@ -22,5 +22,8 @@ declare const useDashboard: () => {
22
22
  getConvertMinuteToHour: (timeSecond: any) => string;
23
23
  teacherId: number;
24
24
  setTeacherId: import("react").Dispatch<import("react").SetStateAction<number>>;
25
+ studentId: number;
26
+ setStudentId: import("react").Dispatch<import("react").SetStateAction<number>>;
27
+ onFilter: () => void;
25
28
  };
26
29
  export default useDashboard;
package/dist/index.css CHANGED
@@ -228,14 +228,17 @@ h6._3zOGW {
228
228
  }
229
229
 
230
230
  ._6yLxd {
231
- border: 1px solid;
232
- padding: 7px 8px;
233
- border-radius: 5px;
234
- margin-right: 20px;
235
- }
236
-
237
- ._6yLxd {
238
- margin-bottom: 10px;
231
+ min-width: 200px;
232
+ margin-left: 20px;
233
+ margin-bottom: 10px;
234
+ height: 100%;
235
+ background-color: hsl(0, 0%, 100%);
236
+ border-color: hsl(0, 0%, 80%);
237
+ border-radius: 4px;
238
+ border-style: solid;
239
+ border-width: 1px;
240
+ padding: 8px;
241
+ width: 100%;
239
242
  }
240
243
 
241
244
  ._h74SO {
@@ -248,13 +251,26 @@ h6._3zOGW {
248
251
  display: flex;
249
252
  justify-content: flex-end;
250
253
  flex-wrap: wrap;
254
+ max-width: 700px;
251
255
  }
252
256
 
253
- ._31VDE,
254
- ._1Pm1w {
257
+ ._ntUB6 {
255
258
  min-width: 200px;
256
259
  margin-left: 20px;
257
260
  margin-bottom: 10px;
261
+ height: 38px;
262
+ }
263
+ ._1DlZ4{
264
+ min-width: 180px;
265
+ margin-right: 20px;
266
+ margin-bottom: 10px;
267
+ height: 38px;
268
+ }
269
+
270
+ ._1tYDM{
271
+ max-width: 440px;
272
+ display: flex;
273
+ flex-wrap: wrap;
258
274
  }
259
275
 
260
276
  ._3hSow {
@@ -317,6 +333,12 @@ h6._3zOGW {
317
333
  }
318
334
  }
319
335
 
336
+ @media (max-width: 720px){
337
+ ._1YJnk{
338
+ padding-right: 20px;
339
+ }
340
+ }
341
+
320
342
  ._2Q9xO{
321
343
  border-radius: 50%;
322
344
  display: flex;