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.
- package/dist/MarioFramework.Education/ClientApp/src/containers/CSVImport/components/UploadCSVButton.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/CSVImport/hooks/useCSVImport.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +1 -0
- package/dist/containers/Assessment/components/AssessmentDetailModal.d.ts +3 -0
- package/dist/containers/Assessment/hooks/useAssessmentDetail.d.ts +17 -0
- package/dist/containers/Assessment/hooks/useAssessmentList.d.ts +9 -0
- package/dist/containers/Assessment/views/AssessmentAssignment.d.ts +3 -0
- package/dist/containers/Assessment/views/AssessmentList.d.ts +3 -0
- package/dist/containers/Badge/components/BadgeDetailModal.d.ts +3 -0
- package/dist/containers/Badge/hooks/useBadgeDetail.d.ts +14 -0
- package/dist/containers/Badge/hooks/useBadgeList.d.ts +9 -0
- package/dist/containers/Badge/views/BadgeList.d.ts +3 -0
- package/dist/containers/Classes/components/ClassDetailModal.d.ts +3 -0
- package/dist/containers/Classes/hooks/useClassDetail.d.ts +12 -0
- package/dist/containers/Classes/hooks/useClassList.d.ts +9 -0
- package/dist/containers/Classes/views/ClassList.d.ts +3 -0
- package/dist/containers/ConferenceRubric/components/CellList.d.ts +10 -0
- package/dist/containers/ConferenceRubric/components/ColumnList.d.ts +11 -0
- package/dist/containers/ConferenceRubric/components/RowList.d.ts +11 -0
- package/dist/containers/ConferenceRubric/configs/conferenceRubricDetailSchema.d.ts +8 -0
- package/dist/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +48 -0
- package/dist/containers/ConferenceRubric/hooks/useConferenceRubricList.d.ts +10 -0
- package/dist/containers/ConferenceRubric/views/ConferenceRubricDetail.d.ts +3 -0
- package/dist/containers/ConferenceRubric/views/ConferenceRubricList.d.ts +3 -0
- package/dist/containers/Feedback/components/FeedbackDetailModal.d.ts +3 -0
- package/dist/containers/Feedback/hooks/useFeedbackDetail.d.ts +12 -0
- package/dist/containers/Feedback/hooks/useFeedbackList.d.ts +8 -0
- package/dist/containers/Feedback/views/FeedbackList.d.ts +3 -0
- package/dist/containers/GoalExample/components/GoalExampleDetailModal.d.ts +3 -0
- package/dist/containers/GoalExample/hooks/useGoalExampleDetail.d.ts +13 -0
- package/dist/containers/GoalExample/hooks/useGoalExampleList.d.ts +9 -0
- package/dist/containers/GoalExample/views/GoalExampleList.d.ts +3 -0
- package/dist/containers/LearningStrategy/components/StrategyDetailModal.d.ts +3 -0
- package/dist/containers/LearningStrategy/hooks/useLearningStrategyList.d.ts +9 -0
- package/dist/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +13 -0
- package/dist/containers/LearningStrategy/views/LearningStrategyList.d.ts +3 -0
- package/dist/containers/ManageAssistant/views/ManageAssistantList.d.ts +3 -0
- package/dist/containers/QuestionBank/components/AdditionalComponent.d.ts +7 -0
- package/dist/containers/QuestionBank/components/AgGridComponents.d.ts +9 -0
- package/dist/containers/QuestionBank/components/AnswerList.d.ts +8 -0
- package/dist/containers/QuestionBank/components/QuestionPreview.d.ts +3 -0
- package/dist/containers/QuestionBank/components/SliderScale.d.ts +8 -0
- package/dist/containers/QuestionBank/components/StarRating.d.ts +7 -0
- package/dist/containers/QuestionBank/configs/questionDetailSchema.d.ts +21 -0
- package/dist/containers/QuestionBank/configs/validationAnswerId.d.ts +2 -0
- package/dist/containers/QuestionBank/configs/validationChoices.d.ts +2 -0
- package/dist/containers/QuestionBank/hooks/useQuestionAnswerList.d.ts +7 -0
- package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +23 -0
- package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +12 -0
- package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +3 -0
- package/dist/containers/QuestionBank/views/QuestionDetail.d.ts +3 -0
- package/dist/containers/QuestionCategory/components/QuestionCateModal.d.ts +3 -0
- package/dist/containers/QuestionCategory/hooks/useQuestionCateDetail.d.ts +13 -0
- package/dist/containers/QuestionCategory/hooks/useQuestionCateList.d.ts +9 -0
- package/dist/containers/QuestionCategory/views/QuestionCategogyList.d.ts +3 -0
- package/dist/containers/ReflectionForm/components/QuestionSplitPaneSelector.d.ts +3 -0
- package/dist/containers/ReflectionForm/components/ReflectionDetailModal.d.ts +3 -0
- package/dist/containers/ReflectionForm/hooks/useQuestionCategory.d.ts +13 -0
- package/dist/containers/ReflectionForm/hooks/useReflectionFormDetail.d.ts +16 -0
- package/dist/containers/ReflectionForm/hooks/useReflectionFormList.d.ts +9 -0
- package/dist/containers/ReflectionForm/views/ReflectionFormList.d.ts +3 -0
- package/dist/containers/Setup/views/SetupContainer.d.ts +3 -0
- package/dist/containers/Subject/components/SubjectDetailModal.d.ts +3 -0
- package/dist/containers/Subject/hooks/useSubjectDetail.d.ts +13 -0
- package/dist/containers/Subject/hooks/useSubjectList.d.ts +9 -0
- package/dist/containers/Subject/views/SubjectList.d.ts +3 -0
- package/dist/containers/SuggestionBank/components/SuggestionDetailModal.d.ts +3 -0
- package/dist/containers/SuggestionBank/hooks/useKeywordList.d.ts +10 -0
- package/dist/containers/SuggestionBank/hooks/useSuggestionDetail.d.ts +24 -0
- package/dist/containers/SuggestionBank/hooks/useSuggestionList.d.ts +10 -0
- package/dist/containers/SuggestionBank/views/SuggestionList.d.ts +3 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +116 -88
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +116 -88
- package/dist/index.modern.js.map +1 -1
- package/dist/index.test.d.ts +1 -0
- package/dist/services/assessmentService.d.ts +6 -0
- package/dist/services/badgeService.d.ts +6 -0
- package/dist/services/classService.d.ts +6 -0
- package/dist/services/conferenceRubricService.d.ts +7 -0
- package/dist/services/feedbackService.d.ts +6 -0
- package/dist/services/goalExampleService.d.ts +6 -0
- package/dist/services/learningStrategyService.d.ts +6 -0
- package/dist/services/questionCategoryService.d.ts +6 -0
- package/dist/services/questionService.d.ts +6 -0
- package/dist/services/reflectionFormService.d.ts +6 -0
- package/dist/services/studentService.d.ts +2 -0
- package/dist/services/subjectService.d.ts +6 -0
- package/dist/services/suggestionService.d.ts +6 -0
- package/package.json +2 -2
|
@@ -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,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,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,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,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,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,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,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,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,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,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,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;
|