mario-education 2.4.498-release → 2.4.500-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.
@@ -8,6 +8,8 @@ interface IProps {
8
8
  dayOfWeek: string[];
9
9
  isCountSeries?: boolean;
10
10
  min?: number;
11
+ handleHoverTooltip?: Function;
12
+ chartName?: string;
11
13
  }
12
14
  declare const AreaChart: FC<IProps>;
13
15
  export default AreaChart;
@@ -2,7 +2,9 @@ import React from "react";
2
2
  import { IReadinessToLearning } from "../configs/types";
3
3
  interface IProps {
4
4
  data: IReadinessToLearning[];
5
+ handleHoverTooltip?: Function;
5
6
  isPrint?: boolean;
7
+ name?: string;
6
8
  }
7
9
  declare const _default: React.NamedExoticComponent<IProps>;
8
10
  export default _default;
@@ -7,6 +7,8 @@ interface IProps {
7
7
  height?: number | string;
8
8
  textColors?: string[];
9
9
  isCountSeries?: boolean;
10
+ handleHoverTooltip?: Function;
11
+ chartName?: string;
10
12
  }
11
13
  declare const OverallDonutChart: FC<IProps>;
12
14
  export default OverallDonutChart;
@@ -1,3 +1,3 @@
1
1
  import { IStudentPressureChart } from "../configs/types";
2
- declare const StudentPressureChart: ({ studentPressure, changeLanguage, width, print }: IStudentPressureChart) => JSX.Element;
2
+ declare const StudentPressureChart: ({ studentPressure, changeLanguage, width, print, handleHoverTooltip }: IStudentPressureChart) => JSX.Element;
3
3
  export default StudentPressureChart;
@@ -6,6 +6,7 @@ interface ITopLearningStrategy {
6
6
  topLearningStrategyId?: string;
7
7
  width?: number;
8
8
  isPrint?: boolean;
9
+ handleHoverTooltip?: Function;
9
10
  }
10
11
  declare const _default: React.NamedExoticComponent<ITopLearningStrategy>;
11
12
  export default _default;
@@ -37,6 +37,7 @@ export interface IStudentPressureChart {
37
37
  changeLanguage?: string;
38
38
  width?: number;
39
39
  print?: boolean;
40
+ handleHoverTooltip?: Function;
40
41
  }
41
42
  export interface IStudentPressure {
42
43
  boreOutStudent: string[];
@@ -311,6 +312,7 @@ export interface IGenerateChart {
311
312
  studentPercentage?: number;
312
313
  responseStudent?: IResponseStudentQuestion[];
313
314
  classFontSize?: string;
315
+ handleHoverTooltip?: Function;
314
316
  }
315
317
  export interface IDashboardToPDF {
316
318
  startTime: number | undefined;
@@ -28,7 +28,7 @@ export declare const mtssOptions: {
28
28
  value: MtssType;
29
29
  label: string;
30
30
  }[];
31
- export declare const learningStrategyChartOptions: (labelNames: any, usageCountList: number[], isMobileScreen: boolean) => ApexOptions;
31
+ export declare const learningStrategyChartOptions: (labelNames: any, usageCountList: number[], isMobileScreen: boolean, handleHoverTooltip?: Function | undefined, chartName?: string | 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;
@@ -97,15 +97,15 @@ export declare const studentByGradeConvert: (newData: IStudentByGrade[]) => {
97
97
  }[];
98
98
  export declare const findTotalStudentByGrade: (data: IStudentByGrade[]) => number;
99
99
  export declare const getConvertMinuteToHour: (timeSecond: any) => string;
100
- export declare const readinesToLearnoptions: (seriesName: string[], data: any) => ApexOptions;
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) => 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) => 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[], isCountSeries?: boolean | undefined, textColors?: string[] | undefined) => ApexOptions;
108
+ export declare const overallDonutCHartOptions: (labelNames: string[], colors: string[], isCountSeries?: boolean | undefined, textColors?: string[] | undefined, handleHoverTooltip?: Function | undefined, chartName?: string | undefined) => ApexOptions;
109
109
  export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => IQuestionTranslate[];
110
110
  export declare const convertToSeriesColumnChartAndPercent: (dataCharts: IQuestionTranslate[], data: IOverviewQuestionChoice[], isHardQuestion?: boolean | undefined) => {
111
111
  name: string;
@@ -58,5 +58,6 @@ declare const useChartDatas: () => {
58
58
  };
59
59
  goToSession: (sessionId: number, sessionResultId: number) => void;
60
60
  isExistQuestion: boolean;
61
+ handleHoverTooltip: (name: string) => void;
61
62
  };
62
63
  export default useChartDatas;
@@ -19,7 +19,7 @@ export declare const updateSurvey: (surveyId: number, model: any) => Promise<imp
19
19
  export declare const deleteSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
20
20
  export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
21
21
  export declare const getListQuestionSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
22
- export declare const getSurveyDetail: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
22
+ export declare const getSurveyDetail: (surveyId: number, language: string) => Promise<import("axios").AxiosResponse<any>>;
23
23
  export declare const getDashboardTotalSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
