mario-education 2.5.3-release → 2.5.4-release

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 (38) hide show
  1. package/dist/components/layouts/hooks/useHeaderSideBar.d.ts +1 -1
  2. package/dist/containers/AssignCounselor/hooks/useAssignCounselor.d.ts +2 -2
  3. package/dist/containers/AssignCounselor/utils/type.interface.d.ts +4 -6
  4. package/dist/containers/ConductSurvey/styles/makeStyles.d.ts +1 -1
  5. package/dist/containers/Dashboard/components/BarChart.d.ts +5 -1
  6. package/dist/containers/Dashboard/components/BubbleChartCustom.d.ts +6 -2
  7. package/dist/containers/Dashboard/components/ModelSkillStudent.d.ts +1 -1
  8. package/dist/containers/Dashboard/components/TotalCard.d.ts +2 -2
  9. package/dist/containers/Dashboard/configs/constants.d.ts +40 -1
  10. package/dist/containers/Dashboard/configs/types.d.ts +244 -9
  11. package/dist/containers/Dashboard/configs/utils.d.ts +5 -2
  12. package/dist/containers/Dashboard/hooks/useChartDatas.d.ts +3 -10
  13. package/dist/containers/Dashboard/hooks/useDashboard.d.ts +40 -12
  14. package/dist/containers/Dashboard/views/Dashboard.d.ts +1 -2
  15. package/dist/containers/Homepage/common/utils.d.ts +1 -1
  16. package/dist/containers/MyStudent/components/NewOverview/Chat/configs/utils.d.ts +2 -2
  17. package/dist/containers/MyStudent/components/NewOverview/Chat/types/types.d.ts +1 -1
  18. package/dist/containers/MyStudent/components/NewOverview/Chat/view/AreaChart.d.ts +1 -0
  19. package/dist/containers/MyStudent/components/NewOverview/Chat/view/OverallDonutChart.d.ts +1 -0
  20. package/dist/containers/OneRosterSystem/components/RestApiProgress.d.ts +1 -0
  21. package/dist/containers/OneRosterSystem/components/VeraCrossConfigForm.d.ts +1 -0
  22. package/dist/containers/OneRosterSystem/configs/constants.d.ts +1 -0
  23. package/dist/containers/SurveyDashboard/styles/makeStyles.d.ts +2 -2
  24. package/dist/index.css +10973 -9607
  25. package/dist/index.d.ts +2 -1
  26. package/dist/index.js +16437 -18795
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.modern.js +16441 -18800
  29. package/dist/index.modern.js.map +1 -1
  30. package/dist/services/dashboardService.d.ts +3 -0
  31. package/dist/services/oneRosterService.d.ts +3 -0
  32. package/dist/services/userService.d.ts +2 -1
  33. package/dist/styles/styles.d.ts +1 -1
  34. package/dist/types/types.d.ts +9 -0
  35. package/dist/utils/constantsFn.d.ts +3 -0
  36. package/dist/utils/serviceType.interface.d.ts +11 -0
  37. package/dist/utils/type.d.ts +1 -0
  38. package/package.json +3 -3
