mario-education 2.4.61-admin → 2.4.61-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 (28) 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/containers/AdminTraining/hooks/useAdminTraning.d.ts +4 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/AdminTraining/views/AdminTraining.d.ts +3 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignAssistant/components/AssignAssistantModal.d.ts +4 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignAssistant/hooks/useAssignAssistant.d.ts +18 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignAssistant/utils/constants.d.ts +3 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignAssistant/utils/type.interface.d.ts +45 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignAssistant/views/AssignAssistantList.d.ts +3 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +2 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/constants.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/QuestionBank/views/SurveyQuestionContainer.d.ts +3 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionCategory/components/QuestionCateSelector.d.ts +12 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/Training/hooks/useTrainingLink.d.ts +1 -0
  17. package/dist/MarioFramework.Education/ClientApp/src/index.d.ts +3 -1
  18. package/dist/MarioFramework.Education/ClientApp/src/services/questionCategoryService.d.ts +5 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/services/userService.d.ts +4 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +8 -8
  21. package/dist/index.css +5 -5
  22. package/dist/index.js +3130 -1841
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.modern.js +3130 -1843
  25. package/dist/index.modern.js.map +1 -1
  26. package/package.json +3 -3
  27. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
  28. /package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +0 -0
@@ -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;
@@ -0,0 +1,4 @@
1
+ declare const useAdminTraning: () => {
2
+ linkAdminTraining: string;
3
+ };
4
+ export default useAdminTraning;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AdminTraining: () => JSX.Element;
3
+ export default AdminTraining;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IAssignAssistantModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<IAssignAssistantModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentWithoutAssistantItem } from "../utils/type.interface";
3
+ declare const useAssignAssistant: () => {
4
+ userList: IStudentWithoutAssistantItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ userChoiced: IStudentWithoutAssistantItem;
10
+ options: IOptions[];
11
+ changeAssistantId: (id: number) => void;
12
+ assistantChangeId: number;
13
+ handleAssign: () => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (userChoiced: IStudentWithoutAssistantItem) => void;
16
+ isChecked: boolean;
17
+ };
18
+ export default useAssignAssistant;
@@ -0,0 +1,3 @@
1
+ import { IStudentWithoutAssistantItem } from "./type.interface";
2
+ export declare const INITIAL_USER_CHOICE: IStudentWithoutAssistantItem;
3
+ export declare const DEFAULT_DATE = "0001-01-01T00:00:00";
@@ -0,0 +1,45 @@
1
+ export interface IOptions {
2
+ label: string;
3
+ value: number;
4
+ }
5
+ export declare type USER_CHOICE = {
6
+ id: string;
7
+ studentName: string;
8
+ emailStudent: string;
9
+ assistantId: string;
10
+ emailAssistant: string;
11
+ assistantName: string;
12
+ };
13
+ export declare type Assistant = {
14
+ id: string;
15
+ assistantId: number;
16
+ firstName: string;
17
+ lastName: string;
18
+ fullName: string;
19
+ email: string;
20
+ };
21
+ export interface IAssignAssistantModal {
22
+ header: string;
23
+ onAssign: () => Promise<void>;
24
+ resetData: () => void;
25
+ userChoiced: IStudentWithoutAssistantItem;
26
+ options: IOptions[];
27
+ assistantChangeId: number;
28
+ setAssistantChangeId: (value: any) => void;
29
+ isChecked: boolean;
30
+ }
31
+ export interface IStudentWithoutAssistantItem {
32
+ id: number;
33
+ emailStudent: string;
34
+ studentName: string;
35
+ teacherId?: number;
36
+ dateOfBirth: string;
37
+ createdAt: string;
38
+ }
39
+ export declare type TypeStudentWithoutAssistantData = {
40
+ currentPage: number;
41
+ pageSize: number;
42
+ totalItems: number;
43
+ totalPages: number;
44
+ items: IStudentWithoutAssistantItem[];
45
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssignAssistantList: () => JSX.Element;
3
+ export default AssignAssistantList;
@@ -3,6 +3,7 @@ import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
3
  import { TYPECHART } from "../configs/types";
4
4
  declare const useChartDatas: () => {
5
5
  chartDashBoards: ({
6
+ chartIndex: number;
6
7
  id: string;
7
8
  label: string;
8
9
  children: (_: TYPECHART) => JSX.Element;
@@ -11,6 +12,7 @@ declare const useChartDatas: () => {
11
12
  contentTooltip: string;
12
13
  handleClickOpenTable: () => void;
13
14
  } | {
15
+ chartIndex: number;
14
16
  id: string;
15
17
  label: string;
16
18
  children: (typeChart: TYPECHART, isPDF?: boolean | undefined) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare enum TYPE_QUESTION {
2
+ Default = 0,
3
+ OneToOne = 1,
4
+ ClassReflection = 2,
5
+ Conference = 3,
6
+ Survey = 4
7
+ }
@@ -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
+ /// <reference types="react" />
2
+ declare const SurveyQuestionContainer: () => JSX.Element;
3
+ export default SurveyQuestionContainer;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ id?: number;
4
+ value?: any;
5
+ onChange: any;
6
+ title?: string;
7
+ isMulti: boolean;
8
+ isRequired?: boolean;
9
+ isDisabled?: boolean;
10
+ }
11
+ declare const QuestionCateSelector: FC<Props>;
12
+ export default QuestionCateSelector;
@@ -1,6 +1,7 @@
1
1
  declare type LINK_TRAINING = {
2
2
  teacherTraining: string;
3
3
  studentTraining: string;
4
+ adminTraining: string;
4
5
  };
5
6
  declare const useTrainingLink: () => {
6
7
  linkTraining: LINK_TRAINING;
@@ -29,4 +29,6 @@ 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
+ import AdminTraining from "./containers/AdminTraining/views/AdminTraining";
34
+ 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, AdminTraining };
@@ -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>>;
@@ -1,7 +1,11 @@
1
+ import { TypeStudentWithoutAssistantData } from "../containers/AssignAssistant/utils/type.interface";
1
2
  import { TypeStudentAssistantData } from "../containers/SwitchAssistant/utils/type.interface";
2
3
  import { IStudentWidthAssistant } from "../utils/serviceType.interface";
3
4
  export declare const getStudentAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentAssistantData>>;
5
+ export declare const getStudentWithoutAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentWithoutAssistantData>>;
4
6
  export declare const getAssistant: () => Promise<import("axios").AxiosResponse<any>>;
5
7
  export declare const getAssistantByStudentId: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
8
+ export declare const getAssistants: () => Promise<import("axios").AxiosResponse<any>>;
6
9
  export declare const changeAssistantOfStudent: (id: number, assistantUserId: string) => Promise<import("axios").AxiosResponse<any>>;
10
+ export declare const assignAssistantOfStudent: (studentId: number, teacherId: number, assistantId: number) => Promise<import("axios").AxiosResponse<any>>;
7
11
  export declare const removeAssistantForStudent: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -7,12 +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",
16
- StartDate = "Start Date",
17
- EndDate = "End Date"
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"
18
18
  }
package/dist/index.css CHANGED
@@ -522,16 +522,16 @@ h6._3zOGW {
522
522
  }
523
523
 
524
524
  ._3H5Ly {
525
- padding: 6px 12px;
525
+ padding: 6px 12px 6px 0px;
526
526
  border-radius: 0 4px 4px 0;
527
- background: #1DBAB4;
528
- color: #ffff;
527
+ background: #336DDA;
528
+ color: #fff;
529
529
  }
530
530
 
531
531
  ._J_n-D {
532
- padding: 6px;
532
+ padding: 5px 8px 7px 6px;
533
533
  border-radius: 4px 0 0 4px;
534
- background: #1CA9A4;
534
+ background: #336DDA;
535
535
  }
536
536
 
537
537
  ._2vtSi ._3AALV {