mario-education 2.4.25-admin → 2.4.26-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.
Files changed (20) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/components/Select/SelectFilter.d.ts +1 -1
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/AreaChart.d.ts +9 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarAndAreaChart.d.ts +9 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarChart.d.ts +9 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +6 -1
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +3 -2
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +4 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +31 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +37 -1
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +3 -2
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +3 -1
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +2 -1
  13. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +0 -4
  14. package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +9 -0
  15. package/dist/index.css +54 -10
  16. package/dist/index.js +21240 -20782
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.modern.js +21240 -20782
  19. package/dist/index.modern.js.map +1 -1
  20. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
3
- declare const SelectFilter: ({ teacherId, studentUserId, studentId, teacherUserId, studentDefault, handleChangeFilters, name, icon, filter, option }: PROPS_FILTERS_COMPONENT) => JSX.Element;
3
+ declare const SelectFilter: ({ teacherId, studentUserId, studentId, teacherUserId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters }: PROPS_FILTERS_COMPONENT) => JSX.Element;
4
4
  export default SelectFilter;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ }
8
+ declare const AreaChart: FC<IProps>;
9
+ export default AreaChart;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ }
8
+ declare const BarAndAreaChart: FC<IProps>;
9
+ export default BarAndAreaChart;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ }
8
+ declare const BarChart: FC<IProps>;
9
+ export default BarChart;
@@ -1,9 +1,14 @@
1
1
  import React from "react";
2
2
  import { IOverviewQuestionChoice } from "../configs/types";
3
+ export declare enum TYPECHART {
4
+ AREA = 0,
5
+ BAR = 1,
6
+ BOTH = 2
7
+ }
3
8
  export interface IProps {
4
9
  data: IOverviewQuestionChoice[];
5
- isRidgeCharts?: boolean;
6
10
  id: string;
11
+ typeChart?: TYPECHART;
7
12
  }
8
13
  export interface ISeries {
9
14
  name: string;
@@ -1,10 +1,11 @@
1
1
  import { FC } from "react";
2
+ import { TYPECHART } from "../ColumnChartAndPercent";
2
3
  interface IProps {
3
4
  title: string;
4
5
  onToggle: () => void;
5
6
  isShowChangeChart?: boolean;
6
- isRidgeChart?: boolean;
7
- onChangeChart: () => void;
7
+ typeChart?: TYPECHART;
8
+ onChangeChart: (type: TYPECHART) => void;
8
9
  isOpen: boolean;
9
10
  }
10
11
  declare const HeaderChart: FC<IProps>;
@@ -38,3 +38,7 @@ export declare const INITIAL_AVG: number[];
38
38
  export declare const COLOR_CHART_AND_PERCENTS: string[];
39
39
  export declare const COLOR_CHART_BUBBLE: string[];
40
40
  export declare const PERCENT: number[];
41
+ export declare const GENDER_OPTION: {
42
+ value: number;
43
+ label: string;
44
+ }[];
@@ -179,6 +179,10 @@ export interface BAND_SCORE {
179
179
  label: string;
180
180
  value: number;
181
181
  }
182
+ export interface IOption {
183
+ label: string;
184
+ value: number;
185
+ }
182
186
  export interface IDashboardToTalStudent {
183
187
  avgClassReflection: number;
184
188
  totalConference: number;
@@ -186,4 +190,31 @@ export interface IDashboardToTalStudent {
186
190
  totalTimeConference: number;
187
191
  totalTimeOneToOne: number;
188
192
  }
193
+ export declare enum FILTER_YEAR {
194
+ THIS_YEAR = 0,
195
+ LAST_YEAR = 1,
196
+ LAST_QUARTER = 2,
197
+ LAST_MONTH = 3,
198
+ LAST_DAY = 4
199
+ }
200
+ export interface IfilterYear {
201
+ label: string;
202
+ value: FILTER_YEAR;
203
+ startDate: number;
204
+ endDate: number;
205
+ }
206
+ export interface ICalenDarLabelBox {
207
+ value: FILTER_YEAR;
208
+ label: string;
209
+ }
210
+ export interface IGenderLabelBox {
211
+ value: number;
212
+ label: string;
213
+ }
214
+ export interface ILabelBox {
215
+ calendar: ICalenDarLabelBox;
216
+ gender: IGenderLabelBox;
217
+ grade: number;
218
+ bandScore: number;
219
+ }
189
220
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ApexOptions } from "apexcharts";
2
2
  import { IOptionSelector } from "../../../components/Select/InputSelector";
3
- import { IActivityCircle, IOverviewQuestionChoice, IReadinessToLearning, ISeries, IseriesChart, IStudentByAge, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
3
+ import { FILTER_YEAR, IActivityCircle, IOverviewQuestionChoice, IReadinessToLearning, ISeries, IseriesChart, IStudentByAge, 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;
@@ -68,6 +68,26 @@ export declare const pieChartOptions: {
68
68
  colors: string[];
69
69
  width: number;
70
70
  };
71
+ states: {
72
+ normal: {
73
+ filter: {
74
+ type: string;
75
+ value: number;
76
+ };
77
+ };
78
+ hover: {
79
+ filter: {
80
+ type: string;
81
+ value: number;
82
+ };
83
+ };
84
+ active: {
85
+ filter: {
86
+ type: string;
87
+ value: number;
88
+ };
89
+ };
90
+ };
71
91
  };
72
92
  export declare const convertDataToSeriesStudentByGrade: (data: IStudentByGrade[]) => {
73
93
  name: string;
@@ -85,6 +105,7 @@ export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearnin
85
105
  data: number[][];
86
106
  }[];
87
107
  export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
108
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[]) => ApexOptions;
88
109
  export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
89
110
  export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
90
111
  name: string;
@@ -92,3 +113,18 @@ export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[]
92
113
  }[];
