mario-education 2.3.2 → 2.4.0

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 (91) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/CSVImport/components/UploadCSVButton.d.ts +1 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/CSVImport/hooks/useCSVImport.d.ts +1 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +1 -0
  4. package/dist/containers/Assessment/components/AssessmentDetailModal.d.ts +3 -0
  5. package/dist/containers/Assessment/hooks/useAssessmentDetail.d.ts +17 -0
  6. package/dist/containers/Assessment/hooks/useAssessmentList.d.ts +9 -0
  7. package/dist/containers/Assessment/views/AssessmentAssignment.d.ts +3 -0
  8. package/dist/containers/Assessment/views/AssessmentList.d.ts +3 -0
  9. package/dist/containers/Badge/components/BadgeDetailModal.d.ts +3 -0
  10. package/dist/containers/Badge/hooks/useBadgeDetail.d.ts +14 -0
  11. package/dist/containers/Badge/hooks/useBadgeList.d.ts +9 -0
  12. package/dist/containers/Badge/views/BadgeList.d.ts +3 -0
  13. package/dist/containers/Classes/components/ClassDetailModal.d.ts +3 -0
  14. package/dist/containers/Classes/hooks/useClassDetail.d.ts +12 -0
  15. package/dist/containers/Classes/hooks/useClassList.d.ts +9 -0
  16. package/dist/containers/Classes/views/ClassList.d.ts +3 -0
  17. package/dist/containers/ConferenceRubric/components/CellList.d.ts +10 -0
  18. package/dist/containers/ConferenceRubric/components/ColumnList.d.ts +11 -0
  19. package/dist/containers/ConferenceRubric/components/RowList.d.ts +11 -0
  20. package/dist/containers/ConferenceRubric/configs/conferenceRubricDetailSchema.d.ts +8 -0
  21. package/dist/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +48 -0
  22. package/dist/containers/ConferenceRubric/hooks/useConferenceRubricList.d.ts +10 -0
  23. package/dist/containers/ConferenceRubric/views/ConferenceRubricDetail.d.ts +3 -0
  24. package/dist/containers/ConferenceRubric/views/ConferenceRubricList.d.ts +3 -0
  25. package/dist/containers/Feedback/components/FeedbackDetailModal.d.ts +3 -0
  26. package/dist/containers/Feedback/hooks/useFeedbackDetail.d.ts +12 -0
  27. package/dist/containers/Feedback/hooks/useFeedbackList.d.ts +8 -0
  28. package/dist/containers/Feedback/views/FeedbackList.d.ts +3 -0
  29. package/dist/containers/GoalExample/components/GoalExampleDetailModal.d.ts +3 -0
  30. package/dist/containers/GoalExample/hooks/useGoalExampleDetail.d.ts +13 -0
  31. package/dist/containers/GoalExample/hooks/useGoalExampleList.d.ts +9 -0
  32. package/dist/containers/GoalExample/views/GoalExampleList.d.ts +3 -0
  33. package/dist/containers/LearningStrategy/components/StrategyDetailModal.d.ts +3 -0
  34. package/dist/containers/LearningStrategy/hooks/useLearningStrategyList.d.ts +9 -0
  35. package/dist/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +13 -0
  36. package/dist/containers/LearningStrategy/views/LearningStrategyList.d.ts +3 -0
  37. package/dist/containers/ManageAssistant/views/ManageAssistantList.d.ts +3 -0
  38. package/dist/containers/QuestionBank/components/AdditionalComponent.d.ts +7 -0
  39. package/dist/containers/QuestionBank/components/AgGridComponents.d.ts +9 -0
  40. package/dist/containers/QuestionBank/components/AnswerList.d.ts +8 -0
  41. package/dist/containers/QuestionBank/components/QuestionPreview.d.ts +3 -0
  42. package/dist/containers/QuestionBank/components/SliderScale.d.ts +8 -0
  43. package/dist/containers/QuestionBank/components/StarRating.d.ts +7 -0
  44. package/dist/containers/QuestionBank/configs/questionDetailSchema.d.ts +21 -0
  45. package/dist/containers/QuestionBank/configs/validationAnswerId.d.ts +2 -0
  46. package/dist/containers/QuestionBank/configs/validationChoices.d.ts +2 -0
  47. package/dist/containers/QuestionBank/hooks/useQuestionAnswerList.d.ts +7 -0
  48. package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +23 -0
  49. package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +12 -0
  50. package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +3 -0
  51. package/dist/containers/QuestionBank/views/QuestionDetail.d.ts +3 -0
  52. package/dist/containers/QuestionCategory/components/QuestionCateModal.d.ts +3 -0
  53. package/dist/containers/QuestionCategory/hooks/useQuestionCateDetail.d.ts +13 -0
  54. package/dist/containers/QuestionCategory/hooks/useQuestionCateList.d.ts +9 -0
  55. package/dist/containers/QuestionCategory/views/QuestionCategogyList.d.ts +3 -0
  56. package/dist/containers/ReflectionForm/components/QuestionSplitPaneSelector.d.ts +3 -0
  57. package/dist/containers/ReflectionForm/components/ReflectionDetailModal.d.ts +3 -0
  58. package/dist/containers/ReflectionForm/hooks/useQuestionCategory.d.ts +13 -0
  59. package/dist/containers/ReflectionForm/hooks/useReflectionFormDetail.d.ts +16 -0
  60. package/dist/containers/ReflectionForm/hooks/useReflectionFormList.d.ts +9 -0
  61. package/dist/containers/ReflectionForm/views/ReflectionFormList.d.ts +3 -0
  62. package/dist/containers/Setup/views/SetupContainer.d.ts +3 -0
  63. package/dist/containers/Subject/components/SubjectDetailModal.d.ts +3 -0
  64. package/dist/containers/Subject/hooks/useSubjectDetail.d.ts +13 -0
  65. package/dist/containers/Subject/hooks/useSubjectList.d.ts +9 -0
  66. package/dist/containers/Subject/views/SubjectList.d.ts +3 -0
  67. package/dist/containers/SuggestionBank/components/SuggestionDetailModal.d.ts +3 -0
  68. package/dist/containers/SuggestionBank/hooks/useKeywordList.d.ts +10 -0
  69. package/dist/containers/SuggestionBank/hooks/useSuggestionDetail.d.ts +24 -0
  70. package/dist/containers/SuggestionBank/hooks/useSuggestionList.d.ts +10 -0
  71. package/dist/containers/SuggestionBank/views/SuggestionList.d.ts +3 -0
  72. package/dist/index.d.ts +16 -0
  73. package/dist/index.js +116 -88
  74. package/dist/index.js.map +1 -1
  75. package/dist/index.modern.js +116 -88
  76. package/dist/index.modern.js.map +1 -1
  77. package/dist/index.test.d.ts +1 -0
  78. package/dist/services/assessmentService.d.ts +6 -0
  79. package/dist/services/badgeService.d.ts +6 -0
  80. package/dist/services/classService.d.ts +6 -0
  81. package/dist/services/conferenceRubricService.d.ts +7 -0
  82. package/dist/services/feedbackService.d.ts +6 -0
  83. package/dist/services/goalExampleService.d.ts +6 -0
  84. package/dist/services/learningStrategyService.d.ts +6 -0
  85. package/dist/services/questionCategoryService.d.ts +6 -0
  86. package/dist/services/questionService.d.ts +6 -0
  87. package/dist/services/reflectionFormService.d.ts +6 -0
  88. package/dist/services/studentService.d.ts +2 -0
  89. package/dist/services/subjectService.d.ts +6 -0
  90. package/dist/services/suggestionService.d.ts +6 -0
  91. package/package.json +2 -2
