mario-education 2.4.469-release → 2.4.471-question
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/containers/QuestionBank/components/AgGridComponents.d.ts +2 -0
- package/dist/containers/QuestionBank/components/SurveyQuestionsList.d.ts +2 -0
- package/dist/containers/QuestionBank/configs/constants.d.ts +4 -0
- package/dist/containers/QuestionBank/hooks/useCategoriesQuestions.d.ts +4 -0
- package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +2 -0
- package/dist/containers/QuestionBank/hooks/useQuestionSurveyList.d.ts +1 -1
- package/dist/containers/QuestionCategory/hooks/useQuestionCateList.d.ts +19 -0
- package/dist/containers/QuestionCategory/views/QuestionCategogyList.d.ts +8 -1
- package/dist/containers/TemplateSurvey/components/SortableItem.d.ts +2 -0
- package/dist/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +1 -2
- package/dist/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +3 -0
- package/dist/hooks/useDisplayScale.d.ts +2 -0
- package/dist/index.css +587 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5003 -2297
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5044 -2338
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +4 -0
- package/package.json +4 -2
|
@@ -11,7 +11,9 @@ export declare const renderQuestSource: (params: any) => JSX.Element;
|
|
|
11
11
|
export declare const renderQuestRequest: (params: any) => JSX.Element;
|
|
12
12
|
export declare const renderQuestActive: (params: any) => JSX.Element;
|
|
13
13
|
export declare const renderActions: ({ params, edit, remove }: ActionProps) => JSX.Element;
|
|
14
|
+
export declare const renderActionsCustom: ({ params, edit, remove }: ActionProps) => JSX.Element;
|
|
14
15
|
export declare const renderCategory: (params: any) => JSX.Element;
|
|
15
16
|
export declare const renderType: (params: any) => JSX.Element;
|
|
16
17
|
export declare const renderUserQuestion: (params: any) => JSX.Element;
|
|
18
|
+
export declare const renderTypeSurvey: (params: any) => JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
declare const useCategoriesQuestions: () => {
|
|
3
3
|
categorySelected: any;
|
|
4
4
|
setCategorySelected: import("react").Dispatch<any>;
|
|
5
|
+
hasChangeQuestion: boolean;
|
|
6
|
+
setHasChangeQuestion: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
7
|
+
maxHeight: number;
|
|
8
|
+
setMaxHeight: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
5
9
|
};
|
|
6
10
|
export default useCategoriesQuestions;
|
|
@@ -47,5 +47,7 @@ declare const useQuestionDetail: (id?: number | undefined, type?: number | undef
|
|
|
47
47
|
modelQuestionLang: QuestionDetail[];
|
|
48
48
|
setModelQuestionLang: import("react").Dispatch<import("react").SetStateAction<QuestionDetail[]>>;
|
|
49
49
|
handleValidateForm: (onValidate: Function, setErrors: Function) => Promise<boolean>;
|
|
50
|
+
activeType: string;
|
|
51
|
+
setActiveType: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
50
52
|
};
|
|
51
53
|
export default useQuestionDetail;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const useQuestionSurveyList: (isDefaultQuestion: boolean, isDefaultClassReflection: boolean, isDefaultConference?: boolean | undefined, isDefaultSurvey?: boolean | undefined, categorySelected?: any) => {
|
|
2
|
+
declare const useQuestionSurveyList: (isDefaultQuestion: boolean, isDefaultClassReflection: boolean, isDefaultConference?: boolean | undefined, isDefaultSurvey?: boolean | undefined, categorySelected?: any, setHasChangeQuestion?: any, setMaxHeight?: any) => {
|
|
3
3
|
gridOptions: any;
|
|
4
4
|
setRef: (node: any) => any;
|
|
5
5
|
questionList: any;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface QuestionCategory {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CategoryParent {
|
|
7
|
+
id: number;
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
}
|
|
1
11
|
declare const useQuestionCateList: () => {
|
|
2
12
|
questionCateList: any;
|
|
3
13
|
totalItems: any;
|
|
@@ -8,5 +18,14 @@ declare const useQuestionCateList: () => {
|
|
|
8
18
|
removeData: (id: number) => void;
|
|
9
19
|
handleToggleChildren: (parent: any) => void;
|
|
10
20
|
handleSort: () => void;
|
|
21
|
+
handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
22
|
+
inputSearch: import("react").MutableRefObject<any>;
|
|
23
|
+
categorySelected: number;
|
|
24
|
+
setCategorySelected: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
25
|
+
parentCategories: QuestionCategory[];
|
|
26
|
+
selectedCategories: CategoryParent[];
|
|
27
|
+
setSelectedCategories: import("react").Dispatch<import("react").SetStateAction<CategoryParent[]>>;
|
|
28
|
+
inputValue: string;
|
|
29
|
+
setInputValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
11
30
|
};
|
|
12
31
|
export default useQuestionCateList;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
|
+
setCategorySelected: Function;
|
|
4
|
+
setHasChangeQuestion: Function;
|
|
5
|
+
categorySelected: any;
|
|
6
|
+
hasChangeQuestion: boolean;
|
|
7
|
+
maxHeight: number;
|
|
8
|
+
}
|
|
9
|
+
declare const QuestionCateList: FC<Props>;
|
|
3
10
|
export default QuestionCateList;
|
|
@@ -27,9 +27,8 @@ declare const useTemplateCateDetail: () => {
|
|
|
27
27
|
text: string;
|
|
28
28
|
} | null;
|
|
29
29
|
setTemporaryQuestion: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion | null>>;
|
|
30
|
-
addQuestion: () => void;
|
|
31
30
|
listQuestions: TemplateQuestion[];
|
|
32
31
|
setListQuestions: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion[]>>;
|
|
33
|
-
|
|
32
|
+
temporaryQuestion: TemplateQuestion | null;
|
|
34
33
|
};
|
|
35
34
|
export default useTemplateCateDetail;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const useTemplateCateList: () => {
|
|
2
3
|
questionCateList: any;
|
|
3
4
|
totalItems: any;
|
|
@@ -8,5 +9,7 @@ declare const useTemplateCateList: () => {
|
|
|
8
9
|
handleSort: (colId: string) => void;
|
|
9
10
|
updateOrderTemplateSurvey: (data: any) => Promise<void>;
|
|
10
11
|
setRef: (node: any) => any;
|
|
12
|
+
handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
inputSearch: import("react").MutableRefObject<any>;
|
|
11
14
|
};
|
|
12
15
|
export default useTemplateCateList;
|