catchup-library-web 2.7.12 → 2.7.14
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/index.d.mts +18 -8
- package/dist/index.d.ts +18 -8
- package/dist/index.js +80 -82
- package/dist/index.mjs +93 -94
- package/package.json +1 -1
- package/src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx +17 -6
- package/src/components/activities/solution-contents/ActivitySolutionContent.tsx +19 -8
- package/src/components/errors/StatusError.tsx +1 -1
- package/src/utilization/ManagementUtilization.ts +20 -19
- package/src/utilization/PlanUtilization.ts +0 -13
package/dist/index.d.mts
CHANGED
|
@@ -255,9 +255,13 @@ declare const OrderingActivityContent: ({ answerMap, data, canAnswerQuestion, ch
|
|
|
255
255
|
|
|
256
256
|
declare const TrueFalseActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
|
|
257
257
|
|
|
258
|
-
declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivitySolutionProps
|
|
258
|
+
declare const ActivitySolutionContent: ({ activityTemplateType, data, hideTitleAndBorder, }: IActivitySolutionProps & {
|
|
259
|
+
hideTitleAndBorder?: boolean;
|
|
260
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
259
261
|
|
|
260
|
-
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps
|
|
262
|
+
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, hideTitleAndBorder, }: IActivityEvaluationRubricProps & {
|
|
263
|
+
hideTitleAndBorder?: boolean;
|
|
264
|
+
}) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
261
265
|
|
|
262
266
|
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, isPreview, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
263
267
|
|
|
@@ -872,7 +876,17 @@ declare const filterCoterieTypeByDistinctOptionList: (distinctCoterieTypeOptionL
|
|
|
872
876
|
value: string;
|
|
873
877
|
includes: string[];
|
|
874
878
|
}[];
|
|
875
|
-
declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) =>
|
|
879
|
+
declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) => {
|
|
880
|
+
canImportActivity: any;
|
|
881
|
+
canGenerateActivity: any;
|
|
882
|
+
canEvaluateOpenEnded: any;
|
|
883
|
+
canSolveActivityTemplate: any;
|
|
884
|
+
canGenerateRubric: any;
|
|
885
|
+
canGenerateLessonPlan: any;
|
|
886
|
+
canGenerateInClassActivity: any;
|
|
887
|
+
canGenerateImage: any;
|
|
888
|
+
canGeneratePodcast: any;
|
|
889
|
+
};
|
|
876
890
|
declare const formatPriceWithCommas: (number: number, language: string) => string;
|
|
877
891
|
declare const retrieveInstitutionTypeByLevel: (level: number) => "EAST_PRIMARY" | "EAST_SECONDARY" | "HIGH_SCHOOL" | undefined;
|
|
878
892
|
|
|
@@ -911,10 +925,6 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
911
925
|
value: string;
|
|
912
926
|
}[];
|
|
913
927
|
|
|
914
|
-
declare const retrieveOutcomePlanTypeOptionList: () => {
|
|
915
|
-
value: string;
|
|
916
|
-
text: string;
|
|
917
|
-
}[];
|
|
918
928
|
declare const retrieveTeachingMethodologyOptionList: () => {
|
|
919
929
|
value: string;
|
|
920
930
|
text: string;
|
|
@@ -924,4 +934,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
924
934
|
text: string;
|
|
925
935
|
}[];
|
|
926
936
|
|
|
927
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList,
|
|
937
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -255,9 +255,13 @@ declare const OrderingActivityContent: ({ answerMap, data, canAnswerQuestion, ch
|
|
|
255
255
|
|
|
256
256
|
declare const TrueFalseActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
|
|
257
257
|
|
|
258
|
-
declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivitySolutionProps
|
|
258
|
+
declare const ActivitySolutionContent: ({ activityTemplateType, data, hideTitleAndBorder, }: IActivitySolutionProps & {
|
|
259
|
+
hideTitleAndBorder?: boolean;
|
|
260
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
259
261
|
|
|
260
|
-
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps
|
|
262
|
+
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, hideTitleAndBorder, }: IActivityEvaluationRubricProps & {
|
|
263
|
+
hideTitleAndBorder?: boolean;
|
|
264
|
+
}) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
261
265
|
|
|
262
266
|
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, isPreview, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
263
267
|
|
|
@@ -872,7 +876,17 @@ declare const filterCoterieTypeByDistinctOptionList: (distinctCoterieTypeOptionL
|
|
|
872
876
|
value: string;
|
|
873
877
|
includes: string[];
|
|
874
878
|
}[];
|
|
875
|
-
declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) =>
|
|
879
|
+
declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) => {
|
|
880
|
+
canImportActivity: any;
|
|
881
|
+
canGenerateActivity: any;
|
|
882
|
+
canEvaluateOpenEnded: any;
|
|
883
|
+
canSolveActivityTemplate: any;
|
|
884
|
+
canGenerateRubric: any;
|
|
885
|
+
canGenerateLessonPlan: any;
|
|
886
|
+
canGenerateInClassActivity: any;
|
|
887
|
+
canGenerateImage: any;
|
|
888
|
+
canGeneratePodcast: any;
|
|
889
|
+
};
|
|
876
890
|
declare const formatPriceWithCommas: (number: number, language: string) => string;
|
|
877
891
|
declare const retrieveInstitutionTypeByLevel: (level: number) => "EAST_PRIMARY" | "EAST_SECONDARY" | "HIGH_SCHOOL" | undefined;
|
|
878
892
|
|
|
@@ -911,10 +925,6 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
911
925
|
value: string;
|
|
912
926
|
}[];
|
|
913
927
|
|
|
914
|
-
declare const retrieveOutcomePlanTypeOptionList: () => {
|
|
915
|
-
value: string;
|
|
916
|
-
text: string;
|
|
917
|
-
}[];
|
|
918
928
|
declare const retrieveTeachingMethodologyOptionList: () => {
|
|
919
929
|
value: string;
|
|
920
930
|
text: string;
|
|
@@ -924,4 +934,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
924
934
|
text: string;
|
|
925
935
|
}[];
|
|
926
936
|
|
|
927
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList,
|
|
937
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.js
CHANGED
|
@@ -252,7 +252,6 @@ __export(index_exports, {
|
|
|
252
252
|
retrieveOpticalExamPartTypeOptionList: () => retrieveOpticalExamPartTypeOptionList,
|
|
253
253
|
retrieveOpticalExamTypeOptionList: () => retrieveOpticalExamTypeOptionList,
|
|
254
254
|
retrieveOtherBadgeDTOList: () => retrieveOtherBadgeDTOList,
|
|
255
|
-
retrieveOutcomePlanTypeOptionList: () => retrieveOutcomePlanTypeOptionList,
|
|
256
255
|
retrievePhoneNumberAreaCodeList: () => retrievePhoneNumberAreaCodeList,
|
|
257
256
|
retrieveProvinceNameOptionList: () => retrieveProvinceNameOptionList,
|
|
258
257
|
retrieveReportTypeOptionList: () => retrieveReportTypeOptionList,
|
|
@@ -7423,7 +7422,8 @@ var import_react_katex11 = require("react-katex");
|
|
|
7423
7422
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
7424
7423
|
var ActivitySolutionContent = ({
|
|
7425
7424
|
activityTemplateType,
|
|
7426
|
-
data
|
|
7425
|
+
data,
|
|
7426
|
+
hideTitleAndBorder = false
|
|
7427
7427
|
}) => {
|
|
7428
7428
|
if (!activityTemplateType) return null;
|
|
7429
7429
|
const solutionMapKeys = {
|
|
@@ -7452,28 +7452,32 @@ var ActivitySolutionContent = ({
|
|
|
7452
7452
|
return null;
|
|
7453
7453
|
}
|
|
7454
7454
|
if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
|
|
7455
|
+
const renderContent = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: Object.keys(solutionMap).map((key) => {
|
|
7456
|
+
let currentItem;
|
|
7457
|
+
try {
|
|
7458
|
+
currentItem = JSON.parse(solutionMap[key]);
|
|
7459
|
+
} catch (error) {
|
|
7460
|
+
console.error(`Error parsing solution item at key ${key}:`, error);
|
|
7461
|
+
return null;
|
|
7462
|
+
}
|
|
7463
|
+
const { value } = currentItem;
|
|
7464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
|
|
7465
|
+
(inputPart, partIndex) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
7466
|
+
"span",
|
|
7467
|
+
{
|
|
7468
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7469
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_katex11.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
7470
|
+
},
|
|
7471
|
+
`${key}_part_${partIndex}`
|
|
7472
|
+
)
|
|
7473
|
+
) }, key);
|
|
7474
|
+
}) });
|
|
7475
|
+
if (hideTitleAndBorder) {
|
|
7476
|
+
return renderContent();
|
|
7477
|
+
}
|
|
7455
7478
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
|
|
7456
7479
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
|
|
7457
|
-
|
|
7458
|
-
let currentItem;
|
|
7459
|
-
try {
|
|
7460
|
-
currentItem = JSON.parse(solutionMap[key]);
|
|
7461
|
-
} catch (error) {
|
|
7462
|
-
console.error(`Error parsing solution item at key ${key}:`, error);
|
|
7463
|
-
return null;
|
|
7464
|
-
}
|
|
7465
|
-
const { value } = currentItem;
|
|
7466
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
|
|
7467
|
-
(inputPart, partIndex) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
7468
|
-
"span",
|
|
7469
|
-
{
|
|
7470
|
-
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7471
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_katex11.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
7472
|
-
},
|
|
7473
|
-
`${key}_part_${partIndex}`
|
|
7474
|
-
)
|
|
7475
|
-
) }, key);
|
|
7476
|
-
})
|
|
7480
|
+
renderContent()
|
|
7477
7481
|
] }) });
|
|
7478
7482
|
};
|
|
7479
7483
|
var ActivitySolutionContent_default = ActivitySolutionContent;
|
|
@@ -7483,7 +7487,8 @@ var import_react_katex12 = require("react-katex");
|
|
|
7483
7487
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
7484
7488
|
var ActivityEvaluationRubricContent = ({
|
|
7485
7489
|
activityTemplateType,
|
|
7486
|
-
data
|
|
7490
|
+
data,
|
|
7491
|
+
hideTitleAndBorder = false
|
|
7487
7492
|
}) => {
|
|
7488
7493
|
if (!activityTemplateType) return;
|
|
7489
7494
|
const evaluationRubricMapKeys = {
|
|
@@ -7510,36 +7515,40 @@ var ActivityEvaluationRubricContent = ({
|
|
|
7510
7515
|
}
|
|
7511
7516
|
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
7512
7517
|
return null;
|
|
7518
|
+
const renderContent = () => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, { children: Object.keys(evaluationRubricMap).map((key, index) => {
|
|
7519
|
+
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
7520
|
+
const { value } = currentItem;
|
|
7521
|
+
const matchedRegex = value.match(/\[(\d+)\]\s*([\s\S]*)/);
|
|
7522
|
+
let points = 0;
|
|
7523
|
+
let evaluationRubric = value;
|
|
7524
|
+
if (matchedRegex) {
|
|
7525
|
+
points = parseFloat(matchedRegex[1]);
|
|
7526
|
+
evaluationRubric = matchedRegex[2];
|
|
7527
|
+
}
|
|
7528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "my-2 flex flex-row gap-x-3", children: [
|
|
7529
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "font-bold text-xl whitespace-nowrap", children: [
|
|
7530
|
+
points,
|
|
7531
|
+
" ",
|
|
7532
|
+
i18n_default.t("points")
|
|
7533
|
+
] }),
|
|
7534
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "flex-1 text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(evaluationRubric).map(
|
|
7535
|
+
(inputPart, inputIndex) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7536
|
+
"span",
|
|
7537
|
+
{
|
|
7538
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7539
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
7540
|
+
},
|
|
7541
|
+
inputIndex
|
|
7542
|
+
)
|
|
7543
|
+
) })
|
|
7544
|
+
] }, `${key}_${index}`);
|
|
7545
|
+
}) });
|
|
7546
|
+
if (hideTitleAndBorder) {
|
|
7547
|
+
return renderContent();
|
|
7548
|
+
}
|
|
7513
7549
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
7514
7550
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
7515
|
-
|
|
7516
|
-
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
7517
|
-
const { value } = currentItem;
|
|
7518
|
-
const matchedRegex = value.match(/\[(\d+)\]\s*([\s\S]*)/);
|
|
7519
|
-
let points = 0;
|
|
7520
|
-
let evaluationRubric = value;
|
|
7521
|
-
if (matchedRegex) {
|
|
7522
|
-
points = parseFloat(matchedRegex[1]);
|
|
7523
|
-
evaluationRubric = matchedRegex[2];
|
|
7524
|
-
}
|
|
7525
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "my-2 flex flex-row gap-x-3", children: [
|
|
7526
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "font-bold text-xl whitespace-nowrap", children: [
|
|
7527
|
-
points,
|
|
7528
|
-
" ",
|
|
7529
|
-
i18n_default.t("points")
|
|
7530
|
-
] }),
|
|
7531
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "flex-1 text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(evaluationRubric).map(
|
|
7532
|
-
(inputPart, inputIndex) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7533
|
-
"span",
|
|
7534
|
-
{
|
|
7535
|
-
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7536
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
7537
|
-
},
|
|
7538
|
-
inputIndex
|
|
7539
|
-
)
|
|
7540
|
-
) })
|
|
7541
|
-
] }, `${key}_${index}`);
|
|
7542
|
-
})
|
|
7551
|
+
renderContent()
|
|
7543
7552
|
] });
|
|
7544
7553
|
};
|
|
7545
7554
|
var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
|
|
@@ -7795,7 +7804,7 @@ var StatusError = ({
|
|
|
7795
7804
|
statusText,
|
|
7796
7805
|
textSize
|
|
7797
7806
|
}) => {
|
|
7798
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col justify-center items-center max-w-md", children: [
|
|
7799
7808
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7800
7809
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "text-center my-5", children: [
|
|
7801
7810
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
@@ -9417,23 +9426,25 @@ var filterCoterieTypeByDistinctOptionList = (distinctCoterieTypeOptionList) => {
|
|
|
9417
9426
|
);
|
|
9418
9427
|
};
|
|
9419
9428
|
var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, userProfileInstitution) => {
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9429
|
+
var _a, _b, _c;
|
|
9430
|
+
const brandSettings = (_a = userProfileBrand == null ? void 0 : userProfileBrand.brandSettingsDTO) == null ? void 0 : _a.brandAISettingsDTO;
|
|
9431
|
+
const campusSettings = (_b = userProfileCampus == null ? void 0 : userProfileCampus.campusSettingsDTO) == null ? void 0 : _b.campusAISettingsDTO;
|
|
9432
|
+
const instSettings = (_c = userProfileInstitution == null ? void 0 : userProfileInstitution.institutionSettingsDTO) == null ? void 0 : _c.institutionAISettingsDTO;
|
|
9433
|
+
const resolve = (field) => {
|
|
9434
|
+
var _a2, _b2, _c2;
|
|
9435
|
+
return (_c2 = (_b2 = (_a2 = instSettings == null ? void 0 : instSettings[field]) != null ? _a2 : campusSettings == null ? void 0 : campusSettings[field]) != null ? _b2 : brandSettings == null ? void 0 : brandSettings[field]) != null ? _c2 : false;
|
|
9436
|
+
};
|
|
9437
|
+
return {
|
|
9438
|
+
canImportActivity: resolve("canImportActivity"),
|
|
9439
|
+
canGenerateActivity: resolve("canGenerateActivity"),
|
|
9440
|
+
canEvaluateOpenEnded: resolve("canEvaluateOpenEnded"),
|
|
9441
|
+
canSolveActivityTemplate: resolve("canSolveActivityTemplate"),
|
|
9442
|
+
canGenerateRubric: resolve("canGenerateRubric"),
|
|
9443
|
+
canGenerateLessonPlan: resolve("canGenerateLessonPlan"),
|
|
9444
|
+
canGenerateInClassActivity: resolve("canGenerateInClassActivity"),
|
|
9445
|
+
canGenerateImage: resolve("canGenerateImage"),
|
|
9446
|
+
canGeneratePodcast: resolve("canGeneratePodcast")
|
|
9447
|
+
};
|
|
9437
9448
|
};
|
|
9438
9449
|
var formatPriceWithCommas = (number, language) => {
|
|
9439
9450
|
return number.toLocaleString(language, {
|
|
@@ -10965,18 +10976,6 @@ var retrieveTokenUsageSubTypeOptionList = () => {
|
|
|
10965
10976
|
};
|
|
10966
10977
|
|
|
10967
10978
|
// src/utilization/PlanUtilization.ts
|
|
10968
|
-
var retrieveOutcomePlanTypeOptionList = () => {
|
|
10969
|
-
return [
|
|
10970
|
-
{
|
|
10971
|
-
value: "PLAN",
|
|
10972
|
-
text: i18n_default.t("OUTCOME_NARRATIVE_PLAN")
|
|
10973
|
-
},
|
|
10974
|
-
{
|
|
10975
|
-
value: "ACTIVITY",
|
|
10976
|
-
text: i18n_default.t("IN_CLASS_ACTIVITY")
|
|
10977
|
-
}
|
|
10978
|
-
];
|
|
10979
|
-
};
|
|
10980
10979
|
var retrieveTeachingMethodologyOptionList = () => {
|
|
10981
10980
|
return [
|
|
10982
10981
|
{
|
|
@@ -11340,7 +11339,6 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11340
11339
|
retrieveOpticalExamPartTypeOptionList,
|
|
11341
11340
|
retrieveOpticalExamTypeOptionList,
|
|
11342
11341
|
retrieveOtherBadgeDTOList,
|
|
11343
|
-
retrieveOutcomePlanTypeOptionList,
|
|
11344
11342
|
retrievePhoneNumberAreaCodeList,
|
|
11345
11343
|
retrieveProvinceNameOptionList,
|
|
11346
11344
|
retrieveReportTypeOptionList,
|
package/dist/index.mjs
CHANGED
|
@@ -7180,10 +7180,11 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
|
|
|
7180
7180
|
|
|
7181
7181
|
// src/components/activities/solution-contents/ActivitySolutionContent.tsx
|
|
7182
7182
|
import { InlineMath as InlineMath11 } from "react-katex";
|
|
7183
|
-
import { jsx as jsx46, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7183
|
+
import { Fragment as Fragment8, jsx as jsx46, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7184
7184
|
var ActivitySolutionContent = ({
|
|
7185
7185
|
activityTemplateType,
|
|
7186
|
-
data
|
|
7186
|
+
data,
|
|
7187
|
+
hideTitleAndBorder = false
|
|
7187
7188
|
}) => {
|
|
7188
7189
|
if (!activityTemplateType) return null;
|
|
7189
7190
|
const solutionMapKeys = {
|
|
@@ -7212,38 +7213,43 @@ var ActivitySolutionContent = ({
|
|
|
7212
7213
|
return null;
|
|
7213
7214
|
}
|
|
7214
7215
|
if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
|
|
7216
|
+
const renderContent = () => /* @__PURE__ */ jsx46(Fragment8, { children: Object.keys(solutionMap).map((key) => {
|
|
7217
|
+
let currentItem;
|
|
7218
|
+
try {
|
|
7219
|
+
currentItem = JSON.parse(solutionMap[key]);
|
|
7220
|
+
} catch (error) {
|
|
7221
|
+
console.error(`Error parsing solution item at key ${key}:`, error);
|
|
7222
|
+
return null;
|
|
7223
|
+
}
|
|
7224
|
+
const { value } = currentItem;
|
|
7225
|
+
return /* @__PURE__ */ jsx46("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
|
|
7226
|
+
(inputPart, partIndex) => /* @__PURE__ */ jsx46(
|
|
7227
|
+
"span",
|
|
7228
|
+
{
|
|
7229
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7230
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx46("span", { className: "text-xl", children: /* @__PURE__ */ jsx46(InlineMath11, { math: inputPart.value }) }) : inputPart.value
|
|
7231
|
+
},
|
|
7232
|
+
`${key}_part_${partIndex}`
|
|
7233
|
+
)
|
|
7234
|
+
) }, key);
|
|
7235
|
+
}) });
|
|
7236
|
+
if (hideTitleAndBorder) {
|
|
7237
|
+
return renderContent();
|
|
7238
|
+
}
|
|
7215
7239
|
return /* @__PURE__ */ jsx46("div", { className: "mx-2", children: /* @__PURE__ */ jsxs36("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
|
|
7216
7240
|
/* @__PURE__ */ jsx46("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
|
|
7217
|
-
|
|
7218
|
-
let currentItem;
|
|
7219
|
-
try {
|
|
7220
|
-
currentItem = JSON.parse(solutionMap[key]);
|
|
7221
|
-
} catch (error) {
|
|
7222
|
-
console.error(`Error parsing solution item at key ${key}:`, error);
|
|
7223
|
-
return null;
|
|
7224
|
-
}
|
|
7225
|
-
const { value } = currentItem;
|
|
7226
|
-
return /* @__PURE__ */ jsx46("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
|
|
7227
|
-
(inputPart, partIndex) => /* @__PURE__ */ jsx46(
|
|
7228
|
-
"span",
|
|
7229
|
-
{
|
|
7230
|
-
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7231
|
-
children: inputPart.isEquation ? /* @__PURE__ */ jsx46("span", { className: "text-xl", children: /* @__PURE__ */ jsx46(InlineMath11, { math: inputPart.value }) }) : inputPart.value
|
|
7232
|
-
},
|
|
7233
|
-
`${key}_part_${partIndex}`
|
|
7234
|
-
)
|
|
7235
|
-
) }, key);
|
|
7236
|
-
})
|
|
7241
|
+
renderContent()
|
|
7237
7242
|
] }) });
|
|
7238
7243
|
};
|
|
7239
7244
|
var ActivitySolutionContent_default = ActivitySolutionContent;
|
|
7240
7245
|
|
|
7241
7246
|
// src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx
|
|
7242
7247
|
import { InlineMath as InlineMath12 } from "react-katex";
|
|
7243
|
-
import { jsx as jsx47, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7248
|
+
import { Fragment as Fragment9, jsx as jsx47, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7244
7249
|
var ActivityEvaluationRubricContent = ({
|
|
7245
7250
|
activityTemplateType,
|
|
7246
|
-
data
|
|
7251
|
+
data,
|
|
7252
|
+
hideTitleAndBorder = false
|
|
7247
7253
|
}) => {
|
|
7248
7254
|
if (!activityTemplateType) return;
|
|
7249
7255
|
const evaluationRubricMapKeys = {
|
|
@@ -7270,36 +7276,40 @@ var ActivityEvaluationRubricContent = ({
|
|
|
7270
7276
|
}
|
|
7271
7277
|
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
7272
7278
|
return null;
|
|
7279
|
+
const renderContent = () => /* @__PURE__ */ jsx47(Fragment9, { children: Object.keys(evaluationRubricMap).map((key, index) => {
|
|
7280
|
+
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
7281
|
+
const { value } = currentItem;
|
|
7282
|
+
const matchedRegex = value.match(/\[(\d+)\]\s*([\s\S]*)/);
|
|
7283
|
+
let points = 0;
|
|
7284
|
+
let evaluationRubric = value;
|
|
7285
|
+
if (matchedRegex) {
|
|
7286
|
+
points = parseFloat(matchedRegex[1]);
|
|
7287
|
+
evaluationRubric = matchedRegex[2];
|
|
7288
|
+
}
|
|
7289
|
+
return /* @__PURE__ */ jsxs37("div", { className: "my-2 flex flex-row gap-x-3", children: [
|
|
7290
|
+
/* @__PURE__ */ jsxs37("div", { className: "font-bold text-xl whitespace-nowrap", children: [
|
|
7291
|
+
points,
|
|
7292
|
+
" ",
|
|
7293
|
+
i18n_default.t("points")
|
|
7294
|
+
] }),
|
|
7295
|
+
/* @__PURE__ */ jsx47("p", { className: "flex-1 text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(evaluationRubric).map(
|
|
7296
|
+
(inputPart, inputIndex) => /* @__PURE__ */ jsx47(
|
|
7297
|
+
"span",
|
|
7298
|
+
{
|
|
7299
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7300
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx47("span", { className: "text-xl", children: /* @__PURE__ */ jsx47(InlineMath12, { math: inputPart.value }) }) : inputPart.value
|
|
7301
|
+
},
|
|
7302
|
+
inputIndex
|
|
7303
|
+
)
|
|
7304
|
+
) })
|
|
7305
|
+
] }, `${key}_${index}`);
|
|
7306
|
+
}) });
|
|
7307
|
+
if (hideTitleAndBorder) {
|
|
7308
|
+
return renderContent();
|
|
7309
|
+
}
|
|
7273
7310
|
return /* @__PURE__ */ jsxs37("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
7274
7311
|
/* @__PURE__ */ jsx47("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
7275
|
-
|
|
7276
|
-
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
7277
|
-
const { value } = currentItem;
|
|
7278
|
-
const matchedRegex = value.match(/\[(\d+)\]\s*([\s\S]*)/);
|
|
7279
|
-
let points = 0;
|
|
7280
|
-
let evaluationRubric = value;
|
|
7281
|
-
if (matchedRegex) {
|
|
7282
|
-
points = parseFloat(matchedRegex[1]);
|
|
7283
|
-
evaluationRubric = matchedRegex[2];
|
|
7284
|
-
}
|
|
7285
|
-
return /* @__PURE__ */ jsxs37("div", { className: "my-2 flex flex-row gap-x-3", children: [
|
|
7286
|
-
/* @__PURE__ */ jsxs37("div", { className: "font-bold text-xl whitespace-nowrap", children: [
|
|
7287
|
-
points,
|
|
7288
|
-
" ",
|
|
7289
|
-
i18n_default.t("points")
|
|
7290
|
-
] }),
|
|
7291
|
-
/* @__PURE__ */ jsx47("p", { className: "flex-1 text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(evaluationRubric).map(
|
|
7292
|
-
(inputPart, inputIndex) => /* @__PURE__ */ jsx47(
|
|
7293
|
-
"span",
|
|
7294
|
-
{
|
|
7295
|
-
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7296
|
-
children: inputPart.isEquation ? /* @__PURE__ */ jsx47("span", { className: "text-xl", children: /* @__PURE__ */ jsx47(InlineMath12, { math: inputPart.value }) }) : inputPart.value
|
|
7297
|
-
},
|
|
7298
|
-
inputIndex
|
|
7299
|
-
)
|
|
7300
|
-
) })
|
|
7301
|
-
] }, `${key}_${index}`);
|
|
7302
|
-
})
|
|
7312
|
+
renderContent()
|
|
7303
7313
|
] });
|
|
7304
7314
|
};
|
|
7305
7315
|
var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
|
|
@@ -7345,7 +7355,7 @@ var SelectionBox = ({
|
|
|
7345
7355
|
var SelectionBox_default = SelectionBox;
|
|
7346
7356
|
|
|
7347
7357
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
7348
|
-
import { Fragment as
|
|
7358
|
+
import { Fragment as Fragment10, jsx as jsx49, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7349
7359
|
var ACTIVITY_TEMPLATE_LIST = [
|
|
7350
7360
|
{ type: "ORDERING", materialMap: "orderingMaterialMap" },
|
|
7351
7361
|
{ type: "DROPDOWN", materialMap: "dropdownMaterialMap" },
|
|
@@ -7458,42 +7468,42 @@ var ActivityPreviewByData = ({
|
|
|
7458
7468
|
}
|
|
7459
7469
|
switch (selectedType) {
|
|
7460
7470
|
case "ORDERING":
|
|
7461
|
-
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7471
|
+
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7462
7472
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7463
7473
|
/* @__PURE__ */ jsx49(OrderingActivityContent_default, __spreadValues({}, commonProps))
|
|
7464
7474
|
] }) : null;
|
|
7465
7475
|
case "DROPDOWN":
|
|
7466
|
-
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7476
|
+
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7467
7477
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7468
7478
|
/* @__PURE__ */ jsx49(DropdownActivityContent_default, __spreadValues({}, commonProps))
|
|
7469
7479
|
] }) : null;
|
|
7470
7480
|
case "MCSA":
|
|
7471
|
-
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7481
|
+
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7472
7482
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7473
7483
|
/* @__PURE__ */ jsx49(MCSAActivityContent_default, __spreadValues({}, commonProps))
|
|
7474
7484
|
] }) : null;
|
|
7475
7485
|
case "MCMA":
|
|
7476
|
-
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7486
|
+
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7477
7487
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7478
7488
|
/* @__PURE__ */ jsx49(MCMAActivityContent_default, __spreadValues({}, commonProps))
|
|
7479
7489
|
] }) : null;
|
|
7480
7490
|
case "MATCHING":
|
|
7481
|
-
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7491
|
+
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7482
7492
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7483
7493
|
/* @__PURE__ */ jsx49(MatchingActivityContent_default, __spreadValues({}, commonProps))
|
|
7484
7494
|
] }) : null;
|
|
7485
7495
|
case "GROUPING":
|
|
7486
|
-
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7496
|
+
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7487
7497
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7488
7498
|
/* @__PURE__ */ jsx49(GroupingActivityContent_default, __spreadValues({}, commonProps))
|
|
7489
7499
|
] }) : null;
|
|
7490
7500
|
case "FILL_IN_THE_BLANKS":
|
|
7491
|
-
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7501
|
+
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7492
7502
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7493
7503
|
/* @__PURE__ */ jsx49(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps))
|
|
7494
7504
|
] }) : null;
|
|
7495
7505
|
case "OPEN_ENDED":
|
|
7496
|
-
return data.openEndedBodyMap ? /* @__PURE__ */ jsxs39(
|
|
7506
|
+
return data.openEndedBodyMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7497
7507
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7498
7508
|
/* @__PURE__ */ jsx49(
|
|
7499
7509
|
OpenEndedActivityContent_default,
|
|
@@ -7503,7 +7513,7 @@ var ActivityPreviewByData = ({
|
|
|
7503
7513
|
)
|
|
7504
7514
|
] }) : null;
|
|
7505
7515
|
case "TRUE_FALSE":
|
|
7506
|
-
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsxs39(
|
|
7516
|
+
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7507
7517
|
isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
|
|
7508
7518
|
/* @__PURE__ */ jsx49(TrueFalseActivityContent_default, __spreadValues({}, commonProps))
|
|
7509
7519
|
] }) : null;
|
|
@@ -7513,7 +7523,7 @@ var ActivityPreviewByData = ({
|
|
|
7513
7523
|
};
|
|
7514
7524
|
if (!data) return null;
|
|
7515
7525
|
return /* @__PURE__ */ jsxs39("div", { children: [
|
|
7516
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs39(
|
|
7526
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
7517
7527
|
/* @__PURE__ */ jsxs39("div", { className: "mb-2", children: [
|
|
7518
7528
|
showDescription ? /* @__PURE__ */ jsx49("div", { className: "my-2", children: /* @__PURE__ */ jsx49("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7519
7529
|
/* @__PURE__ */ jsx49(
|
|
@@ -7555,7 +7565,7 @@ var StatusError = ({
|
|
|
7555
7565
|
statusText,
|
|
7556
7566
|
textSize
|
|
7557
7567
|
}) => {
|
|
7558
|
-
return /* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7568
|
+
return /* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center items-center max-w-md", children: [
|
|
7559
7569
|
/* @__PURE__ */ jsx50("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7560
7570
|
/* @__PURE__ */ jsxs40("div", { className: "text-center my-5", children: [
|
|
7561
7571
|
/* @__PURE__ */ jsx50("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
@@ -9177,23 +9187,25 @@ var filterCoterieTypeByDistinctOptionList = (distinctCoterieTypeOptionList) => {
|
|
|
9177
9187
|
);
|
|
9178
9188
|
};
|
|
9179
9189
|
var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, userProfileInstitution) => {
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9190
|
+
var _a, _b, _c;
|
|
9191
|
+
const brandSettings = (_a = userProfileBrand == null ? void 0 : userProfileBrand.brandSettingsDTO) == null ? void 0 : _a.brandAISettingsDTO;
|
|
9192
|
+
const campusSettings = (_b = userProfileCampus == null ? void 0 : userProfileCampus.campusSettingsDTO) == null ? void 0 : _b.campusAISettingsDTO;
|
|
9193
|
+
const instSettings = (_c = userProfileInstitution == null ? void 0 : userProfileInstitution.institutionSettingsDTO) == null ? void 0 : _c.institutionAISettingsDTO;
|
|
9194
|
+
const resolve = (field) => {
|
|
9195
|
+
var _a2, _b2, _c2;
|
|
9196
|
+
return (_c2 = (_b2 = (_a2 = instSettings == null ? void 0 : instSettings[field]) != null ? _a2 : campusSettings == null ? void 0 : campusSettings[field]) != null ? _b2 : brandSettings == null ? void 0 : brandSettings[field]) != null ? _c2 : false;
|
|
9197
|
+
};
|
|
9198
|
+
return {
|
|
9199
|
+
canImportActivity: resolve("canImportActivity"),
|
|
9200
|
+
canGenerateActivity: resolve("canGenerateActivity"),
|
|
9201
|
+
canEvaluateOpenEnded: resolve("canEvaluateOpenEnded"),
|
|
9202
|
+
canSolveActivityTemplate: resolve("canSolveActivityTemplate"),
|
|
9203
|
+
canGenerateRubric: resolve("canGenerateRubric"),
|
|
9204
|
+
canGenerateLessonPlan: resolve("canGenerateLessonPlan"),
|
|
9205
|
+
canGenerateInClassActivity: resolve("canGenerateInClassActivity"),
|
|
9206
|
+
canGenerateImage: resolve("canGenerateImage"),
|
|
9207
|
+
canGeneratePodcast: resolve("canGeneratePodcast")
|
|
9208
|
+
};
|
|
9197
9209
|
};
|
|
9198
9210
|
var formatPriceWithCommas = (number, language) => {
|
|
9199
9211
|
return number.toLocaleString(language, {
|
|
@@ -10725,18 +10737,6 @@ var retrieveTokenUsageSubTypeOptionList = () => {
|
|
|
10725
10737
|
};
|
|
10726
10738
|
|
|
10727
10739
|
// src/utilization/PlanUtilization.ts
|
|
10728
|
-
var retrieveOutcomePlanTypeOptionList = () => {
|
|
10729
|
-
return [
|
|
10730
|
-
{
|
|
10731
|
-
value: "PLAN",
|
|
10732
|
-
text: i18n_default.t("OUTCOME_NARRATIVE_PLAN")
|
|
10733
|
-
},
|
|
10734
|
-
{
|
|
10735
|
-
value: "ACTIVITY",
|
|
10736
|
-
text: i18n_default.t("IN_CLASS_ACTIVITY")
|
|
10737
|
-
}
|
|
10738
|
-
];
|
|
10739
|
-
};
|
|
10740
10740
|
var retrieveTeachingMethodologyOptionList = () => {
|
|
10741
10741
|
return [
|
|
10742
10742
|
{
|
|
@@ -11099,7 +11099,6 @@ export {
|
|
|
11099
11099
|
retrieveOpticalExamPartTypeOptionList,
|
|
11100
11100
|
retrieveOpticalExamTypeOptionList,
|
|
11101
11101
|
retrieveOtherBadgeDTOList,
|
|
11102
|
-
retrieveOutcomePlanTypeOptionList,
|
|
11103
11102
|
retrievePhoneNumberAreaCodeList,
|
|
11104
11103
|
retrieveProvinceNameOptionList,
|
|
11105
11104
|
retrieveReportTypeOptionList,
|
package/package.json
CHANGED
package/src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx
CHANGED
|
@@ -6,7 +6,8 @@ import { constructInputWithSpecialExpressionList } from "../../../utilization/Ca
|
|
|
6
6
|
const ActivityEvaluationRubricContent = ({
|
|
7
7
|
activityTemplateType,
|
|
8
8
|
data,
|
|
9
|
-
|
|
9
|
+
hideTitleAndBorder = false,
|
|
10
|
+
}: IActivityEvaluationRubricProps & { hideTitleAndBorder?: boolean }) => {
|
|
10
11
|
if (!activityTemplateType) return;
|
|
11
12
|
|
|
12
13
|
const evaluationRubricMapKeys: any = {
|
|
@@ -35,11 +36,8 @@ const ActivityEvaluationRubricContent = ({
|
|
|
35
36
|
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
36
37
|
return null;
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<p className="text-xl font-bold text-center mb-3">
|
|
41
|
-
{i18n.t("evaluation_rubric")}
|
|
42
|
-
</p>
|
|
39
|
+
const renderContent = () => (
|
|
40
|
+
<>
|
|
43
41
|
{Object.keys(evaluationRubricMap).map((key, index) => {
|
|
44
42
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
45
43
|
const { value } = currentItem;
|
|
@@ -80,6 +78,19 @@ const ActivityEvaluationRubricContent = ({
|
|
|
80
78
|
</div>
|
|
81
79
|
);
|
|
82
80
|
})}
|
|
81
|
+
</>
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
if (hideTitleAndBorder) {
|
|
85
|
+
return renderContent();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<div className="p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge">
|
|
90
|
+
<p className="text-xl font-bold text-center mb-3">
|
|
91
|
+
{i18n.t("evaluation_rubric")}
|
|
92
|
+
</p>
|
|
93
|
+
{renderContent()}
|
|
83
94
|
</div>
|
|
84
95
|
);
|
|
85
96
|
};
|
|
@@ -6,7 +6,8 @@ import { IActivitySolutionProps } from "../../../properties/ActivityProperties";
|
|
|
6
6
|
const ActivitySolutionContent = ({
|
|
7
7
|
activityTemplateType,
|
|
8
8
|
data,
|
|
9
|
-
|
|
9
|
+
hideTitleAndBorder = false,
|
|
10
|
+
}: IActivitySolutionProps & { hideTitleAndBorder?: boolean }) => {
|
|
10
11
|
if (!activityTemplateType) return null;
|
|
11
12
|
|
|
12
13
|
const solutionMapKeys: any = {
|
|
@@ -56,13 +57,9 @@ const ActivitySolutionContent = ({
|
|
|
56
57
|
|
|
57
58
|
if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<p className="text-xl font-bold text-center mb-3">
|
|
63
|
-
{i18n.t("solution")}
|
|
64
|
-
</p>
|
|
65
|
-
{Object.keys(solutionMap).map((key) => {
|
|
60
|
+
const renderContent = () => (
|
|
61
|
+
<>
|
|
62
|
+
{Object.keys(solutionMap).map((key) => {
|
|
66
63
|
let currentItem;
|
|
67
64
|
try {
|
|
68
65
|
currentItem = JSON.parse(solutionMap[key]);
|
|
@@ -96,6 +93,20 @@ const ActivitySolutionContent = ({
|
|
|
96
93
|
</div>
|
|
97
94
|
);
|
|
98
95
|
})}
|
|
96
|
+
</>
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
if (hideTitleAndBorder) {
|
|
100
|
+
return renderContent();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<div className="mx-2">
|
|
105
|
+
<div className="p-4 border-catchup-blue border-2 rounded-catchup-xlarge">
|
|
106
|
+
<p className="text-xl font-bold text-center mb-3">
|
|
107
|
+
{i18n.t("solution")}
|
|
108
|
+
</p>
|
|
109
|
+
{renderContent()}
|
|
99
110
|
</div>
|
|
100
111
|
</div>
|
|
101
112
|
);
|
|
@@ -7,7 +7,7 @@ const StatusError = ({
|
|
|
7
7
|
textSize,
|
|
8
8
|
}: IStatusErrorProperties) => {
|
|
9
9
|
return (
|
|
10
|
-
<div className="flex flex-col justify-center items-center">
|
|
10
|
+
<div className="flex flex-col justify-center items-center max-w-md">
|
|
11
11
|
<p className="text-6xl text-catchup-red my-5">{i18n.t("ooops_text")}</p>
|
|
12
12
|
<div className="text-center my-5">
|
|
13
13
|
<p className="italic">{i18n.t("unexcepted_error_text")}</p>
|
|
@@ -1250,25 +1250,26 @@ export const findAISettingsFromCurrentProfile = (
|
|
|
1250
1250
|
userProfileCampus: any,
|
|
1251
1251
|
userProfileInstitution: any,
|
|
1252
1252
|
) => {
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1253
|
+
const brandSettings = userProfileBrand?.brandSettingsDTO?.brandAISettingsDTO;
|
|
1254
|
+
const campusSettings =
|
|
1255
|
+
userProfileCampus?.campusSettingsDTO?.campusAISettingsDTO;
|
|
1256
|
+
const instSettings =
|
|
1257
|
+
userProfileInstitution?.institutionSettingsDTO?.institutionAISettingsDTO;
|
|
1258
|
+
|
|
1259
|
+
const resolve = (field: string) =>
|
|
1260
|
+
instSettings?.[field] ?? campusSettings?.[field] ?? brandSettings?.[field] ?? false;
|
|
1261
|
+
|
|
1262
|
+
return {
|
|
1263
|
+
canImportActivity: resolve("canImportActivity"),
|
|
1264
|
+
canGenerateActivity: resolve("canGenerateActivity"),
|
|
1265
|
+
canEvaluateOpenEnded: resolve("canEvaluateOpenEnded"),
|
|
1266
|
+
canSolveActivityTemplate: resolve("canSolveActivityTemplate"),
|
|
1267
|
+
canGenerateRubric: resolve("canGenerateRubric"),
|
|
1268
|
+
canGenerateLessonPlan: resolve("canGenerateLessonPlan"),
|
|
1269
|
+
canGenerateInClassActivity: resolve("canGenerateInClassActivity"),
|
|
1270
|
+
canGenerateImage: resolve("canGenerateImage"),
|
|
1271
|
+
canGeneratePodcast: resolve("canGeneratePodcast"),
|
|
1272
|
+
};
|
|
1272
1273
|
};
|
|
1273
1274
|
|
|
1274
1275
|
export const formatPriceWithCommas = (number: number, language: string) => {
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import i18n from "../language/i18n";
|
|
2
2
|
|
|
3
|
-
export const retrieveOutcomePlanTypeOptionList = () => {
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
value: "PLAN",
|
|
7
|
-
text: i18n.t("OUTCOME_NARRATIVE_PLAN"),
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
value: "ACTIVITY",
|
|
11
|
-
text: i18n.t("IN_CLASS_ACTIVITY"),
|
|
12
|
-
},
|
|
13
|
-
];
|
|
14
|
-
};
|
|
15
|
-
|
|
16
3
|
export const retrieveTeachingMethodologyOptionList = () => {
|
|
17
4
|
return [
|
|
18
5
|
{
|