@@ -5,6 +5,7 @@ interface Props {
5
5
  text: string;
6
6
  backgroundColor: string;
7
7
  onClick: Function;
8
+ isClassReflection?: boolean;
8
9
  }
9
10
  declare const UploadCSVButton: FC<Props>;
10
11
  export default UploadCSVButton;
@@ -26,5 +26,6 @@ declare const useCSVImport: () => {
26
26
  setDataFile: import("react").Dispatch<any>;
27
27
  setArrStudent: import("react").Dispatch<any>;
28
28
  arrStudent: any;
29
+ isCheckDomainIBS: boolean;
29
30
  };
30
31
  export default useCSVImport;
@@ -2,6 +2,7 @@
2
2
  declare type StrategyDetail = {
3
3
  name: string;
4
4
  description?: string;
5
+ bestfit?: string;
5
6
  };
6
7
  declare const useStrategyDetail: () => {
7
8
  id: number;
@@ -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,17 @@
1
+ /// <reference types="react" />
2
+ declare type AssessmentDetail = {
3
+ name: string;
4
+ beginDate?: string;
5
+ endDate?: string;
6
+ questionIds: any;
7
+ studentIds: any;
8
+ };
9
+ declare const useAssessmentDetail: () => {
10
+ id: number;
11
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
12
+ assessmentDetail: AssessmentDetail;
13
+ setAssessmentDetail: import("react").Dispatch<import("react").SetStateAction<AssessmentDetail>>;
14
+ confirmData: (values: any, cb: any) => Promise<void>;
15
+ initValue: AssessmentDetail;
16
+ };
17
+ export default useAssessmentDetail;
@@ -0,0 +1,9 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useAssessmentList: () => {
3
+ assessmentList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useAssessmentList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssessmentAssignment: () => JSX.Element;
3
+ export default AssessmentAssignment;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const AssessmentList: FC;
3
+ export default AssessmentList;
@@ -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,14 @@
1
+ /// <reference types="react" />
2
+ declare type BadgeDetail = {
3
+ name: string;
4
+ description: string;
5
+ imgUrl: string;
6
+ };
7
+ declare const useBadgeDetail: () => {
8
+ id: number;
9
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
10
+ badgeDetail: BadgeDetail;
11
+ confirmData: (values: any, cb: any) => Promise<void>;
12
+ initValue: BadgeDetail;
13
+ };
14
+ export default useBadgeDetail;
@@ -0,0 +1,9 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useBadgeList: () => {
3
+ badgeList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useBadgeList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const BadgeList: FC;
3
+ export default BadgeList;
@@ -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
+ /// <reference types="react" />
2
+ declare type ClassDetail = {
3
+ name: string;
4
+ };
5
+ declare const useClassDetail: () => {
6
+ id: number;
7
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
8
+ classDetail: ClassDetail;
9
+ confirmData: (values: any, cb: any) => Promise<void>;
10
+ initValue: ClassDetail;
11
+ };
12
+ export default useClassDetail;
@@ -0,0 +1,9 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useClassList: () => {
3
+ classList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useClassList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ClassList: FC;
3
+ export default ClassList;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { CellType, ColRowType } from "../hooks/useConferenceRubricDetail";
3
+ interface Props {
4
+ columns: ColRowType[];
5
+ rows: ColRowType[];
6
+ cells: CellType[];
7
+ onChangeCellText: (cell: CellType) => void;
8
+ }
9
+ declare const CellList: FC<Props>;
10
+ export default CellList;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { ColRowType } from "../hooks/useConferenceRubricDetail";
3
+ interface Props {
4
+ columns: ColRowType[];
5
+ onAddNewColumn: (newRow: ColRowType) => void;
6
+ onRemoveColumn: (id: number) => void;
7
+ onChangeColumnText: (row: ColRowType) => void;
8
+ getNextId: (arr: ColRowType[]) => number;
9
+ }
10
+ declare const ColumnList: FC<Props>;
11
+ export default ColumnList;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { ColRowType } from "../hooks/useConferenceRubricDetail";
3
+ interface Props {
4
+ rows: ColRowType[];
5
+ onAddNewRow: (newRow: ColRowType) => void;
6
+ onRemoveRow: (id: number) => void;
7
+ onChangeRowText: (row: ColRowType) => void;
8
+ getNextId: (arr: ColRowType[]) => number;
9
+ }
10
+ declare const RowList: FC<Props>;
11
+ export default RowList;
@@ -0,0 +1,8 @@
1
+ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
2
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
3
+ instruction: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
5
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
6
+ instruction: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
7
+ }>>;
8
+ export default schema;
@@ -0,0 +1,48 @@
1
+ import { ConferenceRubricDetail } from "../../..";
2
+ export declare type ConferenceRubricDetailColumn = {
3
+ id?: number;
4
+ headerText: string;
5
+ };
6
+ export declare type ConferenceRubricDetailCell = {
7
+ id?: number;
8
+ text: string;
9
+ };
10
+ export declare type ConferenceRubricDetailRow = {
11
+ id?: number;
12
+ headerText: string;
13
+ cells: ConferenceRubricDetailCell[];
14
+ };
15
+ export declare type ConferenceRubricDetail = {
16
+ id?: number;
17
+ name: string;
18
+ instruction: string;
19
+ columns: ConferenceRubricDetailColumn[];
20
+ rows: ConferenceRubricDetailRow[];
21
+ };
22
+ export declare type ColRowType = {
23
+ id: number;
24
+ headerText: string;
25
+ };
26
+ export declare type CellType = {
27
+ rowId: number;
28
+ columnId: number;
29
+ text: string;
30
+ };
31
+ declare const useConferenceRubricDetail: (id?: number | undefined) => {
32
+ conferenceRubricDetail: ConferenceRubricDetail;
33
+ columns: ColRowType[];
34
+ rows: ColRowType[];
35
+ cells: CellType[];
36
+ backToList: () => void;
37
+ confirmData: (data: any) => Promise<void>;
38
+ transferData: (conferenceRubricDetail: ConferenceRubricDetail) => ConferenceRubricDetail;
39
+ onAddNewColumn: (newColumn: ColRowType) => void;
40
+ onAddNewRow: (newRow: ColRowType) => void;
41
+ onRemoveColumn: (id: number) => void;
42
+ onRemoveRow: (id: number) => void;
43
+ onChangeRowText: (row: ColRowType) => void;
44
+ onChangeColumnText: (column: ColRowType) => void;
45
+ onChangeCellText: (cell: CellType) => void;
46
+ getNextId: (arr: ColRowType[]) => number;
47
+ };
48
+ export default useConferenceRubricDetail;
@@ -0,0 +1,10 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useConferenceRubricList: () => {
3
+ conferenceRubricList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ goToDetail: (id?: number | undefined) => void;
9
+ };
10
+ export default useConferenceRubricList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ConferenceRubricDetail: FC;
3
+ export default ConferenceRubricDetail;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ConferenceRubricList: FC;
3
+ export default ConferenceRubricList;
@@ -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
+ /// <reference types="react" />
2
+ declare type FeedbackDetail = {
3
+ description: string;
4
+ };
5
+ declare const useFeedbackDetail: () => {
6
+ id: number;
7
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
8
+ feedbackDetail: FeedbackDetail;
9
+ confirmData: (values: any, cb: any) => Promise<void>;
10
+ initValue: FeedbackDetail;
11
+ };
12
+ export default useFeedbackDetail;
@@ -0,0 +1,8 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useFeedbackList: () => {
3
+ feedbackList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ };
8
+ export default useFeedbackList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const FeedbackList: FC;
3
+ export default FeedbackList;
@@ -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,13 @@
1
+ /// <reference types="react" />
2
+ declare type GoalExampleDetail = {
3
+ name: string;
4
+ description: string;
5
+ };
6
+ declare const useGoalExampleDetail: () => {
7
+ id: number;
8
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
9
+ goalExampleDetail: GoalExampleDetail;
10
+ confirmData: (values: any, cb: any) => Promise<void>;
11
+ initValue: GoalExampleDetail;
12
+ };
13
+ export default useGoalExampleDetail;
@@ -0,0 +1,9 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useGoalExampleList: () => {
3
+ goalExampleList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useGoalExampleList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const GoalExampleList: FC;
3
+ export default GoalExampleList;
@@ -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,9 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useStrategyList: () => {
3
+ strategyList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useStrategyList;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare type StrategyDetail = {
3
+ name: string;
4
+ description?: string;
5
+ };
6
+ declare const useStrategyDetail: () => {
7
+ id: number;
8
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
9
+ strategyDetail: StrategyDetail;
10
+ confirmData: (values: any, cb: any) => Promise<void>;
11
+ initValue: StrategyDetail;
12
+ };
13
+ export default useStrategyDetail;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const LearningStrategyList: FC;
3
+ export default LearningStrategyList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ManageAssistantList: FC;
3
+ export default ManageAssistantList;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ values: any;
4
+ setFieldValue: any;
5
+ }
6
+ declare const AdditionalComponent: FC<Props>;
7
+ export default AdditionalComponent;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface ActionProps {
3
+ params: any;
4
+ edit: (id?: number) => any;
5
+ remove: (id?: number) => any;
6
+ }
7
+ export declare const renderActions: ({ params, edit, remove }: ActionProps) => JSX.Element;
8
+ export declare const renderText: (params: any) => JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ type: string;
4
+ answers: any[];
5
+ setFieldValue: () => any;
6
+ }
7
+ declare const AnswerList: FC<Props>;
8
+ export default AnswerList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const QuestionPreview: (props: any) => JSX.Element;
3
+ export default QuestionPreview;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface Props {
3
+ fromLabel: string;
4
+ toLabel: string;
5
+ setFieldValue: any;
6
+ }
7
+ declare const _default: React.NamedExoticComponent<Props>;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface Props {
3
+ numberOfStars: number;
4
+ setFieldValue: any;
5
+ }
6
+ declare const _default: React.NamedExoticComponent<Props>;
7
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import * as yup from "yup";
2
+ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
3
+ text: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
+ type: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
5
+ categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
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>>;
9
+ numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
10
+ answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
11
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
12
+ text: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
13
+ type: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
14
+ categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
15
+ explainAnswer: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
16
+ fromLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
17
+ toLabel: yup.StringSchema<import("yup/lib/types").Maybe<string>, Record<string, any>, import("yup/lib/types").Maybe<string>>;
18
+ numberOfStars: yup.NumberSchema<number | null | undefined, Record<string, any>, number | null | undefined>;
19
+ answers: import("yup/lib/array").OptionalArraySchema<yup.AnySchema<any, any, any>, any, any[] | undefined>;
20
+ }>>;
21
+ export default schema;
@@ -0,0 +1,2 @@
1
+ declare const validationAnswerId: (data: any) => any;
2
+ export default validationAnswerId;
@@ -0,0 +1,2 @@
1
+ declare const validationChoices: any;
2
+ export default validationChoices;
@@ -0,0 +1,7 @@
1
+ declare const useQuestionAnswerList: (type: string, answers: any[], setFieldValue: any) => {
2
+ addAnswer: () => void;
3
+ editAnswer: (id: any, valueObject: any) => void;
4
+ removeAnswer: (id: any) => void;
5
+ checkIsCorrect: (id: any, isChecked: any) => void;
6
+ };
7
+ export default useQuestionAnswerList;
@@ -0,0 +1,23 @@
1
+ declare type Answer = {
2
+ text: string;
3
+ isCorrectAnswer: boolean;
4
+ mark: number;
5
+ };
6
+ declare type QuestionDetail = {
7
+ id?: number;
8
+ type: string;
9
+ text: string;
10
+ categoryId: number;
11
+ explainAnswer?: string;
12
+ fromLabel?: string;
13
+ toLabel?: string;
14
+ numberOfStars?: number;
15
+ answers: Answer[];
16
+ };
17
+ declare const useQuestionDetail: (id?: number | undefined) => {
18
+ questionDetail: QuestionDetail;
19
+ setEditorRef: (node: any) => any;
20
+ backToList: () => void;
21
+ confirmData: (data: any) => Promise<void>;
22
+ };
23
+ export default useQuestionDetail;
@@ -0,0 +1,12 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useQuestionList: () => {
3
+ gridOptions: any;
4
+ setRef: (node: any) => any;
5
+ questionList: any;
6
+ filters: Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ getData: () => Promise<void>;
9
+ removeData: (id: number) => void;
10
+ goToDetail: (id?: number | undefined) => void;
11
+ };
12
+ export default useQuestionList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const QuestionBankList: FC;
3
+ export default QuestionBankList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const QuestionDetail: FC;
3
+ export default 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,13 @@
1
+ /// <reference types="react" />
2
+ declare type questionCateDetail = {
3
+ name: string;
4
+ ParentCategoryId: number | null;
5
+ };
6
+ declare const useQuestionCateDetail: () => {
7
+ id: number;
8
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
9
+ questionCateDetail: questionCateDetail;
10
+ confirmData: (values: any, cb: any) => Promise<void>;
11
+ initValue: questionCateDetail;
12
+ };
13
+ export default useQuestionCateDetail;
@@ -0,0 +1,9 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useQuestionCateList: () => {
3
+ questionCateList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useQuestionCateList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const QuestionCateList: FC;
3
+ export default QuestionCateList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const QuestionSplitPaneSelector: (props: any) => JSX.Element;
3
+ export default QuestionSplitPaneSelector;
@@ -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,13 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useQuestionCategory: () => {
3
+ filters: Filter;
4
+ changeFilters: (updatedFilters: any) => void;
5
+ selectQuestion: any;
6
+ selectedQuestions: any;
7
+ questionByCategoryList: any;
8
+ getQuestionByCategory: (Id: any) => Promise<void>;
9
+ setSelectedQuestion: (question: any) => void;
10
+ MoveItemQuestion: (type: any) => void;
11
+ resetQuestionList: () => void;
12
+ };
13
+ export default useQuestionCategory;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ declare type ReflectionFormDetail = {
3
+ id?: number;
4
+ name: string;
5
+ category: string;
6
+ questionIds: number[];
7
+ search: string;
8
+ };
9
+ declare const useReflectionFormDetail: () => {
10
+ id: number;
11
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
12
+ reflectionformDetail: ReflectionFormDetail;
13
+ confirmData: (values: any, cb: any) => Promise<void>;
14
+ initValue: ReflectionFormDetail;
15
+ };
16
+ export default useReflectionFormDetail;
@@ -0,0 +1,9 @@
1
+ import { Filter } from "mario-core";
2
+ declare const useReflectionFormList: () => {
3
+ reflectiontList: any;
4
+ filters: Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => Promise<void>;
8
+ };
9
+ export default useReflectionFormList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ReflectionFormList: FC;
3
+ export default ReflectionFormList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SetupContainer: () => JSX.Element;
3
+ export default SetupContainer;
@@ -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;