mario-education 2.4.0 → 2.4.3
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/hooks/useCSVImport.d.ts +8 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Classes/components/TeacherSelector.d.ts +4 -0
- package/dist/{containers/Assessment/components/AssessmentDetailModal.d.ts → MarioFramework.Education/ClientApp/src/containers/SwitchTeacher/components/SwitchTeacherModal.d.ts} +0 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchTeacher/hooks/useSwitchTeacher.d.ts +38 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchTeacher/views/SwitchTeacherList.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/csvService.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/userDeletedService.d.ts +2 -0
- package/dist/index.css +135 -135
- package/dist/index.js +536 -49
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +536 -49
- package/dist/index.modern.js.map +1 -1
- package/package.json +91 -91
- package/dist/containers/Assessment/hooks/useAssessmentDetail.d.ts +0 -17
- package/dist/containers/Assessment/hooks/useAssessmentList.d.ts +0 -9
- package/dist/containers/Assessment/views/AssessmentAssignment.d.ts +0 -3
- package/dist/containers/Assessment/views/AssessmentList.d.ts +0 -3
- package/dist/containers/Badge/components/BadgeDetailModal.d.ts +0 -3
- package/dist/containers/Badge/hooks/useBadgeDetail.d.ts +0 -14
- package/dist/containers/Badge/hooks/useBadgeList.d.ts +0 -9
- package/dist/containers/Badge/views/BadgeList.d.ts +0 -3
- package/dist/containers/Classes/components/ClassDetailModal.d.ts +0 -3
- package/dist/containers/Classes/hooks/useClassDetail.d.ts +0 -12
- package/dist/containers/Classes/hooks/useClassList.d.ts +0 -9
- package/dist/containers/Classes/views/ClassList.d.ts +0 -3
- package/dist/containers/ConferenceRubric/components/CellList.d.ts +0 -10
- package/dist/containers/ConferenceRubric/components/ColumnList.d.ts +0 -11
- package/dist/containers/ConferenceRubric/components/RowList.d.ts +0 -11
- package/dist/containers/ConferenceRubric/configs/conferenceRubricDetailSchema.d.ts +0 -8
- package/dist/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +0 -48
- package/dist/containers/ConferenceRubric/hooks/useConferenceRubricList.d.ts +0 -10
- package/dist/containers/ConferenceRubric/views/ConferenceRubricDetail.d.ts +0 -3
- package/dist/containers/ConferenceRubric/views/ConferenceRubricList.d.ts +0 -3
- package/dist/containers/Feedback/components/FeedbackDetailModal.d.ts +0 -3
- package/dist/containers/Feedback/hooks/useFeedbackDetail.d.ts +0 -12
- package/dist/containers/Feedback/hooks/useFeedbackList.d.ts +0 -8
- package/dist/containers/Feedback/views/FeedbackList.d.ts +0 -3
- package/dist/containers/GoalExample/components/GoalExampleDetailModal.d.ts +0 -3
- package/dist/containers/GoalExample/hooks/useGoalExampleDetail.d.ts +0 -13
- package/dist/containers/GoalExample/hooks/useGoalExampleList.d.ts +0 -9
- package/dist/containers/GoalExample/views/GoalExampleList.d.ts +0 -3
- package/dist/containers/LearningStrategy/components/StrategyDetailModal.d.ts +0 -3
- package/dist/containers/LearningStrategy/hooks/useLearningStrategyList.d.ts +0 -9
- package/dist/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +0 -13
- package/dist/containers/LearningStrategy/views/LearningStrategyList.d.ts +0 -3
- package/dist/containers/ManageAssistant/views/ManageAssistantList.d.ts +0 -3
- package/dist/containers/QuestionBank/components/AdditionalComponent.d.ts +0 -7
- package/dist/containers/QuestionBank/components/AgGridComponents.d.ts +0 -9
- package/dist/containers/QuestionBank/components/AnswerList.d.ts +0 -8
- package/dist/containers/QuestionBank/components/QuestionPreview.d.ts +0 -3
- package/dist/containers/QuestionBank/components/SliderScale.d.ts +0 -8
- package/dist/containers/QuestionBank/components/StarRating.d.ts +0 -7
- package/dist/containers/QuestionBank/configs/questionDetailSchema.d.ts +0 -21
- package/dist/containers/QuestionBank/configs/validationAnswerId.d.ts +0 -2
- package/dist/containers/QuestionBank/configs/validationChoices.d.ts +0 -2
- package/dist/containers/QuestionBank/hooks/useQuestionAnswerList.d.ts +0 -7
- package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -23
- package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +0 -12
- package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +0 -3
- package/dist/containers/QuestionBank/views/QuestionDetail.d.ts +0 -3
- package/dist/containers/QuestionCategory/components/QuestionCateModal.d.ts +0 -3
- package/dist/containers/QuestionCategory/hooks/useQuestionCateDetail.d.ts +0 -13
- package/dist/containers/QuestionCategory/hooks/useQuestionCateList.d.ts +0 -9
- package/dist/containers/QuestionCategory/views/QuestionCategogyList.d.ts +0 -3
- package/dist/containers/ReflectionForm/components/QuestionSplitPaneSelector.d.ts +0 -3
- package/dist/containers/ReflectionForm/components/ReflectionDetailModal.d.ts +0 -3
- package/dist/containers/ReflectionForm/hooks/useQuestionCategory.d.ts +0 -13
- package/dist/containers/ReflectionForm/hooks/useReflectionFormDetail.d.ts +0 -16
- package/dist/containers/ReflectionForm/hooks/useReflectionFormList.d.ts +0 -9
- package/dist/containers/ReflectionForm/views/ReflectionFormList.d.ts +0 -3
- package/dist/containers/Setup/views/SetupContainer.d.ts +0 -3
- package/dist/containers/Subject/components/SubjectDetailModal.d.ts +0 -3
- package/dist/containers/Subject/hooks/useSubjectDetail.d.ts +0 -13
- package/dist/containers/Subject/hooks/useSubjectList.d.ts +0 -9
- package/dist/containers/Subject/views/SubjectList.d.ts +0 -3
- package/dist/containers/SuggestionBank/components/SuggestionDetailModal.d.ts +0 -3
- package/dist/containers/SuggestionBank/hooks/useKeywordList.d.ts +0 -10
- package/dist/containers/SuggestionBank/hooks/useSuggestionDetail.d.ts +0 -24
- package/dist/containers/SuggestionBank/hooks/useSuggestionList.d.ts +0 -10
- package/dist/containers/SuggestionBank/views/SuggestionList.d.ts +0 -3
- package/dist/index.d.ts +0 -16
- package/dist/index.test.d.ts +0 -1
- package/dist/services/assessmentService.d.ts +0 -6
- package/dist/services/badgeService.d.ts +0 -6
- package/dist/services/classService.d.ts +0 -6
- package/dist/services/conferenceRubricService.d.ts +0 -7
- package/dist/services/feedbackService.d.ts +0 -6
- package/dist/services/goalExampleService.d.ts +0 -6
- package/dist/services/learningStrategyService.d.ts +0 -6
- package/dist/services/questionCategoryService.d.ts +0 -6
- package/dist/services/questionService.d.ts +0 -6
- package/dist/services/reflectionFormService.d.ts +0 -6
- package/dist/services/studentService.d.ts +0 -2
- package/dist/services/subjectService.d.ts +0 -6
- package/dist/services/suggestionService.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mario-education",
|
|
3
|
-
"version": "2.4.
|
|
4
|
-
"description": "Contains education components && functions for BRSS Mario project",
|
|
5
|
-
"author": "brss",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "brss/mario-education",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"module": "dist/index.modern.js",
|
|
10
|
-
"source": "src/index.tsx",
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=10"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "microbundle-crl --no-compress --format modern,cjs",
|
|
16
|
-
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
|
17
|
-
"prepare": "run-s build",
|
|
18
|
-
"test": "run-s test:unit test:lint test:build",
|
|
19
|
-
"test:build": "run-s build",
|
|
20
|
-
"test:lint": "eslint .",
|
|
21
|
-
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
22
|
-
"test:watch": "react-scripts test --env=jsdom",
|
|
23
|
-
"predeploy": "cd example && npm install && npm run build",
|
|
24
|
-
"deploy": "gh-pages -d example/build"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"react": "^16.0.0",
|
|
28
|
-
"react-table": "*",
|
|
29
|
-
"reactstrap": "*",
|
|
30
|
-
"react-dom": "*",
|
|
31
|
-
"react-redux": "*",
|
|
32
|
-
"react-router-dom": "*"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@rollup/plugin-commonjs": "11.0.2",
|
|
36
|
-
"@testing-library/jest-dom": "^4.2.4",
|
|
37
|
-
"@testing-library/react": "^9.5.0",
|
|
38
|
-
"@testing-library/user-event": "^7.2.1",
|
|
39
|
-
"@types/jest": "^25.1.4",
|
|
40
|
-
"@types/node": "^12.12.38",
|
|
41
|
-
"@types/react": "^16.9.27",
|
|
42
|
-
"@types/react-dom": "^16.9.7",
|
|
43
|
-
"@types/react-redux": "^7.1.16",
|
|
44
|
-
"@types/react-router-dom": "^5.1.7",
|
|
45
|
-
"@types/react-table": "^7.0.28",
|
|
46
|
-
"@types/reactstrap": "",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
|
48
|
-
"@typescript-eslint/parser": "^2.26.0",
|
|
49
|
-
"@types/yup": "^0.29.11",
|
|
50
|
-
"babel-eslint": "^10.0.3",
|
|
51
|
-
"cross-env": "^7.0.2",
|
|
52
|
-
"eslint": "^6.8.0",
|
|
53
|
-
"eslint-config-prettier": "^6.7.0",
|
|
54
|
-
"eslint-config-standard": "^14.1.0",
|
|
55
|
-
"eslint-config-standard-react": "^9.2.0",
|
|
56
|
-
"eslint-plugin-import": "^2.18.2",
|
|
57
|
-
"eslint-plugin-node": "^11.0.0",
|
|
58
|
-
"eslint-plugin-prettier": "^3.1.1",
|
|
59
|
-
"eslint-plugin-promise": "^4.2.1",
|
|
60
|
-
"eslint-plugin-react": "^7.17.0",
|
|
61
|
-
"eslint-plugin-standard": "^4.0.1",
|
|
62
|
-
"gh-pages": "^2.2.0",
|
|
63
|
-
"microbundle-crl": "^0.13.10",
|
|
64
|
-
"npm-run-all": "^4.1.5",
|
|
65
|
-
"prettier": "^2.0.4",
|
|
66
|
-
"react-scripts": "^3.4.1",
|
|
67
|
-
"typescript": "^3.7.5"
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"dist"
|
|
71
|
-
],
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@ag-grid-community/client-side-row-model": "^22.1.1",
|
|
74
|
-
"@ag-grid-community/react": "^22.0.0",
|
|
75
|
-
"@ag-grid-enterprise/core": "^22.1.1",
|
|
76
|
-
"@ag-grid-enterprise/master-detail": "^22.1.1",
|
|
77
|
-
"@tinymce/tinymce-react": "^3.9.0",
|
|
78
|
-
"@types/react-datepicker": "^3.1.7",
|
|
79
|
-
"apexcharts": "^3.26.3",
|
|
80
|
-
"axios": "^0.21.1",
|
|
81
|
-
"date-fns": "^2.19.0",
|
|
82
|
-
"formik": "^2.2.6",
|
|
83
|
-
"mario-core": "^2.9.0",
|
|
84
|
-
"react-apexcharts": "^1.3.9",
|
|
85
|
-
"react-datepicker": "^3.6.0",
|
|
86
|
-
"react-icons": "^4.2.0",
|
|
87
|
-
"react-simple-star-rating": "^1.0.6",
|
|
88
|
-
"reactstrap": "^8.10.0",
|
|
89
|
-
"yup": "^0.32.9"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mario-education",
|
|
3
|
+
"version": "2.4.3",
|
|
4
|
+
"description": "Contains education components && functions for BRSS Mario project",
|
|
5
|
+
"author": "brss",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "brss/mario-education",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
|
+
"source": "src/index.tsx",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "microbundle-crl --no-compress --format modern,cjs",
|
|
16
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
|
17
|
+
"prepare": "run-s build",
|
|
18
|
+
"test": "run-s test:unit test:lint test:build",
|
|
19
|
+
"test:build": "run-s build",
|
|
20
|
+
"test:lint": "eslint .",
|
|
21
|
+
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
22
|
+
"test:watch": "react-scripts test --env=jsdom",
|
|
23
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
24
|
+
"deploy": "gh-pages -d example/build"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "^16.0.0",
|
|
28
|
+
"react-table": "*",
|
|
29
|
+
"reactstrap": "*",
|
|
30
|
+
"react-dom": "*",
|
|
31
|
+
"react-redux": "*",
|
|
32
|
+
"react-router-dom": "*"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
36
|
+
"@testing-library/jest-dom": "^4.2.4",
|
|
37
|
+
"@testing-library/react": "^9.5.0",
|
|
38
|
+
"@testing-library/user-event": "^7.2.1",
|
|
39
|
+
"@types/jest": "^25.1.4",
|
|
40
|
+
"@types/node": "^12.12.38",
|
|
41
|
+
"@types/react": "^16.9.27",
|
|
42
|
+
"@types/react-dom": "^16.9.7",
|
|
43
|
+
"@types/react-redux": "^7.1.16",
|
|
44
|
+
"@types/react-router-dom": "^5.1.7",
|
|
45
|
+
"@types/react-table": "^7.0.28",
|
|
46
|
+
"@types/reactstrap": "",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
|
48
|
+
"@typescript-eslint/parser": "^2.26.0",
|
|
49
|
+
"@types/yup": "^0.29.11",
|
|
50
|
+
"babel-eslint": "^10.0.3",
|
|
51
|
+
"cross-env": "^7.0.2",
|
|
52
|
+
"eslint": "^6.8.0",
|
|
53
|
+
"eslint-config-prettier": "^6.7.0",
|
|
54
|
+
"eslint-config-standard": "^14.1.0",
|
|
55
|
+
"eslint-config-standard-react": "^9.2.0",
|
|
56
|
+
"eslint-plugin-import": "^2.18.2",
|
|
57
|
+
"eslint-plugin-node": "^11.0.0",
|
|
58
|
+
"eslint-plugin-prettier": "^3.1.1",
|
|
59
|
+
"eslint-plugin-promise": "^4.2.1",
|
|
60
|
+
"eslint-plugin-react": "^7.17.0",
|
|
61
|
+
"eslint-plugin-standard": "^4.0.1",
|
|
62
|
+
"gh-pages": "^2.2.0",
|
|
63
|
+
"microbundle-crl": "^0.13.10",
|
|
64
|
+
"npm-run-all": "^4.1.5",
|
|
65
|
+
"prettier": "^2.0.4",
|
|
66
|
+
"react-scripts": "^3.4.1",
|
|
67
|
+
"typescript": "^3.7.5"
|
|
68
|
+
},
|
|
69
|
+
"files": [
|
|
70
|
+
"dist"
|
|
71
|
+
],
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@ag-grid-community/client-side-row-model": "^22.1.1",
|
|
74
|
+
"@ag-grid-community/react": "^22.0.0",
|
|
75
|
+
"@ag-grid-enterprise/core": "^22.1.1",
|
|
76
|
+
"@ag-grid-enterprise/master-detail": "^22.1.1",
|
|
77
|
+
"@tinymce/tinymce-react": "^3.9.0",
|
|
78
|
+
"@types/react-datepicker": "^3.1.7",
|
|
79
|
+
"apexcharts": "^3.26.3",
|
|
80
|
+
"axios": "^0.21.1",
|
|
81
|
+
"date-fns": "^2.19.0",
|
|
82
|
+
"formik": "^2.2.6",
|
|
83
|
+
"mario-core": "^2.9.0",
|
|
84
|
+
"react-apexcharts": "^1.3.9",
|
|
85
|
+
"react-datepicker": "^3.6.0",
|
|
86
|
+
"react-icons": "^4.2.0",
|
|
87
|
+
"react-simple-star-rating": "^1.0.6",
|
|
88
|
+
"reactstrap": "^8.10.0",
|
|
89
|
+
"yup": "^0.32.9"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,48 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|