catchup-library-web 1.13.2 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +12 -32
- package/dist/index.d.ts +12 -32
- package/dist/index.js +84 -181
- package/dist/index.mjs +83 -178
- package/package.json +1 -1
- package/src/components/activities/ActivityPreviewByAnswerData.tsx +10 -41
- package/src/components/activities/ActivityPreviewByData.tsx +8 -32
- package/src/properties/ActivityProperties.ts +2 -2
- package/src/utilization/CatchtivityUtilization.ts +68 -140
- package/src/utilization/IndividualModelUtilization.ts +8 -14
package/dist/index.d.mts
CHANGED
|
@@ -207,7 +207,7 @@ interface IActivityPreviewByDataProps {
|
|
|
207
207
|
showDescription: boolean;
|
|
208
208
|
lockedType: string;
|
|
209
209
|
typeOptionList: any[];
|
|
210
|
-
|
|
210
|
+
showDifficulty: boolean;
|
|
211
211
|
showSolution: boolean;
|
|
212
212
|
showEvaluationRubric: boolean;
|
|
213
213
|
isFullScreen: boolean;
|
|
@@ -220,7 +220,7 @@ interface IActivityPreviewByAnswerDataProps {
|
|
|
220
220
|
typeOptionList?: any[];
|
|
221
221
|
showSolution?: boolean;
|
|
222
222
|
showEvaluationRubric?: boolean;
|
|
223
|
-
|
|
223
|
+
showDifficulty?: boolean;
|
|
224
224
|
isFullScreen?: boolean;
|
|
225
225
|
showCorrectAnswer?: boolean;
|
|
226
226
|
}
|
|
@@ -249,9 +249,9 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
|
|
|
249
249
|
|
|
250
250
|
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
251
251
|
|
|
252
|
-
declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric,
|
|
252
|
+
declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
253
253
|
|
|
254
|
-
declare const ActivityPreviewByAnswerData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric,
|
|
254
|
+
declare const ActivityPreviewByAnswerData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
255
255
|
|
|
256
256
|
interface IDividerLineProps {
|
|
257
257
|
opacity: string;
|
|
@@ -477,21 +477,6 @@ declare const retrieveDurationInSecondsOptionList: () => {
|
|
|
477
477
|
value: number;
|
|
478
478
|
text: string;
|
|
479
479
|
}[];
|
|
480
|
-
declare const retrieveTaxonomyType: () => {
|
|
481
|
-
value: string;
|
|
482
|
-
text: string;
|
|
483
|
-
}[];
|
|
484
|
-
declare const retrieveTaxonomyGroupName: () => {
|
|
485
|
-
type: string;
|
|
486
|
-
value: string;
|
|
487
|
-
text: string;
|
|
488
|
-
}[];
|
|
489
|
-
declare const retrieveTaxonomyName: () => {
|
|
490
|
-
stage: number;
|
|
491
|
-
groupName: string;
|
|
492
|
-
value: string;
|
|
493
|
-
text: string;
|
|
494
|
-
}[];
|
|
495
480
|
declare const constructInputWithSpecialExpressionList: (inputText: string) => {
|
|
496
481
|
value: string;
|
|
497
482
|
isEquation: boolean;
|
|
@@ -565,6 +550,7 @@ declare const constructActivityItemListMaterialOnly: (materialMap: any, type: st
|
|
|
565
550
|
text: string;
|
|
566
551
|
}[];
|
|
567
552
|
declare const constructActivityItemListSolutionOnly: (solutionMap: any) => any;
|
|
553
|
+
declare const retrieveDifficultyByActivityTypeFromData: (type: string, data: any) => string;
|
|
568
554
|
|
|
569
555
|
declare const retrieveCategoryVersionCodeOptionList: () => {
|
|
570
556
|
value: string;
|
|
@@ -648,12 +634,9 @@ declare const retrieveBadgeRuleListByParams: (coterieType: string, sourceType: s
|
|
|
648
634
|
declare const retrieveBadgeRuleTextByParams: (coterieType: string, sourceType: string, badgeType: string, level: number) => string | null;
|
|
649
635
|
|
|
650
636
|
declare const constructBaseVerbalIndvidualModel: (userId: any) => {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
bloomBloomEvaluate: number;
|
|
655
|
-
bloomBloomRemember: number;
|
|
656
|
-
bloomBloomUnderstand: number;
|
|
637
|
+
easy: number;
|
|
638
|
+
medium: number;
|
|
639
|
+
hard: number;
|
|
657
640
|
dropdown: number;
|
|
658
641
|
coterieField: string;
|
|
659
642
|
fillInTheBlanks: number;
|
|
@@ -667,12 +650,9 @@ declare const constructBaseVerbalIndvidualModel: (userId: any) => {
|
|
|
667
650
|
userId: any;
|
|
668
651
|
};
|
|
669
652
|
declare const constructBaseNumericIndividualModel: (userId: any) => {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
bloomBloomEvaluate: number;
|
|
674
|
-
bloomBloomRemember: number;
|
|
675
|
-
bloomBloomUnderstand: number;
|
|
653
|
+
easy: number;
|
|
654
|
+
medium: number;
|
|
655
|
+
hard: number;
|
|
676
656
|
dropdown: number;
|
|
677
657
|
coterieField: string;
|
|
678
658
|
fillInTheBlanks: number;
|
|
@@ -837,4 +817,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
837
817
|
text: string;
|
|
838
818
|
}[];
|
|
839
819
|
|
|
840
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList,
|
|
820
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -207,7 +207,7 @@ interface IActivityPreviewByDataProps {
|
|
|
207
207
|
showDescription: boolean;
|
|
208
208
|
lockedType: string;
|
|
209
209
|
typeOptionList: any[];
|
|
210
|
-
|
|
210
|
+
showDifficulty: boolean;
|
|
211
211
|
showSolution: boolean;
|
|
212
212
|
showEvaluationRubric: boolean;
|
|
213
213
|
isFullScreen: boolean;
|
|
@@ -220,7 +220,7 @@ interface IActivityPreviewByAnswerDataProps {
|
|
|
220
220
|
typeOptionList?: any[];
|
|
221
221
|
showSolution?: boolean;
|
|
222
222
|
showEvaluationRubric?: boolean;
|
|
223
|
-
|
|
223
|
+
showDifficulty?: boolean;
|
|
224
224
|
isFullScreen?: boolean;
|
|
225
225
|
showCorrectAnswer?: boolean;
|
|
226
226
|
}
|
|
@@ -249,9 +249,9 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
|
|
|
249
249
|
|
|
250
250
|
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
251
251
|
|
|
252
|
-
declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric,
|
|
252
|
+
declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
253
253
|
|
|
254
|
-
declare const ActivityPreviewByAnswerData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric,
|
|
254
|
+
declare const ActivityPreviewByAnswerData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
255
255
|
|
|
256
256
|
interface IDividerLineProps {
|
|
257
257
|
opacity: string;
|
|
@@ -477,21 +477,6 @@ declare const retrieveDurationInSecondsOptionList: () => {
|
|
|
477
477
|
value: number;
|
|
478
478
|
text: string;
|
|
479
479
|
}[];
|
|
480
|
-
declare const retrieveTaxonomyType: () => {
|
|
481
|
-
value: string;
|
|
482
|
-
text: string;
|
|
483
|
-
}[];
|
|
484
|
-
declare const retrieveTaxonomyGroupName: () => {
|
|
485
|
-
type: string;
|
|
486
|
-
value: string;
|
|
487
|
-
text: string;
|
|
488
|
-
}[];
|
|
489
|
-
declare const retrieveTaxonomyName: () => {
|
|
490
|
-
stage: number;
|
|
491
|
-
groupName: string;
|
|
492
|
-
value: string;
|
|
493
|
-
text: string;
|
|
494
|
-
}[];
|
|
495
480
|
declare const constructInputWithSpecialExpressionList: (inputText: string) => {
|
|
496
481
|
value: string;
|
|
497
482
|
isEquation: boolean;
|
|
@@ -565,6 +550,7 @@ declare const constructActivityItemListMaterialOnly: (materialMap: any, type: st
|
|
|
565
550
|
text: string;
|
|
566
551
|
}[];
|
|
567
552
|
declare const constructActivityItemListSolutionOnly: (solutionMap: any) => any;
|
|
553
|
+
declare const retrieveDifficultyByActivityTypeFromData: (type: string, data: any) => string;
|
|
568
554
|
|
|
569
555
|
declare const retrieveCategoryVersionCodeOptionList: () => {
|
|
570
556
|
value: string;
|
|
@@ -648,12 +634,9 @@ declare const retrieveBadgeRuleListByParams: (coterieType: string, sourceType: s
|
|
|
648
634
|
declare const retrieveBadgeRuleTextByParams: (coterieType: string, sourceType: string, badgeType: string, level: number) => string | null;
|
|
649
635
|
|
|
650
636
|
declare const constructBaseVerbalIndvidualModel: (userId: any) => {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
bloomBloomEvaluate: number;
|
|
655
|
-
bloomBloomRemember: number;
|
|
656
|
-
bloomBloomUnderstand: number;
|
|
637
|
+
easy: number;
|
|
638
|
+
medium: number;
|
|
639
|
+
hard: number;
|
|
657
640
|
dropdown: number;
|
|
658
641
|
coterieField: string;
|
|
659
642
|
fillInTheBlanks: number;
|
|
@@ -667,12 +650,9 @@ declare const constructBaseVerbalIndvidualModel: (userId: any) => {
|
|
|
667
650
|
userId: any;
|
|
668
651
|
};
|
|
669
652
|
declare const constructBaseNumericIndividualModel: (userId: any) => {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
bloomBloomEvaluate: number;
|
|
674
|
-
bloomBloomRemember: number;
|
|
675
|
-
bloomBloomUnderstand: number;
|
|
653
|
+
easy: number;
|
|
654
|
+
medium: number;
|
|
655
|
+
hard: number;
|
|
676
656
|
dropdown: number;
|
|
677
657
|
coterieField: string;
|
|
678
658
|
fillInTheBlanks: number;
|
|
@@ -837,4 +817,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
837
817
|
text: string;
|
|
838
818
|
}[];
|
|
839
819
|
|
|
840
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList,
|
|
820
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.js
CHANGED
|
@@ -200,6 +200,7 @@ __export(index_exports, {
|
|
|
200
200
|
retrieveCurrentDefaultDataMap: () => retrieveCurrentDefaultDataMap,
|
|
201
201
|
retrieveDateIntervalOptionList: () => retrieveDateIntervalOptionList,
|
|
202
202
|
retrieveDefaultUserRoleOptionList: () => retrieveDefaultUserRoleOptionList,
|
|
203
|
+
retrieveDifficultyByActivityTypeFromData: () => retrieveDifficultyByActivityTypeFromData,
|
|
203
204
|
retrieveDistintCoterieTypeFromCatchtivityApplicationDTO: () => retrieveDistintCoterieTypeFromCatchtivityApplicationDTO,
|
|
204
205
|
retrieveDocumentTypeFromAcceptedFormat: () => retrieveDocumentTypeFromAcceptedFormat,
|
|
205
206
|
retrieveDocumentTypeFromExtension: () => retrieveDocumentTypeFromExtension,
|
|
@@ -230,9 +231,6 @@ __export(index_exports, {
|
|
|
230
231
|
retrieveStandardExamTypeIcon: () => retrieveStandardExamTypeIcon,
|
|
231
232
|
retrieveStandardExamTypeOptionList: () => retrieveStandardExamTypeOptionList,
|
|
232
233
|
retrieveStatusOptionList: () => retrieveStatusOptionList,
|
|
233
|
-
retrieveTaxonomyGroupName: () => retrieveTaxonomyGroupName,
|
|
234
|
-
retrieveTaxonomyName: () => retrieveTaxonomyName,
|
|
235
|
-
retrieveTaxonomyType: () => retrieveTaxonomyType,
|
|
236
234
|
retrieveTeachingMethodologyOptionList: () => retrieveTeachingMethodologyOptionList,
|
|
237
235
|
retrieveTimeFilterOptionList: () => retrieveTimeFilterOptionList,
|
|
238
236
|
retrieveTimeFilterWithLastNOptionList: () => retrieveTimeFilterWithLastNOptionList,
|
|
@@ -1314,63 +1312,6 @@ var retrieveDurationInSecondsOptionList = () => {
|
|
|
1314
1312
|
{ value: 45, text: `45 ${i18n_default.t("seconds")}` }
|
|
1315
1313
|
];
|
|
1316
1314
|
};
|
|
1317
|
-
var retrieveTaxonomyType = () => {
|
|
1318
|
-
return [
|
|
1319
|
-
{
|
|
1320
|
-
value: "BLOOM",
|
|
1321
|
-
text: i18n_default.t("BLOOM")
|
|
1322
|
-
}
|
|
1323
|
-
];
|
|
1324
|
-
};
|
|
1325
|
-
var retrieveTaxonomyGroupName = () => {
|
|
1326
|
-
return [
|
|
1327
|
-
{
|
|
1328
|
-
type: "BLOOM",
|
|
1329
|
-
value: "BLOOM",
|
|
1330
|
-
text: i18n_default.t("BLOOM")
|
|
1331
|
-
}
|
|
1332
|
-
];
|
|
1333
|
-
};
|
|
1334
|
-
var retrieveTaxonomyName = () => {
|
|
1335
|
-
return [
|
|
1336
|
-
{
|
|
1337
|
-
stage: 1,
|
|
1338
|
-
groupName: "BLOOM",
|
|
1339
|
-
value: "REMEMBER",
|
|
1340
|
-
text: i18n_default.t("REMEMBER")
|
|
1341
|
-
},
|
|
1342
|
-
{
|
|
1343
|
-
stage: 2,
|
|
1344
|
-
groupName: "BLOOM",
|
|
1345
|
-
value: "UNDERSTAND",
|
|
1346
|
-
text: i18n_default.t("UNDERSTAND")
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
stage: 3,
|
|
1350
|
-
groupName: "BLOOM",
|
|
1351
|
-
value: "APPLY",
|
|
1352
|
-
text: i18n_default.t("APPLY")
|
|
1353
|
-
},
|
|
1354
|
-
{
|
|
1355
|
-
stage: 4,
|
|
1356
|
-
groupName: "BLOOM",
|
|
1357
|
-
value: "ANALYZE",
|
|
1358
|
-
text: i18n_default.t("ANALYZE")
|
|
1359
|
-
},
|
|
1360
|
-
{
|
|
1361
|
-
stage: 5,
|
|
1362
|
-
groupName: "BLOOM",
|
|
1363
|
-
value: "EVALUATE",
|
|
1364
|
-
text: i18n_default.t("EVALUATE")
|
|
1365
|
-
},
|
|
1366
|
-
{
|
|
1367
|
-
stage: 6,
|
|
1368
|
-
groupName: "BLOOM",
|
|
1369
|
-
value: "CREATE",
|
|
1370
|
-
text: i18n_default.t("CREATE")
|
|
1371
|
-
}
|
|
1372
|
-
];
|
|
1373
|
-
};
|
|
1374
1315
|
var constructInputWithSpecialExpressionList = (inputText) => {
|
|
1375
1316
|
const inputPartList = [];
|
|
1376
1317
|
if (!inputText) return [];
|
|
@@ -2464,45 +2405,45 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2464
2405
|
const { activityTemplateDTOList, data, coterieType, categoryIdList } = activity;
|
|
2465
2406
|
const parsedData = JSON.parse(data);
|
|
2466
2407
|
const {
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2408
|
+
orderingDifficulty,
|
|
2409
|
+
dropdownDifficulty,
|
|
2410
|
+
MCSADifficulty,
|
|
2411
|
+
MCMADifficulty,
|
|
2412
|
+
matchingDifficulty,
|
|
2413
|
+
groupingDifficulty,
|
|
2414
|
+
fillInTheBlanksDifficulty,
|
|
2415
|
+
openEndedDifficulty,
|
|
2416
|
+
trueFalseDifficulty
|
|
2476
2417
|
} = parsedData;
|
|
2477
|
-
const
|
|
2478
|
-
if (
|
|
2479
|
-
|
|
2418
|
+
const difficultyMap = {};
|
|
2419
|
+
if (orderingDifficulty) {
|
|
2420
|
+
difficultyMap["orderingDifficulty"] = JSON.parse(orderingDifficulty);
|
|
2480
2421
|
}
|
|
2481
|
-
if (
|
|
2482
|
-
|
|
2422
|
+
if (dropdownDifficulty) {
|
|
2423
|
+
difficultyMap["dropdownDifficulty"] = JSON.parse(dropdownDifficulty);
|
|
2483
2424
|
}
|
|
2484
|
-
if (
|
|
2485
|
-
|
|
2425
|
+
if (MCSADifficulty) {
|
|
2426
|
+
difficultyMap["MCSADifficulty"] = JSON.parse(MCSADifficulty);
|
|
2486
2427
|
}
|
|
2487
|
-
if (
|
|
2488
|
-
|
|
2428
|
+
if (MCMADifficulty) {
|
|
2429
|
+
difficultyMap["MCMADifficulty"] = JSON.parse(MCMADifficulty);
|
|
2489
2430
|
}
|
|
2490
|
-
if (
|
|
2491
|
-
|
|
2431
|
+
if (matchingDifficulty) {
|
|
2432
|
+
difficultyMap["matchingDifficulty"] = JSON.parse(matchingDifficulty);
|
|
2492
2433
|
}
|
|
2493
|
-
if (
|
|
2494
|
-
|
|
2434
|
+
if (groupingDifficulty) {
|
|
2435
|
+
difficultyMap["groupingDifficulty"] = JSON.parse(groupingDifficulty);
|
|
2495
2436
|
}
|
|
2496
|
-
if (
|
|
2497
|
-
|
|
2498
|
-
|
|
2437
|
+
if (fillInTheBlanksDifficulty) {
|
|
2438
|
+
difficultyMap["fillInTheBlanksDifficulty"] = JSON.parse(
|
|
2439
|
+
fillInTheBlanksDifficulty
|
|
2499
2440
|
);
|
|
2500
2441
|
}
|
|
2501
|
-
if (
|
|
2502
|
-
|
|
2442
|
+
if (trueFalseDifficulty) {
|
|
2443
|
+
difficultyMap["trueFalseDifficulty"] = JSON.parse(trueFalseDifficulty);
|
|
2503
2444
|
}
|
|
2504
|
-
if (
|
|
2505
|
-
|
|
2445
|
+
if (openEndedDifficulty) {
|
|
2446
|
+
difficultyMap["openEndedDifficulty"] = JSON.parse(openEndedDifficulty);
|
|
2506
2447
|
}
|
|
2507
2448
|
let coterieField = "VERBAL";
|
|
2508
2449
|
if (coterieType === "MATHEMATICS" || coterieType === "BIOLOGY" || coterieType === "PHYSICS" || coterieType === "CHEMISTRY" || coterieType === "SCIENCE") {
|
|
@@ -2530,33 +2471,27 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2530
2471
|
const activityTemplateValueMap = {};
|
|
2531
2472
|
for (const activityTemplateDTO of activityTemplateDTOList) {
|
|
2532
2473
|
const { type } = activityTemplateDTO;
|
|
2533
|
-
let
|
|
2474
|
+
let currentDifficulty = "";
|
|
2534
2475
|
if (type === "ORDERING") {
|
|
2535
|
-
|
|
2476
|
+
currentDifficulty = difficultyMap["orderingDifficulty"];
|
|
2536
2477
|
} else if (type === "DROPDOWN") {
|
|
2537
|
-
|
|
2478
|
+
currentDifficulty = difficultyMap["dropdownDifficulty"];
|
|
2538
2479
|
} else if (type === "MCSA") {
|
|
2539
|
-
|
|
2480
|
+
currentDifficulty = difficultyMap["MCSADifficulty"];
|
|
2540
2481
|
} else if (type === "MCMA") {
|
|
2541
|
-
|
|
2482
|
+
currentDifficulty = difficultyMap["MCMADifficulty"];
|
|
2542
2483
|
} else if (type === "MATCHING") {
|
|
2543
|
-
|
|
2484
|
+
currentDifficulty = difficultyMap["matchingDifficulty"];
|
|
2544
2485
|
} else if (type === "GROUPING") {
|
|
2545
|
-
|
|
2486
|
+
currentDifficulty = difficultyMap["groupingDifficulty"];
|
|
2546
2487
|
} else if (type === "FILL_IN_THE_BLANKS") {
|
|
2547
|
-
|
|
2488
|
+
currentDifficulty = difficultyMap["fillInTheBlanksDifficulty"];
|
|
2548
2489
|
} else if (type === "OPEN_ENDED") {
|
|
2549
|
-
|
|
2490
|
+
currentDifficulty = difficultyMap["openEndedDifficulty"];
|
|
2550
2491
|
} else if (type === "TRUE_FALSE") {
|
|
2551
|
-
|
|
2492
|
+
currentDifficulty = difficultyMap["trueFalseDifficulty"];
|
|
2552
2493
|
}
|
|
2553
|
-
const
|
|
2554
|
-
type: taxonomyType,
|
|
2555
|
-
groupName: taxonomyGroupName,
|
|
2556
|
-
name: taxonomyName
|
|
2557
|
-
} = currentTaxonomyMap;
|
|
2558
|
-
const taxonomyString = taxonomyType.toLowerCase() + taxonomyGroupName.toLowerCase().charAt(0).toUpperCase() + taxonomyGroupName.toLowerCase().substring(1) + taxonomyName.toLowerCase().charAt(0).toUpperCase() + taxonomyName.toLowerCase().substring(1);
|
|
2559
|
-
const currentTaxonomyScore = foundModel[taxonomyString];
|
|
2494
|
+
const currentDifficultyScore = foundModel[currentDifficulty];
|
|
2560
2495
|
const splittedTypeList = type.split("_");
|
|
2561
2496
|
let activityTemplateString = "";
|
|
2562
2497
|
for (let i = 0; i < splittedTypeList.length; i++) {
|
|
@@ -2568,7 +2503,7 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2568
2503
|
}
|
|
2569
2504
|
}
|
|
2570
2505
|
const currentActivityTemplateScore = foundModel[activityTemplateString];
|
|
2571
|
-
const currentScore =
|
|
2506
|
+
const currentScore = currentDifficultyScore * currentActivityTemplateScore;
|
|
2572
2507
|
activityTemplateValueMap[type] = currentScore;
|
|
2573
2508
|
if (currentScore < bestScore) {
|
|
2574
2509
|
bestScore = currentScore;
|
|
@@ -3273,6 +3208,29 @@ var constructActivityItemListSolutionOnly = (solutionMap) => {
|
|
|
3273
3208
|
});
|
|
3274
3209
|
return itemList;
|
|
3275
3210
|
};
|
|
3211
|
+
var retrieveDifficultyByActivityTypeFromData = (type, data) => {
|
|
3212
|
+
let difficulty = "";
|
|
3213
|
+
if (type === "ORDERING") {
|
|
3214
|
+
difficulty = data["orderingDifficulty"];
|
|
3215
|
+
} else if (type === "DROPDOWN") {
|
|
3216
|
+
difficulty = data["dropdownDifficulty"];
|
|
3217
|
+
} else if (type === "MCSA") {
|
|
3218
|
+
difficulty = data["MCSADifficulty"];
|
|
3219
|
+
} else if (type === "MCMA") {
|
|
3220
|
+
difficulty = data["MCMADifficulty"];
|
|
3221
|
+
} else if (type === "MATCHING") {
|
|
3222
|
+
difficulty = data["matchingDifficulty"];
|
|
3223
|
+
} else if (type === "GROUPING") {
|
|
3224
|
+
difficulty = data["groupingDifficulty"];
|
|
3225
|
+
} else if (type === "FILL_IN_THE_BLANKS") {
|
|
3226
|
+
difficulty = data["fillInTheBlanksDifficulty"];
|
|
3227
|
+
} else if (type === "OPEN_ENDED") {
|
|
3228
|
+
difficulty = data["openEndedDifficulty"];
|
|
3229
|
+
} else if (type === "TRUE_FALSE") {
|
|
3230
|
+
difficulty = data["trueFalseDifficulty"];
|
|
3231
|
+
}
|
|
3232
|
+
return difficulty;
|
|
3233
|
+
};
|
|
3276
3234
|
|
|
3277
3235
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
3278
3236
|
var import_react_katex = require("react-katex");
|
|
@@ -6843,7 +6801,7 @@ var ActivityPreviewByData = ({
|
|
|
6843
6801
|
typeOptionList,
|
|
6844
6802
|
showSolution,
|
|
6845
6803
|
showEvaluationRubric,
|
|
6846
|
-
|
|
6804
|
+
showDifficulty,
|
|
6847
6805
|
isFullScreen
|
|
6848
6806
|
}) => {
|
|
6849
6807
|
const [key, setKey] = (0, import_react27.useState)((/* @__PURE__ */ new Date()).getTime());
|
|
@@ -6869,31 +6827,6 @@ var ActivityPreviewByData = ({
|
|
|
6869
6827
|
}
|
|
6870
6828
|
}, [typeOptionList, lockedType]);
|
|
6871
6829
|
(0, import_react27.useEffect)(() => {
|
|
6872
|
-
const retrieveTaxonomyNameByActivityTypeFromData = (type) => {
|
|
6873
|
-
let taxonomyMap = {
|
|
6874
|
-
name: ""
|
|
6875
|
-
};
|
|
6876
|
-
if (type === "ORDERING") {
|
|
6877
|
-
taxonomyMap = JSON.parse(data["orderingTaxonomyMap"]);
|
|
6878
|
-
} else if (type === "DROPDOWN") {
|
|
6879
|
-
taxonomyMap = JSON.parse(data["dropdownTaxonomyMap"]);
|
|
6880
|
-
} else if (type === "MCSA") {
|
|
6881
|
-
taxonomyMap = JSON.parse(data["MCSATaxonomyMap"]);
|
|
6882
|
-
} else if (type === "MCMA") {
|
|
6883
|
-
taxonomyMap = JSON.parse(data["MCMATaxonomyMap"]);
|
|
6884
|
-
} else if (type === "MATCHING") {
|
|
6885
|
-
taxonomyMap = JSON.parse(data["matchingTaxonomyMap"]);
|
|
6886
|
-
} else if (type === "GROUPING") {
|
|
6887
|
-
taxonomyMap = JSON.parse(data["groupingTaxonomyMap"]);
|
|
6888
|
-
} else if (type === "FILL_IN_THE_BLANKS") {
|
|
6889
|
-
taxonomyMap = JSON.parse(data["fillInTheBlanksTaxonomyMap"]);
|
|
6890
|
-
} else if (type === "OPEN_ENDED") {
|
|
6891
|
-
taxonomyMap = JSON.parse(data["openEndedTaxonomyMap"]);
|
|
6892
|
-
} else if (type === "TRUE_FALSE") {
|
|
6893
|
-
taxonomyMap = JSON.parse(data["trueFalseTaxonomyMap"]);
|
|
6894
|
-
}
|
|
6895
|
-
return taxonomyMap.name;
|
|
6896
|
-
};
|
|
6897
6830
|
if (!data) return;
|
|
6898
6831
|
if (!typeOptionList) return;
|
|
6899
6832
|
if (typeOptionList.length === 0) return;
|
|
@@ -6903,18 +6836,18 @@ var ActivityPreviewByData = ({
|
|
|
6903
6836
|
(typeOption) => typeOption.id === lockedType
|
|
6904
6837
|
);
|
|
6905
6838
|
}
|
|
6906
|
-
if (
|
|
6839
|
+
if (showDifficulty) {
|
|
6907
6840
|
setOptionList(
|
|
6908
6841
|
currentTypeOptionList.map((typeOption) => __spreadProps(__spreadValues({}, typeOption), {
|
|
6909
6842
|
subText: i18n_default.t(
|
|
6910
|
-
|
|
6843
|
+
retrieveDifficultyByActivityTypeFromData(typeOption.id, data)
|
|
6911
6844
|
)
|
|
6912
6845
|
}))
|
|
6913
6846
|
);
|
|
6914
6847
|
} else {
|
|
6915
6848
|
setOptionList(currentTypeOptionList);
|
|
6916
6849
|
}
|
|
6917
|
-
}, [data, lockedType, typeOptionList,
|
|
6850
|
+
}, [data, lockedType, typeOptionList, showDifficulty]);
|
|
6918
6851
|
if (!data) return;
|
|
6919
6852
|
const answer = constructAnswerBasedOnData(data);
|
|
6920
6853
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
|
|
@@ -7083,7 +7016,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7083
7016
|
typeOptionList = [],
|
|
7084
7017
|
showSolution = false,
|
|
7085
7018
|
showEvaluationRubric = false,
|
|
7086
|
-
|
|
7019
|
+
showDifficulty = true,
|
|
7087
7020
|
isFullScreen = false,
|
|
7088
7021
|
showCorrectAnswer = false
|
|
7089
7022
|
}) => {
|
|
@@ -7105,30 +7038,6 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7105
7038
|
}
|
|
7106
7039
|
return null;
|
|
7107
7040
|
};
|
|
7108
|
-
const retrieveTaxonomyNameFromActivityType = (type) => {
|
|
7109
|
-
if (!data) return "";
|
|
7110
|
-
let taxonomyMap = { name: "" };
|
|
7111
|
-
const taxonomyMapNames = {
|
|
7112
|
-
ORDERING: "orderingTaxonomyMap",
|
|
7113
|
-
DROPDOWN: "dropdownTaxonomyMap",
|
|
7114
|
-
MCSA: "MCSATaxonomyMap",
|
|
7115
|
-
MCMA: "MCMATaxonomyMap",
|
|
7116
|
-
MATCHING: "matchingTaxonomyMap",
|
|
7117
|
-
GROUPING: "groupingTaxonomyMap",
|
|
7118
|
-
FILL_IN_THE_BLANKS: "fillInTheBlanksTaxonomyMap",
|
|
7119
|
-
OPEN_ENDED: "openEndedTaxonomyMap",
|
|
7120
|
-
TRUE_FALSE: "trueFalseTaxonomyMap"
|
|
7121
|
-
};
|
|
7122
|
-
const mapName = taxonomyMapNames[type];
|
|
7123
|
-
if (mapName && data[mapName]) {
|
|
7124
|
-
try {
|
|
7125
|
-
taxonomyMap = JSON.parse(data[mapName]);
|
|
7126
|
-
} catch (error) {
|
|
7127
|
-
console.error(`Error parsing taxonomy map for ${type}:`, error);
|
|
7128
|
-
}
|
|
7129
|
-
}
|
|
7130
|
-
return taxonomyMap.name || "";
|
|
7131
|
-
};
|
|
7132
7041
|
(0, import_react28.useEffect)(() => {
|
|
7133
7042
|
if (!data) return;
|
|
7134
7043
|
const constructAnswerBasedOnData2 = () => {
|
|
@@ -7179,16 +7088,18 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7179
7088
|
(typeOption) => typeOption.id === lockedType
|
|
7180
7089
|
);
|
|
7181
7090
|
}
|
|
7182
|
-
if (
|
|
7091
|
+
if (showDifficulty) {
|
|
7183
7092
|
setOptionList(
|
|
7184
7093
|
currentTypeOptionList.map((typeOption) => __spreadProps(__spreadValues({}, typeOption), {
|
|
7185
|
-
subText: i18n_default.t(
|
|
7094
|
+
subText: i18n_default.t(
|
|
7095
|
+
retrieveDifficultyByActivityTypeFromData(typeOption.id, data)
|
|
7096
|
+
)
|
|
7186
7097
|
}))
|
|
7187
7098
|
);
|
|
7188
7099
|
} else {
|
|
7189
7100
|
setOptionList(currentTypeOptionList);
|
|
7190
7101
|
}
|
|
7191
|
-
}, [data, answer.data, lockedType, typeOptionList,
|
|
7102
|
+
}, [data, answer.data, lockedType, typeOptionList, showDifficulty]);
|
|
7192
7103
|
const RenderSelectedActivityContent = () => {
|
|
7193
7104
|
const commonProps = {
|
|
7194
7105
|
answer,
|
|
@@ -9722,17 +9633,14 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, badgeType, level)
|
|
|
9722
9633
|
|
|
9723
9634
|
// src/utilization/IndividualModelUtilization.ts
|
|
9724
9635
|
var NUMBER_OF_ACTIVITY_TEMPLATE = 9;
|
|
9725
|
-
var
|
|
9726
|
-
var
|
|
9636
|
+
var NUMBER_OF_DIFFICULTY = 3;
|
|
9637
|
+
var INITIAL_DIFFICULTY_VALUE = 1 / NUMBER_OF_DIFFICULTY;
|
|
9727
9638
|
var INITIAL_TEMPLATE_VALUE = 1 / NUMBER_OF_ACTIVITY_TEMPLATE;
|
|
9728
9639
|
var constructBaseVerbalIndvidualModel = (userId) => {
|
|
9729
9640
|
return {
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
|
|
9734
|
-
bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
|
|
9735
|
-
bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
|
|
9641
|
+
easy: INITIAL_DIFFICULTY_VALUE,
|
|
9642
|
+
medium: INITIAL_DIFFICULTY_VALUE,
|
|
9643
|
+
hard: INITIAL_DIFFICULTY_VALUE,
|
|
9736
9644
|
dropdown: INITIAL_TEMPLATE_VALUE,
|
|
9737
9645
|
coterieField: "VERBAL",
|
|
9738
9646
|
fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
|
|
@@ -9748,12 +9656,9 @@ var constructBaseVerbalIndvidualModel = (userId) => {
|
|
|
9748
9656
|
};
|
|
9749
9657
|
var constructBaseNumericIndividualModel = (userId) => {
|
|
9750
9658
|
return {
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
|
|
9755
|
-
bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
|
|
9756
|
-
bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
|
|
9659
|
+
easy: INITIAL_DIFFICULTY_VALUE,
|
|
9660
|
+
medium: INITIAL_DIFFICULTY_VALUE,
|
|
9661
|
+
hard: INITIAL_DIFFICULTY_VALUE,
|
|
9757
9662
|
dropdown: INITIAL_TEMPLATE_VALUE,
|
|
9758
9663
|
coterieField: "NUMERIC",
|
|
9759
9664
|
fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
|
|
@@ -10356,6 +10261,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10356
10261
|
retrieveCurrentDefaultDataMap,
|
|
10357
10262
|
retrieveDateIntervalOptionList,
|
|
10358
10263
|
retrieveDefaultUserRoleOptionList,
|
|
10264
|
+
retrieveDifficultyByActivityTypeFromData,
|
|
10359
10265
|
retrieveDistintCoterieTypeFromCatchtivityApplicationDTO,
|
|
10360
10266
|
retrieveDocumentTypeFromAcceptedFormat,
|
|
10361
10267
|
retrieveDocumentTypeFromExtension,
|
|
@@ -10386,9 +10292,6 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10386
10292
|
retrieveStandardExamTypeIcon,
|
|
10387
10293
|
retrieveStandardExamTypeOptionList,
|
|
10388
10294
|
retrieveStatusOptionList,
|
|
10389
|
-
retrieveTaxonomyGroupName,
|
|
10390
|
-
retrieveTaxonomyName,
|
|
10391
|
-
retrieveTaxonomyType,
|
|
10392
10295
|
retrieveTeachingMethodologyOptionList,
|
|
10393
10296
|
retrieveTimeFilterOptionList,
|
|
10394
10297
|
retrieveTimeFilterWithLastNOptionList,
|