mario-education 2.4.495-release → 2.4.496-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.
- package/dist/containers/Dashboard/components/AreaChart.d.ts +2 -0
- package/dist/containers/Dashboard/components/BubbleChartCustom.d.ts +2 -0
- package/dist/containers/Dashboard/components/OverallDonutChart.d.ts +2 -0
- package/dist/containers/Dashboard/components/StudentPressureChart.d.ts +1 -1
- package/dist/containers/Dashboard/components/TopLearningStrategy.d.ts +1 -0
- package/dist/containers/Dashboard/configs/types.d.ts +2 -0
- package/dist/containers/Dashboard/configs/utils.d.ts +4 -4
- package/dist/containers/Dashboard/hooks/useChartDatas.d.ts +1 -0
- package/dist/containers/MarioAi/cofigs/constants.d.ts +5 -0
- package/dist/containers/MarioAi/cofigs/type.d.ts +10 -2
- package/dist/containers/MarioAi/components/ChatContent.d.ts +1 -1
- package/dist/containers/MarioAi/hooks/useAIChat.d.ts +2 -2
- package/dist/index.css +47 -46
- package/dist/index.js +180 -53
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +181 -54
- package/dist/index.modern.js.map +1 -1
- package/dist/services/geminiAiService.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ICardAI, IOptionDate } from "./type";
|
|
2
2
|
export declare const CALENDAR_OPTIONS: IOptionDate[];
|
|
3
|
+
export declare const timeKeywords: string[];
|
|
4
|
+
export declare enum IDataType {
|
|
5
|
+
QuestionAnswer = 0,
|
|
6
|
+
Total = 1
|
|
7
|
+
}
|
|
3
8
|
export declare const promptIcons: (() => JSX.Element)[];
|
|
4
9
|
export declare const CARD_AI_HEADER: ICardAI[];
|
|
5
10
|
export declare const THEME: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MessageRole } from "./constants";
|
|
1
|
+
import { IDataType, MessageRole } from "./constants";
|
|
2
2
|
export interface ISummarizeResponse {
|
|
3
3
|
studentName: string;
|
|
4
4
|
answer: string;
|
|
@@ -31,7 +31,7 @@ export interface IChat {
|
|
|
31
31
|
text?: string;
|
|
32
32
|
time: string;
|
|
33
33
|
isUser: boolean;
|
|
34
|
-
options?:
|
|
34
|
+
options?: string[];
|
|
35
35
|
}
|
|
36
36
|
export interface IPrompt {
|
|
37
37
|
name: string;
|
|
@@ -49,6 +49,13 @@ export interface IPrompt {
|
|
|
49
49
|
instruction: instructionType;
|
|
50
50
|
sampleData: string;
|
|
51
51
|
question: string;
|
|
52
|
+
dataType: IDataType;
|
|
53
|
+
}
|
|
54
|
+
export interface ITotalSessionItem {
|
|
55
|
+
checkInCount: number;
|
|
56
|
+
checkInCompleteCount: number;
|
|
57
|
+
oneToOneCount: number;
|
|
58
|
+
oneToOneCompleteCount: number;
|
|
52
59
|
}
|
|
53
60
|
export interface IMessage {
|
|
54
61
|
role: MessageRole;
|
|
@@ -104,4 +111,5 @@ export interface IAnswer {
|
|
|
104
111
|
fullName: string;
|
|
105
112
|
grade: string;
|
|
106
113
|
question: string;
|
|
114
|
+
startTime: string;
|
|
107
115
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IChat,
|
|
2
|
+
import { IChat, IPrompt } from "../cofigs/type";
|
|
3
3
|
declare const useAIChat: () => {
|
|
4
4
|
theme: string;
|
|
5
5
|
setTheme: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
@@ -7,6 +7,6 @@ declare const useAIChat: () => {
|
|
|
7
7
|
isOpenSideBar: any;
|
|
8
8
|
prompt: IPrompt | undefined;
|
|
9
9
|
chats: IChat[];
|
|
10
|
-
|
|
10
|
+
handleChoiceOption: (option: string) => void;
|
|
11
11
|
};
|
|
12
12
|
export default useAIChat;
|
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
|
|
3018
|
+
._1ym2M>._21miX {
|
|
3018
3019
|
font-size: 24px;
|
|
3019
3020
|
font-weight: 600;
|
|
3020
3021
|
line-height: 32px;
|
|
3021
3022
|
}
|
|
3022
3023
|
|
|
3023
|
-
._1ym2M
|
|
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
|
|
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
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3073
|
+
display: flex;
|
|
3074
|
+
flex-direction: column;
|
|
3075
|
+
height: 100%;
|
|
3076
|
+
flex-grow: 1;
|
|
3077
|
+
overflow: hidden;
|
|
3077
3078
|
}
|
|
3078
3079
|
|
|
3079
|
-
._3KJDS
|
|
3080
|
-
|
|
3080
|
+
._3KJDS>._QR625 {
|
|
3081
|
+
flex-shrink: 0;
|
|
3081
3082
|
}
|
|
3082
3083
|
|
|
3083
|
-
._3KJDS
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
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
|
|
3091
|
+
._3KJDS>._3GkYB {
|
|
3091
3092
|
padding-right: 10px;
|
|
3092
3093
|
}
|
|
3093
3094
|
|
|
3094
|
-
._3KJDS
|
|
3095
|
+
._3KJDS>._xCCue::-webkit-scrollbar {
|
|
3095
3096
|
width: 10px;
|
|
3096
3097
|
}
|
|
3097
3098
|
|
|
3098
|
-
._3KJDS
|
|
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
|
|
3105
|
+
._3KJDS>._xCCue::-webkit-scrollbar-thumb {
|
|
3105
3106
|
background: #316CD9;
|
|
3106
3107
|
border: 2px solid #e1e1e1;
|
|
3107
3108
|
}
|
|
3108
3109
|
|
|
3109
|
-
._3KJDS
|
|
3110
|
+
._3KJDS>._xCCue::-webkit-scrollbar-thumb:hover {
|
|
3110
3111
|
background: #2a5ebe;
|
|
3111
3112
|
}
|
|
3112
3113
|
|
|
3113
|
-
._3KJDS
|
|
3114
|
-
|
|
3115
|
-
|
|
3114
|
+
._3KJDS>._xCCue>table {
|
|
3115
|
+
table-layout: fixed;
|
|
3116
|
+
width: 100%;
|
|
3116
3117
|
}
|
|
3117
3118
|
|
|
3118
3119
|
._3zJ60 {
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
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
|
|
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
|
|
3141
|
+
._3iePe>div>svg {
|
|
3141
3142
|
width: 16px;
|
|
3142
3143
|
height: 16px;
|
|
3143
3144
|
margin-left: 8px;
|
|
3144
3145
|
}
|
|
3145
3146
|
|
|
3146
|
-
._jt5M3
|
|
3147
|
-
._jt5M3
|
|
3148
|
-
._jt5M3
|
|
3149
|
-
._jt5M3
|
|
3150
|
-
._jt5M3
|
|
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
|
|
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
|
-
|
|
3169
|
-
|
|
3169
|
+
display: block !important;
|
|
3170
|
+
/* max-height: 400px;
|
|
3170
3171
|
overflow-y: scroll; */
|
|
3171
3172
|
}
|
|
3172
3173
|
|
|
3173
|
-
._e1eW1
|
|
3174
|
+
._e1eW1>._ZaJN5 {
|
|
3174
3175
|
display: table;
|
|
3175
3176
|
width: 100%;
|
|
3176
3177
|
table-layout: fixed;
|
|
3177
3178
|
}
|
|
3178
3179
|
|
|
3179
|
-
._e1eW1
|
|
3180
|
+
._e1eW1>._jt5M3>._2cEqW:nth-child(1) {
|
|
3180
3181
|
width: 18%;
|
|
3181
3182
|
}
|
|
3182
3183
|
|
|
3183
|
-
._e1eW1
|
|
3184
|
+
._e1eW1>._jt5M3>._2cEqW:nth-child(2) {
|
|
3184
3185
|
width: 10%;
|
|
3185
3186
|
}
|
|
3186
3187
|
|
|
3187
|
-
._e1eW1
|
|
3188
|
+
._e1eW1>._jt5M3>._2cEqW:nth-child(3) {
|
|
3188
3189
|
width: 15%;
|
|
3189
3190
|
}
|
|
3190
3191
|
|
|
3191
|
-
._e1eW1
|
|
3192
|
+
._e1eW1>._jt5M3>._2cEqW:nth-child(4) {
|
|
3192
3193
|
width: 12%;
|
|
3193
3194
|
}
|
|
3194
3195
|
|
|
3195
|
-
._e1eW1
|
|
3196
|
+
._e1eW1>._jt5M3>._2cEqW:nth-child(5) {
|
|
3196
3197
|
width: 30%;
|
|
3197
3198
|
}
|
|
3198
3199
|
|
|
3199
|
-
._e1eW1
|
|
3200
|
+
._e1eW1>._jt5M3>._2cEqW:nth-child(6) {
|
|
3200
3201
|
width: 15%;
|
|
3201
3202
|
}
|
|
3202
3203
|
|
|
3203
|
-
._e1eW1
|
|
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
|
|
3223
|
+
._2emfn>div>div>nav>ul {
|
|
3223
3224
|
margin: 16px 0 0;
|
|
3224
3225
|
}
|
|
3225
3226
|
|