93
114
  export declare const convertToAvg: (dataCharts: string[], data: IOverviewQuestionChoice[], months: string[]) => number[];
94
115
  export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
116
+ export declare const mergeBarChartAndArea: (series: ISeries[]) => {
117
+ type: string;
118
+ name: string;
119
+ data: number[];
120
+ }[];
121
+ export declare const getLastQuarterRange: () => {
122
+ start: number;
123
+ end: number;
124
+ };
125
+ export declare const filterYearData: {
126
+ label: string;
127
+ value: FILTER_YEAR;
128
+ startDate: number;
129
+ endDate: number;
130
+ }[];
@@ -1,7 +1,8 @@
1
+ import { TYPECHART } from "../components/ColumnChartAndPercent";
1
2
  declare const useBehavior: () => {
2
- isRidgeCharts: boolean[];
3
3
  chartIsOpened: boolean[];
4
4
  onToggle: (idx: number) => void;
5
- onChangeChart: (idx: number) => void;
5
+ onChangeChart: (idx: number, type: TYPECHART) => void;
6
+ typeChartList: TYPECHART[];
6
7
  };
7
8
  export default useBehavior;
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
+ import { TYPECHART } from "../components/ColumnChartAndPercent";
3
4
  declare const useChartDatas: () => {
4
5
  chartDashBoards: {
5
6
  id: string;
6
7
  label: string;
7
- children: (_: boolean) => JSX.Element;
8
+ children: (_: TYPECHART) => JSX.Element;
8
9
  isShowChangeChart: boolean;
9
10
  }[];
10
11
  user: any;
@@ -26,5 +27,6 @@ declare const useChartDatas: () => {
26
27
  deviant: string;
27
28
  filter: string;
28
29
  })[];
30
+ onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
29
31
  };
30
32
  export default useChartDatas;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IColumnChartAndPercent, IStudentByAge, IStudentByGender, IDashboardToTalStudent } from "../configs/types";
