mario-education 2.4.10-beta → 2.4.13-beta

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 (19) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +2 -2
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGrade.d.ts +6 -2
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopLearningStrategy.d.ts +6 -2
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +4 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +20 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +8 -2
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +4 -4
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionScaffolding/components/QuestionDetailModal.d.ts +3 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionScaffolding/hooks/useQuestionDetail.d.ts +21 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionScaffolding/hooks/useQuestionList.d.ts +11 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionScaffolding/ultis/ultis.d.ts +20 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionScaffolding/views/QuestionScaffolding.d.ts +3 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/services/questionScaffoldingService.d.ts +6 -0
  14. package/dist/index.css +15 -0
  15. package/dist/index.js +1290 -580
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +1291 -581
  18. package/dist/index.modern.js.map +1 -1
  19. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
- import { GoalProgressReport } from "../configs/types";
2
+ import { IReadinessToLearning } from "../configs/types";
3
3
  interface Props {
4
- data: GoalProgressReport[] | null;
4
+ data: IReadinessToLearning[];
5
5
  }
6
6
  declare const ReadinessToLearn: FC<Props>;
7
7
  export default ReadinessToLearn;
@@ -1,3 +1,7 @@
1
- /// <reference types="react" />
2
- declare const StudentByGrade: ({ data }: any) => JSX.Element;
1
+ import { FC } from "react";
2
+ import { IStudentByGrade } from "../configs/types";
3
+ interface IGradeStudentChart {
4
+ data: IStudentByGrade[];
5
+ }
6
+ declare const StudentByGrade: FC<IGradeStudentChart>;
3
7
  export default StudentByGrade;
@@ -1,3 +1,7 @@
1
- /// <reference types="react" />
2
- declare const TopLearningStrategy: ({ data }: any) => JSX.Element;
1
+ import { FC } from "react";
2
+ import { IlearningStrategies } from "../configs/types";
3
+ interface ITopLearningStrategy {
4
+ data: IlearningStrategies;
5
+ }
6
+ declare const TopLearningStrategy: FC<ITopLearningStrategy>;
3
7
  export default TopLearningStrategy;
@@ -12,3 +12,7 @@ export declare const INITIAL_ACTIVITY_FRIENDS: {
12
12
  curious: number;
13
13
  };
14
14
  export declare const LEARNING_STRATEGY_CHART_COLORS: string[];
15
+ export declare const LEARNING_STRATEGY_INIT: {
16
+ learningStrategies: never[];
17
+ };
18
+ export declare const GRAGE_DEFAULT: number[];
@@ -96,4 +96,24 @@ export declare enum LegalGenderType {
96
96
  Male = 0,
97
97
  Female = 1
98
98
  }
99
+ export interface IStudentByGrade {
100
+ grade: string;
101
+ quantity: number;
102
+ }
103
+ export interface ISeries {
104
+ name: string;
105
+ data: number[];
106
+ }
107
+ export interface IlearningItem {
108
+ learningStrategyName: string;
109
+ usageCount: number;
110
+ usagePoint: number[];
111
+ }
112
+ export interface IlearningStrategies {
113
+ learningStrategies: IlearningItem[];
114
+ }
115
+ export interface IReadinessToLearning {
116
+ questionText: string;
117
+ percentQuestion: number;
118
+ }
99
119
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ApexOptions } from "apexcharts";
2
2
  import { IOptionSelector } from "../../../components/Select/InputSelector";
3
- import { IActivityCircle, IsyntheticFriendCircle, LegalGenderType } from "./types";
3
+ import { IActivityCircle, ISeries, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType } from "./types";
4
4
  export declare const getColors: (length: number) => string[];
