mario-education 2.4.126-beta → 2.4.127-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 (65) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/CSVImport/hooks/useCSVImport.d.ts +1 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/AreaChart.d.ts +1 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarChart.d.ts +1 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/DashboardToPDF.d.ts +2 -1
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/GenerateChartData.d.ts +4 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +1 -1
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LineChart.d.ts +1 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +16 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +45 -2
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +8 -3
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +1 -4
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +17 -55
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +12 -46
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/LearningSupportCategory/hooks/useLearningSupportCategoryDetail.d.ts +1 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/AgGridComponents.d.ts +1 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/constants.d.ts +4 -0
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/AreaChart.d.ts +10 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/BarAndAreaChart.d.ts +9 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/BarChart.d.ts +11 -0
  21. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/ChartViewDashboard.d.ts +20 -0
  22. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/CheckboxCustom.d.ts +12 -0
  23. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/ChoiceChartType.d.ts +10 -0
  24. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/DashboardCard.d.ts +7 -0
  25. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/HeaderChart/HeaderChart.d.ts +16 -0
  26. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/HeaderChart/PlusButton.d.ts +6 -0
  27. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/Loading.d.ts +3 -0
  28. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/PieChart.d.ts +9 -0
  29. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/StudentByGrade.d.ts +7 -0
  30. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/TopMostSurveyUsed.d.ts +7 -0
  31. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/TotalCard.d.ts +4 -0
  32. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/chartOptions.d.ts +6 -0
  33. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/constants.d.ts +60 -0
  34. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/overviewFn.d.ts +17 -0
  35. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts +274 -0
  36. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/utils.d.ts +129 -0
  37. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useBehavior.d.ts +7 -0
  38. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useChartDatas.d.ts +38 -0
  39. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useContainerDimensions.d.ts +4 -0
  40. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useDashboard.d.ts +29 -0
  41. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/views/SurveyDashboard.d.ts +3 -0
  42. package/dist/MarioFramework.Education/ClientApp/src/index.d.ts +2 -1
  43. package/dist/MarioFramework.Education/ClientApp/src/services/csvService.d.ts +1 -0
  44. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +4 -0
  45. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +2 -1
  46. package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +3 -0
  47. package/dist/index.css +1056 -10
  48. package/dist/index.js +4165 -4054
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.modern.js +4166 -4056
  51. package/dist/index.modern.js.map +1 -1
  52. package/package.json +2 -2
  53. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/apiClient/index.d.ts +0 -9
  54. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/SelectorTemplate.d.ts +0 -3
  55. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/TemplateDialogModal.d.ts +0 -3
  56. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/configs/types.d.ts +0 -12
  57. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateBuilder.d.ts +0 -12
  58. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateDetail.d.ts +0 -20
  59. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateList.d.ts +0 -9
  60. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateStart.d.ts +0 -9
  61. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateBuilderPage.d.ts +0 -3
  62. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateContainer.d.ts +0 -3
  63. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateIEPList.d.ts +0 -3
  64. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateStartBuild.d.ts +0 -3
  65. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateSystemList.d.ts +0 -3
@@ -35,5 +35,6 @@ declare const useCSVImport: () => {
35
35
  defaultTeacher: number;
36
36
  fileName: string;
37
37
  onStudentSubmit: () => void;
38
+ downloadTemplateStudentISB: () => Promise<void>;
38
39
  };
39
40
  export default useCSVImport;
@@ -4,6 +4,7 @@ interface IProps {
4
4
  months: string[];
5
5
  activeColumn: boolean[];
6
6
  series: ISeries[];
7
+ colors: string[];
7
8
  dayOfWeek: string[];
8
9
  }
9
10
  declare const AreaChart: FC<IProps>;
@@ -5,6 +5,7 @@ interface IProps {
5
5
  activeColumn: boolean[];
6
6
  series: ISeries[];
7
7
  dayOfWeek: string[];
8
+ colors: string[];
8
9
  }
9
10
  declare const BarChart: FC<IProps>;
10
11
  export default BarChart;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare const DashboardToPDF: (props: any) => JSX.Element;