24
24
  export declare const getDashboardFlagSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
25
25
  export declare const getDashboardTemplateSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
@@ -112,7 +112,6 @@ export declare const initialValues: {
112
112
  studentIds: never[];
113
113
  templateQuestions: never[];
114
114
  activeStep: number;
115
- listSelectTemplate: never[];
116
115
  staffIds: never[];
117
116
  summarizeQuestions: never[];
118
117
  };
@@ -588,7 +588,6 @@ export interface FORM_SURVEY {
588
588
  templateQuestions: TEMPLATE_SURVEY[];
589
589
  studentIds: number[];
590
590
  staffIds: string[];
591
- listSelectTemplate: TEMPLATE_SURVEY[];
592
591
  summarizeQuestions: QuestionSummarizeType[];
593
592
  }
594
593
  export interface STUDENT_SURVEY {
package/dist/index.css CHANGED
@@ -2415,6 +2415,7 @@ h6._3zOGW {
2415
2415
  line-height: 18px;
2416
2416
  margin-right: 5px;
2417
2417
  margin-bottom: 0;
2418
+ text-transform: capitalize;
2418
2419
  }
2419
2420
 
2420
2421
  ._3-8OW {
@@ -3014,20 +3015,20 @@ h6._3zOGW {
3014
3015
  flex-direction: column;
3015
3016
  }
3016
3017
 
3017
- ._1ym2M > ._21miX {
3018
+ ._1ym2M>._21miX {
3018
3019
  font-size: 24px;
3019
3020
  font-weight: 600;
3020
3021
  line-height: 32px;
3021
3022
  }
3022
3023
 
3023
- ._1ym2M > ._38wLO {
3024
+ ._1ym2M>._38wLO {
3024
3025
  font-size: 32px;
3025
3026
  font-weight: 600;
3026
3027
  line-height: 40px;
3027
3028
  margin-bottom: 8px;
3028
3029
  }
3029
3030
 
3030
- ._1ym2M > ._3giEV {
3031
+ ._1ym2M>._3giEV {
3031
3032
  font-size: 14px;
3032
3033
  font-weight: 400;
3033
3034
  line-height: 20px;
@@ -3069,57 +3070,57 @@ h6._3zOGW {
3069
3070
  }
3070
3071
 
3071
3072
  ._3KJDS {
3072
- display: flex;
3073
- flex-direction: column;
3074
- height: 100%;
3075
- flex-grow: 1;
3076
- overflow: hidden;
3073
+ display: flex;
3074
+ flex-direction: column;
3075
+ height: 100%;
3076
+ flex-grow: 1;
3077
+ overflow: hidden;
3077
3078
  }
3078
3079
 
3079
- ._3KJDS > ._QR625 {
3080
- flex-shrink: 0;
3080
+ ._3KJDS>._QR625 {
3081
+ flex-shrink: 0;
3081
3082
  }
3082
3083
 
3083
- ._3KJDS > ._xCCue {
3084
- flex-grow: 1;
3085
- overflow-y: auto;
3086
- display: block;
3087
- /* width: calc(100% + 10px); */
3084
+ ._3KJDS>._xCCue {
3085
+ flex-grow: 1;
3086
+ overflow-y: auto;
3087
+ display: block;
3088
+ /* width: calc(100% + 10px); */
3088
3089
  }
3089
3090
 
3090
- ._3KJDS > ._3GkYB {
3091
+ ._3KJDS>._3GkYB {
3091
3092
  padding-right: 10px;
3092
3093
  }
3093
3094
 
3094
- ._3KJDS > ._xCCue::-webkit-scrollbar {
3095
+ ._3KJDS>._xCCue::-webkit-scrollbar {
3095
3096
  width: 10px;
3096
3097
  }
3097
3098
 
3098
- ._3KJDS > ._xCCue::-webkit-scrollbar-track {
3099
+ ._3KJDS>._xCCue::-webkit-scrollbar-track {
3099
3100
  background: #F6F6F6;
3100
3101
  border-radius: 8px;
3101
3102
  box-shadow: none;
3102
3103
  }
3103
3104
 
3104
- ._3KJDS > ._xCCue::-webkit-scrollbar-thumb {
3105
+ ._3KJDS>._xCCue::-webkit-scrollbar-thumb {
3105
3106
  background: #316CD9;
3106
3107
  border: 2px solid #e1e1e1;
3107
3108
  }
3108
3109
 
3109
- ._3KJDS > ._xCCue::-webkit-scrollbar-thumb:hover {
3110
+ ._3KJDS>._xCCue::-webkit-scrollbar-thumb:hover {
3110
3111
  background: #2a5ebe;
3111
3112
  }
3112
3113
 
3113
- ._3KJDS > ._xCCue > table {
3114
- table-layout: fixed;
3115
- width: 100%;
3114
+ ._3KJDS>._xCCue>table {
3115
+ table-layout: fixed;
3116
+ width: 100%;
3116
3117
  }
3117
3118
 
3118
3119
  ._3zJ60 {
3119
- display: table !important;
3120
- width: 100%;
3121
- table-layout: fixed;
3122
- width: calc(100% - 20px);
3120
+ display: table !important;
3121
+ width: 100%;
3122
+ table-layout: fixed;
3123
+ width: calc(100% - 20px);
3123
3124
  }
3124
3125
 
3125
3126
  ._3iePe {
@@ -3130,31 +3131,31 @@ h6._3zOGW {
3130
3131
  cursor: default;
3131
3132
  }
3132
3133
 
3133
- ._3iePe > div {
3134
+ ._3iePe>div {
3134
3135
  font-size: 14px !important;
3135
3136
  font-weight: 400 !important;
3136
3137
  line-height: 20px !important;
3137
3138
  opacity: .56;
3138
3139
  }
3139
3140
 
3140
- ._3iePe > div > svg {
3141
+ ._3iePe>div>svg {
3141
3142
  width: 16px;
3142
3143
  height: 16px;
3143
3144
  margin-left: 8px;
3144
3145
  }
3145
3146
 
3146
- ._jt5M3 > ._2cEqW,
3147
- ._jt5M3 > ._2cEqW > div,
3148
- ._jt5M3 > ._2cEqW > div > div,
3149
- ._jt5M3 > ._2cEqW > div > span,
3150
- ._jt5M3 > ._2cEqW > div > span > span {
3147
+ ._jt5M3>._2cEqW,
3148
+ ._jt5M3>._2cEqW>div,
3149
+ ._jt5M3>._2cEqW>div>div,
3150
+ ._jt5M3>._2cEqW>div>span,
3151
+ ._jt5M3>._2cEqW>div>span>span {
3151
3152
  font-size: 14px;
3152
3153
  font-weight: 400;
3153
3154
  line-height: 20px;
3154
3155
  border-bottom: none;
3155
3156
  }
3156
3157
 
3157
- ._2cEqW > div > ._qGHNb {
3158
+ ._2cEqW>div>._qGHNb {
3158
3159
  display: -webkit-box;
3159
3160
  -webkit-box-orient: vertical;
3160
3161
  overflow: hidden;
@@ -3165,42 +3166,42 @@ h6._3zOGW {
3165
3166
  }
3166
3167
 
3167
3168
  ._1FNac {
3168
- display: block !important;
3169
- /* max-height: 400px;
3169
+ display: block !important;
3170
+ /* max-height: 400px;
3170
3171
  overflow-y: scroll; */
3171
3172
  }
3172
3173
 
3173
- ._e1eW1 > ._ZaJN5 {
3174
+ ._e1eW1>._ZaJN5 {
3174
3175
  display: table;
3175
3176
  width: 100%;
3176
3177
  table-layout: fixed;
3177
3178
  }
3178
3179
 
3179
- ._e1eW1 > ._jt5M3 > ._2cEqW:nth-child(1) {
3180
+ ._e1eW1>._jt5M3>._2cEqW:nth-child(1) {
3180
3181
  width: 18%;
3181
3182
  }
3182
3183
 
3183
- ._e1eW1 > ._jt5M3 > ._2cEqW:nth-child(2) {
3184
+ ._e1eW1>._jt5M3>._2cEqW:nth-child(2) {
3184
3185
  width: 10%;
3185
3186
  }
3186
3187
 
3187
- ._e1eW1 > ._jt5M3 > ._2cEqW:nth-child(3) {
3188
+ ._e1eW1>._jt5M3>._2cEqW:nth-child(3) {
3188
3189
  width: 15%;
3189
3190
  }
3190
3191
 
3191
- ._e1eW1 > ._jt5M3 > ._2cEqW:nth-child(4) {
3192
+ ._e1eW1>._jt5M3>._2cEqW:nth-child(4) {
3192
3193
  width: 12%;
3193
3194
  }
3194
3195
 
3195
- ._e1eW1 > ._jt5M3 > ._2cEqW:nth-child(5) {
3196
+ ._e1eW1>._jt5M3>._2cEqW:nth-child(5) {
3196
3197
  width: 30%;
3197
3198
  }
3198
3199
 
3199
- ._e1eW1 > ._jt5M3 > ._2cEqW:nth-child(6) {
3200
+ ._e1eW1>._jt5M3>._2cEqW:nth-child(6) {
3200
3201
  width: 15%;
3201
3202
  }
3202
3203
 
3203
- ._e1eW1 > ._jt5M3:nth-child(odd) {
3204
+ ._e1eW1>._jt5M3:nth-child(odd) {
3204
3205
  background-color: #F6F6F6;
3205
3206
  }
3206
3207
 
@@ -3219,7 +3220,7 @@ h6._3zOGW {
3219
3220
  height: calc(-200px + 100vh)
3220
3221
  }
3221
3222
 
3222
- ._2emfn > div > div > nav > ul {
3223
+ ._2emfn>div>div>nav>ul {
3223
3224
  margin: 16px 0 0;
3224
3225
  }
3225
3226