mario-education 2.4.6 → 2.4.9-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 (40) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/components/Select/InputSelector.d.ts +13 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/components/Shapes/Circle/Circle.d.ts +11 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/components/Shapes/Circle/ItemCircle.d.ts +7 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/components/Shapes/Circle/utils.d.ts +5 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomBarChart.d.ts +3 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomChartCircle.d.ts +4 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomLineChart.d.ts +3 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +7 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAge.d.ts +3 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGender.d.ts +3 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGrade.d.ts +3 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentWithSpecialNeeds.d.ts +3 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopLearningStrategy.d.ts +3 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopSkill.d.ts +3 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TotalCard.d.ts +4 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +13 -0
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +48 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +25 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +21 -7
  20. package/dist/MarioFramework.Education/ClientApp/src/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +1 -0
  21. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/components/SwitchAssistantModal.d.ts +4 -0
  22. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/hooks/useSwitchAssistant.d.ts +17 -0
  23. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/utils/constants.d.ts +8 -0
  24. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/utils/type.interface.d.ts +36 -0
  25. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/views/SwitchAssistantList.d.ts +3 -0
  26. package/dist/MarioFramework.Education/ClientApp/src/containers/WelcomeEmailResend/hook/useGetUserList.d.ts +12 -0
  27. package/dist/MarioFramework.Education/ClientApp/src/containers/WelcomeEmailResend/hook/useResendMail.d.ts +5 -0
  28. package/dist/MarioFramework.Education/ClientApp/src/containers/WelcomeEmailResend/utils/constants.d.ts +25 -0
  29. package/dist/MarioFramework.Education/ClientApp/src/containers/WelcomeEmailResend/views/WelcomeEmailResend.d.ts +3 -0
  30. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +11 -0
  31. package/dist/MarioFramework.Education/ClientApp/src/services/userDeletedService.d.ts +1 -0
  32. package/dist/MarioFramework.Education/ClientApp/src/services/userService.d.ts +6 -0
  33. package/dist/MarioFramework.Education/ClientApp/src/services/welcomeEmailResendService.d.ts +3 -0
  34. package/dist/MarioFramework.Education/ClientApp/src/utils/serviceType.interface.d.ts +8 -0
  35. package/dist/index.css +316 -1
  36. package/dist/index.js +2167 -552
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.modern.js +2174 -559
  39. package/dist/index.modern.js.map +1 -1
  40. package/package.json +2 -2
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ export interface IOptionSelector {
3
+ label: string;
4
+ value: number;
5
+ }
6
+ interface IProps {
7
+ onChange: any;
8
+ placeholder: string;
9
+ options: IOptionSelector[];
10
+ isMultiSelect?: boolean;
11
+ }
12
+ declare const InputSelector: FC<IProps>;
13
+ export default InputSelector;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ interface ICircle {
3
+ title: string;
4
+ quality: number;
5
+ background: string;
6
+ width: number;
7
+ height: number;
8
+ key?: number;
9
+ }
10
+ declare const Circle: FC<ICircle>;
11
+ export default Circle;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface IItemCircle {
3
+ background: string;
4
+ title: string;
5
+ }
6
+ declare const ItemCircle: FC<IItemCircle>;
7
+ export default ItemCircle;
@@ -0,0 +1,5 @@
1
+ export declare const cssConfig: (width: number, height: number, background: string) => {
2
+ width: number;
3
+ height: number;
4
+ background: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomBarChart: ({ data, question, chartName }: any) => JSX.Element;
3
+ export default CustomBarChart;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { ICircleChart } from "../configs/types";
3
+ declare const CircleChart: FC<ICircleChart>;
4
+ export default CircleChart;
@@ -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: ({ data }: any) => JSX.Element;
3
+ export default StudentByAge;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentByGender: ({ data }: any) => 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: ({ data }: any) => 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, }: TotalCardItem) => JSX.Element;
4
+ export default TotalCard;
@@ -1 +1,14 @@
1
1
  export declare const colors: string[];
