mario-education 2.4.3 → 2.4.4-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.
Files changed (26) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomBarChart.d.ts +3 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomLineChart.d.ts +3 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +7 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAge.d.ts +3 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGender.d.ts +3 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGrade.d.ts +3 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentWithSpecialNeeds.d.ts +3 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopLearningStrategy.d.ts +3 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopSkill.d.ts +3 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TotalCard.d.ts +4 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +13 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +12 -7
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/components/SwitchAssistantModal.d.ts +4 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/hooks/useSwitchAssistant.d.ts +17 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/utils/constants.d.ts +8 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/utils/type.interface.d.ts +36 -0
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/views/SwitchAssistantList.d.ts +3 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +5 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/services/userService.d.ts +5 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/utils/serviceType.interface.d.ts +8 -0
  21. package/dist/index.css +106 -0
  22. package/dist/index.js +1131 -336
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.modern.js +1134 -339
  25. package/dist/index.modern.js.map +1 -1
  26. package/package.json +2 -2
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomBarChart: ({ data }: any) => JSX.Element;
3
+ export default CustomBarChart;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomLineChart: () => JSX.Element;
3
+ export default CustomLineChart;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import { GoalProgressReport } from "../configs/types";
3
+ interface Props {
4
+ data: GoalProgressReport[] | null;
5
+ }
6
+ declare const ReadinessToLearn: FC<Props>;
7
+ export default ReadinessToLearn;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentByAge: () => JSX.Element;
3
+ export default StudentByAge;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentByGender: () => JSX.Element;
3
+ export default StudentByGender;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentByGrade: ({ data }: any) => JSX.Element;
3
+ export default StudentByGrade;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentWithSpecialNeeds: () => JSX.Element;
3
+ export default StudentWithSpecialNeeds;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TopLearningStrategy: ({ data }: any) => JSX.Element;
3
+ export default TopLearningStrategy;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TopSkill: () => JSX.Element;
3
+ export default TopSkill;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TotalCardItem } from "../configs/types";
3
+ declare const TotalCard: ({ icon, title, value, isUp, deviant, filter }: TotalCardItem) => JSX.Element;
4
+ export default TotalCard;
@@ -48,4 +48,17 @@ export declare type BandScore = {
48
48
  label: string;
49
49
  value: number;
50
50
  };
51
+ export declare type TotalCardItem = {
52
+ icon: any;
53
+ title: string;
54
+ value: string;
55
+ isUp: boolean;
56
+ deviant: string;
57
+ filter: string;
58
+ };
59
+ export declare type DashboardFilter = {
60
+ startDate: number;
61
+ endDate: number;
62
+ studentIds: number[];
63
+ };
51
64
  export {};
@@ -1,10 +1,15 @@
1
- import { LoginCountingReport, QuantityReport, GoalProgressReport, PerceivedImpactReport, GradeReport } from "../configs/types";
1
+ /// <reference types="react" />
2
+ import { DashboardFilter } from "../configs/types";
2
3
  declare const useDashboard: () => {
3
- loginCounting: LoginCountingReport[] | null;
4
- quantity: QuantityReport | null;
5
- goalProgress: GoalProgressReport[] | null;
6
- highImpact: any;
7
- perceivedImpact: PerceivedImpactReport[] | null;
8
- grade: GradeReport | null;
4
+ setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
5
+ filter: DashboardFilter;
6
+ listTotalTime: any;
7
+ readinessToLearning: any;
8
+ topLearningStrategies: any;
9
+ studentByGrade: undefined;
10
+ chartOneToOneData: undefined;
11
+ chartClassReflection: undefined;
12
+ chartConference: undefined;
13
+ learningProgress: undefined;
9
14
  };
10
15
  export default useDashboard;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ISwitchAssistantModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<ISwitchAssistantModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentAssistantItem } from "../utils/type.interface";