2
+ import { IDashboardToPDF } from "../configs/types";
3
+ declare const DashboardToPDF: (props: IDashboardToPDF) => JSX.Element;
3
4
  export default DashboardToPDF;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { IGenerateChart } from "../configs/types";
3
+ declare const GenerateChartData: FC<IGenerateChart>;
4
+ export default GenerateChartData;
@@ -5,7 +5,7 @@ interface IProps {
5
5
  onToggle: () => void;
6
6
  isShowChangeChart?: boolean;
7
7
  typeChart?: TYPECHART;
8
- onChangeChart: (type: TYPECHART) => void;
8
+ onChangeChart?: (type: TYPECHART) => void;
9
9
  isOpen: boolean;
10
10
  options?: IChartOptions[];
11
11
  contentTooltip?: string;
@@ -5,6 +5,7 @@ interface IProps {
5
5
  activeColumn: boolean[];
6
6
  series: ISeries[];
7
7
  dayOfWeek: string[];
8
+ colors: string[];
8
9
  }
9
10
  declare const LineChart: FC<IProps>;
10
11
  export default LineChart;
@@ -20,6 +20,7 @@ export declare const GRAGE_DEFAULT: string[];
20
20
  export declare const INITIAl_COLUNM_CHART_AND_PERCENT: {
21
21
  overviewQuestionChoice: never[];
22
22
  type: string;
23
+ overViewQuestionLastMonth: never[];
23
24
  };
24
25
  export declare const INITIAL_AGE_OF_STUDENT: IStudentByAge;
25
26
  export declare const LABEL_NAME_PIE_CHART: string[];
@@ -49,4 +50,19 @@ export declare const CALENDAR_OPTIONS: {
49
50
  label: string;
50
51
  startDate: number;
51
52
  endDate: number;
53
+ value: string;
52
54
  }[];
55
+ export declare const heightChartDefault = 250;
56
+ export declare const PREPAREDNESS_QUESTION: string[];
57
+ export declare const SUCCESS_INDICATORS_QUESTION: string[];
58
+ export declare const SAFETY_QUESTION = "safety";
59
+ export declare const STRESS_QUESTION = "stress";
60
+ export declare const readinessToLearnName = "readiness_to_learn";
61
+ export declare const preparednessChartName = "Preparedness";
62
+ export declare const averageStudentSafetyName = "average_student_safety";
63
+ export declare const averageStudentStressName = "average_student_stress";
64
+ export declare const successIndicatorsName = "success_indicators";
65
+ export declare const learningProcessName = "learning_process";
66
+ export declare const topLearningStrategyName = "top_learning_strategies";
67
+ export declare const topMostUsedStrategiesName = "top_5_most_used_strategies";
68
+ export declare const chartNames: string[];
@@ -71,6 +71,8 @@ export declare type DashboardFilter = {
71
71
  teacherUserId?: string;
72
72
  studentUserId?: string;
73
73
  bandScore: string;
74
+ optionDate?: string;
75
+ favoriteSurvey?: number[];
74
76
  };
75
77
  export interface ICircleChartItem {
76
78
  id: number;
@@ -118,13 +120,13 @@ export interface ISeries {
118
120
  name: string;
119
121
  data: number[];
120
122
  }
121
- export interface IlearningItem {
123
+ export interface ILearningItem {
122
124
  learningStrategyName: string;
123
125
  usageCount: number;
124
126
  usagePoint: number[];
125
127
  }
126
128
  export interface IlearningStrategies {
127
- learningStrategies: IlearningItem[];
129
+ learningStrategies: ILearningItem[];
128
130
  }
129
131
  export interface IStudentPercentQuestion {
130
132
  percentQuestion: number;
@@ -162,6 +164,7 @@ export interface IOverviewQuestionChoice {
162
164
  export interface IColumnChartAndPercent {
163
165
  overviewQuestionChoice: IOverviewQuestionChoice[];
164
166
  type: string;
167
+ overViewQuestionLastMonth: IQuestionResponseLastMonth[];
165
168
  }
166
169
  export interface IAgeOfStudent {
167
170
  nineToTwelve: number;
@@ -226,6 +229,7 @@ export interface ILabelBox {
226
229
  gender: IGenderLabelBox;
227
230
  grade: number;
228
231
  bandScore: number;
232
+ favoriteSurvey?: number;
229
233
  }
230
234
  export declare enum TYPECHART {
231
235
  AREA = 0,
@@ -237,4 +241,43 @@ export interface IChartOptions {
237
241
  value: TYPECHART;
238
242
  label: string;
239
243
  }
244
+ export interface IQuestionResponseLastMonth {
245
+ avgQuestionResponse: number;
246
+ avgQuestionResponseLastMonth: number;
247
+ questionId: number;
248
+ questionText: string;
249
+ }
250
+ export interface IGenerateChart {
251
+ typeChart: TYPECHART;
252
+ timeOfDay?: string;
253
+ onActiveColumn?: Function;
254
+ activeColumn: boolean[];
255
+ series: ISeries[];
256
+ months: string[];
257
+ name?: string;
258
+ dayOfWeek: string[];
259
+ colors: string[];
260
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
261
+ isShowExpandIcon?: boolean;
262
+ onExpand?: Function;
263
+ }
264
+ export interface IDashboardToPDF {
265
+ startTime: number | undefined;
266
+ endTime: number | undefined;
267
+ timeOfDay?: string;
268
+ activeColumnPreparedness: boolean[];
269
+ activeColumnSuccessIndicators: boolean[];
270
+ safetyData: ISeries[];
271
+ stressData: ISeries[];
272
+ preparednessData: ISeries[];
273
+ successIndicatorsData: ISeries[];
274
+ seriesLearningProgress: ISeries[];
275
+ monthsOneToOne: string[];
276
+ dayOfWeekOneToOne: string[];
277
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
278
+ dayOfWeekLearningProgress: string[];
279
+ monthsLearningProgress: string[];
280
+ topLearningStrategiesData: IlearningStrategies;
281
+ selectedToPDF: string[];
282
+ }
240
283
  export {};
@@ -28,7 +28,7 @@ export declare const mtssOptions: {
28
28
  value: MtssType;
29
29
  label: string;
30
30
  }[];
31
- export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[], screenWidth: number) => ApexOptions;
31
+ export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[], isDonutChart?: boolean | undefined) => ApexOptions;
32
32
  export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
33
33
  export declare const optionsChartGrade: (maxDatas: number) => ApexOptions;
34
34
  export declare const studentBySpecialNeedOptions: (seriesValue: IseriesChart, colors: string[]) => ApexOptions;
@@ -102,14 +102,18 @@ export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearnin
102
102
  name: string;
103
103
  data: import("react").ReactText[][];
104
104
  }[];
105
- export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean, dayOfWeek: string[]) => ApexOptions;
106
- export declare const optionLineChart: (months: string[], activeData: boolean[], dayOfWeek: string[]) => ApexOptions;
105
+ export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], dayOfWeek: string[]) => ApexOptions;
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
108
  export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
109
109
  export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
110
110
  name: string;
111
111
  data: number[];
112
112
  }[];
