catchup-library-web 2.5.7 → 2.5.9
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +78 -80
- package/dist/index.mjs +76 -79
- package/package.json +1 -1
- package/src/components/groups/PageTravelGroup.tsx +46 -86
- package/src/components/labels/AmberLabel.tsx +17 -0
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -399,6 +399,8 @@ interface IFixedLabelProps {
|
|
|
399
399
|
font: string;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
+
declare const AmberLabel: ({ title, icon, font }: IFixedLabelProps) => react_jsx_runtime.JSX.Element;
|
|
403
|
+
|
|
402
404
|
declare const TealLabel: ({ title, icon, font }: IFixedLabelProps) => react_jsx_runtime.JSX.Element;
|
|
403
405
|
|
|
404
406
|
declare const PurpleLabel: ({ title, icon, font }: IFixedLabelProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -926,4 +928,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
926
928
|
text: string;
|
|
927
929
|
}[];
|
|
928
930
|
|
|
929
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, 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, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, 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, 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, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
|
931
|
+
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, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, 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, 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, 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
|
@@ -399,6 +399,8 @@ interface IFixedLabelProps {
|
|
|
399
399
|
font: string;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
+
declare const AmberLabel: ({ title, icon, font }: IFixedLabelProps) => react_jsx_runtime.JSX.Element;
|
|
403
|
+
|
|
402
404
|
declare const TealLabel: ({ title, icon, font }: IFixedLabelProps) => react_jsx_runtime.JSX.Element;
|
|
403
405
|
|
|
404
406
|
declare const PurpleLabel: ({ title, icon, font }: IFixedLabelProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -926,4 +928,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
926
928
|
text: string;
|
|
927
929
|
}[];
|
|
928
930
|
|
|
929
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, 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, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, 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, 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, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
|
931
|
+
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, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, 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, 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, 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
|
@@ -72,6 +72,7 @@ __export(index_exports, {
|
|
|
72
72
|
ActivityEvaluationRubricContent: () => ActivityEvaluationRubricContent_default,
|
|
73
73
|
ActivityPreviewByData: () => ActivityPreviewByData_default,
|
|
74
74
|
ActivitySolutionContent: () => ActivitySolutionContent_default,
|
|
75
|
+
AmberLabel: () => AmberLabel_default,
|
|
75
76
|
ApproveButton: () => ApproveButton_default,
|
|
76
77
|
BaseCard: () => BaseCard_default,
|
|
77
78
|
BaseImage: () => BaseImage_default,
|
|
@@ -7681,77 +7682,56 @@ var PageTravelGroup = ({
|
|
|
7681
7682
|
(0, import_react28.useEffect)(() => {
|
|
7682
7683
|
setNewPageNumber(pageNumber + 1);
|
|
7683
7684
|
}, [pageNumber]);
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
if (pageNumber - 1 >= 0) {
|
|
7696
|
-
setPageNumber(pageNumber - 1);
|
|
7697
|
-
}
|
|
7698
|
-
setImageReady(false);
|
|
7699
|
-
}
|
|
7700
|
-
}
|
|
7701
|
-
}
|
|
7702
|
-
) }),
|
|
7703
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7704
|
-
"p",
|
|
7685
|
+
const handlePageChange = (newPage) => {
|
|
7686
|
+
if (isImageProcessing) {
|
|
7687
|
+
handleImageProcessing();
|
|
7688
|
+
} else {
|
|
7689
|
+
setPageNumber(newPage);
|
|
7690
|
+
setImageReady(false);
|
|
7691
|
+
}
|
|
7692
|
+
};
|
|
7693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap gap-x-2", children: [
|
|
7694
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7695
|
+
"button",
|
|
7705
7696
|
{
|
|
7706
|
-
className:
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
} else {
|
|
7711
|
-
setPageNumber(index);
|
|
7712
|
-
setImageReady(false);
|
|
7713
|
-
}
|
|
7714
|
-
},
|
|
7715
|
-
children: index + 1
|
|
7697
|
+
className: "px-2 py-1 bg-catchup-blue-100 rounded-catchup-small",
|
|
7698
|
+
disabled: pageNumber <= 0,
|
|
7699
|
+
onClick: () => handlePageChange(pageNumber - 1),
|
|
7700
|
+
children: "\u2190"
|
|
7716
7701
|
}
|
|
7717
|
-
)
|
|
7718
|
-
|
|
7719
|
-
|
|
7702
|
+
),
|
|
7703
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("p", { className: "text-md", children: [
|
|
7704
|
+
pageNumber + 1,
|
|
7705
|
+
" / ",
|
|
7706
|
+
totalPageNumber
|
|
7707
|
+
] }),
|
|
7708
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7709
|
+
"button",
|
|
7720
7710
|
{
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
if (isImageProcessing) {
|
|
7726
|
-
handleImageProcessing();
|
|
7727
|
-
} else {
|
|
7728
|
-
if (pageNumber + 1 <= totalPageNumber) {
|
|
7729
|
-
setPageNumber(pageNumber + 1);
|
|
7730
|
-
}
|
|
7731
|
-
setImageReady(false);
|
|
7732
|
-
}
|
|
7733
|
-
}
|
|
7711
|
+
className: "px-2 py-1 bg-catchup-blue-100 rounded-catchup-small",
|
|
7712
|
+
disabled: pageNumber >= totalPageNumber - 1,
|
|
7713
|
+
onClick: () => handlePageChange(pageNumber + 1),
|
|
7714
|
+
children: "\u2192"
|
|
7734
7715
|
}
|
|
7735
|
-
)
|
|
7736
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7716
|
+
),
|
|
7717
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7737
7718
|
"input",
|
|
7738
7719
|
{
|
|
7739
|
-
className:
|
|
7720
|
+
className: "w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input",
|
|
7740
7721
|
type: "number",
|
|
7741
7722
|
value: newPageNumber,
|
|
7742
7723
|
onChange: (e) => {
|
|
7743
|
-
|
|
7744
|
-
setNewPageNumber(inputPageNumber);
|
|
7724
|
+
setNewPageNumber(parseInt(e.target.value));
|
|
7745
7725
|
},
|
|
7746
7726
|
onKeyDown: (e) => {
|
|
7747
7727
|
if (isNaN(newPageNumber) || newPageNumber <= 0 || newPageNumber > totalPageNumber)
|
|
7748
7728
|
return;
|
|
7749
7729
|
if (e.key === "Enter") {
|
|
7750
|
-
|
|
7730
|
+
handlePageChange(newPageNumber - 1);
|
|
7751
7731
|
}
|
|
7752
7732
|
}
|
|
7753
7733
|
}
|
|
7754
|
-
)
|
|
7734
|
+
)
|
|
7755
7735
|
] });
|
|
7756
7736
|
};
|
|
7757
7737
|
var PageTravelGroup_default = PageTravelGroup;
|
|
@@ -7891,10 +7871,27 @@ var Label = ({
|
|
|
7891
7871
|
};
|
|
7892
7872
|
var Label_default = Label;
|
|
7893
7873
|
|
|
7894
|
-
// src/components/labels/
|
|
7874
|
+
// src/components/labels/AmberLabel.tsx
|
|
7895
7875
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
7896
|
-
var
|
|
7876
|
+
var AmberLabel = ({ title, icon, font }) => {
|
|
7897
7877
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7878
|
+
Label_default,
|
|
7879
|
+
{
|
|
7880
|
+
title,
|
|
7881
|
+
icon,
|
|
7882
|
+
font,
|
|
7883
|
+
borderColor: "#D97706",
|
|
7884
|
+
backgroundColor: "#FEF3C7",
|
|
7885
|
+
textColor: "#B45309"
|
|
7886
|
+
}
|
|
7887
|
+
);
|
|
7888
|
+
};
|
|
7889
|
+
var AmberLabel_default = AmberLabel;
|
|
7890
|
+
|
|
7891
|
+
// src/components/labels/TealLabel.tsx
|
|
7892
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
7893
|
+
var TealLabel = ({ title, icon, font }) => {
|
|
7894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7898
7895
|
Label_default,
|
|
7899
7896
|
{
|
|
7900
7897
|
title,
|
|
@@ -7909,9 +7906,9 @@ var TealLabel = ({ title, icon, font }) => {
|
|
|
7909
7906
|
var TealLabel_default = TealLabel;
|
|
7910
7907
|
|
|
7911
7908
|
// src/components/labels/PurpleLabel.tsx
|
|
7912
|
-
var
|
|
7909
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7913
7910
|
var PurpleLabel = ({ title, icon, font }) => {
|
|
7914
|
-
return /* @__PURE__ */ (0,
|
|
7911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7915
7912
|
Label_default,
|
|
7916
7913
|
{
|
|
7917
7914
|
title,
|
|
@@ -7926,9 +7923,9 @@ var PurpleLabel = ({ title, icon, font }) => {
|
|
|
7926
7923
|
var PurpleLabel_default = PurpleLabel;
|
|
7927
7924
|
|
|
7928
7925
|
// src/components/labels/GreenLabel.tsx
|
|
7929
|
-
var
|
|
7926
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7930
7927
|
var GreenLabel = ({ title, icon, font }) => {
|
|
7931
|
-
return /* @__PURE__ */ (0,
|
|
7928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7932
7929
|
Label_default,
|
|
7933
7930
|
{
|
|
7934
7931
|
title,
|
|
@@ -7943,9 +7940,9 @@ var GreenLabel = ({ title, icon, font }) => {
|
|
|
7943
7940
|
var GreenLabel_default = GreenLabel;
|
|
7944
7941
|
|
|
7945
7942
|
// src/components/labels/BlueLabel.tsx
|
|
7946
|
-
var
|
|
7943
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7947
7944
|
var BlueLabel = ({ title, icon, font }) => {
|
|
7948
|
-
return /* @__PURE__ */ (0,
|
|
7945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7949
7946
|
Label_default,
|
|
7950
7947
|
{
|
|
7951
7948
|
title,
|
|
@@ -7960,9 +7957,9 @@ var BlueLabel = ({ title, icon, font }) => {
|
|
|
7960
7957
|
var BlueLabel_default = BlueLabel;
|
|
7961
7958
|
|
|
7962
7959
|
// src/components/labels/OrangeLabel.tsx
|
|
7963
|
-
var
|
|
7960
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7964
7961
|
var OrangeLabel = ({ title, icon, font }) => {
|
|
7965
|
-
return /* @__PURE__ */ (0,
|
|
7962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7966
7963
|
Label_default,
|
|
7967
7964
|
{
|
|
7968
7965
|
title,
|
|
@@ -7977,9 +7974,9 @@ var OrangeLabel = ({ title, icon, font }) => {
|
|
|
7977
7974
|
var OrangeLabel_default = OrangeLabel;
|
|
7978
7975
|
|
|
7979
7976
|
// src/components/labels/RedLabel.tsx
|
|
7980
|
-
var
|
|
7977
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7981
7978
|
var RedLabel = ({ title, icon, font }) => {
|
|
7982
|
-
return /* @__PURE__ */ (0,
|
|
7979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7983
7980
|
Label_default,
|
|
7984
7981
|
{
|
|
7985
7982
|
title,
|
|
@@ -7994,9 +7991,9 @@ var RedLabel = ({ title, icon, font }) => {
|
|
|
7994
7991
|
var RedLabel_default = RedLabel;
|
|
7995
7992
|
|
|
7996
7993
|
// src/components/labels/LimeLabel.tsx
|
|
7997
|
-
var
|
|
7994
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7998
7995
|
var LimeLabel = ({ title, icon, font }) => {
|
|
7999
|
-
return /* @__PURE__ */ (0,
|
|
7996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
8000
7997
|
Label_default,
|
|
8001
7998
|
{
|
|
8002
7999
|
title,
|
|
@@ -8011,9 +8008,9 @@ var LimeLabel = ({ title, icon, font }) => {
|
|
|
8011
8008
|
var LimeLabel_default = LimeLabel;
|
|
8012
8009
|
|
|
8013
8010
|
// src/components/labels/CoralLabel.tsx
|
|
8014
|
-
var
|
|
8011
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
8015
8012
|
var CoralLabel = ({ title, icon, font }) => {
|
|
8016
|
-
return /* @__PURE__ */ (0,
|
|
8013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
8017
8014
|
Label_default,
|
|
8018
8015
|
{
|
|
8019
8016
|
title,
|
|
@@ -8028,9 +8025,9 @@ var CoralLabel = ({ title, icon, font }) => {
|
|
|
8028
8025
|
var CoralLabel_default = CoralLabel;
|
|
8029
8026
|
|
|
8030
8027
|
// src/components/labels/CyanLabel.tsx
|
|
8031
|
-
var
|
|
8028
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
8032
8029
|
var CyanLabel = ({ title, icon, font }) => {
|
|
8033
|
-
return /* @__PURE__ */ (0,
|
|
8030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
8034
8031
|
Label_default,
|
|
8035
8032
|
{
|
|
8036
8033
|
title,
|
|
@@ -8045,9 +8042,9 @@ var CyanLabel = ({ title, icon, font }) => {
|
|
|
8045
8042
|
var CyanLabel_default = CyanLabel;
|
|
8046
8043
|
|
|
8047
8044
|
// src/components/labels/GrayLabel.tsx
|
|
8048
|
-
var
|
|
8045
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
8049
8046
|
var GrayLabel = ({ title, icon, font }) => {
|
|
8050
|
-
return /* @__PURE__ */ (0,
|
|
8047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
8051
8048
|
Label_default,
|
|
8052
8049
|
{
|
|
8053
8050
|
title,
|
|
@@ -8062,20 +8059,20 @@ var GrayLabel = ({ title, icon, font }) => {
|
|
|
8062
8059
|
var GrayLabel_default = GrayLabel;
|
|
8063
8060
|
|
|
8064
8061
|
// src/components/infos/InfoWithText.tsx
|
|
8065
|
-
var
|
|
8062
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
8066
8063
|
var InfoWithText = (props) => {
|
|
8067
8064
|
const { value } = props;
|
|
8068
|
-
return /* @__PURE__ */ (0,
|
|
8069
|
-
/* @__PURE__ */ (0,
|
|
8070
|
-
/* @__PURE__ */ (0,
|
|
8065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
8066
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
8067
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "", children: value }) })
|
|
8071
8068
|
] });
|
|
8072
8069
|
};
|
|
8073
8070
|
var InfoWithText_default = InfoWithText;
|
|
8074
8071
|
|
|
8075
8072
|
// src/components/titles/SubTitle.tsx
|
|
8076
|
-
var
|
|
8073
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
8077
8074
|
var SubTitle = ({ title }) => {
|
|
8078
|
-
return /* @__PURE__ */ (0,
|
|
8075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
8079
8076
|
};
|
|
8080
8077
|
var SubTitle_default = SubTitle;
|
|
8081
8078
|
|
|
@@ -10838,6 +10835,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10838
10835
|
ActivityEvaluationRubricContent,
|
|
10839
10836
|
ActivityPreviewByData,
|
|
10840
10837
|
ActivitySolutionContent,
|
|
10838
|
+
AmberLabel,
|
|
10841
10839
|
ApproveButton,
|
|
10842
10840
|
BaseCard,
|
|
10843
10841
|
BaseImage,
|
package/dist/index.mjs
CHANGED
|
@@ -7448,77 +7448,56 @@ var PageTravelGroup = ({
|
|
|
7448
7448
|
useEffect18(() => {
|
|
7449
7449
|
setNewPageNumber(pageNumber + 1);
|
|
7450
7450
|
}, [pageNumber]);
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
if (pageNumber - 1 >= 0) {
|
|
7463
|
-
setPageNumber(pageNumber - 1);
|
|
7464
|
-
}
|
|
7465
|
-
setImageReady(false);
|
|
7466
|
-
}
|
|
7467
|
-
}
|
|
7468
|
-
}
|
|
7469
|
-
) }),
|
|
7470
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ jsx52("div", { className: "px-2", children: /* @__PURE__ */ jsx52(
|
|
7471
|
-
"p",
|
|
7451
|
+
const handlePageChange = (newPage) => {
|
|
7452
|
+
if (isImageProcessing) {
|
|
7453
|
+
handleImageProcessing();
|
|
7454
|
+
} else {
|
|
7455
|
+
setPageNumber(newPage);
|
|
7456
|
+
setImageReady(false);
|
|
7457
|
+
}
|
|
7458
|
+
};
|
|
7459
|
+
return /* @__PURE__ */ jsxs41("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap gap-x-2", children: [
|
|
7460
|
+
/* @__PURE__ */ jsx52(
|
|
7461
|
+
"button",
|
|
7472
7462
|
{
|
|
7473
|
-
className:
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
} else {
|
|
7478
|
-
setPageNumber(index);
|
|
7479
|
-
setImageReady(false);
|
|
7480
|
-
}
|
|
7481
|
-
},
|
|
7482
|
-
children: index + 1
|
|
7463
|
+
className: "px-2 py-1 bg-catchup-blue-100 rounded-catchup-small",
|
|
7464
|
+
disabled: pageNumber <= 0,
|
|
7465
|
+
onClick: () => handlePageChange(pageNumber - 1),
|
|
7466
|
+
children: "\u2190"
|
|
7483
7467
|
}
|
|
7484
|
-
)
|
|
7485
|
-
|
|
7486
|
-
|
|
7468
|
+
),
|
|
7469
|
+
/* @__PURE__ */ jsxs41("p", { className: "text-md", children: [
|
|
7470
|
+
pageNumber + 1,
|
|
7471
|
+
" / ",
|
|
7472
|
+
totalPageNumber
|
|
7473
|
+
] }),
|
|
7474
|
+
/* @__PURE__ */ jsx52(
|
|
7475
|
+
"button",
|
|
7487
7476
|
{
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
if (isImageProcessing) {
|
|
7493
|
-
handleImageProcessing();
|
|
7494
|
-
} else {
|
|
7495
|
-
if (pageNumber + 1 <= totalPageNumber) {
|
|
7496
|
-
setPageNumber(pageNumber + 1);
|
|
7497
|
-
}
|
|
7498
|
-
setImageReady(false);
|
|
7499
|
-
}
|
|
7500
|
-
}
|
|
7477
|
+
className: "px-2 py-1 bg-catchup-blue-100 rounded-catchup-small",
|
|
7478
|
+
disabled: pageNumber >= totalPageNumber - 1,
|
|
7479
|
+
onClick: () => handlePageChange(pageNumber + 1),
|
|
7480
|
+
children: "\u2192"
|
|
7501
7481
|
}
|
|
7502
|
-
)
|
|
7503
|
-
/* @__PURE__ */ jsx52(
|
|
7482
|
+
),
|
|
7483
|
+
/* @__PURE__ */ jsx52(
|
|
7504
7484
|
"input",
|
|
7505
7485
|
{
|
|
7506
|
-
className:
|
|
7486
|
+
className: "w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input",
|
|
7507
7487
|
type: "number",
|
|
7508
7488
|
value: newPageNumber,
|
|
7509
7489
|
onChange: (e) => {
|
|
7510
|
-
|
|
7511
|
-
setNewPageNumber(inputPageNumber);
|
|
7490
|
+
setNewPageNumber(parseInt(e.target.value));
|
|
7512
7491
|
},
|
|
7513
7492
|
onKeyDown: (e) => {
|
|
7514
7493
|
if (isNaN(newPageNumber) || newPageNumber <= 0 || newPageNumber > totalPageNumber)
|
|
7515
7494
|
return;
|
|
7516
7495
|
if (e.key === "Enter") {
|
|
7517
|
-
|
|
7496
|
+
handlePageChange(newPageNumber - 1);
|
|
7518
7497
|
}
|
|
7519
7498
|
}
|
|
7520
7499
|
}
|
|
7521
|
-
)
|
|
7500
|
+
)
|
|
7522
7501
|
] });
|
|
7523
7502
|
};
|
|
7524
7503
|
var PageTravelGroup_default = PageTravelGroup;
|
|
@@ -7658,10 +7637,27 @@ var Label = ({
|
|
|
7658
7637
|
};
|
|
7659
7638
|
var Label_default = Label;
|
|
7660
7639
|
|
|
7661
|
-
// src/components/labels/
|
|
7640
|
+
// src/components/labels/AmberLabel.tsx
|
|
7662
7641
|
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
7663
|
-
var
|
|
7642
|
+
var AmberLabel = ({ title, icon, font }) => {
|
|
7664
7643
|
return /* @__PURE__ */ jsx57(
|
|
7644
|
+
Label_default,
|
|
7645
|
+
{
|
|
7646
|
+
title,
|
|
7647
|
+
icon,
|
|
7648
|
+
font,
|
|
7649
|
+
borderColor: "#D97706",
|
|
7650
|
+
backgroundColor: "#FEF3C7",
|
|
7651
|
+
textColor: "#B45309"
|
|
7652
|
+
}
|
|
7653
|
+
);
|
|
7654
|
+
};
|
|
7655
|
+
var AmberLabel_default = AmberLabel;
|
|
7656
|
+
|
|
7657
|
+
// src/components/labels/TealLabel.tsx
|
|
7658
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
7659
|
+
var TealLabel = ({ title, icon, font }) => {
|
|
7660
|
+
return /* @__PURE__ */ jsx58(
|
|
7665
7661
|
Label_default,
|
|
7666
7662
|
{
|
|
7667
7663
|
title,
|
|
@@ -7676,9 +7672,9 @@ var TealLabel = ({ title, icon, font }) => {
|
|
|
7676
7672
|
var TealLabel_default = TealLabel;
|
|
7677
7673
|
|
|
7678
7674
|
// src/components/labels/PurpleLabel.tsx
|
|
7679
|
-
import { jsx as
|
|
7675
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
7680
7676
|
var PurpleLabel = ({ title, icon, font }) => {
|
|
7681
|
-
return /* @__PURE__ */
|
|
7677
|
+
return /* @__PURE__ */ jsx59(
|
|
7682
7678
|
Label_default,
|
|
7683
7679
|
{
|
|
7684
7680
|
title,
|
|
@@ -7693,9 +7689,9 @@ var PurpleLabel = ({ title, icon, font }) => {
|
|
|
7693
7689
|
var PurpleLabel_default = PurpleLabel;
|
|
7694
7690
|
|
|
7695
7691
|
// src/components/labels/GreenLabel.tsx
|
|
7696
|
-
import { jsx as
|
|
7692
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
7697
7693
|
var GreenLabel = ({ title, icon, font }) => {
|
|
7698
|
-
return /* @__PURE__ */
|
|
7694
|
+
return /* @__PURE__ */ jsx60(
|
|
7699
7695
|
Label_default,
|
|
7700
7696
|
{
|
|
7701
7697
|
title,
|
|
@@ -7710,9 +7706,9 @@ var GreenLabel = ({ title, icon, font }) => {
|
|
|
7710
7706
|
var GreenLabel_default = GreenLabel;
|
|
7711
7707
|
|
|
7712
7708
|
// src/components/labels/BlueLabel.tsx
|
|
7713
|
-
import { jsx as
|
|
7709
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
7714
7710
|
var BlueLabel = ({ title, icon, font }) => {
|
|
7715
|
-
return /* @__PURE__ */
|
|
7711
|
+
return /* @__PURE__ */ jsx61(
|
|
7716
7712
|
Label_default,
|
|
7717
7713
|
{
|
|
7718
7714
|
title,
|
|
@@ -7727,9 +7723,9 @@ var BlueLabel = ({ title, icon, font }) => {
|
|
|
7727
7723
|
var BlueLabel_default = BlueLabel;
|
|
7728
7724
|
|
|
7729
7725
|
// src/components/labels/OrangeLabel.tsx
|
|
7730
|
-
import { jsx as
|
|
7726
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7731
7727
|
var OrangeLabel = ({ title, icon, font }) => {
|
|
7732
|
-
return /* @__PURE__ */
|
|
7728
|
+
return /* @__PURE__ */ jsx62(
|
|
7733
7729
|
Label_default,
|
|
7734
7730
|
{
|
|
7735
7731
|
title,
|
|
@@ -7744,9 +7740,9 @@ var OrangeLabel = ({ title, icon, font }) => {
|
|
|
7744
7740
|
var OrangeLabel_default = OrangeLabel;
|
|
7745
7741
|
|
|
7746
7742
|
// src/components/labels/RedLabel.tsx
|
|
7747
|
-
import { jsx as
|
|
7743
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
7748
7744
|
var RedLabel = ({ title, icon, font }) => {
|
|
7749
|
-
return /* @__PURE__ */
|
|
7745
|
+
return /* @__PURE__ */ jsx63(
|
|
7750
7746
|
Label_default,
|
|
7751
7747
|
{
|
|
7752
7748
|
title,
|
|
@@ -7761,9 +7757,9 @@ var RedLabel = ({ title, icon, font }) => {
|
|
|
7761
7757
|
var RedLabel_default = RedLabel;
|
|
7762
7758
|
|
|
7763
7759
|
// src/components/labels/LimeLabel.tsx
|
|
7764
|
-
import { jsx as
|
|
7760
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
7765
7761
|
var LimeLabel = ({ title, icon, font }) => {
|
|
7766
|
-
return /* @__PURE__ */
|
|
7762
|
+
return /* @__PURE__ */ jsx64(
|
|
7767
7763
|
Label_default,
|
|
7768
7764
|
{
|
|
7769
7765
|
title,
|
|
@@ -7778,9 +7774,9 @@ var LimeLabel = ({ title, icon, font }) => {
|
|
|
7778
7774
|
var LimeLabel_default = LimeLabel;
|
|
7779
7775
|
|
|
7780
7776
|
// src/components/labels/CoralLabel.tsx
|
|
7781
|
-
import { jsx as
|
|
7777
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
7782
7778
|
var CoralLabel = ({ title, icon, font }) => {
|
|
7783
|
-
return /* @__PURE__ */
|
|
7779
|
+
return /* @__PURE__ */ jsx65(
|
|
7784
7780
|
Label_default,
|
|
7785
7781
|
{
|
|
7786
7782
|
title,
|
|
@@ -7795,9 +7791,9 @@ var CoralLabel = ({ title, icon, font }) => {
|
|
|
7795
7791
|
var CoralLabel_default = CoralLabel;
|
|
7796
7792
|
|
|
7797
7793
|
// src/components/labels/CyanLabel.tsx
|
|
7798
|
-
import { jsx as
|
|
7794
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
7799
7795
|
var CyanLabel = ({ title, icon, font }) => {
|
|
7800
|
-
return /* @__PURE__ */
|
|
7796
|
+
return /* @__PURE__ */ jsx66(
|
|
7801
7797
|
Label_default,
|
|
7802
7798
|
{
|
|
7803
7799
|
title,
|
|
@@ -7812,9 +7808,9 @@ var CyanLabel = ({ title, icon, font }) => {
|
|
|
7812
7808
|
var CyanLabel_default = CyanLabel;
|
|
7813
7809
|
|
|
7814
7810
|
// src/components/labels/GrayLabel.tsx
|
|
7815
|
-
import { jsx as
|
|
7811
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
7816
7812
|
var GrayLabel = ({ title, icon, font }) => {
|
|
7817
|
-
return /* @__PURE__ */
|
|
7813
|
+
return /* @__PURE__ */ jsx67(
|
|
7818
7814
|
Label_default,
|
|
7819
7815
|
{
|
|
7820
7816
|
title,
|
|
@@ -7829,20 +7825,20 @@ var GrayLabel = ({ title, icon, font }) => {
|
|
|
7829
7825
|
var GrayLabel_default = GrayLabel;
|
|
7830
7826
|
|
|
7831
7827
|
// src/components/infos/InfoWithText.tsx
|
|
7832
|
-
import { jsx as
|
|
7828
|
+
import { jsx as jsx68, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7833
7829
|
var InfoWithText = (props) => {
|
|
7834
7830
|
const { value } = props;
|
|
7835
7831
|
return /* @__PURE__ */ jsxs45("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7836
|
-
/* @__PURE__ */
|
|
7837
|
-
/* @__PURE__ */
|
|
7832
|
+
/* @__PURE__ */ jsx68(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7833
|
+
/* @__PURE__ */ jsx68("div", { className: "flex-1", children: /* @__PURE__ */ jsx68("p", { className: "", children: value }) })
|
|
7838
7834
|
] });
|
|
7839
7835
|
};
|
|
7840
7836
|
var InfoWithText_default = InfoWithText;
|
|
7841
7837
|
|
|
7842
7838
|
// src/components/titles/SubTitle.tsx
|
|
7843
|
-
import { jsx as
|
|
7839
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
7844
7840
|
var SubTitle = ({ title }) => {
|
|
7845
|
-
return /* @__PURE__ */
|
|
7841
|
+
return /* @__PURE__ */ jsx69("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7846
7842
|
};
|
|
7847
7843
|
var SubTitle_default = SubTitle;
|
|
7848
7844
|
|
|
@@ -10604,6 +10600,7 @@ export {
|
|
|
10604
10600
|
ActivityEvaluationRubricContent_default as ActivityEvaluationRubricContent,
|
|
10605
10601
|
ActivityPreviewByData_default as ActivityPreviewByData,
|
|
10606
10602
|
ActivitySolutionContent_default as ActivitySolutionContent,
|
|
10603
|
+
AmberLabel_default as AmberLabel,
|
|
10607
10604
|
ApproveButton_default as ApproveButton,
|
|
10608
10605
|
BaseCard_default as BaseCard,
|
|
10609
10606
|
BaseImage_default as BaseImage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import { IPageTravelGroupProps } from "../../properties/GroupProperties";
|
|
3
|
-
import BaseImage from "../images/BaseImage";
|
|
4
3
|
|
|
5
4
|
const PageTravelGroup = ({
|
|
6
5
|
isImageProcessing,
|
|
@@ -22,92 +21,53 @@ const PageTravelGroup = ({
|
|
|
22
21
|
setNewPageNumber(pageNumber + 1);
|
|
23
22
|
}, [pageNumber]);
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
onClick={() => {
|
|
34
|
-
if (isImageProcessing) {
|
|
35
|
-
handleImageProcessing();
|
|
36
|
-
} else {
|
|
37
|
-
if (pageNumber - 1 >= 0) {
|
|
38
|
-
setPageNumber(pageNumber - 1);
|
|
39
|
-
}
|
|
40
|
-
setImageReady(false);
|
|
41
|
-
}
|
|
42
|
-
}}
|
|
43
|
-
/>
|
|
44
|
-
</div>
|
|
45
|
-
)}
|
|
46
|
-
{Array.from(Array(totalPageNumber).keys())
|
|
47
|
-
.filter((index) => index < pageNumber + 5)
|
|
48
|
-
.filter((index) => index > pageNumber - 5)
|
|
49
|
-
.map((index) => (
|
|
50
|
-
<div key={index} className="px-2">
|
|
51
|
-
<p
|
|
52
|
-
className={`${
|
|
53
|
-
pageNumber === index ? "text-xl" : "text-md"
|
|
54
|
-
} cursor-pointer`}
|
|
55
|
-
onClick={() => {
|
|
56
|
-
if (isImageProcessing) {
|
|
57
|
-
handleImageProcessing();
|
|
58
|
-
} else {
|
|
59
|
-
setPageNumber(index);
|
|
60
|
-
setImageReady(false);
|
|
61
|
-
}
|
|
62
|
-
}}
|
|
63
|
-
>
|
|
64
|
-
{index + 1}
|
|
65
|
-
</p>
|
|
66
|
-
</div>
|
|
67
|
-
))}
|
|
68
|
-
|
|
69
|
-
{totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : (
|
|
70
|
-
<div className="px-2 flex flex-col items-center">
|
|
71
|
-
<BaseImage
|
|
72
|
-
size="small"
|
|
73
|
-
alt="arrow-right"
|
|
74
|
-
src="/icons/arrow-right.webp"
|
|
75
|
-
onClick={() => {
|
|
76
|
-
if (isImageProcessing) {
|
|
77
|
-
handleImageProcessing();
|
|
78
|
-
} else {
|
|
79
|
-
if (pageNumber + 1 <= totalPageNumber) {
|
|
80
|
-
setPageNumber(pageNumber + 1);
|
|
81
|
-
}
|
|
24
|
+
const handlePageChange = (newPage: number) => {
|
|
25
|
+
if (isImageProcessing) {
|
|
26
|
+
handleImageProcessing();
|
|
27
|
+
} else {
|
|
28
|
+
setPageNumber(newPage);
|
|
29
|
+
setImageReady(false);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
82
32
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
33
|
+
return (
|
|
34
|
+
<div className="flex-1 flex flex-row justify-center items-center flex-wrap gap-x-2">
|
|
35
|
+
<button
|
|
36
|
+
className="px-2 py-1 bg-catchup-blue-100 rounded-catchup-small"
|
|
37
|
+
disabled={pageNumber <= 0}
|
|
38
|
+
onClick={() => handlePageChange(pageNumber - 1)}
|
|
39
|
+
>
|
|
40
|
+
←
|
|
41
|
+
</button>
|
|
42
|
+
<p className="text-md">
|
|
43
|
+
{pageNumber + 1} / {totalPageNumber}
|
|
44
|
+
</p>
|
|
45
|
+
<button
|
|
46
|
+
className="px-2 py-1 bg-catchup-blue-100 rounded-catchup-small"
|
|
47
|
+
disabled={pageNumber >= totalPageNumber - 1}
|
|
48
|
+
onClick={() => handlePageChange(pageNumber + 1)}
|
|
49
|
+
>
|
|
50
|
+
→
|
|
51
|
+
</button>
|
|
52
|
+
<input
|
|
53
|
+
className="w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input"
|
|
54
|
+
type="number"
|
|
55
|
+
value={newPageNumber}
|
|
56
|
+
onChange={(e) => {
|
|
57
|
+
setNewPageNumber(parseInt(e.target.value));
|
|
58
|
+
}}
|
|
59
|
+
onKeyDown={(e) => {
|
|
60
|
+
if (
|
|
61
|
+
isNaN(newPageNumber) ||
|
|
62
|
+
newPageNumber <= 0 ||
|
|
63
|
+
newPageNumber > totalPageNumber
|
|
64
|
+
)
|
|
65
|
+
return;
|
|
66
|
+
if (e.key === "Enter") {
|
|
67
|
+
handlePageChange(newPageNumber - 1);
|
|
68
|
+
}
|
|
69
|
+
}}
|
|
70
|
+
/>
|
|
111
71
|
</div>
|
|
112
72
|
);
|
|
113
73
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const AmberLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#D97706"
|
|
11
|
+
backgroundColor="#FEF3C7"
|
|
12
|
+
textColor="#B45309"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default AmberLabel;
|
package/src/index.ts
CHANGED
|
@@ -54,6 +54,7 @@ export { default as SelectionCheckbox } from "./components/boxes/SelectionCheckb
|
|
|
54
54
|
export { default as SelectionTab } from "./components/tabs/SelectionTab";
|
|
55
55
|
export { default as SelectionTabFill } from "./components/tabs/SelectionTabFill";
|
|
56
56
|
|
|
57
|
+
export { default as AmberLabel } from "./components/labels/AmberLabel";
|
|
57
58
|
export { default as TealLabel } from "./components/labels/TealLabel";
|
|
58
59
|
export { default as PurpleLabel } from "./components/labels/PurpleLabel";
|
|
59
60
|
export { default as GreenLabel } from "./components/labels/GreenLabel";
|