mario-education 2.4.185-level → 2.4.186-level
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/containers/Dashboard/components/OverallDonutChart.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +11 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/ImportOneRoster.d.ts +6 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/RosterConfigForm.d.ts +8 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/Rostering.d.ts +6 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useImportOneRoster.d.ts +26 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useRostering.d.ts +23 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/userRosterConfigForm.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/constants.d.ts +2 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/types.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/views/OneRoster.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/constants.d.ts +6 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/overviewFn.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useChartDatas.d.ts +9 -6
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useDashboard.d.ts +9 -8
- package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/oneRosterService.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/roster.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +6 -0
- package/dist/index.css +2191 -2187
- package/dist/index.js +337 -938
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +337 -938
- package/dist/index.modern.js.map +1 -1
- package/package.json +98 -98
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchCounselor/hooks/useSwitchAssistant.d.ts +0 -18
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/components/SwitchCounselorModal.d.ts +0 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/hooks/useSwitchCounselor.d.ts +0 -18
- /package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +0 -0
|
@@ -226,6 +226,10 @@ export declare enum FILTER_YEAR {
|
|
|
226
226
|
LAST_MONTH = 3,
|
|
227
227
|
LAST_DAY = 4
|
|
228
228
|
}
|
|
229
|
+
export declare enum FILTER_SHOW_BY {
|
|
230
|
+
MONTH = "Month",
|
|
231
|
+
WEEK = "Week"
|
|
232
|
+
}
|
|
229
233
|
export interface IfilterYear {
|
|
230
234
|
label: string;
|
|
231
235
|
value: FILTER_YEAR;
|
|
@@ -236,6 +240,10 @@ export interface ICalenDarLabelBox {
|
|
|
236
240
|
value: FILTER_YEAR;
|
|
237
241
|
label: string;
|
|
238
242
|
}
|
|
243
|
+
export interface IShowByLabelBox {
|
|
244
|
+
value: FILTER_SHOW_BY;
|
|
245
|
+
label: string;
|
|
246
|
+
}
|
|
239
247
|
export interface ICalendarTimeLabelBox {
|
|
240
248
|
startDate: any;
|
|
241
249
|
endDate: any;
|
|
@@ -253,6 +261,7 @@ export interface ILabelBox {
|
|
|
253
261
|
bandScore: number;
|
|
254
262
|
favoriteSurvey?: number;
|
|
255
263
|
academicYearId: number;
|
|
264
|
+
showBy?: IShowByLabelBox;
|
|
256
265
|
}
|
|
257
266
|
export declare enum TYPECHART {
|
|
258
267
|
AREA = 0,
|
|
@@ -287,6 +296,8 @@ export interface IGenerateChart {
|
|
|
287
296
|
isPrint?: boolean;
|
|
288
297
|
width?: number | string;
|
|
289
298
|
height?: number | string;
|
|
299
|
+
avgContent?: string;
|
|
300
|
+
textColors?: string[];
|
|
290
301
|
}
|
|
291
302
|
export interface IDashboardToPDF {
|
|
292
303
|
startTime: number | undefined;
|
|
@@ -105,7 +105,7 @@ export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearnin
|
|
|
105
105
|
export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], dayOfWeek: string[]) => ApexOptions;
|
|
106
106
|
export declare const optionLineChart: (months: string[], activeData: boolean[], colors: string[], dayOfWeek: string[]) => ApexOptions;
|
|
107
107
|
export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], dayOfWeek: string[], newseries?: any) => ApexOptions;
|
|
108
|
-
export declare const overallDonutCHartOptions: (labelNames: string[], colors: string[]) => ApexOptions;
|
|
108
|
+
export declare const overallDonutCHartOptions: (labelNames: string[], colors: string[], textColors?: string[] | undefined) => ApexOptions;
|
|
109
109
|
export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
|
|
110
110
|
export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
|
|
111
111
|
name: string;
|
|
@@ -133,3 +133,4 @@ export declare const filterYearData: {
|
|
|
133
133
|
endDate: number;
|
|
134
134
|
}[];
|
|
135
135
|
export declare const handleAveraged: (points: number[]) => number;
|
|
136
|
+
export declare const handleGenerateAvgQuestion: (data: number[], avgContent?: string | undefined) => string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UploadInfo {
|
|
3
|
+
error?: string;
|
|
4
|
+
success?: boolean;
|
|
5
|
+
isUploading?: boolean;
|
|
6
|
+
importedFiles?: string;
|
|
7
|
+
rejectedFiles?: string;
|
|
8
|
+
comment?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const useImportOneRoster: () => {
|
|
11
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
12
|
+
fileProgress: number;
|
|
13
|
+
uploadInfo: UploadInfo | undefined;
|
|
14
|
+
uploadIcon: JSX.Element | undefined;
|
|
15
|
+
uploadMessage: JSX.Element | undefined;
|
|
16
|
+
importIcon: JSX.Element | undefined;
|
|
17
|
+
importMessage: JSX.Element | undefined;
|
|
18
|
+
restApiInfo: object | undefined;
|
|
19
|
+
restApiProgress: JSX.Element[] | undefined;
|
|
20
|
+
setFileProgress: React.Dispatch<React.SetStateAction<number>>;
|
|
21
|
+
handleFileChange: () => Promise<void>;
|
|
22
|
+
importRosterZipFile: (file: File) => Promise<void>;
|
|
23
|
+
handleChooseZipFile: () => void;
|
|
24
|
+
handleImportFromRestfulApi: () => Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
export default useImportOneRoster;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useRostering.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UploadInfo {
|
|
3
|
+
error?: string;
|
|
4
|
+
success?: string;
|
|
5
|
+
isUploading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const useRostering: () => {
|
|
8
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
9
|
+
fileProgress: number;
|
|
10
|
+
uploadInfo: UploadInfo | undefined;
|
|
11
|
+
uploadIcon: JSX.Element | undefined;
|
|
12
|
+
uploadMessage: JSX.Element | undefined;
|
|
13
|
+
importIcon: JSX.Element | undefined;
|
|
14
|
+
importMessage: JSX.Element | undefined;
|
|
15
|
+
restApiInfo: object | undefined;
|
|
16
|
+
restApiProgress: JSX.Element[] | undefined;
|
|
17
|
+
setFileProgress: React.Dispatch<React.SetStateAction<number>>;
|
|
18
|
+
handleFileChange: () => Promise<void>;
|
|
19
|
+
importRosterZipFile: (file: File) => Promise<void>;
|
|
20
|
+
handleChooseZipFile: () => void;
|
|
21
|
+
handleImportFromRestfulApi: () => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export default useRostering;
|
|
@@ -49,12 +49,17 @@ export declare const CALENDAR_OPTIONS: {
|
|
|
49
49
|
startDate: number;
|
|
50
50
|
endDate: number;
|
|
51
51
|
}[];
|
|
52
|
+
export declare const SHOW_BY_OPTIONS: {
|
|
53
|
+
label: string;
|
|
54
|
+
showBy: string;
|
|
55
|
+
}[];
|
|
52
56
|
export declare const COLOR_NAME: string[];
|
|
53
57
|
export declare enum TYPECHART {
|
|
54
58
|
AREA = 0,
|
|
55
59
|
BAR = 1,
|
|
56
60
|
LINE = 2,
|
|
57
|
-
BOTH = 3
|
|
61
|
+
BOTH = 3,
|
|
62
|
+
DONUT = 4
|
|
58
63
|
}
|
|
59
64
|
export declare const topMostSurveyNameUsed = "top_5_most_survey_used";
|
|
60
65
|
export declare const optionTotalSurvey: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DASHBOARD_TEMPLATE, ISeries, TOTAL_DASHBOAD_SURVEY } from "./types";
|
|
2
2
|
export declare const handleViewSeriesActive: (active: boolean[]) => number[];
|
|
3
3
|
export declare const convertDataToDataChart: (data: DASHBOARD_TEMPLATE[]) => string[];
|
|
4
|
-
export declare const convertToSeriesTemplate: (data: DASHBOARD_TEMPLATE[]) => {
|
|
4
|
+
export declare const convertToSeriesTemplate: (data: DASHBOARD_TEMPLATE[], exact?: boolean | undefined) => {
|
|
5
5
|
name: string;
|
|
6
6
|
data: number[];
|
|
7
7
|
}[];
|
|
@@ -25,16 +25,19 @@ declare const useChartDatas: () => {
|
|
|
25
25
|
checkSelectedItem: (id: string) => boolean;
|
|
26
26
|
selectedToPrint: any;
|
|
27
27
|
setSelectedToPrint: import("react").Dispatch<any>;
|
|
28
|
-
|
|
29
|
-
surveyFlagData: import("../configs/types").IDashboardFlag | undefined;
|
|
30
|
-
templateSurveyDashboard: import("../configs/types").DASHBOARD_TEMPLATE[];
|
|
28
|
+
surveyFlagData: import("../configs/types").ISeries[];
|
|
31
29
|
avgResult: number[];
|
|
32
|
-
seriseResult: import("../configs/types").ISeries[];
|
|
33
30
|
activeColumnResult: boolean[];
|
|
34
31
|
handleActiveColumnOneToOne: (index: any) => void;
|
|
35
|
-
typeChartList: import("../configs/constants").TYPECHART[];
|
|
36
|
-
onChangeChart: (type: import("../configs/constants").TYPECHART) => void;
|
|
37
32
|
isShowFilterMobile: boolean;
|
|
38
33
|
setIsShowFilterMobile: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
34
|
+
dayOfWeekTotal: string[];
|
|
35
|
+
avgTotal: number[];
|
|
36
|
+
dayOfWeekResult: string[];
|
|
37
|
+
genderOfStudent: string;
|
|
38
|
+
seriesTotal: import("../configs/types").ISeries[];
|
|
39
|
+
seriesResult: import("../configs/types").ISeries[];
|
|
40
|
+
monthsSeriesResult: string[];
|
|
41
|
+
monthsSeriesTotal: string[];
|
|
39
42
|
};
|
|
40
43
|
export default useChartDatas;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DashboardFilter, IStudentByGrade,
|
|
3
|
-
import { TYPECHART } from "../configs/constants";
|
|
2
|
+
import { DashboardFilter, IStudentByGrade, IDashboardToTalSurvey, ISeries } from "../configs/types";
|
|
4
3
|
import { IFilter, Student } from "../../../utils/type";
|
|
5
4
|
declare const useDashboard: () => {
|
|
6
5
|
setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
|
|
@@ -16,16 +15,18 @@ declare const useDashboard: () => {
|
|
|
16
15
|
handleFilterStudent: (option: any) => void;
|
|
17
16
|
handleFilterTeacher: (option: any) => void;
|
|
18
17
|
onChangeFilters: (filterSelect: IFilter) => void;
|
|
19
|
-
|
|
20
|
-
surveyFlagData: IDashboardFlag | undefined;
|
|
21
|
-
templateSurveyDashboard: DASHBOARD_TEMPLATE[];
|
|
18
|
+
surveyFlagData: ISeries[];
|
|
22
19
|
avgResult: number[];
|
|
23
|
-
|
|
20
|
+
seriesResult: ISeries[];
|
|
24
21
|
activeColumnResult: boolean[];
|
|
22
|
+
avgTotal: number[];
|
|
23
|
+
seriesTotal: ISeries[];
|
|
25
24
|
handleActiveColumnOneToOne: (index: any) => void;
|
|
26
|
-
typeChartList: TYPECHART[];
|
|
27
|
-
onChangeChart: (type: TYPECHART) => void;
|
|
28
25
|
isShowFilterMobile: boolean;
|
|
29
26
|
setIsShowFilterMobile: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
27
|
+
dayOfWeekTotal: string[];
|
|
28
|
+
dayOfWeekResult: string[];
|
|
29
|
+
monthsSeriesResult: string[];
|
|
30
|
+
monthsSeriesTotal: string[];
|
|
30
31
|
};
|
|
31
32
|
export default useDashboard;
|
|
@@ -25,5 +25,6 @@ export declare const getTopMostSurveyUsed: (filter: any) => Promise<import("axio
|
|
|
25
25
|
export declare const getAllTotalSurvey: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
26
26
|
export declare const getDashboardFlagSurvey: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
27
27
|
export declare const getDashboardTemplateSurvey: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
28
|
+
export declare const getDashboardTotalSurvey: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
28
29
|
export declare const getAllAcademicYearApi: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
29
30
|
export declare const getSessionExportCsvApi: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getRosterConfig: () => Promise<import("axios").AxiosResponse<any>>;
|
|
2
|
+
export declare const updateRosterConfig: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const importRosterFromFile: (body: FormData, cb?: ((progressEvent: ProgressEvent) => void) | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const importRosterFromRestfulApi: (fileName: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getRosterConfig: () => Promise<import("axios").AxiosResponse<any>>;
|
|
2
|
+
export declare const updateRosterConfig: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const importRosterFromFile: (body: FormData, cb?: ((progressEvent: ProgressEvent) => void) | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const importRosterFromRestfulApi: (fileName: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -18,6 +18,7 @@ export interface IFilter {
|
|
|
18
18
|
optionDate?: string;
|
|
19
19
|
favoriteSurvey?: number[];
|
|
20
20
|
academicYearId?: number;
|
|
21
|
+
showBy?: string;
|
|
21
22
|
}
|
|
22
23
|
export interface PROPS_FILTERS_COMPONENT {
|
|
23
24
|
teacherId?: number;
|
|
@@ -53,6 +54,11 @@ export interface CALENDAR {
|
|
|
53
54
|
label: string;
|
|
54
55
|
value: string;
|
|
55
56
|
}
|
|
57
|
+
export interface SHOW_BY {
|
|
58
|
+
showBy: string;
|
|
59
|
+
label: string;
|
|
60
|
+
value: string;
|
|
61
|
+
}
|
|
56
62
|
export declare enum LegalGenderType {
|
|
57
63
|
Male = 0,
|
|
58
64
|
Female = 1
|