mario-education 2.4.574-feedback → 2.4.576-feedback

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.
@@ -10,6 +10,10 @@ interface PROPS_TABLE {
10
10
  listTableCell: TABLE_CELL[];
11
11
  filters: FILTER_SURVEY;
12
12
  handleSort?: Function;
13
+ hasCheckbox?: boolean;
14
+ dataSelect?: any[];
15
+ selectedIds?: number[];
16
+ handleSelectAll?: any;
13
17
  }
14
- declare const TableCells: ({ listTableCell, filters, handleSort }: PROPS_TABLE) => JSX.Element;
18
+ declare const TableCells: ({ listTableCell, filters, handleSort, hasCheckbox, dataSelect, selectedIds, handleSelectAll }: PROPS_TABLE) => JSX.Element;
15
19
  export default TableCells;
@@ -33,6 +33,8 @@ interface PROPS_FILTER {
33
33
  onChangeOptionDate?: Function;
34
34
  renderOption?: string;
35
35
  isSelectMulti?: boolean;
36
+ handleOpenModalDelete?: any;
37
+ selectedIds?: number[];
36
38
  }
37
- declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, }: PROPS_FILTER) => JSX.Element;
39
+ declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, handleOpenModalDelete, selectedIds }: PROPS_FILTER) => JSX.Element;
38
40
  export default CustomFilterComponent;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { IConcernMetricTab } from "../configs/types";
3
- declare const _default: React.MemoExoticComponent<({ studentSkillQuestion, classFontSize, safetyData, stressData, monthsOneToOne, dayOfWeekOneToOne, handleHoverTooltip, avgQuestionLastMonth, studentPressure, timeOfDay, metricWeeks, lowMetricStudents, metricDataMonths, metricDataWeeks, metricMonths, studentMetricPercent, stressValue }: IConcernMetricTab) => JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<({ studentSkillQuestion, classFontSize, safetyData, stressData, monthsOneToOne, dayOfWeekOneToOne, handleHoverTooltip, avgQuestionLastMonth, studentPressure, timeOfDay, metricWeeks, lowMetricStudents, metricDataMonths, metricDataWeeks, metricMonths, studentMetricPercent, stressValue, safetyValue }: IConcernMetricTab) => JSX.Element>;
4
4
  export default _default;
@@ -0,0 +1,8 @@
1
+ import { IEducatorConversationKpi } from '../configs/types';
2
+ interface IProps {
3
+ educators: IEducatorConversationKpi[];
4
+ open: boolean;
5
+ onClose: Function;
6
+ }
7
+ declare const EducatorConversationModal: ({ educators, open, onClose }: IProps) => JSX.Element;
8
+ export default EducatorConversationModal;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { IGenerateDashboardChart } from "../configs/types";
3
- declare const _default: React.MemoExoticComponent<({ typeChart, activeColumn, series, months, name, dayOfWeek, colors, textColors, avgQuestionLastMonth, studentCount, studentPercentage, responseStudent, classFontSize, avgContent, print, width, height, titleClassFontSize, min, hiddenKpi, timeOfDay, weeklySeries, weeks, description, skillClass, kpiClassName, lowMetricStudents, studentMetricPercent, noGradient, setOptionDate, stressValue, noAvgTotal }: IGenerateDashboardChart) => JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<({ typeChart, activeColumn, series, months, name, dayOfWeek, colors, textColors, avgQuestionLastMonth, studentCount, studentPercentage, responseStudent, classFontSize, avgContent, print, width, height, titleClassFontSize, min, hiddenKpi, timeOfDay, weeklySeries, weeks, description, skillClass, kpiClassName, lowMetricStudents, studentMetricPercent, noGradient, setOptionDate, stressValue, noAvgTotal, onActiveColumn, }: IGenerateDashboardChart) => JSX.Element>;
4
4
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { IReadinessToLearnTab } from "../configs/types";
2
- declare const ReadinessToLearnTab: ({ dataReadinessOfChart, handleHoverTooltip, classFontSize, dataOverallReadyToLearn, dayOfWeekOneToOne, monthsOneToOne, avgQuestionLastMonth, preparednessData, preparednessWeeklyData, weeksOneToOne, setOptionDate }: IReadinessToLearnTab) => JSX.Element;
2
+ declare const ReadinessToLearnTab: ({ dataReadinessOfChart, handleHoverTooltip, classFontSize, dataOverallReadyToLearn, dayOfWeekOneToOne, monthsOneToOne, avgQuestionLastMonth, preparednessData, preparednessWeeklyData, weeksOneToOne, setOptionDate, activeColumn, onActiveColumn }: IReadinessToLearnTab) => JSX.Element;
3
3
  export default ReadinessToLearnTab;
@@ -1,3 +1,3 @@
1
1
  import { ISuccessIndicatorTab } from "../configs/types";
