mario-education 2.4.31-admin → 2.4.32-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 (21) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/components/Questions/QuestionList.d.ts +1 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/components/Questions/QuestionSelector.d.ts +1 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +1 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +2 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +1 -1
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +2 -2
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +16 -9
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/questionDetailSchema.d.ts +4 -4
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/components/TemplateCateModal.d.ts +3 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +35 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +9 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/views/TemplateSurveyList.d.ts +3 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/services/questionCategoryService.d.ts +5 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +3 -1
  16. package/dist/index.css +4 -0
  17. package/dist/index.js +1163 -253
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.modern.js +1164 -254
  20. package/dist/index.modern.js.map +1 -1
  21. package/package.json +6 -3
@@ -5,6 +5,7 @@ interface Props {
5
5
  isTeacherQuestion?: boolean;
6
6
  onChangeMandatory: Function;
7
7
  extraQuestionMandatory?: object[];
8
+ isHiddenMandatory?: boolean;
8
9
  }
9
10
  declare const QuestionList: FC<Props>;
10
11
  export default QuestionList;
@@ -4,6 +4,7 @@ interface Props {
4
4
  onChange: Function;
5
5
  value: any | null;
6
6
  externalQuestionIds: number[];
7
+ isDefaultQuestionSurvey?: boolean;
7
8
  }
8
9
  declare const QuestionSelector: FC<Props>;
9
10
  export default QuestionSelector;
