mario-education 2.4.33-admin → 2.4.34-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 (27) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/components/Loading/LoadLanguage.d.ts +3 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/components/Questions/QuestionList.d.ts +1 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/components/Questions/QuestionSelector.d.ts +1 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/components/Select/SelectFilter.d.ts +1 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +3 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LearningStrategiesTable.d.ts +13 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +2 -2
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +2 -2
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +19 -3
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +6 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/IEPTemplate/configs/constants.d.ts +53 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/IEPTemplate/views/IEPTemplateBuilder.d.ts +7 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/components/TemplateCateModal.d.ts +3 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +35 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +9 -0
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/views/TemplateSurveyList.d.ts +3 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/index.d.ts +2 -1
  19. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/services/questionCategoryService.d.ts +5 -0
  21. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +8 -6
  22. package/dist/index.css +893 -873
  23. package/dist/index.js +1640 -646
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.modern.js +1642 -649
  26. package/dist/index.modern.js.map +1 -1
  27. package/package.json +94 -93
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const LoadLanguage: FC;
3
+ export default LoadLanguage;
@@ -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;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import "react-datepicker/dist/react-datepicker.css";
2
3
  import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
3
4
  declare const SelectFilter: ({ studentUserId, studentId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters, btnStyle, filter, teacherUserId, changeCurrentTeacherUserId }: PROPS_FILTERS_COMPONENT) => JSX.Element;
4
5
  export default SelectFilter;
@@ -8,6 +8,9 @@ interface IProps {
8
8
  onChangeChart: (type: TYPECHART) => void;
9
9
  isOpen: boolean;
10
10
  options?: IChartOptions[];
11
+ contentTooltip?: string;
12
+ index: number;
13
+ onClickOptions?: () => void;
11
14
  }
12
15
  declare const HeaderChart: FC<IProps>;
13
16
  export default HeaderChart;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { DashboardFilter } from "../configs/types";
3
+ interface PropsType {
4
+ isOpen: boolean;
5
+ onClosed: () => void;
6
+ filter: any;
7
+ data: any;
8
+ getData: () => void;
9
+ changeFilter: (updatedFilter: any) => void;
10
+ filterDashboard: DashboardFilter;
11
+ }
12
+ declare const LearningStrategiesTable: ({ isOpen, onClosed, filter, data, getData, changeFilter, filterDashboard }: PropsType) => JSX.Element;
13
+ export default LearningStrategiesTable;
@@ -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;
@@ -97,7 +97,7 @@ 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[]) => ApexOptions;
100
+ export declare const readinesToLearnoptions: (seriesName: string[], data: any) => ApexOptions;
101
101
  export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
102
102
  name: string;
103
103
  data: import("react").ReactText[][];
@@ -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,7 +2,15 @@ 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
+ id: string;
7
+ label: string;
8
+ children: (_: TYPECHART) => JSX.Element;
9
+ isShowChangeChart: boolean;
10
+ options: never[];
11
+ contentTooltip: string;
12
+ handleClickOpenTable: () => void;
13
+ } | {
6
14
  id: string;
7
15
  label: string;
8
16
  children: (typeChart: TYPECHART, isPDF?: boolean | undefined) => JSX.Element;
@@ -11,7 +19,9 @@ declare const useChartDatas: () => {
11
19
  label: string;
12
20
  value: TYPECHART;
13
21
  }[];
14
- }[];
22
+ contentTooltip: string;
23
+ handleClickOpenTable?: undefined;
24
+ })[];
15
25
  user: any;
16
26
  filter: import("../configs/types").DashboardFilter;
17
27
  LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
@@ -32,7 +42,7 @@ declare const useChartDatas: () => {
32
42
  filter: string;
33
43
  })[];
34
44
  onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
35
- initialTypeChart: TYPECHART[];
45
+ initialTypeChart: (TYPECHART.AREA | TYPECHART)[];
36
46
  handleSelectToPrint: (checked: boolean, data: any, chartType: any) => void;
37
47
  checkSelectedItem: (id: string) => boolean;
38
48
  selectedToPrint: any;
@@ -54,5 +64,11 @@ declare const useChartDatas: () => {
54
64
  dataConvertedSafety: string[];
55
65
  activeColumnSafety: boolean[];
56
66
  avgSafety: number[];
67
+ learningStrategiesData: any;
68
+ openLearningStrategiesTable: boolean;
69
+ handleOpenCloseLearningStrategiesTable: () => void;
70
+ filterLearningStrategiesTable: any;
71
+ changeFiltersLearningStrategiesTable: (updatedFilter: any) => void;
72
+ getLearningStrategiesTableData: () => Promise<void>;
57
73
  };
