mario-education 2.4.57-admin → 2.4.59-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 (19) 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/HeaderChart/HeaderChart.d.ts +1 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LearningStrategiesTable.d.ts +11 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +7 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +17 -2
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +6 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/components/TemplateCateModal.d.ts +3 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +35 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +9 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/views/TemplateSurveyList.d.ts +3 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/utils/{serviceType.interface.d.ts → servicetype.interface.d.ts} +0 -0
  13. package/dist/index.css +16 -1
  14. package/dist/index.js +372 -130
  15. package/dist/index.js.map +1 -1
  16. package/dist/index.modern.js +372 -130
  17. package/dist/index.modern.js.map +1 -1
  18. package/package.json +1 -3
  19. package/dist/MarioFramework.Education/ClientApp/src/components/Loading/LoadLanguage.d.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
3
2
  import "react-datepicker/dist/react-datepicker.css";
3
+ import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
4
4
  declare const SelectFilter: ({ studentUserId, studentId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters, btnStyle, filter, teacherUserId, changeCurrentTeacherUserId }: PROPS_FILTERS_COMPONENT) => JSX.Element;
5
5
  export default SelectFilter;
@@ -10,6 +10,7 @@ interface IProps {
10
10
  options?: IChartOptions[];
11
11
  contentTooltip?: string;
12
12
  index: number;
13
+ onClickOptions?: () => void;
13
14
  }
14
15
  declare const HeaderChart: FC<IProps>;
15
16
  export default HeaderChart;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ interface PropsType {
3
+ isOpen: boolean;
4
+ onClosed: () => void;
5
+ filter: any;
6
+ data: any;
7
+ getData: () => void;
8
+ changeFilter: (updatedFilter: any) => void;
9
+ }
10
+ declare const LearningStrategiesTable: ({ isOpen, onClosed, filter, data, getData, changeFilter }: PropsType) => JSX.Element;
11
+ export default LearningStrategiesTable;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import { IReadinessToLearning } from "../configs/types";
3
+ interface Props {
4
+ data: IReadinessToLearning[];
5
+ }
6
+ declare const ReadinessToLearn: FC<Props>;
7
+ export default ReadinessToLearn;
@@ -2,7 +2,15 @@ import React from "react";
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
3
  import { TYPECHART } from "../configs/types";
4
4
  declare const useChartDatas: () => {
5
- chartDashBoards: {
5
+ chartDashBoards: ({
6
+ id: string;
7
+ label: string;
8
+ children: (_: TYPECHART) => JSX.Element;
9
+ isShowChangeChart: boolean;
10
+ options: never[];
11
+ contentTooltip: string;
12
+ handleClickOpenTable: () => void;
13
+ } | {
6
14
  id: string;
7
15
  label: string;
8
16
  children: (typeChart: TYPECHART, isPDF?: boolean | undefined) => JSX.Element;
@@ -12,7 +20,8 @@ declare const useChartDatas: () => {
12
20
  value: TYPECHART;
13
21
  }[];
14
22
  contentTooltip: string;
15
- }[];
23
+ handleClickOpenTable?: undefined;
24
+ })[];
16
25
  user: any;
17
26
  filter: import("../configs/types").DashboardFilter;
18
27
  LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
@@ -55,5 +64,11 @@ declare const useChartDatas: () => {
55
64
  dataConvertedSafety: string[];
56
65
  activeColumnSafety: boolean[];
57
66
  avgSafety: number[];
67
+ learningStrategiesData: any;
68
+ openLearningStrategiesTable: boolean;
69
+ handleOpenCloseLearningStrategiesTable: () => void;
70
+ filterLearningStrategiesTable: any;
71
+ changeFiltersLearningStrategiesTable: (updatedFilter: any) => void;
72
+ getLearningStrategiesTableData: () => Promise<void>;
58
73
  };
59
74
  export default useChartDatas;
@@ -53,5 +53,11 @@ declare const useDashboard: () => {
53
53
  dataConvertedSafety: string[];
54
54
  monthsSafety: string[];
55
55
  activeColumnSafety: boolean[];
56
+ learningStrategiesData: any;
57
+ openLearningStrategiesTable: boolean;
58
+ handleOpenCloseLearningStrategiesTable: () => void;
59
+ filterLearningStrategiesTable: any;
60
+ changeFiltersLearningStrategiesTable: (updatedFilter: any) => void;
61
+ getLearningStrategiesTableData: () => Promise<void>;
56
62
  };
57
63
  export default useDashboard;
@@ -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,35 @@
1
+ /// <reference types="react" />
2
+ declare type questionCateDetail = {
3
+ name: string;
4
+ questionIds?: number[];
5
+ };
6
+ declare type TemplateQuestion = {
7
+ id: number;
8
+ text: string;
9
+ };
10
+ declare const useTemplateCateDetail: () => {
11
+ id: number;
12
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
13
+ questionCateDetail: questionCateDetail;
14
+ confirmData: (values: any, cb: any) => Promise<void>;
15
+ initValue: questionCateDetail;
16
+ reset: () => void;
17
+ edited: boolean;
18
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
19
+ setEditedTrue: () => Promise<void>;
20
+ setEditedFalse: () => Promise<void>;
21
+ categoryId: number;
22
+ setCategoryId: import("react").Dispatch<import("react").SetStateAction<number>>;
23
+ questionSelectorValue: {
24
+ id: number;
25
+ value: number;
26
+ label: string;
27
+ text: string;
28
+ } | null;
29
+ setTemporaryQuestion: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion | null>>;
30
+ addQuestion: () => void;
31
+ listQuestions: TemplateQuestion[];
32
+ setListQuestions: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion[]>>;
33
+ removeQuestion: (questionId: number) => void;
34
+ };
35
+ export default useTemplateCateDetail;
@@ -0,0 +1,9 @@
1
+ declare const useTemplateCateList: () => {
2
+ questionCateList: any;
3
+ totalItems: any;
4
+ filters: import("mario-core").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useTemplateCateList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TemplateSurveyList: FC;
3
+ export default TemplateSurveyList;
@@ -18,3 +18,4 @@ export declare const getStudentByAge: (filter: any) => Promise<import("axios").A
18
18
  export declare const getStudentByGender: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
19
19
  export declare const getGrades: (studentUserId: string) => Promise<import("axios").AxiosResponse<any>>;
20
20
  export declare const getBandScore: () => Promise<import("axios").AxiosResponse<any>>;
21
+ export declare const getLearningStrategiesTableApi: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
package/dist/index.css CHANGED
@@ -183,6 +183,17 @@ tbody._b-AXV tr {
183
183
  ._I8kqz {
184
184
  position: absolute;
185
185
  z-index: 999;
186
+ }
187
+
188
+ ._3xuSa {
189
+ display: flex;
190
+ align-items: center;
191
+ }
192
+
193
+ ._15ep6 {
194
+ display: flex;
195
+ width: 40%;
196
+ padding-bottom: 10px;
186
197
  }
187
198
  ._3DVMZ {
188
199
  display: flex;
@@ -526,7 +537,11 @@ h6._3zOGW {
526
537
  font-size: 16px;
527
538
  }
528
539
 
529
- ._g5-bn ._2htKu {
540
+ ._11Xjn {
541
+ cursor: pointer;
542
+ }
543
+
544
+ ._2vtSi ._2htKu {
530
545
  cursor: pointer;
531
546
  }
532
547