mario-education 2.4.92-beta → 2.4.95-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 (35) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignCounselor/components/AssignCounselorModal.d.ts +4 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignCounselor/hooks/useAssignCounselor.d.ts +18 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignCounselor/utils/constants.d.ts +2 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignCounselor/utils/type.interface.d.ts +46 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignCounselor/views/AssignCounselorList.d.ts +3 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignSecondaryTeacher/components/AssignSecondaryTeacherModal.d.ts +4 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignSecondaryTeacher/hooks/useAssignSecondaryTeacher.d.ts +18 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignSecondaryTeacher/utils/constants.d.ts +2 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignSecondaryTeacher/utils/type.interface.d.ts +46 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/AssignSecondaryTeacher/views/AssignSecondaryTeacherList.d.ts +3 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/AgGridComponents.d.ts +0 -1
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/constants.d.ts +0 -4
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -1
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/apiClient/index.d.ts +7 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/SelectorTemplate.d.ts +3 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/TemplateDialogModal.d.ts +3 -0
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/configs/types.d.ts +12 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateBuilder.d.ts +9 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateDetail.d.ts +20 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateList.d.ts +9 -0
  21. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateStart.d.ts +9 -0
  22. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateBuilderPage.d.ts +3 -0
  23. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateContainer.d.ts +3 -0
  24. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateIEPList.d.ts +3 -0
  25. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateStartBuild.d.ts +3 -0
  26. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateSystemList.d.ts +3 -0
  27. package/dist/MarioFramework.Education/ClientApp/src/services/userService.d.ts +9 -1
  28. package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +12 -0
  29. package/dist/index.js +992 -322
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.modern.js +993 -323
  32. package/dist/index.modern.js.map +1 -1
  33. package/package.json +2 -2
  34. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
  35. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/UserForQuestion.d.ts +0 -7
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IAssignCounselorModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<IAssignCounselorModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentCounselorItem } from "../utils/type.interface";
3
+ declare const useAssignCounselor: () => {
4
+ userList: IStudentCounselorItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ chosenUser: IStudentCounselorItem;
10
+ options: IOptions[];
11
+ changeCounselorId: (id: number) => void;
12
+ counselorChangeId: number;
13
+ handleAssign: () => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (chosenUser: IStudentCounselorItem) => void;
16
+ isChecked: boolean;
17
+ };
18
+ export default useAssignCounselor;
@@ -0,0 +1,2 @@
1
+ import { IStudentCounselorItem } from "./type.interface";
2
+ export declare const INITIAL_CHOSEN_USER: IStudentCounselorItem;
@@ -0,0 +1,46 @@
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
+ counselorId: string;
10
+ emailCounselor: string;
11
+ counselorName: string;
12
+ };
13
+ export declare type Counselor = {
14
+ id: string;
15
+ counselorId: number;
16
+ firstName: string;
17
+ lastName: string;
18
+ fullName: string;
19
+ email: string;
20
+ };
21
+ export interface IAssignCounselorModal {
22
+ header: string;
23
+ onAssign: () => Promise<void>;
24
+ resetData: () => void;
25
+ chosenUser: IStudentCounselorItem;
26
+ options: IOptions[];
27
+ counselorChangeId: number;
28
+ setCounselorChangeId: (value: any) => void;
29
+ isChecked: boolean;
30
+ }
31
+ export interface IStudentCounselorItem {
32
+ id: number;
33
+ emailStudent: string;
34
+ studentName: string;
35
+ teacherId?: number;
36
+ counselorId?: string;
37
+ emailCounselor?: string;
38
+ counselorName?: string;
39
+ }
40
+ export declare type TypeStudentCounselorData = {
41
+ currentPage: number;
42
+ pageSize: number;
43
+ totalItems: number;
44
+ totalPages: number;
45
+ items: IStudentCounselorItem[];
46
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssignCounselorList: () => JSX.Element;
3
+ export default AssignCounselorList;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IAssignSecondaryTeacherModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<IAssignSecondaryTeacherModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentSecondaryTeacherItem } from "../utils/type.interface";
3
+ declare const useAssignSecondaryTeacher: () => {
4
+ userList: IStudentSecondaryTeacherItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ chosenUser: IStudentSecondaryTeacherItem;
10
+ options: IOptions[];
11
+ changeSecondaryTeacherId: (id: number) => void;
12
+ secondaryTeacherChangeId: number;
13
+ handleAssign: () => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (chosenUser: IStudentSecondaryTeacherItem) => void;
16
+ isChecked: boolean;
17
+ };
18
+ export default useAssignSecondaryTeacher;
@@ -0,0 +1,2 @@
1
+ import { IStudentSecondaryTeacherItem } from "./type.interface";
2
+ export declare const INITIAL_CHOSEN_USER: IStudentSecondaryTeacherItem;
@@ -0,0 +1,46 @@
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
+ secondaryTeacherId: string;
10
+ emailSecondaryTeacher: string;
11
+ secondaryTeacherName: string;
12
+ };
13
+ export declare type SecondaryTeacher = {
14
+ id: string;
15
+ secondaryTeacherId: number;
16
+ firstName: string;
17
+ lastName: string;
18
+ fullName: string;
19
+ email: string;
20
+ };
21
+ export interface IAssignSecondaryTeacherModal {
22
+ header: string;
23
+ onAssign: () => Promise<void>;
24
+ resetData: () => void;
25
+ chosenUser: IStudentSecondaryTeacherItem;
26
+ options: IOptions[];
27
+ secondaryTeacherChangeId: number;
28
+ setSecondaryTeacherChangeId: (value: any) => void;
29
+ isChecked: boolean;
30
+ }
31
+ export interface IStudentSecondaryTeacherItem {
32
+ id: number;
33
+ emailStudent: string;
34
+ studentName: string;
35
+ teacherId?: number;
36
+ secondaryTeacherId?: string;
37
+ emailSecondaryTeacher?: string;
38
+ secondaryTeacherName?: string;
39
+ }
40
+ export declare type TypeStudentSecondaryTeacherData = {
41
+ currentPage: number;
42
+ pageSize: number;
43
+ totalItems: number;
44
+ totalPages: number;
45
+ items: IStudentSecondaryTeacherItem[];
46
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssignSecondaryTeacherList: () => JSX.Element;
3
+ export default AssignSecondaryTeacherList;
@@ -8,5 +8,4 @@ export declare const renderQuestionText: (params: any) => JSX.Element;
8
8
  export declare const renderActions: ({ params, edit, remove }: ActionProps) => JSX.Element;
9
9
  export declare const renderCategory: (params: any) => JSX.Element;
10
10
  export declare const renderType: (params: any) => JSX.Element;
11
- export declare const renderUserQuestion: (params: any) => JSX.Element;
12
11
  export {};
@@ -5,7 +5,3 @@ export declare enum TYPE_QUESTION {
5
5
  Conference = 3,
6
6
  Survey = 4
7
7
  }
8
- export declare const userForQuestion: {
9
- value: string;
10
- label: string;
11
- }[];
@@ -24,7 +24,6 @@ declare type QuestionDetail = {
24
24
  subQuestions: string[];
25
25
  isBeforeSession: boolean;
26
26
  isDefaultQuestionSurvey: boolean;
27
- userForQuestion?: string;
28
27
  };
29
28
  declare const useQuestionDetail: (id?: number | undefined, type?: number | undefined) => {
30
29
  questionDetail: QuestionDetail;
@@ -0,0 +1,7 @@
1
+ export declare const get: (filter?: any) => Promise<import("axios").AxiosResponse<any>>;
2
+ export declare const getById: (id: number) => Promise<import("axios").AxiosResponse<any>>;
3
+ export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
4
+ export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const getAllTemplatePage: (isTemplateIEP: boolean) => Promise<import("axios").AxiosResponse<any>>;
7
+ export declare const updateTemplatePage: (templateId: number, subTemplateId: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SelectorTemplate: (props: any) => JSX.Element;
3
+ export default SelectorTemplate;
@@ -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,12 @@
1
+ export declare enum TypeEnumTemplate {
2
+ Default = 0,
3
+ Header = 1,
4
+ Footer = 2,
5
+ Page = 3
6
+ }
7
+ export declare const typeNameTemplate: string[];
8
+ export declare const arrListTemplates: {
9
+ id: TypeEnumTemplate;
10
+ label: string;
11
+ value: TypeEnumTemplate;
12
+ }[];
@@ -0,0 +1,9 @@
1
+ import { TypeEnumTemplate } from "../configs/types";
2
+ declare type TemplateDetail = {
3
+ name: string;
4
+ type: TypeEnumTemplate;
5
+ };
6
+ declare const useTemplateBuilder: (templateId: number) => {
7
+ templateDetail: TemplateDetail;
8
+ };
9
+ export default useTemplateBuilder;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { TypeEnumTemplate } from "../configs/types";
3
+ declare type TemplateDetail = {
4
+ name: string;
5
+ type: TypeEnumTemplate;
6
+ isTemplateIEP: boolean;
7
+ };
8
+ declare const useTemplateDetail: (isTemplateIEP: boolean) => {
9
+ id: number;
10
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
11
+ templateDetail: TemplateDetail;
12
+ confirmData: (values: any, cb: any) => Promise<void>;
13
+ initValue: TemplateDetail;
14
+ reset: () => void;
15
+ edited: boolean;
16
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
+ setEditedTrue: () => Promise<void>;
18
+ setEditedFalse: () => Promise<void>;
19
+ };
20
+ export default useTemplateDetail;
@@ -0,0 +1,9 @@
1
+ declare const useTemplateList: (isTemplateIEP: boolean) => {
2
+ templateList: never[];
3
+ totalItems: number;
4
+ filters: import("mario-core").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useTemplateList;
@@ -0,0 +1,9 @@
1
+ declare const useTemplateStart: (isTemplateIEP: boolean) => {
2
+ templateList: never[];
3
+ getData: () => Promise<void>;
4
+ subTemplateId: number;
5
+ templateName: string;
6
+ onClickTemplate: (templateId: number, templateName: string) => void;
7
+ onUpdateTemplate: (subTemplateId: number) => Promise<void>;
8
+ };
9
+ export default useTemplateStart;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TemplateBuilderPage: FC;
3
+ export default TemplateBuilderPage;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TemplateContainer: () => JSX.Element;
3
+ export default TemplateContainer;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TemplateIEPList: FC;
3
+ export default TemplateIEPList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TemplateStartBuild: FC;
3
+ export default TemplateStartBuild;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TemplateSystemList: FC;
3
+ export default TemplateSystemList;
@@ -1,6 +1,8 @@
1
1
  import { TypeStudentWithoutAssistantData } from "../containers/AssignAssistant/utils/type.interface";
2
+ import { TypeStudentCounselorData } from "../containers/AssignCounselor/utils/type.interface";
3
+ import { TypeStudentSecondaryTeacherData } from "../containers/AssignSecondaryTeacher/utils/type.interface";
2
4
  import { TypeStudentAssistantData } from "../containers/SwitchAssistant/utils/type.interface";
3
- import { IStudentWidthAssistant } from "../utils/serviceType.interface";
5
+ import { IStudentCounselorFilter, IStudentSecondaryTeacherFilter, IStudentWidthAssistant } from "../utils/serviceType.interface";
4
6
  export declare const getStudentAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentAssistantData>>;
5
7
  export declare const getStudentWithoutAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentWithoutAssistantData>>;
6
8
  export declare const getAssistant: () => Promise<import("axios").AxiosResponse<any>>;
@@ -9,3 +11,9 @@ export declare const getAssistants: () => Promise<import("axios").AxiosResponse<
9
11
  export declare const changeAssistantOfStudent: (id: number, assistantUserId: string) => Promise<import("axios").AxiosResponse<any>>;
10
12
  export declare const assignAssistantOfStudent: (studentId: number, teacherId: number, assistantId: number) => Promise<import("axios").AxiosResponse<any>>;
11
13
  export declare const removeAssistantForStudent: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
14
+ export declare const assignCounselorOfStudent: (studentId: number, teacherId: number, counselorId: number) => Promise<import("axios").AxiosResponse<any>>;
15
+ export declare const getCounselors: () => Promise<import("axios").AxiosResponse<any>>;
16
+ export declare const getStudentCounselor: (data: IStudentCounselorFilter) => Promise<import("axios").AxiosResponse<TypeStudentCounselorData>>;
17
+ export declare const assignSecondaryTeacherOfStudent: (studentId: number, teacherId: number, secondaryTeacherId: number) => Promise<import("axios").AxiosResponse<any>>;
18
+ export declare const getSecondaryTeachers: () => Promise<import("axios").AxiosResponse<any>>;
19
+ export declare const getStudentSecondaryTeacher: (data: IStudentSecondaryTeacherFilter) => Promise<import("axios").AxiosResponse<TypeStudentSecondaryTeacherData>>;
@@ -6,6 +6,18 @@ export interface IStudentWidthAssistant {
6
6
  searchString?: string;
7
7
  pageSize?: number;
8
8
  }
9
+ export interface IStudentCounselorFilter {
10
+ currentPage?: number;
11
+ searchString?: string;
12
+ pageSize?: number;
13
+ hasCounselor?: boolean;
14
+ }
15
+ export interface IStudentSecondaryTeacherFilter {
16
+ currentPage?: number;
17
+ searchString?: string;
18
+ pageSize?: number;
19
+ hasSecondaryTeacher?: boolean;
20
+ }
9
21
  export interface IFilter {
10
22
  currentPage?: number;
11
23
  pageSize?: number;