mario-education 2.3.4 → 2.4.2

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,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { Option } from "../../Classes/components/TeacherSelector";
2
3
  declare enum CSVType {
3
4
  Students = "students",
4
5
  Subjects = "subjects",
@@ -26,5 +27,13 @@ declare const useCSVImport: () => {
26
27
  setDataFile: import("react").Dispatch<any>;
27
28
  setArrStudent: import("react").Dispatch<any>;
28
29
  arrStudent: any;
30
+ isCheckDomainIBS: boolean;
31
+ onChangeTeacher: (teacher: Option) => void;
32
+ uploadByTeacherId: (file: any) => Promise<void>;
33
+ setDataFileImportStudent: (dataFile: any) => void;
34
+ onUpLoadStudentFile: () => void;
35
+ defaultTeacher: number;
36
+ fileName: string;
37
+ onStudentSubmit: () => void;
29
38
  };
30
39
  export default useCSVImport;
@@ -3,5 +3,9 @@ interface Props {
3
3
  defaultValue: number | null | undefined;
4
4
  onChange: Function;
5
5
  }
6
+ export interface Option {
7
+ label: string;
8
+ value: number;
9
+ }
6
10
  declare const TeacherSelector: FC<Props>;
7
11
  export default TeacherSelector;
@@ -2,6 +2,7 @@
2
2
  declare type StrategyDetail = {
3
3
  name: string;
4
4
  description?: string;
5
+ bestfit?: string;
5
6
  };
6
7
  declare const useStrategyDetail: () => {
7
8
  id: number;
@@ -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,38 @@
1
+ /// <reference types="react" />
2
+ export declare type USER_CHOICE = {
3
+ id: string;
4
+ studentName: string;
5
+ emailStudent: string;
6
+ teacherUserId: string;
7
+ emailTeacher: string;
8
+ teacherName: string;
9
+ };
10
+ export declare const initialUserChoice: {
11
+ id: string;
12
+ studentName: string;
13
+ emailStudent: string;
14
+ teacherUserId: string;
15
+ emailTeacher: string;
16
+ teacherName: string;
17
+ };
18
+ declare const useSwitchTeacher: () => {
19
+ userList: USER_CHOICE[];
20
+ totalItems: number;
21
+ filters: import("mario-core").Filter;
22
+ getData: () => Promise<void>;
23
+ changeFilters: (updatedFilters: any) => void;
24
+ modal: import("react").MutableRefObject<any>;
25
+ openModal: () => void;
26
+ teacherList: never[];
27
+ options: {
28
+ label: string;
29
+ value: any;
30
+ }[];
31
+ setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
32
+ userChoiced: USER_CHOICE;
33
+ setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
34
+ teacherChangeId: string;
35
+ removeData: (teacherUserId: number, studentId: number) => Promise<void>;
36
+ resetData: () => void;
37
+ };
38
+ export default useSwitchTeacher;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwitchTeacherList: () => JSX.Element;
3
+ export default SwitchTeacherList;
@@ -1,3 +1,4 @@
1
1
  export declare const importCSV: (formData: FormData, subFolder: string) => Promise<import("axios").AxiosResponse<any>>;
2
2
  export declare const importStudentCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
3
3
  export declare const importClassReflectionCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
4
+ export declare const importStudentByTeacher: (teacherId: number, formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,3 +1,5 @@
1
1
  export declare const get: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
2
2
  export declare const remove: (id: string, userChangeId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
3
3
  export declare const getTeacher: () => Promise<import("axios").AxiosResponse<any>>;
4
+ export declare const getStudentAll: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const changeTeacherOfStudent: (id: number, teacherUserId: any) => Promise<import("axios").AxiosResponse<any>>;
package/dist/index.css CHANGED
@@ -1,136 +1,136 @@
1
- /* add css module styles here (optional) */
2
- :root {
3
- --custom-gray: #ccc;
4
- --custom-blue: #0090e3;
5
- }
6
-
7
-
8
- ._3ybTi {
9
- margin: 2em;
10
- padding: 0.5em;
11
- border: 2px solid #000;
12
- font-size: 2em;
13
- text-align: center;
14
- }
15
- ._1H0W8 {
16
- height: 426px !important;
17
- }
18
- tbody._b-AXV {
19
- height: 300px;
20
- display: block;
21
- width: 370px;
22
- overflow: auto;
23
- border: 2px solid #ced4da;
24
- margin-top: 15px;
25
- }
26
- tbody._b-AXV::-webkit-scrollbar {
27
- width: 10px;
28
- background-color: #ced4da;
29
- }
30
- tbody._b-AXV tr td {
31
- display: block;
32
- width: 100%;
33
- border: none;
34
- }
35
- tbody._b-AXV tr {
36
- overflow: hidden;
37
- text-overflow: ellipsis;
38
- display: -webkit-box;
39
- -webkit-line-clamp: 2;
40
- -webkit-box-orient: vertical;
41
- }
42
-
43
- ._1fgfO {
44
- width: 40px;
45
- height: 40px;
46
- }
47
-
48
- ._2YR4l {
49
- width: 40px;
50
- height: 20px;
51
- border-radius: 4px;
52
- box-shadow: 1px 1px rgba(0, 0, 0, 0.4);
53
- }
54
-
55
- ._114IY {
56
- max-height: 600px;
57
- }
58
-
59
- ._qE7J0 {
60
- width: 70px;
61
- }
62
-
63
- ._2BV3o {
64
- width: 300px;
65
- font-size: 1.5rem;
66
- font-weight: 600;
67
- }
68
-
69
- ._1P4F2 {
70
- height: 40px;
71
- }
72
-
73
- ._1SRmg {
74
- font-weight: 500;
75
- }
76
- ._ZDINp img {
77
- width: 100px;
78
- height: 100px;
79
- border-radius: 50%;
80
- }
81
-
82
- ._Kzkzd > i {
83
- color: #f9e517;
84
- font-size: 25px;
85
- margin-right: 10px;
86
- }
87
-
88
- ._Q0sF1 {
89
- max-height: calc(100vh - 200px);
90
- overflow-y: auto;
91
- margin-bottom: 8px;
92
- }
93
-
94
- ._gu_yD {
95
- font-weight: 550;
96
- padding: 8px 16px;
97
- border: 1px solid var(--custom-gray);
98
- border-radius: 4px;
99
- margin-bottom: 8px;
100
- background-color: white;
101
- }
102
-
103
- ._33tYy {
104
- background-color: var(--custom-blue);
105
- color: white
106
- }
107
- ._3DVMZ {
108
- display: flex;
109
- flex: 0 0 17%;
110
- flex-direction: column;
111
- margin-right: 2rem;
112
- }
113
- ._3DVMZ > div {
114
- border: 1px solid #eaeaea;
115
- }
116
- h6._3zOGW {
117
- text-decoration: underline;
118
- font-size: 13px;
119
- cursor: pointer;
120
- }
121
- ._3DQwX {
122
- padding: 10px 0px 20px;
123
- border-bottom: 1px solid #cdcdcd;
124
- }
1
+ /* add css module styles here (optional) */
2
+ :root {
3
+ --custom-gray: #ccc;
4
+ --custom-blue: #0090e3;
5
+ }
6
+
7
+
8
+ ._3ybTi {
9
+ margin: 2em;
10
+ padding: 0.5em;
11
+ border: 2px solid #000;
12
+ font-size: 2em;
13
+ text-align: center;
14
+ }
15
+ ._1H0W8 {
16
+ height: 426px !important;
17
+ }
18
+ tbody._b-AXV {
19
+ height: 300px;
20
+ display: block;
21
+ width: 370px;
22
+ overflow: auto;
23
+ border: 2px solid #ced4da;
24
+ margin-top: 15px;
25
+ }
26
+ tbody._b-AXV::-webkit-scrollbar {
27
+ width: 10px;
28
+ background-color: #ced4da;
29
+ }
30
+ tbody._b-AXV tr td {
31
+ display: block;
32
+ width: 100%;
33
+ border: none;
34
+ }
35
+ tbody._b-AXV tr {
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ display: -webkit-box;
39
+ -webkit-line-clamp: 2;
40
+ -webkit-box-orient: vertical;
41
+ }
42
+
43
+ ._1fgfO {
44
+ width: 40px;
45
+ height: 40px;
46
+ }
47
+
48
+ ._2YR4l {
49
+ width: 40px;
50
+ height: 20px;
51
+ border-radius: 4px;
52
+ box-shadow: 1px 1px rgba(0, 0, 0, 0.4);
53
+ }
54
+
55
+ ._114IY {
56
+ max-height: 600px;
57
+ }
125
58
 
126
- ._1Jgr2 {
127
- border: 1px solid grey;
128
- padding: 16px;
129
- min-height: 450px;
130
- display: flex;
131
- flex-direction: column;
132
- }
133
-
134
- ._3Thdy {
135
- max-width: 200px;
136
- }
59
+ ._qE7J0 {
60
+ width: 70px;
61
+ }
62
+
63
+ ._2BV3o {
64
+ width: 300px;
65
+ font-size: 1.5rem;
66
+ font-weight: 600;
67
+ }
68
+
69
+ ._1P4F2 {
70
+ height: 40px;
71
+ }
72
+
73
+ ._1SRmg {
74
+ font-weight: 500;
75
+ }
76
+ ._ZDINp img {
77
+ width: 100px;
78
+ height: 100px;
79
+ border-radius: 50%;
80
+ }
81
+
82
+ ._Kzkzd > i {
83
+ color: #f9e517;
84
+ font-size: 25px;
85
+ margin-right: 10px;
86
+ }
87
+
88
+ ._Q0sF1 {
89
+ max-height: calc(100vh - 200px);
90
+ overflow-y: auto;
91
+ margin-bottom: 8px;
92
+ }
93
+
94
+ ._gu_yD {
95
+ font-weight: 550;
96
+ padding: 8px 16px;
97
+ border: 1px solid var(--custom-gray);
98
+ border-radius: 4px;
99
+ margin-bottom: 8px;
100
+ background-color: white;
101
+ }
102
+
103
+ ._33tYy {
104
+ background-color: var(--custom-blue);
105
+ color: white
106
+ }
107
+ ._3DVMZ {
108
+ display: flex;
109
+ flex: 0 0 17%;
110
+ flex-direction: column;
111
+ margin-right: 2rem;
112
+ }
113
+ ._3DVMZ > div {
114
+ border: 1px solid #eaeaea;
115
+ }
116
+ h6._3zOGW {
117
+ text-decoration: underline;
118
+ font-size: 13px;
119
+ cursor: pointer;
120
+ }
121
+ ._3DQwX {
122
+ padding: 10px 0px 20px;
123
+ border-bottom: 1px solid #cdcdcd;
124
+ }
125
+
126
+ ._1Jgr2 {
127
+ border: 1px solid grey;
128
+ padding: 16px;
129
+ min-height: 450px;
130
+ display: flex;
131
+ flex-direction: column;
132
+ }
133
+
134
+ ._3Thdy {
135
+ max-width: 200px;
136
+ }