113
+ export declare const convertToSeriesColumnChartAndPercentProgress: (data: IOverviewQuestionChoice[]) => {
114
+ name: string;
115
+ data: number[];
116
+ }[];
113
117
  export declare const convertToAvg: (dataCharts: string[], data: IOverviewQuestionChoice[], months: string[]) => number[];
114
118
  export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
115
119
  export declare const mergeBarChartAndArea: (series: ISeries[], isHasLineChart: boolean) => {
@@ -127,3 +131,4 @@ export declare const filterYearData: {
127
131
  startDate: number;
128
132
  endDate: number;
129
133
  }[];
134
+ export declare const handleAveraged: (points: number[]) => number;
@@ -1,9 +1,6 @@
1
- import { TYPECHART, IChartOptions } from "../configs/types";
2
- declare const useBehavior: (initialTypeChart: TYPECHART[]) => {
1
+ declare const useBehavior: () => {
3
2
  chartIsOpened: boolean[];
4
3
  onToggle: (idx: number) => void;
5
- onChangeChart: (idx: number, type: TYPECHART, options?: IChartOptions[] | undefined) => void;
6
- typeChartList: TYPECHART[];
7
4
  teacherUserId: string;
8
5
  changeCurrentTeacherUserId: (userId: string) => void;
9
6
  };
@@ -1,29 +1,6 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
- import { TYPECHART } from "../configs/types";
4
3
  declare const useChartDatas: () => {
5
- chartDashBoards: ({
6
- chartIndex: number;
7
- id: string;
8
- label: string;
9
- children: (_: TYPECHART) => JSX.Element;
10
- isShowChangeChart: boolean;
11
- options: never[];
12
- contentTooltip: string;
13
- handleClickOpenTable: () => void;
14
- } | {
15
- chartIndex: number;
16
- id: string;
17
- label: string;
18
- children: (typeChart: TYPECHART, isPDF?: boolean | undefined) => JSX.Element;
19
- isShowChangeChart: boolean;
20
- options: {
21
- label: string;
22
- value: TYPECHART;
23
- }[];
24
- contentTooltip: string;
25
- handleClickOpenTable?: undefined;
26
- })[];
27
4
  user: any;
28
5
  filter: import("../configs/types").DashboardFilter;
29
6
  LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
@@ -44,37 +21,22 @@ declare const useChartDatas: () => {
44
21
  filter: string;
45
22
  })[];
46
23
  onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
47
- initialTypeChart: (TYPECHART.AREA | TYPECHART)[];
48
- handleSelectToPrint: (checked: boolean, data: any, chartType: any) => void;
49
- checkSelectedItem: (id: string) => boolean;
50
- selectedToPrint: any;
51
- setSelectedToPrint: React.Dispatch<any>;
52
- chartOneToOneData: import("../configs/types").IColumnChartAndPercent;
53
- chartCheckInData: import("../configs/types").IColumnChartAndPercent;
24
+ handleSelectToPrint: (chartName: string) => void;
25
+ selectedToPrint: string[];
26
+ setSelectedToPrint: import("react").Dispatch<import("react").SetStateAction<string[]>>;
54
27
  topLearningStrategies: import("../configs/types").IlearningStrategies;
55
- chartClassReflection: import("../configs/types").IColumnChartAndPercent;
56
- chartConference: import("../configs/types").IColumnChartAndPercent;
57
- safety: import("../configs/types").IColumnChartAndPercent;
58
- dataConvertedOneToOne: string[];
59
- activeColumnOneToOne: boolean[];
60
- avgOneToOne: number[];
61
- dataConvertedCheckIn: string[];
62
- activeColumnCheckIn: boolean[];
63
- avgCheckIn: number[];
64
- dataConvertedClassReflection: string[];
65
- activeColumnClassReflection: boolean[];
66
- avgClassReflection: number[];
67
- dataConvertedConference: string[];
68
- activeColumnConference: boolean[];
69
- avgConference: number[];
70
- dataConvertedSafety: string[];
71
- activeColumnSafety: boolean[];
72
- avgSafety: number[];
73
- learningStrategiesData: any;
74
- openLearningStrategiesTable: boolean;
75
- handleOpenCloseLearningStrategiesTable: () => void;
76
- filterLearningStrategiesTable: any;
77
- changeFiltersLearningStrategiesTable: (updatedFilter: any) => void;
78
- getLearningStrategiesTableData: () => Promise<void>;
28
+ handleActiveColumnOneToOne: (index: number, name: string) => void;
29
+ activeColumnSuccessIndicators: boolean[];
30
+ successIndicatorsData: import("../../../utils/type").ISeries[];
31
+ monthsOneToOne: string[];
32
+ dayOfWeekOneToOne: string[];
33
+ activeColumnPreparedness: boolean[];
34
+ preparednessData: import("../../../utils/type").ISeries[];
35
+ safetyData: import("../../../utils/type").ISeries[];
36
+ stressData: import("../../../utils/type").ISeries[];
37
+ seriesLearningProgress: import("../../../utils/type").ISeries[];
38
+ monthsLearningProgress: string[];
39
+ dayOfWeekLearningProgress: string[];
40
+ avgQuestionLastMonth: import("../configs/types").IQuestionResponseLastMonth[];
79
41
  };
80
42
  export default useChartDatas;
@@ -1,25 +1,18 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IColumnChartAndPercent, IStudentByAge, IStudentByGender, IDashboardToTalStudent } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, IlearningStrategies, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IColumnChartAndPercent, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth } from "../configs/types";
3
3
  import { IFilter, Student, ISeries } from "../../../utils/type";