3
- import { Student } from "../../../utils/type";
3
+ import { IFilter, Student } from "../../../utils/type";
4
4
  declare const useDashboard: () => {
5
5
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
6
6
  filter: DashboardFilter;
@@ -29,5 +29,6 @@ declare const useDashboard: () => {
29
29
  setGenderOfStudent: import("react").Dispatch<import("react").SetStateAction<string>>;
30
30
  handleFilterStudent: (option: any) => void;
31
31
  handleFilterTeacher: (option: any) => void;
32
+ onChangeFilters: (filterSelect: IFilter) => void;
32
33
  };
33
34
  export default useDashboard;
@@ -5,10 +5,6 @@ export declare const CONFERENCE_RUBRIC_TYPES: {
5
5
  HabitsAttitudesTowardsLearning: string;
6
6
  Custom: string;
7
7
  };
8
- export declare const LAST_YEAR_FILTER: {
9
- label: string;
10
- value: number;
11
- }[];
12
8
  export declare const GENDER_FILTER: string[];
13
9
  export declare enum FILTER_NAME {
14
10
  Calendar = "Calendar",
@@ -9,6 +9,13 @@ export interface Student {
9
9
  gender?: string;
10
10
  mtss?: string;
11
11
  }
12
+ export interface IFilter {
13
+ startDate?: number;
14
+ endDate?: number;
15
+ gender?: number[];
16
+ grade?: string[];
17
+ bandScore?: string;
18
+ }
12
19
  export interface PROPS_FILTERS_COMPONENT {
13
20
  teacherId?: number;
14
21
  studentUserId?: string;
@@ -21,6 +28,8 @@ export interface PROPS_FILTERS_COMPONENT {
21
28
  icon: string;
22
29
  handleChangeFilters: Function;
23
30
  option?: any[];
31
+ defautl?: number;
32
+ onChangeFilters?: (filters: IFilter) => void;
24
33
  }
25
34
  export interface BAND_SCORE {
26
35
  label: string;
package/dist/index.css CHANGED
@@ -124,6 +124,7 @@ tbody._b-AXV tr {
124
124
  ._1XSIo {
125
125
  position: absolute;
126
126
  width:100%;
127
+ z-index: 100;
127
128
  }
128
129
 
129
130
  ._3o8gR {
@@ -133,7 +134,8 @@ tbody._b-AXV tr {
133
134
  ._3ru37 {
134
135
  background: #ffff;
135
136
  border-radius: 4px;
136
- max-height: 150px;
137
+ min-width: 160px;
138
+ padding: 5px 0px 12px;
137
139
  overflow: auto;
138
140
  overflow-x: hidden;
139
141
  border: 1px solid rgba(51, 51, 51, 0.1);
@@ -232,7 +234,7 @@ h6._3zOGW {
232
234
  }
233
235
 
234
236
  ._10hbz {
235
- font-weight: 400;
237
+ font-weight: bold;
236
238
  font-size: 14px;
237
239
  line-height: 16px;
238
240
  }
@@ -351,6 +353,12 @@ h6._3zOGW {
351
353
  min-width: 255px;
352
354
  flex-basis: 19%;
353
355
  }
356
+ ._1yuC9 ._10hbz {
357
+ font-family: 'Roboto';
358
+ font-weight: 500;
359
+ font-size: 14px;
360
+ line-height: 16px;
361
+ }
354
362
  ._1yuC9:last-child {
355
363
  padding: 1.2rem !important;
356
364
  }
@@ -364,6 +372,7 @@ h6._3zOGW {
364
372
  width: 100%;
365
373
  -o-object-fit: scale-down;
366
374
  object-fit: scale-down;
375
+ max-height: 300px;
367
376
  }
368
377
  ._2PMoX._3ZX0b {
369
378
  height: 300px;
@@ -423,11 +432,27 @@ h6._3zOGW {
423
432
  ._6ZvFg {
424
433
  border-radius: 8px;
425
434
  overflow: hidden;
435
+ position: relative;
436
+ }
437
+
438
+ ._24CNV._6ZvFg::after {
439
+ content: "";
440
+ width: 1px;
441
+ height: 100%;
442
+ position: absolute;
443
+ top: 0;
444
+ left: 50%;
445
+ transform: translate(-50%,0);
446
+ display: block;
447
+ background: rgba(51, 51, 51, 0.1);
426
448
  }
449
+
450
+ ._6ZvFg
427
451
  ._2vtSi{
428
452
  background: #FFFFFF;
429
453
  border-radius: 8px;
430
454
  padding: 20px;
455
+ cursor: pointer;
431
456
  }
432
457
  ._IpsVf{
433
458
 
@@ -440,14 +465,19 @@ h6._3zOGW {
440
465
  ._2vtSi ._37IcR{
441
466
  color: #D9D9D9;
442
467
  display:flex;
468
+ align-items: center;
443
469
  }
444
470
 
445
471
  ._2vtSi ._2G6Wz{
446
- font-family: 'Roboto';
447
- font-weight: 600;
472
+ font-weight: 700;
448
473
  font-size: 18px;
449
474
  letter-spacing: 0.01em;
450
475
  color: #262626;
476
+ font-family: "Roboto";
477
+ }
478
+ ._2vtSi ._IpsVf {
479
+ display: flex;
480
+ align-items: center;
451
481
  }
452
482
 
453
483
  ._3xpNv {
@@ -469,11 +499,17 @@ h6._3zOGW {
469
499
  }
470
500
 
471
501
  ._2vtSi ._3AALV{
472
- font-size: 23px;
502
+ font-size: 16px;
473
503
  }
474
504
  ._g5-bn ._2htKu{
475
505
  cursor: pointer;
476
506
  }
507
+
508
+ ._2htKu svg{
509
+ width: 20px !important;
510
+ height: auto !important;
511
+ }
512
+
477
513
  ._2vtSi ._1qXAT{
478
514
  font-weight: 400;
479
515
  font-size: 16px;
@@ -533,16 +569,15 @@ h6._3zOGW {
533
569
  padding-right: 50px;
534
570
  }
535
571
  ._38ikt{
536
- height: 410px;
572
+ /* height: 410px; */
537
573
  }
538
574
  ._38ikt ._1TnWs {
539
575
  position: absolute;
540
- right: 35px;
541
- top: 10px;
576
+ right: 60px;
542
577
  display: flex;
543
578
  justify-content: flex-end;
544
579
  flex-wrap: wrap;
545
- width: 91px;
580
+ width: 150px;
546
581
  }
547
582
  ._38ikt ._1TnWs label {
548
583
  color: #333333;
@@ -603,7 +638,7 @@ h6._3zOGW {
603
638
  display: flex;
604
639
  justify-content: flex-end;
605
640
  flex-wrap: wrap;
606
- width: 91px;
641
+ width: 150px;
607
642
  }
608
643
  ._2az-l ._1TnWs label {
609
644
  color: #333333;
@@ -709,3 +744,12 @@ h6._3zOGW {
709
744
  justify-content: center;
710
745
  align-items: center;
711
746
  }
747
+
748
+ ._38ikt ._pFFg9{
749
+ font-weight: 400;
750
+ font-size: 16px;
751
+ text-align: center;
752
+ letter-spacing: 0.01em;
753
+ color: #808080;
754
+ margin-bottom: 20px;
755
+ }