mario-education 2.1.3 → 2.1.5
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/services/learningSupportCategoryService.d.ts +1 -0
- package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +41 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +41 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/{components → src/components}/Input/ToggleInput.d.ts +0 -0
- package/dist/src/components/Questions/QuestionList.d.ts +7 -0
- package/dist/src/components/Questions/QuestionSelector.d.ts +9 -0
- package/dist/{containers/Certificate/components/CertificateDetailModal.d.ts → src/containers/Assessment/components/AssessmentDetailModal.d.ts} +0 -0
- package/dist/src/containers/Assessment/components/QuestionSplitPaneSelector.d.ts +3 -0
- package/dist/src/containers/Assessment/hooks/useAssessmentDetail.d.ts +24 -0
- package/dist/src/containers/Assessment/hooks/useAssessmentList.d.ts +10 -0
- package/dist/src/containers/Assessment/hooks/useQuestionCategory.d.ts +13 -0
- package/dist/src/containers/Assessment/views/AssessmentList.d.ts +3 -0
- package/dist/src/containers/AssessmentAssignment/views/AssessmentAssignmentContainer.d.ts +3 -0
- package/dist/src/containers/Assignment/components/AcademicClassSelector.d.ts +3 -0
- package/dist/src/containers/Assignment/components/AssessmentSelector.d.ts +3 -0
- package/dist/src/containers/Assignment/components/AssignmentDetailModal.d.ts +3 -0
- package/dist/src/containers/Assignment/components/SemesterSelector.d.ts +8 -0
- package/dist/src/containers/Assignment/configs/types.d.ts +13 -0
- package/dist/src/containers/Assignment/hooks/useAssignmentDetail.d.ts +27 -0
- package/dist/src/containers/Assignment/hooks/useAssignmentList.d.ts +18 -0
- package/dist/src/containers/Assignment/hooks/useAssignmentResultDetail.d.ts +8 -0
- package/dist/src/containers/Assignment/hooks/useAssignmentResultList.d.ts +10 -0
- package/dist/src/containers/Assignment/views/AssignmentList.d.ts +3 -0
- package/dist/src/containers/Assignment/views/AssignmentResultList.d.ts +3 -0
- package/dist/src/containers/Badge/components/BadgeDetailModal.d.ts +3 -0
- package/dist/src/containers/Badge/hooks/useBadgeDetail.d.ts +20 -0
- package/dist/src/containers/Badge/hooks/useBadgeList.d.ts +10 -0
- package/dist/src/containers/Badge/views/BadgeList.d.ts +3 -0
- package/dist/src/containers/BandScore/components/BandScoreDetailModal.d.ts +3 -0
- package/dist/src/containers/BandScore/hooks/useBandScoreDetail.d.ts +18 -0
- package/dist/src/containers/BandScore/hooks/useBandScoreList.d.ts +7 -0
- package/dist/src/containers/BandScore/hooks/useBreakPoint.d.ts +12 -0
- package/dist/src/containers/BandScore/views/BandScoreList.d.ts +3 -0
- package/dist/src/containers/CSVImport/components/UploadCSVButton.d.ts +10 -0
- package/dist/src/containers/CSVImport/hooks/useCSVImport.d.ts +21 -0
- package/dist/src/containers/CSVImport/views/CSVImport.d.ts +3 -0
- package/dist/src/containers/Certificate/components/CertificateApproved.d.ts +3 -0
- package/dist/src/containers/Certificate/components/CertificateDetailModal.d.ts +3 -0
- package/dist/src/containers/Certificate/components/CertificateItem.d.ts +9 -0
- package/dist/{containers → src/containers}/Certificate/components/CertificateList.d.ts +0 -0
- package/dist/{containers → src/containers}/Certificate/components/CertificateReview.d.ts +0 -0
- package/dist/src/containers/Certificate/config/constants.d.ts +19 -0
- package/dist/{containers → src/containers}/Certificate/hooks/useCertificateDetail.d.ts +0 -0
- package/dist/{containers → src/containers}/Certificate/hooks/useCertificateList.d.ts +0 -0
- package/dist/src/containers/Certificate/hooks/useCertificateReview.d.ts +7 -0
- package/dist/{containers → src/containers}/Certificate/views/CertificateContainer.d.ts +0 -0
- package/dist/src/containers/Classes/components/ClassDetailModal.d.ts +3 -0
- package/dist/src/containers/Classes/components/ClassStudentModal.d.ts +3 -0
- package/dist/src/containers/Classes/components/StudentList.d.ts +8 -0
- package/dist/src/containers/Classes/components/StudentSelector.d.ts +8 -0
- package/dist/src/containers/Classes/components/TeacherMultiSelector.d.ts +7 -0
- package/dist/src/containers/Classes/components/TeacherSelector.d.ts +7 -0
- package/dist/src/containers/Classes/hooks/useClassDetail.d.ts +25 -0
- package/dist/src/containers/Classes/hooks/useClassList.d.ts +13 -0
- package/dist/src/containers/Classes/views/ClassList.d.ts +3 -0
- package/dist/src/containers/CompareTeacher/components/TeacherItem.d.ts +8 -0
- package/dist/src/containers/CompareTeacher/configs/constants.d.ts +18 -0
- package/dist/src/containers/CompareTeacher/hooks/useCompareTeacher.d.ts +17 -0
- package/dist/src/containers/CompareTeacher/views/CompareTeacher.d.ts +3 -0
- package/dist/src/containers/ConferenceRubric/components/ConferenceRubricItem.d.ts +14 -0
- package/dist/src/containers/ConferenceRubric/components/ConferenceRubricTypeSelector.d.ts +7 -0
- package/dist/src/containers/ConferenceRubric/components/SkillSelector.d.ts +8 -0
- package/dist/src/containers/ConferenceRubric/configs/types.d.ts +44 -0
- package/dist/src/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +36 -0
- package/dist/src/containers/ConferenceRubric/hooks/useConferenceRubricList.d.ts +11 -0
- package/dist/src/containers/ConferenceRubric/views/ConferenceRubricDetail.d.ts +3 -0
- package/dist/src/containers/ConferenceRubric/views/ConferenceRubricList.d.ts +3 -0
- package/dist/src/containers/CurrentLicense/hooks/useCurrentLicense.d.ts +6 -0
- package/dist/src/containers/CurrentLicense/views/CurrentLicense.d.ts +3 -0
- package/dist/src/containers/CustomAlert/components/CustomAlertDetailModal.d.ts +3 -0
- package/dist/src/containers/CustomAlert/hooks/useCustomAlertDetail.d.ts +22 -0
- package/dist/src/containers/CustomAlert/hooks/useCustomAlertList.d.ts +10 -0
- package/dist/src/containers/CustomAlert/views/CustomAlertList.d.ts +3 -0
- package/dist/src/containers/Dashboard/components/CustomCheckbox.d.ts +9 -0
- package/dist/src/containers/Dashboard/components/DashboardCard.d.ts +7 -0
- package/dist/src/containers/Dashboard/components/GoalProgress.d.ts +7 -0
- package/dist/src/containers/Dashboard/components/Grade.d.ts +7 -0
- package/dist/src/containers/Dashboard/components/HighImpact.d.ts +6 -0
- package/dist/src/containers/Dashboard/components/Loading.d.ts +3 -0
- package/dist/src/containers/Dashboard/components/LoginCouting.d.ts +7 -0
- package/dist/src/containers/Dashboard/components/PerceivedImpact.d.ts +7 -0
- package/dist/src/containers/Dashboard/components/Quantity.d.ts +7 -0
- package/dist/src/containers/Dashboard/components/Skill.d.ts +7 -0
- package/dist/src/containers/Dashboard/components/TimeInSession.d.ts +7 -0
- package/dist/src/containers/Dashboard/configs/constants.d.ts +1 -0
- package/dist/src/containers/Dashboard/configs/types.d.ts +48 -0
- package/dist/src/containers/Dashboard/configs/utils.d.ts +1 -0
- package/dist/src/containers/Dashboard/hooks/useDashboard.d.ts +12 -0
- package/dist/src/containers/Dashboard/hooks/useSkillFormat.d.ts +9 -0
- package/dist/src/containers/Dashboard/views/Dashboard.d.ts +3 -0
- package/dist/src/containers/Feedback/components/FeedbackDetailModal.d.ts +3 -0
- package/dist/src/containers/Feedback/hooks/useFeedbackDetail.d.ts +11 -0
- package/dist/src/containers/Feedback/hooks/useFeedbackList.d.ts +9 -0
- package/dist/src/containers/Feedback/views/FeedbackList.d.ts +3 -0
- package/dist/src/containers/GoalExample/components/GoalExampleDetailModal.d.ts +3 -0
- package/dist/src/containers/GoalExample/hooks/useGoalExampleDetail.d.ts +27 -0
- package/dist/src/containers/GoalExample/hooks/useGoalExampleList.d.ts +11 -0
- package/dist/src/containers/GoalExample/hooks/useShortTermTargetExampleList.d.ts +12 -0
- package/dist/src/containers/GoalExample/views/GoalExampleList.d.ts +3 -0
- package/dist/src/containers/LearningStrategy/components/StrategyDetailModal.d.ts +3 -0
- package/dist/src/containers/LearningStrategy/hooks/useLearningStrategyList.d.ts +10 -0
- package/dist/src/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +18 -0
- package/dist/src/containers/LearningStrategy/views/LearningStrategyList.d.ts +3 -0
- package/dist/src/containers/LearningSupportCategory/components/LearningSupportCategoryDetailModal.d.ts +3 -0
- package/dist/src/containers/LearningSupportCategory/components/LearningSupportCategorySelector.d.ts +7 -0
- package/dist/src/containers/LearningSupportCategory/hooks/useLearningSupportCategoryDetail.d.ts +19 -0
- package/dist/src/containers/LearningSupportCategory/hooks/useLearningSupportCategoryList.d.ts +10 -0
- package/dist/src/containers/LearningSupportCategory/views/LearningSupportCategoryList.d.ts +3 -0
- package/dist/src/containers/ManageAssistant/views/ManageAssistantList.d.ts +3 -0
- package/dist/src/containers/QuestionBank/components/AdditionalComponent.d.ts +7 -0
- package/dist/src/containers/QuestionBank/components/AgGridComponents.d.ts +11 -0
- package/dist/src/containers/QuestionBank/components/AnswerList.d.ts +9 -0
- package/dist/src/containers/QuestionBank/components/DefaultQuestionStudentTeacherFilter.d.ts +8 -0
- package/dist/src/containers/QuestionBank/components/DefaultQuestionTypeSelector.d.ts +7 -0
- package/dist/src/containers/QuestionBank/components/QuestionPreview.d.ts +3 -0
- package/dist/src/containers/QuestionBank/components/SliderScale.d.ts +8 -0
- package/dist/src/containers/QuestionBank/components/StarRating.d.ts +7 -0
- package/dist/src/containers/QuestionBank/components/SubQuestions.d.ts +7 -0
- package/dist/src/containers/QuestionBank/configs/questionDetailSchema.d.ts +25 -0
- package/dist/src/containers/QuestionBank/configs/validationAnswerId.d.ts +2 -0
- package/dist/src/containers/QuestionBank/configs/validationChoices.d.ts +2 -0
- package/dist/src/containers/QuestionBank/hooks/useQuestionAnswerList.d.ts +7 -0
- package/dist/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +32 -0
- package/dist/src/containers/QuestionBank/hooks/useQuestionList.d.ts +12 -0
- package/dist/src/containers/QuestionBank/hooks/useSubQuestionList.d.ts +6 -0
- package/dist/src/containers/QuestionBank/views/QuestionBankContainer.d.ts +3 -0
- package/dist/src/containers/QuestionBank/views/QuestionBankList.d.ts +6 -0
- package/dist/src/containers/QuestionBank/views/QuestionDetail.d.ts +3 -0
- package/dist/src/containers/QuestionCategory/components/QuestionCateModal.d.ts +3 -0
- package/dist/src/containers/QuestionCategory/hooks/useQuestionCateDetail.d.ts +18 -0
- package/dist/src/containers/QuestionCategory/hooks/useQuestionCateList.d.ts +10 -0
- package/dist/src/containers/QuestionCategory/views/QuestionCategogyList.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/QuestionResponse/EmotionalResponse.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/QuestionResponse/MultipleChoiceResponse.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/QuestionResponse/RatingReponse.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/QuestionResponse/RatingStarReponse.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/QuestionResponse/TextInputResponse.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/QuestionSplitPaneSelector.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/ReflectionDetailModal.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/components/ReflectionResultDetailModal.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/configs/types.d.ts +43 -0
- package/dist/src/containers/ReflectionForm/hooks/useQuestionCategory.d.ts +13 -0
- package/dist/src/containers/ReflectionForm/hooks/useReflectionFormDetail.d.ts +21 -0
- package/dist/src/containers/ReflectionForm/hooks/useReflectionFormList.d.ts +10 -0
- package/dist/src/containers/ReflectionForm/hooks/useReflectionResultDetail.d.ts +8 -0
- package/dist/src/containers/ReflectionForm/hooks/useReflectionResultList.d.ts +9 -0
- package/dist/src/containers/ReflectionForm/views/ReflectionContainer.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/views/ReflectionFormList.d.ts +3 -0
- package/dist/src/containers/ReflectionForm/views/ReflectionResultList.d.ts +3 -0
- package/dist/src/containers/SchoolBlankDay/components/SchoolBlankDayDetailModal.d.ts +3 -0
- package/dist/src/containers/SchoolBlankDay/hooks/useSchoolBlankDayDetail.d.ts +19 -0
- package/dist/src/containers/SchoolBlankDay/hooks/useSchoolBlankDayList.d.ts +10 -0
- package/dist/src/containers/SchoolBlankDay/views/SchoolBlankDayList.d.ts +3 -0
- package/dist/src/containers/Semester/components/BreakingMonthModal.d.ts +3 -0
- package/dist/src/containers/Semester/components/SemesterDetailModal.d.ts +3 -0
- package/dist/src/containers/Semester/hooks/useBreakingMonth.d.ts +14 -0
- package/dist/src/containers/Semester/hooks/useSemesterDetail.d.ts +19 -0
- package/dist/src/containers/Semester/hooks/useSemesterList.d.ts +10 -0
- package/dist/src/containers/Semester/views/SemesterList.d.ts +3 -0
- package/dist/src/containers/SessionTemplate/components/AddQuestionModal.d.ts +11 -0
- package/dist/src/containers/SessionTemplate/components/CategorySelector.d.ts +7 -0
- package/dist/src/containers/SessionTemplate/components/ConferenceRubricSelector.d.ts +7 -0
- package/dist/src/containers/SessionTemplate/components/ReflectionFormSelector.d.ts +7 -0
- package/dist/src/containers/SessionTemplate/components/SkillSelector.d.ts +7 -0
- package/dist/src/containers/SessionTemplate/configs/validationSchema.d.ts +21 -0
- package/dist/src/containers/SessionTemplate/hooks/useAddQuestion.d.ts +8 -0
- package/dist/src/containers/SessionTemplate/hooks/useSessionTemplateDetail.d.ts +29 -0
- package/dist/src/containers/SessionTemplate/hooks/useSessionTemplateList.d.ts +11 -0
- package/dist/src/containers/SessionTemplate/views/SessionTemplateDetail.d.ts +3 -0
- package/dist/src/containers/SessionTemplate/views/SessionTemplateList.d.ts +3 -0
- package/dist/src/containers/SessionTemplateContainer/views/SessionTemplateContainer.d.ts +3 -0
- package/dist/src/containers/SessionTemplateGeneralClass/components/SubjectSelector.d.ts +7 -0
- package/dist/src/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassDetail.d.ts +27 -0
- package/dist/src/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassList.d.ts +11 -0
- package/dist/src/containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassDetail.d.ts +3 -0
- package/dist/src/containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassList.d.ts +3 -0
- package/dist/src/containers/Setup/views/SetupContainer.d.ts +3 -0
- package/dist/src/containers/Subject/components/SubjectDetailModal.d.ts +3 -0
- package/dist/src/containers/Subject/hooks/useSubjectDetail.d.ts +19 -0
- package/dist/src/containers/Subject/hooks/useSubjectList.d.ts +10 -0
- package/dist/src/containers/Subject/views/SubjectList.d.ts +3 -0
- package/dist/src/containers/SuggestionBank/components/SuggestionDetailModal.d.ts +3 -0
- package/dist/src/containers/SuggestionBank/hooks/useKeywordList.d.ts +12 -0
- package/dist/src/containers/SuggestionBank/hooks/useSuggestionDetail.d.ts +30 -0
- package/dist/src/containers/SuggestionBank/hooks/useSuggestionList.d.ts +11 -0
- package/dist/src/containers/SuggestionBank/views/SuggestionList.d.ts +3 -0
- package/dist/src/containers/TutorialScreen/components/TutorialScreenDetailModal.d.ts +3 -0
- package/dist/src/containers/TutorialScreen/components/TutorialScreenList.d.ts +7 -0
- package/dist/src/containers/TutorialScreen/enums/TutorialScreenType.d.ts +7 -0
- package/dist/src/containers/TutorialScreen/hooks/useTutorialScreenDetail.d.ts +20 -0
- package/dist/src/containers/TutorialScreen/hooks/useTutorialScreenList.d.ts +11 -0
- package/dist/src/containers/TutorialScreen/views/TutorialScreenContainer.d.ts +3 -0
- package/dist/src/index.d.ts +29 -0
- package/dist/src/index.test.d.ts +1 -0
- package/dist/src/services/academicYearService.d.ts +2 -0
- package/dist/{services/certificateService.d.ts → src/services/assessmentService.d.ts} +0 -0
- package/dist/src/services/assignmentResultService.d.ts +3 -0
- package/dist/src/services/assignmentService.d.ts +8 -0
- package/dist/src/services/assistantService.d.ts +2 -0
- package/dist/src/services/badgeService.d.ts +6 -0
- package/dist/src/services/bandScoreService.d.ts +7 -0
- package/dist/src/services/certificateService.d.ts +8 -0
- package/dist/src/services/classService.d.ts +9 -0
- package/dist/src/services/compareService.d.ts +1 -0
- package/dist/src/services/conferenceRubricService.d.ts +9 -0
- package/dist/src/services/csvService.d.ts +1 -0
- package/dist/src/services/currentLicenseService.d.ts +3 -0
- package/dist/src/services/customAlertService.d.ts +7 -0
- package/dist/src/services/dashboardService.d.ts +8 -0
- package/dist/src/services/feedbackService.d.ts +6 -0
- package/dist/src/services/goalExampleService.d.ts +6 -0
- package/dist/src/services/learningStrategyService.d.ts +6 -0
- package/dist/src/services/learningSupportCategoryService.d.ts +6 -0
- package/dist/src/services/questionCategoryService.d.ts +6 -0
- package/dist/src/services/questionService.d.ts +6 -0
- package/dist/src/services/reflectionFormResponseService.d.ts +3 -0
- package/dist/src/services/reflectionFormService.d.ts +6 -0
- package/dist/src/services/schoolBlankDayService.d.ts +6 -0
- package/dist/src/services/semesterService.d.ts +6 -0
- package/dist/src/services/sessionTemplateGeneralClassService.d.ts +6 -0
- package/dist/src/services/sessionTemplateService.d.ts +11 -0
- package/dist/src/services/studentService.d.ts +2 -0
- package/dist/src/services/subjectService.d.ts +6 -0
- package/dist/src/services/suggestionService.d.ts +6 -0
- package/dist/src/services/tutorialScreenService.d.ts +5 -0
- package/dist/src/utils/constants.d.ts +7 -0
- package/package.json +91 -91
- package/dist/MarioFramework.Education/ClientApp/src/components/Teachers/MyStudent/ConfirmDelete.d.ts +0 -10
- package/dist/MarioFramework.Education/ClientApp/src/containers/PersonalizeLearning/views/PersonalizeLearningedu.d.ts +0 -3
- package/dist/containers/Certificate/hooks/useCertificateReview.d.ts +0 -2
- package/dist/containers/Certificate/views/CertificateList.d.ts +0 -3
package/dist/MarioFramework.Education/ClientApp/src/services/learningSupportCategoryService.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare const getById: (id: number) => Promise<import("axios").AxiosRespo
|
|
|
4
4
|
export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
5
|
export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
6
|
export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
|
+
export declare const checkRemoveLearningSupportCategory: (learningSupportCategoryId: number) => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,5 +23,4 @@ import SessionTemplateContainer from "./containers/SessionTemplateContainer/view
|
|
|
23
23
|
import SessionTemplateDetail from "./containers/SessionTemplate/views/SessionTemplateDetail";
|
|
24
24
|
import SessionTemplateGeneralClassDetail from "./containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassDetail";
|
|
25
25
|
import CustomAlertList from "./containers/CustomAlert/views/CustomAlertList";
|
|
26
|
-
|
|
27
|
-
export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateList };
|
|
26
|
+
export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList };
|
package/dist/index.js
CHANGED
|
@@ -4793,6 +4793,9 @@ var update$8 = function update(data) {
|
|
|
4793
4793
|
var remove$8 = function remove(id) {
|
|
4794
4794
|
return marioCore.api["delete"](LEARNING_SUPPORT_CATEGORY_URL + "/" + id);
|
|
4795
4795
|
};
|
|
4796
|
+
var checkRemoveLearningSupportCategory = function checkRemoveLearningSupportCategory(learningSupportCategoryId) {
|
|
4797
|
+
return marioCore.api.get(marioCore.BASE_URL + "/api/checkRemoveCategory/" + learningSupportCategoryId);
|
|
4798
|
+
};
|
|
4796
4799
|
|
|
4797
4800
|
var initValue$7 = {
|
|
4798
4801
|
name: "",
|
|
@@ -4966,6 +4969,40 @@ var useLearningSupportCategoryList = function useLearningSupportCategoryList() {
|
|
|
4966
4969
|
return Promise.reject(e);
|
|
4967
4970
|
}
|
|
4968
4971
|
}, [dispatch, filters]);
|
|
4972
|
+
var checkRemove = React.useCallback(function (id) {
|
|
4973
|
+
try {
|
|
4974
|
+
var _temp7 = _catch(function () {
|
|
4975
|
+
return Promise.resolve(checkRemoveLearningSupportCategory(id)).then(function (canRemove) {
|
|
4976
|
+
var _temp5 = function () {
|
|
4977
|
+
if (canRemove) {
|
|
4978
|
+
return Promise.resolve(remove$8(id)).then(function () {
|
|
4979
|
+
dispatch(marioCore.setAlert({
|
|
4980
|
+
type: "success",
|
|
4981
|
+
message: "Remove Learning Support Category successfully"
|
|
4982
|
+
}));
|
|
4983
|
+
changeFilters({
|
|
4984
|
+
currentPage: 1
|
|
4985
|
+
});
|
|
4986
|
+
});
|
|
4987
|
+
}
|
|
4988
|
+
}();
|
|
4989
|
+
|
|
4990
|
+
if (_temp5 && _temp5.then) return _temp5.then(function () {});
|
|
4991
|
+
});
|
|
4992
|
+
}, function (err) {
|
|
4993
|
+
var _err$response2, _err$response2$data;
|
|
4994
|
+
|
|
4995
|
+
dispatch(marioCore.setAlert({
|
|
4996
|
+
type: "danger",
|
|
4997
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
4998
|
+
}));
|
|
4999
|
+
});
|
|
5000
|
+
|
|
5001
|
+
return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(function () {}) : void 0);
|
|
5002
|
+
} catch (e) {
|
|
5003
|
+
return Promise.reject(e);
|
|
5004
|
+
}
|
|
5005
|
+
}, []);
|
|
4969
5006
|
var removeData = React.useCallback(function (id) {
|
|
4970
5007
|
dispatch(marioCore.setLoading(true));
|
|
4971
5008
|
|
|
@@ -4976,26 +5013,18 @@ var useLearningSupportCategoryList = function useLearningSupportCategoryList() {
|
|
|
4976
5013
|
message: "Do you want to remove this Learning Support Category?",
|
|
4977
5014
|
onConfirm: function () {
|
|
4978
5015
|
try {
|
|
4979
|
-
return Promise.resolve(
|
|
4980
|
-
dispatch(marioCore.setAlert({
|
|
4981
|
-
type: "success",
|
|
4982
|
-
message: "Remove Learning Support Category successfully"
|
|
4983
|
-
}));
|
|
4984
|
-
changeFilters({
|
|
4985
|
-
currentPage: 1
|
|
4986
|
-
});
|
|
4987
|
-
});
|
|
5016
|
+
return Promise.resolve(checkRemove(id)).then(function () {});
|
|
4988
5017
|
} catch (e) {
|
|
4989
5018
|
return Promise.reject(e);
|
|
4990
5019
|
}
|
|
4991
5020
|
}
|
|
4992
5021
|
}));
|
|
4993
5022
|
} catch (err) {
|
|
4994
|
-
var _err$
|
|
5023
|
+
var _err$response3, _err$response3$data;
|
|
4995
5024
|
|
|
4996
5025
|
dispatch(marioCore.setAlert({
|
|
4997
5026
|
type: "danger",
|
|
4998
|
-
message: ((_err$
|
|
5027
|
+
message: ((_err$response3 = err.response) === null || _err$response3 === void 0 ? void 0 : (_err$response3$data = _err$response3.data) === null || _err$response3$data === void 0 ? void 0 : _err$response3$data.title) || err.message
|
|
4999
5028
|
}));
|
|
5000
5029
|
}
|
|
5001
5030
|
|
|
@@ -13007,7 +13036,7 @@ var getRandomQuestion = function getRandomQuestion(data) {
|
|
|
13007
13036
|
return marioCore.api.post(QUESTION_URL$2 + "/random", data);
|
|
13008
13037
|
};
|
|
13009
13038
|
|
|
13010
|
-
var TITLE$j = "
|
|
13039
|
+
var TITLE$j = "Session template list";
|
|
13011
13040
|
var SESSION_TEMPLATE_URL$1 = "/admin/session-template-learning-support";
|
|
13012
13041
|
var CREATE_TEMPLATE_URL = "/admin/create-session-template-learning-support";
|
|
13013
13042
|
|