58
74
  export default useChartDatas;
@@ -53,5 +53,11 @@ declare const useDashboard: () => {
53
53
  dataConvertedSafety: string[];
54
54
  monthsSafety: string[];
55
55
  activeColumnSafety: boolean[];
56
+ learningStrategiesData: any;
57
+ openLearningStrategiesTable: boolean;
58
+ handleOpenCloseLearningStrategiesTable: () => void;
59
+ filterLearningStrategiesTable: any;
60
+ changeFiltersLearningStrategiesTable: (updatedFilter: any) => void;
61
+ getLearningStrategiesTableData: () => Promise<void>;
56
62
  };
57
63
  export default useDashboard;
@@ -0,0 +1,53 @@
1
+ export declare const blockItems: ({
2
+ id: string;
3
+ label: string;
4
+ category: string;
5
+ media: string;
6
+ activate: boolean;
7
+ content: {
8
+ type: string;
9
+ content: string;
10
+ style: {
11
+ padding: string;
12
+ color?: undefined;
13
+ };
14
+ };
15
+ attributes?: undefined;
16
+ } | {
17
+ id: string;
18
+ label: string;
19
+ category: string;
20
+ media: string;
21
+ activate: boolean;
22
+ content: {
23
+ type: string;
24
+ content: string;
25
+ style: {
26
+ color: string;
27
+ padding?: undefined;
28
+ };
29
+ };
30
+ attributes?: undefined;
31
+ } | {
32
+ id: string;
33
+ label: string;
34
+ category: string;
35
+ media: string;
36
+ activate: boolean;
37
+ content: {
38
+ type: string;
39
+ content?: undefined;
40
+ style?: undefined;
41
+ };
42
+ attributes?: undefined;
43
+ } | {
44
+ id: string;
45
+ label: string;
46
+ attributes: {
47
+ class: string;
48
+ };
49
+ content: string;
50
+ category?: undefined;
51
+ media?: undefined;
52
+ activate?: undefined;
53
+ })[];
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import "grapesjs/dist/css/grapes.min.css";
3
+ import "grapesjs/dist/grapes.min.js";
4
+ import "grapesjs-preset-webpage/dist/grapesjs-preset-webpage.min.css";
5
+ import "grapesjs-preset-webpage/dist/grapesjs-preset-webpage.min.js";
6
+ declare const IEPTemplateBuilder: FC;
7
+ export default IEPTemplateBuilder;
@@ -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;
@@ -29,4 +29,5 @@ import CompareTeacher from "./containers/CompareTeacher/views/CompareTeacher";
29
29
  import Dashboard from "./containers/Dashboard/views/Dashboard";
30
30
  import SessionTemplateList from "./containers/SessionTemplate/views/SessionTemplateList";
31
31
  import SessionTemplateGeneralClassList from "./containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassList";
32
- export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard };
32
+ import LoadLanguage from "./components/Loading/LoadLanguage";
33
+ export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard, LoadLanguage };
@@ -18,3 +18,4 @@ export declare const getStudentByAge: (filter: any) => Promise<import("axios").A
18
18
  export declare const getStudentByGender: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
19
19
  export declare const getGrades: (studentUserId: string) => Promise<import("axios").AxiosResponse<any>>;
20
20
  export declare const getBandScore: () => Promise<import("axios").AxiosResponse<any>>;
21
+ export declare const getLearningStrategiesTableApi: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -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>>;
@@ -7,10 +7,12 @@ export declare const CONFERENCE_RUBRIC_TYPES: {
7
7
  };
8
8
  export declare const GENDER_FILTER: string[];
9
9
  export declare enum FILTER_NAME {
10
- Calendar = "Calendar",
11
- Gender = "Gender",
12
- Grade = "Grade",
13
- BandScore = "Current Grade",
14
- StudentName = "Student name",
15
- TeacherName = "Teacher name"
10
+ Calendar = "calendar",
11
+ Gender = "gender",
12
+ Grade = "grade",
13
+ BandScore = "current_grade",
14
+ StudentName = "student_name",
15
+ TeacherName = "teacher_name",
16
+ StartDate = "start_date",
17
+ EndDate = "end_date"
16
18
  }