4
4
  declare const useDashboard: () => {
5
5
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
6
6
  filter: DashboardFilter;
7
7
  listTotalTime: IDashboardToTalStudent;
8
- readinessToLearning: IReadinessToLearning[];
9
8
  topLearningStrategies: IlearningStrategies;
10
9
  studentByGrade: IStudentByGrade[];
11
- chartOneToOneData: IColumnChartAndPercent;
12
- chartCheckInData: IColumnChartAndPercent;
13
- chartClassReflection: IColumnChartAndPercent;
14
- chartConference: IColumnChartAndPercent;
15
10
  learningProgress: IColumnChartAndPercent;
16
11
  friendCircles: IsyntheticFriendCircle | undefined;
17
12
  activityCircles: IActivityCircle | undefined;
18
13
  studentBySpecialNeed: IStudentBySpecialNeed[];
19
14
  studentByAge: IStudentByAge;
20
15
  studentByGender: IStudentByGender;
21
- safety: IColumnChartAndPercent;
22
- topSkill: never[];
23
16
  handleChangeFilters: (event: any) => void;
24
17
  bandScore: BAND_SCORE[];
25
18
  user: any;
@@ -30,46 +23,19 @@ declare const useDashboard: () => {
30
23
  handleFilterStudent: (option: any) => void;
31
24
  handleFilterTeacher: (option: any) => void;
32
25
  onChangeFilters: (filterSelect: IFilter) => void;
33
- handleActiveColumnOneToOne: (index: any) => void;
34
- seriesOneToOne: ISeries[];
35
- avgOneToOne: number[];
26
+ handleActiveColumnOneToOne: (index: number, name: string) => void;
36
27
  dataConvertedOneToOne: string[];
37
28
  monthsOneToOne: string[];
38
- activeColumnOneToOne: boolean[];
39
- handleActiveColumnCheckIn: (index: any) => void;
40
- seriesCheckIn: ISeries[];
41
- avgCheckIn: number[];
42
- dataConvertedCheckIn: string[];
43
- monthsCheckIn: string[];
44
- activeColumnCheckIn: boolean[];
45
- handleActiveColumnClassReflection: (index: any) => void;
46
- seriesClassRefection: ISeries[];
47
- avgClassReflection: number[];
48
- dataConvertedClassReflection: string[];
49
- monthsClassReflection: string[];
50
- activeColumnClassReflection: boolean[];
51
- handleActiveColumnConference: (index: number) => void;
52
- seriesConference: ISeries[];
53
- avgConference: number[];
54
- dataConvertedConference: string[];
55
- monthsConference: string[];
56
- activeColumnConference: boolean[];
57
- handleActiveColumnSafety: (index: number) => void;
58
- seriesSafety: ISeries[];
59
- avgSafety: number[];
60
- dataConvertedSafety: string[];
61
- monthsSafety: string[];
62
- activeColumnSafety: boolean[];
63
- learningStrategiesData: any;
64
- openLearningStrategiesTable: boolean;
65
- handleOpenCloseLearningStrategiesTable: () => void;
66
- filterLearningStrategiesTable: any;
67
- changeFiltersLearningStrategiesTable: (updatedFilter: any) => void;
68
- getLearningStrategiesTableData: () => Promise<void>;
69
29
  dayOfWeekOneToOne: string[];
70
- dayOfWeekCheckIn: string[];
71
- dayOfWeekConference: string[];
72
- dayOfWeekReflection: string[];
73
- dayOfWeekSafety: string[];
30
+ stressData: ISeries[];
31
+ safetyData: ISeries[];
32
+ preparednessData: ISeries[];
33
+ successIndicatorsData: ISeries[];
34
+ activeColumnSuccessIndicators: boolean[];
35
+ activeColumnPreparedness: boolean[];
36
+ seriesLearningProgress: ISeries[];
37
+ monthsLearningProgress: string[];
38
+ dayOfWeekLearningProgress: string[];
39
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
74
40
  };
75
41
  export default useDashboard;
@@ -2,6 +2,7 @@
2
2
  declare type LearningSupportCategoryDetail = {
3
3
  name: string;
4
4
  description: string;
5
+ isActive: boolean;
5
6
  defaultColor: string;
6
7
  };
7
8
  declare const useLearningSupportCategoryDetail: () => {
@@ -8,4 +8,5 @@ export declare const renderQuestionText: (params: any) => JSX.Element;
8
8
  export declare const renderActions: ({ params, edit, remove }: ActionProps) => JSX.Element;
9
9
  export declare const renderCategory: (params: any) => JSX.Element;
10
10
  export declare const renderType: (params: any) => JSX.Element;
11
+ export declare const renderUserQuestion: (params: any) => JSX.Element;
11
12
  export {};
@@ -5,3 +5,7 @@ export declare enum TYPE_QUESTION {
5
5
  Conference = 3,
6
6
  Survey = 4
7
7
  }
8
+ export declare const userForQuestion: {
9
+ value: string;
10
+ label: string;
11
+ }[];
@@ -24,6 +24,7 @@ declare type QuestionDetail = {
24
24
  subQuestions: string[];
25
25
  isBeforeSession: boolean;
26
26
  isDefaultQuestionSurvey: boolean;
27
+ userForQuestion?: string;
27
28
  };
28
29
  declare const useQuestionDetail: (id?: number | undefined, type?: number | undefined) => {
29
30
  questionDetail: QuestionDetail;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ percentData: boolean;
8
+ }
9
+ declare const AreaChart: FC<IProps>;
10
+ export default AreaChart;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ }
8
+ declare const BarAndAreaChart: FC<IProps>;
9
+ export default BarAndAreaChart;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ isShowChartLabel: boolean;
8
+ percentData: boolean;
9
+ }
10
+ declare const BarChart: FC<IProps>;
11
+ export default BarChart;
@@ -0,0 +1,20 @@
1
+ import { FC } from "react";
2
+ import { IChartOptions, ISeries } from "../configs/types";
3
+ import { TYPECHART } from "../configs/types";
4
+ export interface IProps {
5
+ data: any;
6
+ typeChart: TYPECHART[];
7
+ onActiveColumn?: Function;
8
+ activeColumn: boolean[];
9
+ series: ISeries[];
10
+ avg?: number[];
11
+ months: any;
12
+ onChangeChart?: Function;
13
+ optionType?: IChartOptions[];
14
+ name: string;
15
+ isShowChartLabel?: boolean;
16
+ percentData?: boolean;
17
+ classFontSize?: string;
18
+ }
19
+ declare const ChartViewDashboard: FC<IProps>;
20
+ export default ChartViewDashboard;
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { TYPECHART } from "../configs/constants";
3
+ import { IChartOptions } from "../configs/types";
4
+ interface IChoiceChartType {
5
+ onChangeChart: Function;
6
+ typeChart?: TYPECHART[];
7
+ options: IChartOptions[];
8
+ }
9
+ declare const ChoiceChartType: ({ onChangeChart, typeChart, options }: IChoiceChartType) => JSX.Element;
10
+ export default ChoiceChartType;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ label: string;
4
+ children: any;
5
+ }
6
+ declare const DashboardCard: FC<Props>;
7
+ export default DashboardCard;
@@ -0,0 +1,16 @@
1
+ import { FC } from "react";
2
+ import { IChartOptions, TYPECHART } from "../../configs/types";
3
+ interface IProps {
4
+ title: string;
5
+ onToggle: () => void;
6
+ isShowChangeChart?: boolean;
7
+ typeChart?: TYPECHART;
8
+ onChangeChart?: (type: TYPECHART) => void;
9
+ isOpen: boolean;
10
+ options?: IChartOptions[];
11
+ contentTooltip?: string;
12
+ index: number;
13
+ onClickOptions?: () => void;
14
+ }
15
+ declare const HeaderChart: FC<IProps>;
16
+ export default HeaderChart;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface IProps {
3
+ isActive: boolean;
4
+ }
5
+ declare const PlusButton: FC<IProps>;
6
+ export default PlusButton;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const Loading: FC;
3
+ export default Loading;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { IDashboardFlag } from "../configs/types";
3
+ interface IProps {
4
+ data?: IDashboardFlag;
5
+ name: string;
6
+ classFontSize?: string;
7
+ }
8
+ declare const PieChart: FC<IProps>;
9
+ export default PieChart;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IStudentByGrade } from "../configs/types";
3
+ interface IGradeStudentChart {
4
+ data: IStudentByGrade[];
5
+ }
6
+ declare const _default: React.NamedExoticComponent<IGradeStudentChart>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { ITopMostSurveyUsed } from "../configs/types";
3
+ interface ITopMostSurvey {
4
+ data: ITopMostSurveyUsed[];
5
+ }
6
+ declare const _default: React.NamedExoticComponent<ITopMostSurvey>;
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TotalCardItem } from "../configs/types";
3
+ declare const TotalCard: ({ icon, title, value }: TotalCardItem) => JSX.Element;
4
+ export default TotalCard;
@@ -0,0 +1,6 @@
1
+ import { ApexOptions } from "apexcharts";
2
+ import { ISeries } from "./types";
3
+ export declare const maxSeries: (series: ISeries[]) => number;
4
+ export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean, isShowChartLabel?: boolean | undefined, percentData?: boolean | undefined, series?: ISeries[] | undefined) => ApexOptions;
5
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
6
+ export declare const pieChartOptions: ApexOptions;
@@ -0,0 +1,60 @@
1
+ import { IStudentByAge, ITopMostSurveyUsed } from "./types";
2
+ export declare const colors: string[];
3
+ export declare const INITIAL_BEST_FRIENDS: {
4
+ friends: number;
5
+ couldBeFriends: number;
6
+ supportive: number;
7
+ notSpeakingAtTheMoment: number;
8
+ };
9
+ export declare const INITIAL_ACTIVITY_FRIENDS: {
10
+ like: number;
11
+ love: number;
12
+ interested: number;
13
+ curious: number;
14
+ };
15
+ export declare const LEARNING_STRATEGY_CHART_COLORS: string[];
16
+ export declare const COLOR_CHART_AND_PIE: string[];
17
+ export declare const COLOR_LABEL_PIE: string[];
18
+ export declare const LEARNING_STRATEGY_INIT: {
19
+ learningStrategies: never[];
20
+ };
21
+ export declare const GRAGE_DEFAULT: string[];
22
+ export declare const INITIAl_COLUNM_CHART_AND_PERCENT: {
23
+ overviewQuestionChoice: never[];
24
+ type: string;
25
+ };
26
+ export declare const INITIAL_AGE_OF_STUDENT: IStudentByAge;
27
+ export declare const LABEL_NAME_PIE_CHART: string[];
28
+ export declare const INITIAL_STUDENT_BY_GENDER: {
29
+ male: number;
30
+ female: number;
31
+ };
32
+ export declare const INITIAl_STUDENT_DASHBOARD: {
33
+ responseRate: number;
34
+ totalSurvey: number;
35
+ };
36
+ export declare const INIT_TOP_MOST_SURVEY_USED: ITopMostSurveyUsed;
37
+ export declare const INITIAL_AVG: number[];
38
+ export declare const COLOR_CHART_AND_PERCENTS: string[];
39
+ export declare const COLOR_CHART_BUBBLE: string[];
40
+ export declare const PERCENT: number[];
41
+ export declare const GENDER_OPTION: {
42
+ value: number;
43
+ label: string;
44
+ }[];
45
+ export declare const DEFAULT_START_DATE: number;
46
+ export declare const DEFAULT_END_DATE: number;
47
+ export declare const CALENDAR_OPTIONS: {
48
+ label: string;
49
+ startDate: number;
50
+ endDate: number;
51
+ }[];
52
+ export declare const COLOR_NAME: string[];
53
+ export declare enum TYPECHART {
54
+ AREA = 0,
55
+ BAR = 1,
56
+ LINE = 2,
57
+ BOTH = 3
58
+ }
59
+ export declare const topMostSurveyNameUsed = "top_5_most_survey_used";
60
+ export declare const optionTotalSurvey: string[];