2
- declare const SuccessIndicatorTab: ({ successIndicatorsData, avgQuestionLastMonth, dayOfWeekOneToOne, monthsOneToOne, timeOfDay, classFontSize, handleHoverTooltip, successIndicatorWeeklyData, weeksOneToOne }: ISuccessIndicatorTab) => JSX.Element;
2
+ declare const SuccessIndicatorTab: ({ successIndicatorsData, avgQuestionLastMonth, dayOfWeekOneToOne, monthsOneToOne, timeOfDay, classFontSize, handleHoverTooltip, successIndicatorWeeklyData, weeksOneToOne, activeColumn, onActiveColumn }: ISuccessIndicatorTab) => JSX.Element;
3
3
  export default SuccessIndicatorTab;
@@ -537,6 +537,7 @@ export interface IGenerateDashboardChart {
537
537
  setOptionDate?: Function;
538
538
  stressValue?: number[];
539
539
  noAvgTotal?: boolean;
540
+ onActiveColumn?: any;
540
541
  }
541
542
  export interface IResponseStudentQuestion {
542
543
  sessionId: number;
@@ -582,6 +583,7 @@ export interface IConcernMetricTab {
582
583
  lowMetricStudents: ILowMetricStudent[];
583
584
  studentMetricPercent: number;
584
585
  stressValue: number[];
586
+ safetyValue: number[];
585
587
  }
586
588
  export interface IConversationTab {
587
589
  conversationKpi: IConversationKpi;
@@ -610,6 +612,8 @@ export interface ISuccessIndicatorTab {
610
612
  classFontSize?: string;
611
613
  handleHoverTooltip?: Function;
612
614
  weeksOneToOne: string[];
615
+ activeColumn: boolean[];
616
+ onActiveColumn: any;
613
617
  }
614
618
  export interface ILearningItem {
615
619
  learningStrategyName: string;
@@ -634,6 +638,8 @@ export interface IReadinessToLearnTab {
634
638
  preparednessWeeklyData: ISeries[];
635
639
  weeksOneToOne: string[];
636
640
  setOptionDate?: Function;
641
+ onActiveColumn?: any;
642
+ activeColumn?: boolean[];
637
643
  }
638
644
  export interface IGenerateTrendQuestion {
639
645
  series: ISeries[];
@@ -671,11 +677,19 @@ export interface IMissedReviewStudents {
671
677
  grade?: string;
672
678
  conversationDate?: string;
673
679
  }
680
+ export interface IEducatorConversationKpi {
681
+ educatorUserId: string;
682
+ educatorName: string;
683
+ educatorProfileImage?: string;
684
+ numberOfConversation: number;
685
+ numberOfExpectedConversation: number;
686
+ }
674
687
  export interface IConversationKpi {
675
688
  conversationTarget: number;
676
689
  conversationTeacherAvg: number;
677
690
  avgStudentReview: number;
678
691
  sessionReviewSkipped: number;
679
692
  missedReviewStudents: IMissedReviewStudents[];
693
+ educatorConversationsTarget: IEducatorConversationKpi[];
680
694
  }
681
695
  export {};
@@ -89,5 +89,9 @@ declare const useDashboard: () => {
89
89
  stressValue: number[];
90
90
  conversationKpi: IConversationKpi;
91
91
  setSelectTeacherUserId: (value: any) => Promise<void>;
92
+ safetyValue: number[];
93
+ activeColumnReadiness: boolean[];
94
+ activeColumnIndicators: boolean[];
95
+ handleActiveColumn: (index: number, name: string) => void;
92
96
  };
93
97
  export default useDashboard;
@@ -32,3 +32,4 @@ export declare const getResponsesDistribution: (surveyId: number, params: any) =
32
32
  export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
33
33
  export declare const getRatingLabelSurvey: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
34
34
  export declare const getAnswerChart: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
35
+ export declare const deleteSelectedSurveyApi: (ids: number[]) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare type IProps = {
3
+ isOpen: boolean;
4
+ onClose: Function;
5
+ handleDelete: () => Promise<void>;
6
+ selectedIds: number[];
7
+ };
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;
@@ -53,5 +53,12 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
53
53
  handleChangeStudent: (studentId?: number | undefined) => void;
54
54
  onEditSurvey: (id: number) => void;
55
55
  handlePublishSurvey: (surveyId: any) => Promise<void>;
56
+ selectedIds: number[];
57
+ handleToggleSelect: (id: number) => void;
58
+ handleSelectAll: (checked: boolean) => void;
59
+ handleDeleteSelected: () => Promise<void>;
60
+ handleOpenModalDelete: () => void;
61
+ openSelectedModal: boolean;
62
+ handleCloseModalDelete: () => void;
56
63
  };
57
64
  export default useListSurvey;
package/dist/index.css CHANGED
@@ -532,6 +532,32 @@ tbody._b-AXV tr {
532
532
  margin-right: 16px;
533
533
  }
534
534
 
535
+ ._1vl0q {
536
+ display: flex;
537
+ align-items: center;
538
+ gap: 32px;
539
+ justify-content: space-between;
540
+ }
541
+
542
+ ._3BKxE {
543
+ display: flex;
544
+ justify-content: center;
545
+ align-items: center;
546
+ gap: 8px;
547
+ background: #fc3636;
548
+ border: none;
549
+ outline: none;
550
+ border-radius: 999px;
551
+ padding: 12px 16px;
552
+ color: #fff;
553
+ font-size: 16px;
554
+ font-weight: 500;
555
+
556
+ &:hover {
557
+ box-shadow: 0 0 10px #fc3636;
558
+ }
559
+ }
560
+
535
561
  ._1z_ef {
536
562
  padding: 8px 16px !important;
537
563
  }
@@ -2787,12 +2813,12 @@ h6._3zOGW {
2787
2813
  display: flex;
2788
2814
  align-items: center; }
2789
2815
  ._2WPKK ._35LD0 {
2790
- width: 100%; }
2816
+ width: 100%;
2817
+ margin-left: 8px; }
2791
2818
  ._2WPKK ._1jukR {
2792
2819
  display: flex;
2793
2820
  display: flex;
2794
- align-items: center;
2795
- margin-top: 10px; }
2821
+ align-items: center; }
2796
2822
  @media (max-width: 1023px) {
2797
2823
  ._2WPKK ._1jukR {
2798
2824
  margin-top: 0; } }
@@ -3031,6 +3057,14 @@ h6._3zOGW {
3031
3057
  line-height: 24px;
3032
3058
  color: #242424;
3033
3059
  opacity: 0.56; }
3060
+ ._3qqfp ._UucbR {
3061
+ font-size: 16px;
3062
+ font-weight: 600;
3063
+ line-height: 24px;
3064
+ color: #316CD9;
3065
+ cursor: pointer;
3066
+ display: flex;
3067
+ gap: 6px; }
3034
3068
 
3035
3069
  ._2jy_I {
3036
3070
  display: flex;
@@ -12103,6 +12137,90 @@ tfoot tr td {
12103
12137
  line-height: 24px;
12104
12138
  text-align: center; }
12105
12139
 
12140
+ ._2_xof {
12141
+ display: flex;
12142
+ justify-content: center;
12143
+ align-items: center;
12144
+ padding: 48px;
12145
+ flex-direction: column; }
12146
+ ._2IYUC {
12147
+ width: 100%;
12148
+ margin-top: 24px;
12149
+ margin-bottom: 8px;
12150
+ font-family: "Montserrat-Bold" !important;
12151
+ font-weight: 700;
12152
+ font-size: 36px;
12153
+ line-height: 44px;
12154
+ letter-spacing: 0px;
12155
+ text-align: center; }
12156
+ ._Dm6Kc {
12157
+ width: 100%;
12158
+ font-weight: 400;
12159
+ font-size: 18px;
12160
+ line-height: 27px;
12161
+ letter-spacing: 0px;
12162
+ text-align: center;
12163
+ margin-bottom: 32px; }
12164
+ ._r9NMX {
12165
+ display: flex;
12166
+ width: 100%;
12167
+ justify-content: center;
12168
+ align-items: center;
12169
+ gap: 24px; }
12170
+ ._92MjQ {
12171
+ display: flex;
12172
+ justify-content: center;
12173
+ align-items: center;
12174
+ gap: 8px;
12175
+ border: none;
12176
+ cursor: pointer;
12177
+ background: #316CD9;
12178
+ border-radius: 32px;
12179
+ color: #fff;
12180
+ padding: 14px 24px;
12181
+ font-weight: 700;
12182
+ font-size: 18px;
12183
+ line-height: 27px;
12184
+ letter-spacing: 0px;
12185
+ text-transform: uppercase;
12186
+ width: -webkit-fit-content;
12187
+ width: -moz-fit-content;
12188
+ width: fit-content;
12189
+ transition: 0.3s ease-in-out; }
12190
+ ._92MjQ:hover {
12191
+ box-shadow: #316CD9 0 0 10px; }
12192
+ ._33vda {
12193
+ display: flex;
12194
+ justify-content: center;
12195
+ align-items: center;
12196
+ border: none;
12197
+ cursor: pointer;
12198
+ background: transparent;
12199
+ color: #24242450;
12200
+ font-weight: 700;
12201
+ font-size: 18px;
12202
+ line-height: 27px;
12203
+ letter-spacing: 0px;
12204
+ text-transform: uppercase;
12205
+ width: -webkit-fit-content;
12206
+ width: -moz-fit-content;
12207
+ width: fit-content;
12208
+ transition: 0.3s ease-in-out; }
12209
+ ._33vda:hover {
12210
+ color: red; }
12211
+
12212
+ ._2_xof > svg {
12213
+ width: 56px;
12214
+ height: 56px;
12215
+ -webkit-animation: _3fubD 1.2s infinite;
12216
+ animation: _3fubD 1.2s infinite; }
12217
+
12218
+ ._92MjQ {
12219
+ background: #ff0000;
12220
+ padding: 12px 24px; }
12221
+ ._92MjQ:hover {
12222
+ box-shadow: #ff0000 0 0 10px; }
12223
+
12106
12224
  :root {
12107
12225
  --green-dark: #006E60;
12108
12226
  }