3
+ declare const useSwitchAssistant: () => {
4
+ userList: IStudentAssistantItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ userChoiced: IStudentAssistantItem;
10
+ options: IOptions[];
11
+ setAssistantChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
12
+ assistantChangeId: string;
13
+ removeData: (teacherUserId: string, studentId: number) => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (userChoiced: IStudentAssistantItem) => void;
16
+ };
17
+ export default useSwitchAssistant;
@@ -0,0 +1,8 @@
1
+ export declare const INITIAL_USER_CHOICE: {
2
+ id: number;
3
+ emailStudent: string;
4
+ studentName: string;
5
+ assistantId: string;
6
+ emailAssistant: string;
7
+ assistantName: string;
8
+ };
@@ -0,0 +1,36 @@
1
+ export interface IOptions {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export declare type USER_CHOICE = {
6
+ id: string;
7
+ studentName: string;
8
+ emailStudent: string;
9
+ assistantId: string;
10
+ emailAssistant: string;
11
+ assistantName: string;
12
+ };
13
+ export interface ISwitchAssistantModal {
14
+ header: string;
15
+ removeData: (teacherUserId: string, studentId: number | string) => Promise<void>;
16
+ resetData: () => void;
17
+ userChoiced: IStudentAssistantItem;
18
+ options: IOptions[];
19
+ assistantChangeId: string;
20
+ setAssistantChangeId: (value: any) => void;
21
+ }
22
+ export interface IStudentAssistantItem {
23
+ id: number;
24
+ emailStudent: string;
25
+ studentName: string;
26
+ assistantId?: string;
27
+ emailAssistant?: string;
28
+ assistantName?: string;
29
+ }
30
+ export declare type TypeStudentAssistantData = {
31
+ currentPage: number;
32
+ pageSize: number;
33
+ totalItems: number;
34
+ totalPages: number;
35
+ items: IStudentAssistantItem[];
36
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwitchAssistantList: () => JSX.Element;
3
+ export default SwitchAssistantList;
@@ -6,3 +6,8 @@ export declare const getHighImpactLearningStrategyReport: () => Promise<import("
6
6
  export declare const getTimeInSessionReport: () => Promise<import("axios").AxiosResponse<any>>;
7
7
  export declare const getPerceivedImpactReport: () => Promise<import("axios").AxiosResponse<any>>;
8
8
  export declare const getGradeReport: () => Promise<import("axios").AxiosResponse<any>>;
9
+ export declare const getAllTotalTime: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
10
+ export declare const getReadinessToLearning: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
11
+ export declare const getTopLearningStrategies: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
12
+ export declare const getStudentByGrade: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
13
+ export declare const getOverviewQuestionChart: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,5 @@
1
+ import { TypeStudentAssistantData } from "../containers/SwitchAssistant/utils/type.interface";
2
+ import { IStudentWidthAssistant } from "../utils/serviceType.interface";
3
+ export declare const getStudentAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentAssistantData>>;
4
+ export declare const getAssistant: () => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const changeAssistantOfStudent: (id: number, assistantUserId: string) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,8 @@
1
+ export interface IStudentWidthAssistant {
2
+ currentPage?: number;
3
+ name?: string;
4
+ softBy?: string;
5
+ softOrder?: string;
6
+ searchString?: string;
7
+ pageSize?: number;
8
+ }
package/dist/index.css CHANGED
@@ -134,3 +134,109 @@ h6._3zOGW {
134
134
  ._3Thdy {
135
135
  max-width: 200px;
136
136
  }
137
+
138
+ ._1WLBo {
139
+ font-size: 20px;
140
+ }
141
+
142
+ ._10Pgm {
143
+ /* background: #E5E5E5; */
144
+ }
145
+
146
+ ._3jPb_ {
147
+ font-size: 30px;
148
+ }
149
+
150
+ ._1c43y {
151
+ color: #fc4747;
152
+ }
153
+
154
+ ._F1afY {
155
+ color: #0dc16a;
156
+ }
157
+
158
+ ._1kqUQ {
159
+ background: #f6f6f6;
160
+ }
161
+
162
+ ._10hbz {
163
+ font-weight: 400;
164
+ font-size: 14px;
165
+ line-height: 16px;
166
+ }
167
+
168
+ ._2rmw_ {
169
+ font-weight: 700;
170
+ font-size: 32px;
171
+ line-height: 100%;
172
+ margin: 0;
173
+ }
174
+
175
+ ._1tdQu {
176
+ font-weight: 600;
177
+ font-size: 12px;
178
+ line-height: 14px;
179
+ }
180
+
181
+ ._2BvFN {
182
+ font-weight: 400;
183
+ font-size: 10px;
184
+ line-height: 12px;
185
+ }
186
+
187
+ ._10hbz,
188
+ ._2rmw_,
189
+ ._1tdQu,
190
+ ._2BvFN {
191
+ font-family: "Roboto", sans-serif;
192
+ }
193
+
194
+ ._2TBTW {
195
+ margin: 10px 0;
196
+ }
197
+
198
+ ._3XXJp {
199
+ width: 35px;
200
+ color: #0D9994;
201
+ text-align: center;
202
+ }
203
+
204
+ ._LCuWQ {
205
+ background: #CEF7F5;
206
+ color: #0D9994;
207
+ border-radius: 8px;
208
+ }
209
+
210
+ ._3x9D7 {
211
+ color: #1DA370;
212
+ }
213
+
214
+ ._2In63 {
215
+ border: none;
216
+ background: #fff;
217
+ }
218
+
219
+ ._1Vhg_ {
220
+ display: flex;
221
+ justify-content: space-between;
222
+ width: 100%;
223
+ }
224
+
225
+ ._6yLxd {
226
+ border: 1px solid;
227
+ padding: 7px 8px;
228
+ border-radius: 5px;
229
+ }
230
+
231
+ ._6yLxd:first-child {
232
+ margin-right: 15px;
233
+ }
234
+
235
+ ._h74SO {
236
+ display: flex;
237
+ }
238
+
239
+ ._3e2pi {
240
+ min-width: 250px;
241
+ max-width: 50%;
242
+ }