mario-education 2.4.9-beta → 2.4.12-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 +3 -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 +7 -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 +19 -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 +16 -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 +7 -1
  15. package/dist/index.js +1220 -464
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +1221 -465
  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,6 @@ 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
+ };
@@ -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,9 @@ 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, grades: 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;
@@ -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,19 @@
1
+ /// <reference types="react" />
2
+ declare type ScaffoldingDetail = {
3
+ question: string;
4
+ category: string;
5
+ level: string;
6
+ };
7
+ declare const useQuestionDetail: () => {
8
+ id: number;
9
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
10
+ questionDetail: ScaffoldingDetail;
11
+ confirmData: (values: any, cb: any) => Promise<void>;
12
+ initValue: ScaffoldingDetail;
13
+ reset: () => void;
14
+ edited: boolean;
15
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
16
+ setEditedTrue: () => Promise<void>;
17
+ setEditedFalse: () => Promise<void>;
18
+ };
19
+ 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,16 @@
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 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;
@@ -278,10 +279,14 @@ h6._3zOGW {
278
279
  width: 100%;
279
280
  }
280
281
 
282
+ ._2asi- ._muT01 ._35BzZ {
283
+ font-size: 20px;
284
+ }
285
+
281
286
  @media (min-width: 1024px) {
282
287
  ._3pkbc {
283
288
  max-width: 60%;
284
- }
289
+ }
285
290
  ._16MpB {
286
291
  max-width: 70%;
287
292
  }
@@ -292,6 +297,7 @@ h6._3zOGW {
292
297
  font-size: 24px;
293
298
  line-height: 116%;
294
299
  }
300
+
295
301
  ._2Q9xO{
296
302
  border-radius: 50%;
297
303
  display: flex;