@@ -6,6 +6,7 @@ export interface IProps {
6
6
  id: string;
7
7
  typeChart?: TYPECHART;
8
8
  isHasLineChart?: boolean;
9
+ isPDF?: boolean;
9
10
  onActiveColumn: Function;
10
11
  activeColumn: boolean[];
11
12
  series: ISeries[];
@@ -8,6 +8,8 @@ interface IProps {
8
8
  onChangeChart: (type: TYPECHART) => void;
9
9
  isOpen: boolean;
10
10
  options?: IChartOptions[];
11
+ contentTooltip?: string;
12
+ index: number;
11
13
  }
12
14
  declare const HeaderChart: FC<IProps>;
13
15
  export default HeaderChart;
@@ -28,7 +28,7 @@ export declare const mtssOptions: {
28
28
  value: MtssType;
29
29
  label: string;
30
30
  }[];
31
- export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
31
+ export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[], screenWidth: number) => 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;
@@ -1,8 +1,8 @@
1
- import { TYPECHART } from "../configs/types";
1
+ import { TYPECHART, IChartOptions } from "../configs/types";
2
2
  declare const useBehavior: (initialTypeChart: TYPECHART[]) => {
3
3
  chartIsOpened: boolean[];
4
4
  onToggle: (idx: number) => void;
5
- onChangeChart: (idx: number, type: TYPECHART) => void;
5
+ onChangeChart: (idx: number, type: TYPECHART, options?: IChartOptions[] | undefined) => void;
6
6
  typeChartList: TYPECHART[];
7
7
  teacherUserId: string;
8
8
  changeCurrentTeacherUserId: (userId: string) => void;
@@ -2,22 +2,17 @@ import React from "react";
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
3
  import { TYPECHART } from "../configs/types";
4
4
  declare const useChartDatas: () => {
5
- chartDashBoards: ({
5
+ chartDashBoards: {
6
6
  id: string;
7
7
  label: string;
8
- children: (typeChart: TYPECHART) => JSX.Element;
8
+ children: (typeChart: TYPECHART, isPDF?: boolean | undefined) => JSX.Element;
9
9
  isShowChangeChart: boolean;
10
10
  options: {
11
11
  label: string;
12
12
  value: TYPECHART;
13
13
  }[];
14
- } | {
15
- id: string;
16
- label: string;
17
- children: (_: TYPECHART, columnFlex?: boolean | undefined) => JSX.Element;
18
- isShowChangeChart: boolean;
19
- options: never[];
20
- })[];
14
+ contentTooltip: string;
15
+ }[];
21
16
  user: any;
22
17
  filter: import("../configs/types").DashboardFilter;
23
18
  LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
@@ -48,5 +43,17 @@ declare const useChartDatas: () => {
48
43
  chartClassReflection: import("../configs/types").IColumnChartAndPercent;
49
44
  chartConference: import("../configs/types").IColumnChartAndPercent;
50
45
  safety: import("../configs/types").IColumnChartAndPercent;
46
+ dataConvertedOneToOne: string[];
47
+ activeColumnOneToOne: boolean[];
48
+ avgOneToOne: number[];
49
+ dataConvertedClassReflection: string[];
50
+ activeColumnClassReflection: boolean[];
51
+ avgClassReflection: number[];
52
+ dataConvertedConference: string[];
53
+ activeColumnConference: boolean[];
54
+ avgConference: number[];
55
+ dataConvertedSafety: string[];
56
+ activeColumnSafety: boolean[];
57
+ avgSafety: number[];
51
58
  };
52
59
  export default useChartDatas;
@@ -4,8 +4,8 @@ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
4
4
  type: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
5
5
  categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
6
6
  explainAnswer: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
7
- fromLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
8
- toLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
7
+ fromLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
8
+ toLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
9
9
  numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
10
10
  answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
11
11
  isDefaultQuestion: yup.BooleanSchema<boolean | undefined, Record<string, any>, boolean | undefined>;
@@ -17,8 +17,8 @@ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
17
17
  type: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
18
18
  categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
19
19
  explainAnswer: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
20
- fromLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
21
- toLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
20
+ fromLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
21
+ toLabel: yup.StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
22
22
  numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
23
23
  answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
24
24
  isDefaultQuestion: yup.BooleanSchema<boolean | undefined, Record<string, any>, boolean | undefined>;
@@ -23,6 +23,7 @@ declare type QuestionDetail = {
23
23
  isSurvey: boolean;
24
24
  subQuestions: string[];
25
25
  isBeforeSession: boolean;
26
+ isDefaultQuestionSurvey: boolean;
26
27
  };
27
28
  declare const useQuestionDetail: (id?: number | undefined) => {
28
29
  questionDetail: QuestionDetail;
@@ -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,35 @@
1
+ /// <reference types="react" />
2
+ declare type questionCateDetail = {
3
+ name: string;
4
+ questionIds?: number[];
5
+ };
6
+ declare type TemplateQuestion = {
7
+ id: number;
8
+ text: string;
9
+ };
10
+ declare const useTemplateCateDetail: () => {
11
+ id: number;
12
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
13
+ questionCateDetail: questionCateDetail;
14
+ confirmData: (values: any, cb: any) => Promise<void>;
15
+ initValue: questionCateDetail;
16
+ reset: () => void;
17
+ edited: boolean;
18
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
19
+ setEditedTrue: () => Promise<void>;
20
+ setEditedFalse: () => Promise<void>;
21
+ categoryId: number;
22
+ setCategoryId: import("react").Dispatch<import("react").SetStateAction<number>>;
23
+ questionSelectorValue: {
24
+ id: number;
25
+ value: number;
26
+ label: string;
27
+ text: string;
28
+ } | null;
29
+ setTemporaryQuestion: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion | null>>;
30
+ addQuestion: () => void;
31
+ listQuestions: TemplateQuestion[];
32
+ setListQuestions: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion[]>>;
33
+ removeQuestion: (questionId: number) => void;
34
+ };
35
+ export default useTemplateCateDetail;
@@ -0,0 +1,9 @@
1
+ declare const useTemplateCateList: () => {
2
+ questionCateList: any;
3
+ totalItems: any;
4
+ filters: import("mario-core").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useTemplateCateList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TemplateSurveyList: FC;
3
+ export default TemplateSurveyList;
@@ -4,3 +4,8 @@ export declare const getById: (id: number) => Promise<import("axios").AxiosRespo
4
4
  export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
5
5
  export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
6
6
  export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
7
+ export declare const getSurvey: (filter: Filter) => Promise<import("axios").AxiosResponse<any>>;
8
+ export declare const getSurveyById: (id: number) => Promise<import("axios").AxiosResponse<any>>;
9
+ export declare const createSurvey: (data: any) => Promise<import("axios").AxiosResponse<any>>;
10
+ export declare const updateSurvey: (data: any) => Promise<import("axios").AxiosResponse<any>>;
11
+ export declare const removeSurvey: (id: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -12,5 +12,7 @@ export declare enum FILTER_NAME {
12
12
  Grade = "Grade",
13
13
  BandScore = "Current Grade",
14
14
  StudentName = "Student name",
15
- TeacherName = "Teacher name"
15
+ TeacherName = "Teacher name",
16
+ StartDate = "Start Date",
17
+ EndDate = "End Date"
16
18
  }
package/dist/index.css CHANGED
@@ -180,6 +180,10 @@ tbody._b-AXV tr {
180
180
  margin-bottom: 0;
181
181
  }
182
182
 
183
+ ._I8kqz {
184
+ position: absolute;
185
+ z-index: -999;
186
+ }
183
187
  ._3DVMZ {
184
188
  display: flex;
185
189
  flex: 0 0 17%;