mario-education 2.4.26-admin → 2.4.28-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.
- package/dist/MarioFramework.Education/ClientApp/src/components/Questions/QuestionSelector.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAge.d.ts +2 -6
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGrade.d.ts +3 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopLearningStrategy.d.ts +3 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TotalCard.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +0 -26
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +4 -89
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +2 -94
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +19 -20
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/questionDetailSchema.d.ts +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplate/configs/validationSchema.d.ts +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplate/hooks/useSessionTemplateDetail.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassDetail.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/components/TemplateCateModal.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +35 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/views/TemplateSurveyList.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +0 -1
- package/dist/MarioFramework.Education/ClientApp/src/services/questionCategoryService.d.ts +5 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/utils/serviceType.interface.d.ts +0 -15
- package/dist/index.css +124 -373
- package/dist/index.js +6089 -12079
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6091 -12081
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/components/Select/SelectFilter.d.ts +0 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/AreaChart.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarAndAreaChart.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarChart.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BubbleChartCustom.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CheckboxCustom.d.ts +0 -12
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +0 -18
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomPieChart.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +0 -12
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/PlusButton.d.ts +0 -6
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAgeAndGender.d.ts +0 -8
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +0 -8
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +0 -32
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/components/DestinationModal.d.ts +0 -13
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/hooks/useDestination.d.ts +0 -18
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/constant.d.ts +0 -11
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/type.interface.d.ts +0 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/ultis.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/views/Destinations.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/services/designationService.d.ts +0 -5
- package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mario-education",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.28-beta",
|
|
4
4
|
"description": "Contains education components && functions for BRSS Mario project",
|
|
5
5
|
"author": "brss",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"axios": "^0.21.1",
|
|
81
81
|
"date-fns": "^2.19.0",
|
|
82
82
|
"formik": "^2.2.6",
|
|
83
|
-
"mario-core": "^2.9.
|
|
83
|
+
"mario-core": "^2.9.34-beta",
|
|
84
84
|
"react-apexcharts": "^1.3.9",
|
|
85
85
|
"react-datepicker": "^3.6.0",
|
|
86
86
|
"react-icons": "^4.2.0",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
|
|
3
|
-
declare const SelectFilter: ({ teacherId, studentUserId, studentId, teacherUserId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters }: PROPS_FILTERS_COMPONENT) => JSX.Element;
|
|
4
|
-
export default SelectFilter;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
interface IProps {
|
|
3
|
-
background?: string;
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
isActive?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
props?: any;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
}
|
|
11
|
-
declare const CheckboxCustom: FC<IProps>;
|
|
12
|
-
export default CheckboxCustom;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IOverviewQuestionChoice } from "../configs/types";
|
|
3
|
-
export declare enum TYPECHART {
|
|
4
|
-
AREA = 0,
|
|
5
|
-
BAR = 1,
|
|
6
|
-
BOTH = 2
|
|
7
|
-
}
|
|
8
|
-
export interface IProps {
|
|
9
|
-
data: IOverviewQuestionChoice[];
|
|
10
|
-
id: string;
|
|
11
|
-
typeChart?: TYPECHART;
|
|
12
|
-
}
|
|
13
|
-
export interface ISeries {
|
|
14
|
-
name: string;
|
|
15
|
-
data: number[];
|
|
16
|
-
}
|
|
17
|
-
declare const _default: React.NamedExoticComponent<IProps>;
|
|
18
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { TYPECHART } from "../ColumnChartAndPercent";
|
|
3
|
-
interface IProps {
|
|
4
|
-
title: string;
|
|
5
|
-
onToggle: () => void;
|
|
6
|
-
isShowChangeChart?: boolean;
|
|
7
|
-
typeChart?: TYPECHART;
|
|
8
|
-
onChangeChart: (type: TYPECHART) => void;
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const HeaderChart: FC<IProps>;
|
|
12
|
-
export default HeaderChart;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IStudentByAge, IStudentByGender } from "../configs/types";
|
|
3
|
-
interface IProps {
|
|
4
|
-
studentByAgeData: IStudentByAge;
|
|
5
|
-
studentByGenderData: IStudentByGender;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.NamedExoticComponent<IProps>;
|
|
8
|
-
export default _default;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TYPECHART } from "../components/ColumnChartAndPercent";
|
|
2
|
-
declare const useBehavior: () => {
|
|
3
|
-
chartIsOpened: boolean[];
|
|
4
|
-
onToggle: (idx: number) => void;
|
|
5
|
-
onChangeChart: (idx: number, type: TYPECHART) => void;
|
|
6
|
-
typeChartList: TYPECHART[];
|
|
7
|
-
};
|
|
8
|
-
export default useBehavior;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
|
|
3
|
-
import { TYPECHART } from "../components/ColumnChartAndPercent";
|
|
4
|
-
declare const useChartDatas: () => {
|
|
5
|
-
chartDashBoards: {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
children: (_: TYPECHART) => JSX.Element;
|
|
9
|
-
isShowChangeChart: boolean;
|
|
10
|
-
}[];
|
|
11
|
-
user: any;
|
|
12
|
-
filter: import("../configs/types").DashboardFilter;
|
|
13
|
-
LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
|
|
14
|
-
LIST_FILTERS_RIGHT: PROPS_FILTERS_COMPONENT[];
|
|
15
|
-
totalCardData: ({
|
|
16
|
-
icon: string;
|
|
17
|
-
title: string;
|
|
18
|
-
value: number;
|
|
19
|
-
isUp: boolean;
|
|
20
|
-
deviant: string;
|
|
21
|
-
filter: string;
|
|
22
|
-
} | {
|
|
23
|
-
icon: string;
|
|
24
|
-
title: string;
|
|
25
|
-
value: string;
|
|
26
|
-
isUp: boolean;
|
|
27
|
-
deviant: string;
|
|
28
|
-
filter: string;
|
|
29
|
-
})[];
|
|
30
|
-
onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
|
|
31
|
-
};
|
|
32
|
-
export default useChartDatas;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { IDesignation } from "../../../utils/serviceType.interface";
|
|
3
|
-
import { IDestinationDetail } from "../utils/type.interface";
|
|
4
|
-
export interface IProps {
|
|
5
|
-
ref: any;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
isEdit?: boolean;
|
|
8
|
-
onConfirm: (values: IDestinationDetail) => void;
|
|
9
|
-
onCancel: () => void;
|
|
10
|
-
value: IDesignation;
|
|
11
|
-
}
|
|
12
|
-
declare const DestinationModal: FC<IProps>;
|
|
13
|
-
export default DestinationModal;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IDesignation, IDesignationReponse, IFilter } from "../../../utils/serviceType.interface";
|
|
2
|
-
declare const useDestination: () => {
|
|
3
|
-
currentDesignationId: number;
|
|
4
|
-
designations: IDesignationReponse;
|
|
5
|
-
isOpenModal: boolean;
|
|
6
|
-
openModalCreate: () => void;
|
|
7
|
-
getDesignations: () => Promise<void>;
|
|
8
|
-
openModalEdit: (id: number) => void;
|
|
9
|
-
openModalRemove: (id: number) => void;
|
|
10
|
-
addDestination: (name: string) => Promise<void>;
|
|
11
|
-
deleteDestination: (id: number) => Promise<void>;
|
|
12
|
-
verifyDesignation: (id: number, name: string) => Promise<void>;
|
|
13
|
-
onCancelModal: () => void;
|
|
14
|
-
onConfirm: (value: IDesignation) => Promise<void>;
|
|
15
|
-
filter: IFilter;
|
|
16
|
-
changeFilters: (filters: IFilter) => void;
|
|
17
|
-
};
|
|
18
|
-
export default useDestination;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/ultis.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IDesignation } from "../../../utils/serviceType.interface";
|
|
2
|
-
export declare const schemaDestination: import("yup/lib/object").OptionalObjectSchema<{
|
|
3
|
-
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
|
-
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
5
|
-
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
6
|
-
}>>;
|
|
7
|
-
export declare const initialEditDesignation: (designations: IDesignation[], id: number) => import("./type.interface").IDestinationDetail;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IDesignation, IFilter } from "../utils/serviceType.interface";
|
|
2
|
-
export declare const getDesignationsRequest: (filter: IFilter) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
-
export declare const createDesignationRequest: (data: IDesignation) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
-
export declare const deleteDesignationRequest: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
-
export declare const verifyDesignationRequest: (id: number, data: IDesignation) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { DashboardFilter } from "../containers/Dashboard/configs/types";
|
|
2
|
-
export interface Student {
|
|
3
|
-
studentId: number;
|
|
4
|
-
email: string;
|
|
5
|
-
fullName: string;
|
|
6
|
-
id: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
value?: string;
|
|
9
|
-
gender?: string;
|
|
10
|
-
mtss?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IFilter {
|
|
13
|
-
startDate?: number;
|
|
14
|
-
endDate?: number;
|
|
15
|
-
gender?: number[];
|
|
16
|
-
grade?: string[];
|
|
17
|
-
bandScore?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface PROPS_FILTERS_COMPONENT {
|
|
20
|
-
teacherId?: number;
|
|
21
|
-
studentUserId?: string;
|
|
22
|
-
studentId?: number;
|
|
23
|
-
teacherUserId?: string;
|
|
24
|
-
studentDefault?: Student;
|
|
25
|
-
handleChangeLastYear?: Function;
|
|
26
|
-
filter?: DashboardFilter;
|
|
27
|
-
name: string;
|
|
28
|
-
icon: string;
|
|
29
|
-
handleChangeFilters: Function;
|
|
30
|
-
option?: any[];
|
|
31
|
-
defautl?: number;
|
|
32
|
-
onChangeFilters?: (filters: IFilter) => void;
|
|
33
|
-
}
|
|
34
|
-
export interface BAND_SCORE {
|
|
35
|
-
label: string;
|
|
36
|
-
value: number;
|
|
37
|
-
}
|
|
38
|
-
export interface GRADES {
|
|
39
|
-
label: string;
|
|
40
|
-
value: number;
|
|
41
|
-
}
|
|
42
|
-
export declare enum LegalGenderType {
|
|
43
|
-
Male = 0,
|
|
44
|
-
Female = 1
|
|
45
|
-
}
|
|
46
|
-
export interface genderOptions {
|
|
47
|
-
value: any;
|
|
48
|
-
label: string;
|
|
49
|
-
}
|
|
50
|
-
export interface LAST_YEAR {
|
|
51
|
-
label: string;
|
|
52
|
-
value: number;
|
|
53
|
-
}
|