@@ -2,7 +2,7 @@ import React from "react";
2
2
  declare const useHeaderSideBar: (_navigations: any) => {
3
3
  anchorFontEl: HTMLElement | null;
4
4
  anchorEl: HTMLElement | null;
5
- classes: Record<"header" | "title" | "content" | "overlay" | "arrow" | "grow" | "menuItem" | "menuButton" | "listItem" | "dropdown" | "sectionDesktop" | "drawer" | "textPrivacy" | "subMenuDrawer" | "subDrawerItem" | "drawerItem" | "drawerContent" | "drawerPaper" | "drawerPaperMobile" | "drawerActive" | "contentShift" | "fontBodyLarge" | "fontBodySmall" | "fontSmall" | "fontMedium" | "fontLarge" | "sectionFontDesktop" | "itemSideBar" | "positionBox" | "arrowDown" | "arrowUp" | "dailyMotivation", string>;
5
+ classes: Record<"title" | "header" | "content" | "overlay" | "arrow" | "grow" | "menuItem" | "menuButton" | "listItem" | "dropdown" | "sectionDesktop" | "drawer" | "textPrivacy" | "subMenuDrawer" | "subDrawerItem" | "drawerItem" | "drawerContent" | "drawerPaper" | "drawerPaperMobile" | "drawerActive" | "contentShift" | "fontBodyLarge" | "fontBodySmall" | "fontSmall" | "fontMedium" | "fontLarge" | "sectionFontDesktop" | "itemSideBar" | "positionBox" | "arrowDown" | "arrowUp" | "dailyMotivation", string>;
6
6
  screenWidth: number;
7
7
  isReadOnly: string | null;
8
8
  notificationAlert: import("../constants/types").NOTIFICATION_ALERT | undefined;
@@ -8,8 +8,8 @@ declare const useAssignCounselor: () => {
8
8
  modal: import("react").MutableRefObject<any>;
9
9
  chosenUser: IStudentCounselorItem;
10
10
  options: IOptions[];
11
- changeCounselorId: (id: number) => void;
12
- counselorChangeId: number;
11
+ changeCounselorId: (id: IOptions[]) => void;
12
+ counselorChangeId: IOptions[];
13
13
  handleAssign: () => Promise<void>;
14
14
  resetData: () => void;
15
15
  choiceUser: (chosenUser: IStudentCounselorItem) => void;
@@ -1,6 +1,6 @@
1
1
  export interface IOptions {
2
2
  label: string;
3
- value: number;
3
+ value: string;
4
4
  }
5
5
  export declare type USER_CHOICE = {
6
6
  id: string;
@@ -24,18 +24,16 @@ export interface IAssignCounselorModal {
24
24
  resetData: () => void;
25
25
  chosenUser: IStudentCounselorItem;
26
26
  options: IOptions[];
27
- counselorChangeId: number;
27
+ counselorChangeId: IOptions[];
28
28
  setCounselorChangeId: (value: any) => void;
29
29
  isChecked: boolean;
30
30
  }
31
31
  export interface IStudentCounselorItem {
32
32
  id: number;
33
+ userId: string;
33
34
  emailStudent: string;
34
35
  studentName: string;
35
- teacherId?: number;
36
- counselorId?: string;
37
- emailCounselor?: string;
38
- counselorName?: string;
36
+ counselorUserIds?: string[];
39
37
  }
40
38
  export declare type TypeStudentCounselorData = {
41
39
  currentPage: number;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => Record<"body" | "title" | "tabs" | "tabLabel" | "tabLabelActive" | "tabLabelActiveWhite", string>;
1
+ export declare const useStyles: (props?: any) => Record<"title" | "body" | "tabs" | "tabLabel" | "tabLabelActive" | "tabLabelActiveWhite", string>;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { ISeries } from "../configs/types";
2
+ import { ILowMetricStudent, ISeries } from "../configs/types";
3
3
  interface IProps {
4
4
  months: string[];
5
5
  activeColumn: boolean[];
@@ -7,6 +7,10 @@ interface IProps {
7
7
  dayOfWeek: string[];
8
8
  colors: string[];
9
9
  min?: number;
10
+ print?: boolean;
11
+ isCountSeries?: boolean;
12
+ lowMetricStudents?: ILowMetricStudent[];
13
+ labelDate?: string;
10
14
  }
11
15
  declare const BarChart: FC<IProps>;
12
16
  export default BarChart;
@@ -2,9 +2,13 @@ import React from "react";
2
2
  import { IReadinessToLearning } from "../configs/types";
3
3
  interface IProps {
4
4
  data: IReadinessToLearning[];
5
+ print?: boolean;
6
+ disableSeriesName?: boolean;
7
+ colors?: string[];
8
+ hiddenRightLegend?: boolean;
9
+ hiddenDescription?: boolean;
5
10
  handleHoverTooltip?: Function;
6
- isPrint?: boolean;
7
11
  name?: string;
8
12
  }
9
- declare const _default: React.NamedExoticComponent<IProps>;
13
+ declare const _default: React.MemoExoticComponent<({ data, print, disableSeriesName, hiddenRightLegend, hiddenDescription, handleHoverTooltip, name }: IProps) => JSX.Element>;
10
14
  export default _default;
@@ -1,3 +1,3 @@
1
- import { IModelSkillStudent } from "../configs/types";
1
+ import { IModelSkillStudent } from "../../MyStudent/components/NewOverview/Chat/types/types";
2
2
  declare const ModelSkillStudent: ({ studentCount, studentPercentage, responseStudent, name }: IModelSkillStudent) => JSX.Element;
3
3
  export default ModelSkillStudent;
@@ -1,3 +1,3 @@
1
- import { TotalCardItem } from "../configs/types";
2
- declare const TotalCard: ({ icon, title, value }: TotalCardItem) => JSX.Element;
1
+ import { ITotalCard } from "../configs/types";
2
+ declare const TotalCard: ({ iconSrc, label, value }: ITotalCard) => JSX.Element;
3
3
  export default TotalCard;
@@ -1,4 +1,4 @@
1
- import { IStudentByAge } from "./types";
1
+ import { IConversationKpi, IStudentByAge } from "./types";
2
2
  export declare const colors: string[];
3
3
  export declare const INITIAL_BEST_FRIENDS: {
4
4
  friends: number;
@@ -84,3 +84,42 @@ export declare const studentStressByZone = "student_stress_by_zone";
84
84
  export declare const studentAverageScore = "student_distribution";
85
85
  export declare const chartNames: string[];
86
86
  export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
87
+ export declare const concernMetrics = "Concern Metrics";
88
+ export declare const infoIcon = "/images/info-icon.png";
89
+ export declare const readinessTrendName = "Readiness Trends";
90
+ export declare const overallReadinessToLearnName = "overall_readiness_to_learn";
91
+ export declare const averageSafetyName = "Average Safety";
92
+ export declare const averageStressName = "Average Stress";
93
+ export declare const optionLabelDate: string[];
94
+ export declare const calenderOptions: {
95
+ label: string;
96
+ startDate: number;
97
+ endDate: number;
98
+ value: string;
99
+ }[];
100
+ export declare const preparednessInitialData: {
101
+ name: string;
102
+ data: never[];
103
+ questionTranslation: string;
104
+ description: string;
105
+ }[];
106
+ export declare const lowMetricName = "number_of_students_with_at_least_one_very_low_metric";
107
+ export declare const lowMetricDescription = "this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40";
108
+ export declare const initFilterDashboard: {
109
+ calendar: string;
110
+ studentIds: never[];
111
+ gender: never[];
112
+ studentId: undefined;
113
+ teacherId: undefined;
114
+ teacherUserId: string;
115
+ studentUserId: string;
116
+ grade: never[];
117
+ bandScore: string;
118
+ academicYearId: undefined;
119
+ startDate: number;
120
+ endDate: number;
121
+ optionDate: string;
122
+ includeMonthAndWeekView: boolean;
123
+ };
124
+ export declare const filterStorage = "FILTER_DASHBOARD_SAVE";
125
+ export declare const initConversationKpi: IConversationKpi;
@@ -1,5 +1,6 @@
1
- import { IResponseStudentQuestion } from "../../MyStudent/components/NewOverview/Chat/types/types";
1
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
2
2
  import { QuestionType } from "../../ReflectionForm/configs/types";
3
+ import { Student } from "../../../utils/type";
3
4
  export declare type LoginCountingReport = {
4
5
  date: string;
5
6
  studentLoginCount: number;
@@ -16,6 +17,7 @@ export declare type QuantityReport = {
16
17
  export interface IQuestionTranslate {
17
18
  questionName: string;
18
19
  questionTranslationName: string;
20
+ description?: string;
19
21
  }
20
22
  export declare type SkillReportItem = {
21
23
  skillName: string;
@@ -101,6 +103,7 @@ export declare type DashboardFilter = {
101
103
  favoriteSurvey?: number[];
102
104
  academicYearId?: any;
103
105
  searchString?: string;
106
+ includeMonthAndWeekView?: boolean;
104
107
  };
105
108
  export interface ICircleChartItem {
106
109
  id: number;
@@ -184,6 +187,7 @@ export interface IResultQuestion {
184
187
  questionId: number;
185
188
  questionText: string;
186
189
  questionTranslation: string;
190
+ description?: string;
187
191
  }
188
192
  export interface IOverviewQuestionChoice {
189
193
  month: string;
@@ -195,6 +199,7 @@ export interface IColumnChartAndPercent {
195
199
  overviewQuestionChoice: IOverviewQuestionChoice[];
196
200
  type: string;
197
201
  overViewQuestionLastMonth: IQuestionResponseLastMonth[];
202
+ questionChoiceWeeklyResults: IOverviewQuestionChoice[];
198
203
  }
199
204
  export interface IAgeOfStudent {
200
205
  nineToTwelve: number;
@@ -318,8 +323,6 @@ export interface IDashboardToPDF {
318
323
  startTime: number | undefined;
319
324
  endTime: number | undefined;
320
325
  timeOfDay?: string;
321
- activeColumnPreparedness: boolean[];
322
- activeColumnSuccessIndicators: boolean[];
323
326
  safetyData: ISeries[];
324
327
  stressData: ISeries[];
325
328
  preparednessData: ISeries[];
@@ -327,17 +330,19 @@ export interface IDashboardToPDF {
327
330
  monthsOneToOne: string[];
328
331
  dayOfWeekOneToOne: string[];
329
332
  avgQuestionLastMonth: IQuestionResponseLastMonth[];
330
- topLearningStrategiesData: IlearningStrategies;
331
333
  selectedToPDF: string[];
332
- seriesConference: ISeries[];
333
- monthsConference: string[];
334
- activeColumnConference: boolean[];
335
- dayOfWeekConference: string[];
336
- avgConferenceLastMonth: IQuestionResponseLastMonth[];
337
334
  readinessToLearning: IReadinessToLearning[];
338
335
  studentPressure: IStudentPressure;
339
336
  dataOverallReadyToLearn: IOverallReadinessToLearn;
340
337
  schoolName: string;
338
+ metricWeeks: string[];
339
+ metricDataWeeks: number[];
340
+ metricDataMonths: number[];
341
+ metricMonths: string[];
342
+ preparednessWeeklyData: ISeries[];
343
+ weeksOneToOne: string[];
344
+ successIndicatorWeeklyData: any;
345
+ topLearningStrategies: any;
341
346
  }
342
347
  export interface IOverallReadinessToLearn {
343
348
  resultQuestion: ISeries[];
@@ -402,6 +407,7 @@ export interface ISummarizeAnswer {
402
407
  answer: string;
403
408
  sessionId: number;
404
409
  sessionResultId: number;
410
+ questionText: string;
405
411
  }
406
412
  export interface ILastAnswerTable {
407
413
  items: ISummarizeAnswer[];
@@ -434,4 +440,233 @@ export interface IQuestionFilter {
434
440
  sortOrder: string;
435
441
  searchString: string;
436
442
  }
443
+ export interface IFilterCalendar {
444
+ label: string;
445
+ startDate: number;
446
+ endDate: number;
447
+ value: string;
448
+ }
449
+ export interface IFilterComponent {
450
+ gradeList: string[];
451
+ onChangeFilterGrade: Function;
452
+ fontSizeInputSelect?: string;
453
+ gradeFilter: string[];
454
+ startDate: number | undefined | null;
455
+ endDate: number | undefined | null;
456
+ student?: Student | null;
457
+ onChangeStudent: Function;
458
+ studentData: Student[];
459
+ academicYearList: any[];
460
+ valueAcademicYear: any;
461
+ onChangeAcademicYear: Function;
462
+ onChangeEndDateChart: (date: MaterialUiPickersDate | null, value?: string | null) => void;
463
+ onChangeStartDateChart: (date: MaterialUiPickersDate | null, value?: string | null) => void;
464
+ onChangeFilterCalendar: Function;
465
+ expandedFilter: boolean;
466
+ onToggleChart: Function;
467
+ onClearFilter: Function;
468
+ onSaveFilter: Function;
469
+ optionDate?: string;
470
+ }
471
+ export interface ITotalCard {
472
+ label: string;
473
+ value: number | string;
474
+ iconSrc: string;
475
+ }
476
+ export interface IQuestionResponseLastMonth {
477
+ avgQuestionResponse: number;
478
+ avgQuestionResponseLastMonth: number;
479
+ questionId: number;
480
+ questionText: string;
481
+ }
482
+ export interface ICheckInResult {
483
+ id: number;
484
+ isTeacherResult: boolean;
485
+ startTime: string;
486
+ endTime: string;
487
+ }
488
+ export interface IResponseStudentQuestion {
489
+ sessionId: number;
490
+ studentAvatar: string;
491
+ studentId: number;
492
+ studentName: string;
493
+ point: number;
494
+ time: string;
495
+ averageOtherRatings: number;
496
+ isSessionCheckIn: boolean;
497
+ sessionResults: ICheckInResult[];
498
+ }
499
+ export interface ISeries {
500
+ name: string;
501
+ questionTranslation?: string;
502
+ data: number[];
503
+ }
504
+ export interface IGenerateDashboardChart {
505
+ typeChart: string;
506
+ activeColumn: boolean[];
507
+ series: any[];
508
+ weeklySeries?: any[];
509
+ avgContent?: string;
510
+ months: string[];
511
+ name: string;
512
+ dayOfWeek?: string[];
513
+ colors: string[];
514
+ textColors?: string[];
515
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
516
+ studentCount?: number;
517
+ studentPercentage?: number;
518
+ responseStudent?: IResponseStudentQuestion[];
519
+ classFontSize?: string;
520
+ print?: boolean;
521
+ width?: number | string;
522
+ height?: number | string;
523
+ titleClassFontSize?: string;
524
+ min?: number;
525
+ handleHoverTooltip?: Function;
526
+ hiddenKpi?: boolean;
527
+ kpiText?: string;
528
+ timeOfDay?: string;
529
+ weeks?: string[];
530
+ description?: string;
531
+ skillClass?: string;
532
+ kpiClassName?: string;
533
+ lowMetricStudents?: ILowMetricStudent[];
534
+ studentMetricPercent?: number;
535
+ noGradient?: boolean;
536
+ setOptionDate?: Function;
537
+ stressValue?: number[];
538
+ noAvgTotal?: boolean;
539
+ }
540
+ export interface IResponseStudentQuestion {
541
+ sessionId: number;
542
+ studentAvatar: string;
543
+ studentId: number;
544
+ studentName: string;
545
+ point: number;
546
+ time: string;
547
+ averageOtherRatings: number;
548
+ isSessionCheckIn: boolean;
549
+ sessionResults: ICheckInResult[];
550
+ }
551
+ export interface IStudentSkillQuestion {
552
+ studentPercentageStress: number;
553
+ studentPercentageUnsafe: number;
554
+ studentSafetyQuestionCount: number;
555
+ studentStressQuestionCount: number;
556
+ responseStudentSafety: IResponseStudentQuestion[];
557
+ responseStudentStress: IResponseStudentQuestion[];
558
+ }
559
+ export interface IStudentPressure {
560
+ boreOutStudent: string[];
561
+ burnoutStudent: string[];
562
+ comfortStudent: string[];
563
+ strainStudent: string[];
564
+ stretchStudent: string[];
565
+ }
566
+ export interface IConcernMetricTab {
567
+ studentSkillQuestion: IStudentSkillQuestion;
568
+ classFontSize?: string;
569
+ stressData: ISeries[];
570
+ safetyData: ISeries[];
571
+ dayOfWeekOneToOne: string[];
572
+ monthsOneToOne: string[];
573
+ handleHoverTooltip?: Function;
574
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
575
+ studentPressure: IStudentPressure;
576
+ timeOfDay?: string;
577
+ metricWeeks: string[];
578
+ metricDataWeeks: number[];
579
+ metricMonths: string[];
580
+ metricDataMonths: number[];
581
+ lowMetricStudents: ILowMetricStudent[];
582
+ studentMetricPercent: number;
583
+ stressValue: number[];
584
+ }
585
+ export interface IConversationTab {
586
+ conversationKpi: IConversationKpi;
587
+ }
588
+ export interface IGraphTrend {
589
+ value: number;
590
+ isStress?: boolean;
591
+ label?: string;
592
+ timeOfDay?: string;
593
+ valueData?: number;
594
+ }
595
+ export interface IOpenFieldTab {
596
+ summarizeQuestions: ISummarizeQuestion | undefined;
597
+ handleRedirectAllAnswer: () => void;
598
+ questionFilters: any;
599
+ handleChangeQuestionFilter: (filter: any) => void;
600
+ goToSession: Function;
601
+ }
602
+ export interface ISuccessIndicatorTab {
603
+ successIndicatorsData: ISeries[];
604
+ successIndicatorWeeklyData: ISeries[];
605
+ monthsOneToOne: string[];
606
+ dayOfWeekOneToOne: string[];
607
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
608
+ timeOfDay?: string;
609
+ classFontSize?: string;
610
+ handleHoverTooltip?: Function;
611
+ weeksOneToOne: string[];
612
+ }
613
+ export interface ILearningItem {
614
+ learningStrategyName: string;
615
+ usageCount: number;
616
+ usagePoint: number[];
617
+ }
618
+ export interface ILearningProgressTab {
619
+ learningStrategies: ILearningItem[];
620
+ classFontSize?: string;
621
+ handleHoverTooltip?: Function;
622
+ print?: boolean;
623
+ }
624
+ export interface IReadinessToLearnTab {
625
+ handleHoverTooltip?: Function;
626
+ dataReadinessOfChart: IReadinessToLearning[];
627
+ classFontSize?: string;
628
+ dataOverallReadyToLearn: IOverallReadinessToLearn;
629
+ monthsOneToOne: string[];
630
+ dayOfWeekOneToOne: string[];
631
+ preparednessData: ISeries[];
632
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
633
+ preparednessWeeklyData: ISeries[];
634
+ weeksOneToOne: string[];
635
+ setOptionDate?: Function;
636
+ }
637
+ export interface IGenerateTrendQuestion {
638
+ series: ISeries[];
639
+ avgQuestionLastMonth: IQuestionResponseLastMonth[];
640
+ trendLabels: string[];
641
+ icons: string[];
642
+ className?: string;
643
+ noAvgText?: boolean;
644
+ }
645
+ export interface FILTER_STUDENT_WELLBEING {
646
+ startDate?: number;
647
+ endDate?: number;
648
+ classType?: string;
649
+ grade?: string;
650
+ studentId?: number | null;
651
+ timeOfDay?: string;
652
+ roles?: string[];
653
+ optionDate?: string;
654
+ }
655
+ export interface ILowMetricStudent {
656
+ matchedGroupNames: string[];
657
+ month: string;
658
+ sessionId: number;
659
+ startTime: string;
660
+ studentName: string;
661
+ week: string;
662
+ year: string;
663
+ orderWeek: number;
664
+ orderMonth: number;
665
+ }
666
+ export interface IConversationKpi {
667
+ conversationTarget: number;
668
+ conversationTeacherAvg: number;
669
+ avgStudentReview: number;
670
+ sessionReviewSkipped: number;
671
+ }
437
672
  export {};
@@ -96,13 +96,13 @@ export declare const studentByGradeConvert: (newData: IStudentByGrade[]) => {
96
96
  data: number[];
97
97
  }[];
98
98
  export declare const findTotalStudentByGrade: (data: IStudentByGrade[]) => number;
99
- export declare const getConvertMinuteToHour: (timeSecond: any) => string;
99
+ export declare const getConvertMinuteToHour: (minutes: number | string) => string;
100
100
  export declare const readinesToLearnoptions: (seriesName: string[], data: any, handleHoverTooltip?: Function | undefined, chartName?: string | undefined) => ApexOptions;
101
101
  export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
102
102
  name: string;
103
103
  data: import("react").ReactText[][];
104
104
  }[];
105
- export declare const optionColumnChartAndPercents: (min: number, months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], maxSeries: number, dayOfWeek: string[], isCountSeries?: boolean | undefined, handleTooltip?: Function | undefined, chartName?: string | undefined) => ApexOptions;
105
+ export declare const optionColumnChartAndPercents: (min: number, months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], maxSeries: number, dayOfWeek: string[], isCountSeries?: boolean | undefined, handleTooltip?: Function | undefined, chartName?: string | undefined, print?: boolean | undefined) => 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
108
  export declare const overallDonutCHartOptions: (labelNames: string[], colors: string[], isCountSeries?: boolean | undefined, textColors?: string[] | undefined, handleHoverTooltip?: Function | undefined, chartName?: string | undefined) => ApexOptions;
@@ -110,6 +110,7 @@ export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) =
110
110
  export declare const convertToSeriesColumnChartAndPercent: (dataCharts: IQuestionTranslate[], data: IOverviewQuestionChoice[], isHardQuestion?: boolean | undefined) => {
111
111
  name: string;
112
112
  questionTranslation: string;
113
+ description: string | undefined;
113
114
  data: number[];
114
115
  }[];
115
116
  export declare const convertToSeriesColumnChartAndPercentProgress: (data: IOverviewQuestionChoice[]) => {
@@ -138,4 +139,6 @@ export declare const handleAveraged: (points: number[], isStress?: boolean | und
138
139
  export declare const handleGenerateAvgQuestion: (data: number[], isStress: boolean, avgContent?: string | undefined) => string;
139
140
  declare type PropertySelector<T> = (item: T) => any;
140
141
  export declare const customSortBy: <T>(array: T[], selector: PropertySelector<T>) => T[];
142
+ export declare const formatLowMetricLabels: (labels: string[]) => string;
143
+ export declare const getDescriptionFromPercent: (percent: number, descriptions: any[], isStress?: boolean) => any;
141
144
  export {};
@@ -1,10 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
2
  declare const useChartDatas: () => {
4
3
  user: any;
5
- filter: import("../configs/types").DashboardFilter;
6
- LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
7
- LIST_FILTERS_RIGHT: PROPS_FILTERS_COMPONENT[];
8
4
  totalCardData: ({
9
5
  icon: string;
10
6
  title: string;
@@ -34,12 +30,6 @@ declare const useChartDatas: () => {
34
30
  preparednessData: import("../configs/types").ISeries[];
35
31
  safetyData: import("../configs/types").ISeries[];
36
32
  stressData: import("../configs/types").ISeries[];
37
- seriesConference: import("../configs/types").ISeries[];
38
- avgConferenceLastMonth: import("../configs/types").IQuestionResponseLastMonth[];
39
- monthsConference: string[];
40
- dayOfWeekConference: string[];
41
- handleActiveColumnConference: (index: number) => void;
42
- activeColumnConference: boolean[];
43
33
  avgQuestionLastMonth: import("../configs/types").IQuestionResponseLastMonth[];
44
34
  studentPressure: import("../configs/types").IStudentPressure;
45
35
  dataOverallReadyToLearn: import("../configs/types").IOverallReadinessToLearn;
@@ -59,5 +49,8 @@ declare const useChartDatas: () => {
59
49
  goToSession: (sessionId: number, sessionResultId: number) => void;
60
50
  isExistQuestion: boolean;
61
51
  handleHoverTooltip: (name: string) => void;
52
+ gradeList: string[];
53
+ handleChangeFilterCalendar: (value: import("../configs/types").IFilterCalendar) => void;
54
+ filter: import("../configs/types").DashboardFilter;
62
55
  };
63
56
  export default useChartDatas;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ILabelBox, ISeries, ISummarizeQuestion } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ISeries, ISummarizeQuestion, IFilterCalendar, ILowMetricStudent, IConversationKpi } from "../configs/types";
3
3
  import { IFilter, Student } from "../../../utils/type";
4
4
  import { IStudentSkillQuestion } from "../../MyStudent/components/NewOverview/Chat/types/types";
5
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
6
+ import { IStudent } from "../../../types/types";
5
7
  declare const useDashboard: () => {
6
8
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
7
9
  filter: DashboardFilter;
@@ -21,10 +23,7 @@ declare const useDashboard: () => {
21
23
  user: any;
22
24
  studentDefault: Student | undefined;
23
25
  setStudentDefault: import("react").Dispatch<import("react").SetStateAction<Student | undefined>>;
24
- genderOfStudent: string;
25
- setGenderOfStudent: import("react").Dispatch<import("react").SetStateAction<string>>;
26
26
  handleFilterStudent: (option: any) => void;
27
- handleFilterTeacher: (option: any) => void;
28
27
  onChangeFilters: (filterSelect: IFilter) => void;
29
28
  handleActiveColumnOneToOne: (index: number, name: string) => void;
30
29
  monthsOneToOne: string[];
@@ -39,14 +38,6 @@ declare const useDashboard: () => {
39
38
  gradeList: string[];
40
39
  studentPressure: IStudentPressure;
41
40
  dataOverallReadyToLearn: IOverallReadinessToLearn;
42
- seriesConference: ISeries[];
43
- avgConferenceLastMonth: IQuestionResponseLastMonth[];
44
- monthsConference: string[];
45
- dayOfWeekConference: string[];
46
- handleActiveColumnConference: (index: number) => void;
47
- activeColumnConference: boolean[];
48
- labelBox: ILabelBox;
49
- setLabelBox: import("react").Dispatch<import("react").SetStateAction<ILabelBox>>;
50
41
  studentSkillQuestion: IStudentSkillQuestion;
51
42
  summarizeQuestions: ISummarizeQuestion | undefined;
52
43
  handleRedirectAllAnswer: () => void;
@@ -60,5 +51,42 @@ declare const useDashboard: () => {
60
51
  goToSession: (sessionId: number, sessionResultId: number) => void;
61
52
  isExistQuestion: boolean;
62
53
  setIsExistQuestion: import("react").Dispatch<import("react").SetStateAction<boolean>>;
54
+ handleChangeFilterCalendar: (value: IFilterCalendar) => void;
55
+ handleChangeFilterGrade: (grade: string) => void;
56
+ activeTab: string;
57
+ setActiveTab: import("react").Dispatch<import("react").SetStateAction<string>>;
58
+ handleHoverTooltip: (name: string) => void;
59
+ academicYearItem: any;
60
+ handleChangeEndDateChart: (date: MaterialUiPickersDate) => void;
61
+ handleChangeStartDateChart: (date: MaterialUiPickersDate) => void;
62
+ expandedFilter: boolean;
63
+ onToggleChart: () => void;
64
+ classFontSize: string;
65
+ fontSizeInputSelect: string;
66
+ successIndicatorWeeklyData: ISeries[];
67
+ weeksOneToOne: string[];
68
+ preparednessWeeklyData: ISeries[];
69
+ metricWeeks: string[];
70
+ metricDataWeeks: number[];
71
+ metricMonths: string[];
72
+ metricDataMonths: number[];
73
+ lowMetricStudents: ILowMetricStudent[];
74
+ handleClick: (event: React.MouseEvent<HTMLElement>) => void;
75
+ handleClose: () => void;
76
+ anchorEl: HTMLElement | null;
77
+ id_export: string | undefined;
78
+ openPopoverExport: boolean;
79
+ toggle: () => void;
80
+ handleSelectToPrint: (chartName: string) => void;
81
+ selectedToPrint: string[];
82
+ modal: boolean;
83
+ schoolName: any;
84
+ onClearFilter: () => void;
85
+ onSaveFilter: () => void;
86
+ studentData: IStudent[];
87
+ studentMetricPercent: number;
88
+ setOptionDate: import("react").Dispatch<import("react").SetStateAction<string>>;
89
+ stressValue: number[];
90
+ conversationKpi: IConversationKpi;
63
91
  };
64
92
  export default useDashboard;
@@ -1,3 +1,2 @@
1
- import { FC } from "react";
2
- declare const Dashboard: FC;
1
+ declare const Dashboard: () => JSX.Element;
3
2
  export default Dashboard;
@@ -5,7 +5,7 @@ export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[]
5
5
  data: number[];
6
6
  }[];
7
7
  export declare const handleAveraged: (points: number[], isStress?: boolean | undefined) => number;
8
- export declare const getConvertMinuteToHour: (timeSecond: any, usingText?: boolean | undefined) => string;
8
+ export declare const getConvertMinuteToHour: (time: any, usingText?: boolean | undefined) => string;
9
9
  export declare const getTimeOfFirstDayCurrentMonth: () => number;
10
10
  export declare const getTimeCurrentDay: () => number;
11
11
  export declare const getTimeOfFirstDayLastMonth: () => number;
@@ -5,7 +5,7 @@ import { ISeries } from "../../../../../Dashboard/configs/types";
5
5
  export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
6
6
  export declare const average: (arr: number[]) => number;
7
7
  export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
8
- export declare const overallDonutCHartOptions: (labelNames: string[], colors: string[], isCountSeries?: boolean | undefined, textColors?: string[] | undefined) => ApexOptions;
8
+ export declare const overallDonutCHartOptions: (labelNames: string[], colors: string[], isCountSeries?: boolean | undefined, textColors?: string[] | undefined, hasTooltip?: boolean | undefined) => ApexOptions;
9
9
  export declare const learningStrategyChartOptions: (labelNames: any, usageCountList: number[], isMobileScreen: boolean) => ApexOptions;
10
10
  export declare const readinesToLearnoptions: (seriesName: string[], data: any, redirectStudentOverview?: Function | undefined, isStudent?: boolean | undefined, colors?: string[] | undefined, isStudentResponses?: boolean | undefined) => ApexOptions;
11
11
  export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[], chartWidth: number, isStudentResponses?: boolean | undefined) => {
@@ -20,7 +20,7 @@ export declare const mergeBarChartAndArea: (series: ISeries[], isHasLineChart: b
20
20
  questionTranslation?: string | undefined;
21
21
  }[];
22
22
  export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any, dayOfWeek?: string[] | undefined) => ApexOptions;
23
- export declare const optionColumnChartAndPercents: (min: number, months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], maxSeries: number, dayOfWeek?: string[] | undefined, isCountSeries?: boolean | undefined) => ApexOptions;
23
+ export declare const optionColumnChartAndPercents: (min: number, months: string[], activeData: boolean[], isRidgeCharts: boolean, colors: string[], maxSeries: number, dayOfWeek?: string[] | undefined, isCountSeries?: boolean | undefined, noGradient?: boolean | undefined) => ApexOptions;
24
24
  export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[], isHardQuestion?: boolean | undefined) => {
25
25
  name: string;
26
26
  data: number[];
@@ -226,6 +226,6 @@ export interface IModelStudentSession {
226
226
  export interface IModelSkillStudent {
227
227
  studentCount?: number;
228
228
  studentPercentage?: number;
229
- name: string;
229
+ name?: string;
230
230
  responseStudent?: IResponseStudentQuestion[];
231
231
  }
@@ -8,6 +8,7 @@ interface IProps {
8
8
  colors: string[];
9
9
  isCountSeries?: boolean;
10
10
  min?: number;
11
+ noGradient?: boolean;
11
12
  }
12
13
  declare const AreaChart: FC<IProps>;
13
14
  export default AreaChart;