5
5
  export declare const friendCircleItems: ({ bestFriends, friends, couldBeFriends, supportive }: IsyntheticFriendCircle) => {
6
6
  id: number;
@@ -23,4 +23,10 @@ export declare const genderOptions: {
23
23
  value: LegalGenderType;
24
24
  label: string;
25
25
  }[];
26
- export declare const learningStrategyChartOptions: (labelNames: string[]) => ApexOptions;
26
+ export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
27
+ export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
28
+ export declare const optionsChartGrade: (maxDatas: number, colorCharts: string[]) => ApexOptions;
29
+ export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
30
+ export declare const maxSeries: (series: ISeries[]) => number;
31
+ export declare const average: (arr: number[]) => number;
32
+ export declare const colorCharts: (series: ISeries[]) => string[];
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IsyntheticFriendCircle } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IsyntheticFriendCircle } from "../configs/types";
3
3
  declare const useDashboard: () => {
4
4
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
5
5
  filter: DashboardFilter;
6
6
  listTotalTime: any;
7
- readinessToLearning: any;
8
- topLearningStrategies: any;
9
- studentByGrade: undefined;
7
+ readinessToLearning: IReadinessToLearning[];
8
+ topLearningStrategies: IlearningStrategies;
9
+ studentByGrade: IStudentByGrade[];
10
10
  chartOneToOneData: never[];
11
11
  chartClassReflection: never[];
12
12
  chartConference: never[];
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { TypeScaffolding } from "../ultis/ultis";
3
+ declare type ScaffoldingDetail = {
4
+ question: string;
5
+ category: string;
6
+ level: string;
7
+ typeScaffolding: TypeScaffolding;
8
+ };
9
+ declare const useQuestionDetail: () => {
10
+ id: number;
11
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
12
+ questionDetail: ScaffoldingDetail;
13
+ confirmData: (values: any, cb: any) => Promise<void>;
14
+ initValue: ScaffoldingDetail;
15
+ reset: () => void;
16
+ edited: boolean;
17
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
18
+ setEditedTrue: () => Promise<void>;
19
+ setEditedFalse: () => Promise<void>;
20
+ };
21
+ export default useQuestionDetail;
@@ -0,0 +1,11 @@
1
+ declare const useQuestionList: () => {
2
+ questionScaffoldingList: any;
3
+ totalItems: number;
4
+ filters: import("mario-core").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ currentSort: any[];
9
+ onSortChange: (sortBy: string, index: number) => void;
10
+ };
11
+ export default useQuestionList;
@@ -0,0 +1,20 @@
1
+ export declare const sortTypes: {
2
+ up: {
3
+ class: string;
4
+ };
5
+ down: {
6
+ class: string;
7
+ };
8
+ default: {
9
+ class: string;
10
+ };
11
+ };
12
+ export declare const questionScaffoldingHeaders: {
13
+ name: string;
14
+ column: string;
15
+ }[];
16
+ export declare const enum TypeScaffolding {
17
+ OneToOne = 0,
18
+ Conference = 1
19
+ }
20
+ export declare const SORT_DATA_DEFAULT: any[];
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const QuestionScaffolding: FC;
3
+ export default QuestionScaffolding;
@@ -0,0 +1,6 @@
1
+ import { Filter } from "mario-core";
2
+ export declare const get: (filter?: Filter | undefined) => Promise<import("axios").AxiosResponse<any>>;
3
+ export declare const getById: (id: number) => Promise<import("axios").AxiosResponse<any>>;
4
+ export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
package/dist/index.css CHANGED
@@ -126,6 +126,7 @@ h6._3zOGW {
126
126
  ._1Jgr2 {
127
127
  padding: 16px;
128
128
  min-height: 450px;
129
+ height: 100%;
129
130
  display: flex;
130
131
  flex-direction: column;
131
132
  background: #ffffff;
@@ -297,6 +298,20 @@ h6._3zOGW {
297
298
  line-height: 116%;
298
299
  }
299
300
 
301
+ ._3Y-Dd{
302
+ overflow: hidden;
303
+ height: 416px;
304
+ }
305
+
306
+ @media (min-width: 2250px){
307
+ ._3Y-Dd{
308
+ width: 100%;
309
+ display: flex;
310
+ justify-content: center;
311
+ align-items: center;
312
+ }
313
+ }
314
+
300
315
  ._2Q9xO{
301
316
  border-radius: 50%;
302
317
  display: flex;