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.
Files changed (33) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/OverallDonutChart.d.ts +1 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +11 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +2 -1
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/ImportOneRoster.d.ts +6 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/RosterConfigForm.d.ts +8 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/Rostering.d.ts +6 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useImportOneRoster.d.ts +26 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useRostering.d.ts +23 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/userRosterConfigForm.d.ts +7 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/constants.d.ts +2 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/types.d.ts +4 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/views/OneRoster.d.ts +3 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/constants.d.ts +6 -1
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/overviewFn.d.ts +1 -1
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts +1 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useChartDatas.d.ts +9 -6
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useDashboard.d.ts +9 -8
  18. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/services/oneRosterService.d.ts +4 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/services/roster.d.ts +4 -0
  21. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +2 -1
  22. package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +6 -0
  23. package/dist/index.css +2191 -2187
  24. package/dist/index.js +337 -938
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.modern.js +337 -938
  27. package/dist/index.modern.js.map +1 -1
  28. package/package.json +98 -98
  29. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
  30. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchCounselor/hooks/useSwitchAssistant.d.ts +0 -18
  31. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/components/SwitchCounselorModal.d.ts +0 -4
  32. package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/hooks/useSwitchCounselor.d.ts +0 -18
  33. /package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +0 -0
@@ -5,6 +5,7 @@ interface IProps {
5
5
  label: string[];
6
6
  width?: number | string;
7
7
  height?: number | string;
8
+ textColors?: string[];
8
9
  }
9
10
  declare const OverallDonutChart: FC<IProps>;
10
11
  export default OverallDonutChart;
@@ -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,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ disabledImportRest: boolean;
4
+ }
5
+ declare const ImportOneRoster: FC<Props>;
6
+ export default ImportOneRoster;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { ROSTER_CONFIG } from "../utils/types";
3
+ interface Props {
4
+ rosterConfig: ROSTER_CONFIG;
5
+ updateData: Function;
6
+ }
7
+ declare const RosterConfigForm: FC<Props>;
8
+ export default RosterConfigForm;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ disabledImportRest: boolean;
4
+ }
5
+ declare const Rostering: FC<Props>;
6
+ export default Rostering;
@@ -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;
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { ROSTER_CONFIG } from "../utils/types";
2
+ declare const useRosterConfigForm: () => {
3
+ rosterConfig: ROSTER_CONFIG;
4
+ disabledImportRest: boolean;
5
+ updateData: (values: any) => Promise<void>;
6
+ };
7
+ export default useRosterConfigForm;
@@ -0,0 +1,2 @@
1
+ export declare const CSV_FILE_NAMES: string[];
2
+ export declare const INVALID_CLIENT_ROSTER_CONFIG = "Response status code does not indicate success: 403 ().";
@@ -0,0 +1,4 @@
1
+ export declare type ROSTER_CONFIG = {
2
+ clientId: string;
3
+ clientSecret: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const OneRoster: () => JSX.Element;
3
+ export default OneRoster;
@@ -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
  }[];
@@ -70,6 +70,7 @@ export declare type DashboardFilter = {
70
70
  currentGrade?: string;
71
71
  teacherUserId?: string;
72
72
  studentUserId?: string;
73
+ showBy?: string;
73
74
  };
74
75
  export interface ICircleChartItem {
75
76
  id: number;
@@ -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
- topMostSurveyUsed: import("../configs/types").ITopMostSurveyUsed[];
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, ITopMostSurveyUsed, IDashboardToTalSurvey, IDashboardFlag, DASHBOARD_TEMPLATE, ISeries } from "../configs/types";
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
- topMostSurveyUsed: ITopMostSurveyUsed[];
20
- surveyFlagData: IDashboardFlag | undefined;
21
- templateSurveyDashboard: DASHBOARD_TEMPLATE[];
18
+ surveyFlagData: ISeries[];
22
19
  avgResult: number[];
23
- seriseResult: ISeries[];
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>>;
@@ -16,5 +16,6 @@ export declare enum FILTER_NAME {
16
16
  StartDate = "start_date",
17
17
  EndDate = "end_date",
18
18
  FavoriteSurvey = "favorite_survey",
19
- AcademicYear = "academic_year"
19
+ AcademicYear = "academic_year",
20
+ ShowBy = "show_by"
20
21
  }
@@ -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