2
+ export declare const INITIAL_BEST_FRIENDS: {
3
+ friends: number;
4
+ couldBeFriends: number;
5
+ supportive: number;
6
+ notSpeakingAtTheMoment: number;
7
+ };
8
+ export declare const INITIAL_ACTIVITY_FRIENDS: {
9
+ like: number;
10
+ love: number;
11
+ interested: number;
12
+ curious: number;
13
+ };
14
+ export declare const LEARNING_STRATEGY_CHART_COLORS: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type LoginCountingReport = {
2
3
  date: string;
3
4
  studentLoginCount: number;
@@ -48,4 +49,51 @@ export declare type BandScore = {
48
49
  label: string;
49
50
  value: number;
50
51
  };
52
+ export declare type TotalCardItem = {
53
+ icon: any;
54
+ title: string;
55
+ value: string;
56
+ isUp: boolean;
57
+ deviant: string;
58
+ filter: string;
59
+ };
60
+ export declare type DashboardFilter = {
61
+ startDate: number;
62
+ endDate: number;
63
+ studentIds: number[];
64
+ gender?: number[];
65
+ grade?: string[];
66
+ };
67
+ export interface ICircleChartItem {
68
+ id: number;
69
+ name: string;
70
+ number: number;
71
+ background: string;
72
+ width: number;
73
+ height: number;
74
+ }
75
+ export interface ICircleChart {
76
+ circleChartItems: ICircleChartItem[];
77
+ }
78
+ export interface IsyntheticFriendCircle {
79
+ bestFriends: number;
80
+ friends: number;
81
+ couldBeFriends: number;
82
+ supportive: number;
83
+ notSpeakingAtTheMoment: number;
84
+ }
85
+ export interface IActivityCircle {
86
+ like: number;
87
+ love: number;
88
+ interested: number;
89
+ curious: number;
90
+ }
91
+ export interface IChartComponent {
92
+ label: string;
93
+ children: JSX.Element | undefined;
94
+ }
95
+ export declare enum LegalGenderType {
96
+ Male = 0,
97
+ Female = 1
98
+ }
51
99
  export {};
@@ -1 +1,26 @@
1
+ import { ApexOptions } from "apexcharts";
2
+ import { IOptionSelector } from "../../../components/Select/InputSelector";
3
+ import { IActivityCircle, IsyntheticFriendCircle, LegalGenderType } from "./types";
1
4
  export declare const getColors: (length: number) => string[];
5
+ export declare const friendCircleItems: ({ bestFriends, friends, couldBeFriends, supportive }: IsyntheticFriendCircle) => {
6
+ id: number;
7
+ name: string;
8
+ number: number;
9
+ background: string;
10
+ width: number;
11
+ height: number;
12
+ }[];
13
+ export declare const activityCircleItems: ({ like, love, interested, curious }: IActivityCircle) => {
14
+ id: number;
15
+ name: string;
16
+ number: number;
17
+ background: string;
18
+ width: number;
19
+ height: number;
20
+ }[];
21
+ export declare const gradeOptions: (grades: string[]) => IOptionSelector[];
22
+ export declare const genderOptions: {
23
+ value: LegalGenderType;
24
+ label: string;
25
+ }[];
26
+ export declare const learningStrategyChartOptions: (labelNames: string[]) => ApexOptions;
@@ -1,10 +1,24 @@
1
- import { LoginCountingReport, QuantityReport, GoalProgressReport, PerceivedImpactReport, GradeReport } from "../configs/types";
1
+ /// <reference types="react" />
2
+ import { DashboardFilter, IActivityCircle, IsyntheticFriendCircle } 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: never[];
11
+ chartClassReflection: never[];
12
+ chartConference: never[];
13
+ learningProgress: never[];
14
+ friendCircles: IsyntheticFriendCircle | undefined;
15
+ activityCircles: IActivityCircle | undefined;
16
+ studentBySpecialNeed: undefined;
17
+ studentByAge: undefined;
18
+ studentByGender: undefined;
19
+ grades: string[];
20
+ safety: never[];
21
+ topSkill: never[];
22
+ getConvertMinuteToHour: (timeSecond: any) => string;
9
23
  };
10
24
  export default useDashboard;
@@ -3,6 +3,7 @@ declare type StrategyDetail = {
3
3
  name: string;
4
4
  description?: string;
5
5
  bestfit?: string;
6
+ questionText?: string;
6
7
  };
7
8
  declare const useStrategyDetail: () => {
8
9
  id: number;
@@ -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;
@@ -0,0 +1,12 @@
1
+ import { FilterTypes } from "../utils/constants";
2
+ declare const useGetUserList: () => {
3
+ totalItem: number;
4
+ userList: never[];
5
+ filters: FilterTypes;
6
+ changeFilters: (updatedFilters: any) => void;
7
+ handleSelectAll: () => void;
8
+ handleClickCheck: (e: any) => void;
9
+ isCheckAll: boolean;
10
+ isCheck: any;
11
+ };
12
+ export default useGetUserList;
@@ -0,0 +1,5 @@
1
+ declare const useResendMail: () => {
2
+ handleSendMultiUsers: (listUserIds: any) => void;
3
+ handleSendSingleUser: (userId: string) => void;
4
+ };
5
+ export default useResendMail;
@@ -0,0 +1,25 @@
1
+ export declare const DEFAULT_PAGE_SIZE_VALUES: {
2
+ label: string;
3
+ value: number;
4
+ }[];
5
+ export declare const DEFAULT_PAGE_SIZE: {
6
+ label: string;
7
+ value: number;
8
+ };
9
+ export declare const DEFAULT_FILTER: FilterTypes;
10
+ export declare enum MediaType {
11
+ IMAGE = 0,
12
+ VIDEO = 1,
13
+ AUDIO = 2,
14
+ DOC = 3,
15
+ UNKNOW = 4
16
+ }
17
+ export interface FilterTypes {
18
+ currentPage: number;
19
+ pageSize: number;
20
+ searchString: string;
21
+ sortBy: string;
22
+ sortOrder: string;
23
+ name: string;
24
+ queryTypes?: MediaType[];
25
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const WelcomeEmailResend: () => JSX.Element;
3
+ export default WelcomeEmailResend;
@@ -6,3 +6,14 @@ 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>>;
14
+ export declare const getFriendCircleItems: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
15
+ export declare const getActivityCircleItems: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
16
+ export declare const getStudentBySpecialNeed: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
17
+ export declare const getStudentByAge: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
18
+ export declare const getStudentByGender: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
19
+ export declare const getGrades: () => Promise<import("axios").AxiosResponse<any>>;
@@ -3,3 +3,4 @@ export declare const remove: (id: string, userChangeId?: string | undefined) =>
3
3
  export declare const getTeacher: () => Promise<import("axios").AxiosResponse<any>>;
4
4
  export declare const getStudentAll: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
5
5
  export declare const changeTeacherOfStudent: (id: number, teacherUserId: any) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const getTeachersByStudentId: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,6 @@
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 getAssistantByStudentId: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const changeAssistantOfStudent: (id: number, assistantUserId: string) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,3 @@
1
+ import { FilterTypes } from "../containers/WelcomeEmailResend/utils/constants";
2
+ export declare const getUserList: (filter: FilterTypes) => Promise<import("axios").AxiosResponse<any>>;
3
+ export declare const postRequestResendMail: (data: any) => 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
+ }