catchup-library-web 2.6.9 → 2.6.10

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 CHANGED
@@ -393,11 +393,18 @@ interface ISelectionTabProps {
393
393
  borderColor: string;
394
394
  selectedBorderColor: string;
395
395
  }
396
+ interface ISelectionTabPillProps {
397
+ optionList: any;
398
+ selectedId: any;
399
+ handleSelectOnClick: (e: any) => void;
400
+ }
396
401
 
397
402
  declare const SelectionTab: ({ optionList, selectedId, handleSelectOnClick, selectedTextColor, selectedBorderColor, textColor, borderColor, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
398
403
 
399
404
  declare const SelectionTabFill: ({ optionList, selectedId, handleSelectOnClick, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
400
405
 
406
+ declare const SelectionTabPill: ({ optionList, selectedId, handleSelectOnClick, }: ISelectionTabPillProps) => react_jsx_runtime.JSX.Element;
407
+
401
408
  interface IFixedLabelProps {
402
409
  title: string;
403
410
  icon?: any;
@@ -943,4 +950,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
943
950
  text: string;
944
951
  }[];
945
952
 
946
- 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, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
953
+ export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, 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, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
package/dist/index.d.ts CHANGED
@@ -393,11 +393,18 @@ interface ISelectionTabProps {
393
393
  borderColor: string;
394
394
  selectedBorderColor: string;
395
395
  }
396
+ interface ISelectionTabPillProps {
397
+ optionList: any;
398
+ selectedId: any;
399
+ handleSelectOnClick: (e: any) => void;
400
+ }
396
401
 
397
402
  declare const SelectionTab: ({ optionList, selectedId, handleSelectOnClick, selectedTextColor, selectedBorderColor, textColor, borderColor, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
398
403
 
399
404
  declare const SelectionTabFill: ({ optionList, selectedId, handleSelectOnClick, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
400
405
 
406
+ declare const SelectionTabPill: ({ optionList, selectedId, handleSelectOnClick, }: ISelectionTabPillProps) => react_jsx_runtime.JSX.Element;
407
+
401
408
  interface IFixedLabelProps {
402
409
  title: string;
403
410
  icon?: any;
@@ -943,4 +950,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
943
950
  text: string;
944
951
  }[];
945
952
 
946
- 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, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
953
+ export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, 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, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
package/dist/index.js CHANGED
@@ -121,6 +121,7 @@ __export(index_exports, {
121
121
  SelectionCheckbox: () => SelectionCheckbox_default,
122
122
  SelectionTab: () => SelectionTab_default,
123
123
  SelectionTabFill: () => SelectionTabFill_default,
124
+ SelectionTabPill: () => SelectionTabPill_default,
124
125
  StatusError: () => StatusError_default,
125
126
  SubTitle: () => SubTitle_default,
126
127
  THREE_MONTHS: () => THREE_MONTHS,
@@ -7891,8 +7892,27 @@ var SelectionTabFill = ({
7891
7892
  };
7892
7893
  var SelectionTabFill_default = SelectionTabFill;
7893
7894
 
7894
- // src/components/labels/Label.tsx
7895
+ // src/components/tabs/SelectionTabPill.tsx
7895
7896
  var import_jsx_runtime56 = require("react/jsx-runtime");
7897
+ var SelectionTabPill = ({
7898
+ optionList,
7899
+ selectedId,
7900
+ handleSelectOnClick
7901
+ }) => {
7902
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-wrap items-center gap-3 my-2", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7903
+ "button",
7904
+ {
7905
+ onClick: () => handleSelectOnClick(option.id),
7906
+ className: `px-4 py-2 rounded-catchup-full transition-all duration-200 cursor-pointer ${selectedId === option.id ? "bg-catchup-blue text-catchup-white shadow-card" : "bg-catchup-blue-100 text-catchup-blue-800 hover:bg-catchup-blue-200"}`,
7907
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-base font-semibold", children: option.title })
7908
+ },
7909
+ index
7910
+ )) });
7911
+ };
7912
+ var SelectionTabPill_default = SelectionTabPill;
7913
+
7914
+ // src/components/labels/Label.tsx
7915
+ var import_jsx_runtime57 = require("react/jsx-runtime");
7896
7916
  var Label = ({
7897
7917
  title,
7898
7918
  icon,
@@ -7902,7 +7922,7 @@ var Label = ({
7902
7922
  backgroundColor,
7903
7923
  textColor
7904
7924
  }) => {
7905
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7925
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7906
7926
  "div",
7907
7927
  {
7908
7928
  className: "px-3 py-1 gap-x-3 border rounded-catchup-2xlarge text-center",
@@ -7912,9 +7932,9 @@ var Label = ({
7912
7932
  background: backgroundColor,
7913
7933
  color: textColor
7914
7934
  },
7915
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7935
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7916
7936
  icon,
7917
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: font, children: title })
7937
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: font, children: title })
7918
7938
  ] })
7919
7939
  }
7920
7940
  );
@@ -7922,9 +7942,9 @@ var Label = ({
7922
7942
  var Label_default = Label;
7923
7943
 
7924
7944
  // src/components/labels/AmberLabel.tsx
7925
- var import_jsx_runtime57 = require("react/jsx-runtime");
7945
+ var import_jsx_runtime58 = require("react/jsx-runtime");
7926
7946
  var AmberLabel = ({ title, icon, font }) => {
7927
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7947
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7928
7948
  Label_default,
7929
7949
  {
7930
7950
  title,
@@ -7939,9 +7959,9 @@ var AmberLabel = ({ title, icon, font }) => {
7939
7959
  var AmberLabel_default = AmberLabel;
7940
7960
 
7941
7961
  // src/components/labels/TealLabel.tsx
7942
- var import_jsx_runtime58 = require("react/jsx-runtime");
7962
+ var import_jsx_runtime59 = require("react/jsx-runtime");
7943
7963
  var TealLabel = ({ title, icon, font }) => {
7944
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7964
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7945
7965
  Label_default,
7946
7966
  {
7947
7967
  title,
@@ -7956,9 +7976,9 @@ var TealLabel = ({ title, icon, font }) => {
7956
7976
  var TealLabel_default = TealLabel;
7957
7977
 
7958
7978
  // src/components/labels/PurpleLabel.tsx
7959
- var import_jsx_runtime59 = require("react/jsx-runtime");
7979
+ var import_jsx_runtime60 = require("react/jsx-runtime");
7960
7980
  var PurpleLabel = ({ title, icon, font }) => {
7961
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7981
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7962
7982
  Label_default,
7963
7983
  {
7964
7984
  title,
@@ -7973,9 +7993,9 @@ var PurpleLabel = ({ title, icon, font }) => {
7973
7993
  var PurpleLabel_default = PurpleLabel;
7974
7994
 
7975
7995
  // src/components/labels/GreenLabel.tsx
7976
- var import_jsx_runtime60 = require("react/jsx-runtime");
7996
+ var import_jsx_runtime61 = require("react/jsx-runtime");
7977
7997
  var GreenLabel = ({ title, icon, font }) => {
7978
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7998
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7979
7999
  Label_default,
7980
8000
  {
7981
8001
  title,
@@ -7990,9 +8010,9 @@ var GreenLabel = ({ title, icon, font }) => {
7990
8010
  var GreenLabel_default = GreenLabel;
7991
8011
 
7992
8012
  // src/components/labels/BlueLabel.tsx
7993
- var import_jsx_runtime61 = require("react/jsx-runtime");
8013
+ var import_jsx_runtime62 = require("react/jsx-runtime");
7994
8014
  var BlueLabel = ({ title, icon, font }) => {
7995
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8015
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7996
8016
  Label_default,
7997
8017
  {
7998
8018
  title,
@@ -8007,9 +8027,9 @@ var BlueLabel = ({ title, icon, font }) => {
8007
8027
  var BlueLabel_default = BlueLabel;
8008
8028
 
8009
8029
  // src/components/labels/OrangeLabel.tsx
8010
- var import_jsx_runtime62 = require("react/jsx-runtime");
8030
+ var import_jsx_runtime63 = require("react/jsx-runtime");
8011
8031
  var OrangeLabel = ({ title, icon, font }) => {
8012
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
8032
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
8013
8033
  Label_default,
8014
8034
  {
8015
8035
  title,
@@ -8024,9 +8044,9 @@ var OrangeLabel = ({ title, icon, font }) => {
8024
8044
  var OrangeLabel_default = OrangeLabel;
8025
8045
 
8026
8046
  // src/components/labels/RedLabel.tsx
8027
- var import_jsx_runtime63 = require("react/jsx-runtime");
8047
+ var import_jsx_runtime64 = require("react/jsx-runtime");
8028
8048
  var RedLabel = ({ title, icon, font }) => {
8029
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
8049
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
8030
8050
  Label_default,
8031
8051
  {
8032
8052
  title,
@@ -8041,9 +8061,9 @@ var RedLabel = ({ title, icon, font }) => {
8041
8061
  var RedLabel_default = RedLabel;
8042
8062
 
8043
8063
  // src/components/labels/LimeLabel.tsx
8044
- var import_jsx_runtime64 = require("react/jsx-runtime");
8064
+ var import_jsx_runtime65 = require("react/jsx-runtime");
8045
8065
  var LimeLabel = ({ title, icon, font }) => {
8046
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
8066
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
8047
8067
  Label_default,
8048
8068
  {
8049
8069
  title,
@@ -8058,9 +8078,9 @@ var LimeLabel = ({ title, icon, font }) => {
8058
8078
  var LimeLabel_default = LimeLabel;
8059
8079
 
8060
8080
  // src/components/labels/CoralLabel.tsx
8061
- var import_jsx_runtime65 = require("react/jsx-runtime");
8081
+ var import_jsx_runtime66 = require("react/jsx-runtime");
8062
8082
  var CoralLabel = ({ title, icon, font }) => {
8063
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
8083
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
8064
8084
  Label_default,
8065
8085
  {
8066
8086
  title,
@@ -8075,9 +8095,9 @@ var CoralLabel = ({ title, icon, font }) => {
8075
8095
  var CoralLabel_default = CoralLabel;
8076
8096
 
8077
8097
  // src/components/labels/CyanLabel.tsx
8078
- var import_jsx_runtime66 = require("react/jsx-runtime");
8098
+ var import_jsx_runtime67 = require("react/jsx-runtime");
8079
8099
  var CyanLabel = ({ title, icon, font }) => {
8080
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
8100
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
8081
8101
  Label_default,
8082
8102
  {
8083
8103
  title,
@@ -8092,9 +8112,9 @@ var CyanLabel = ({ title, icon, font }) => {
8092
8112
  var CyanLabel_default = CyanLabel;
8093
8113
 
8094
8114
  // src/components/labels/GrayLabel.tsx
8095
- var import_jsx_runtime67 = require("react/jsx-runtime");
8115
+ var import_jsx_runtime68 = require("react/jsx-runtime");
8096
8116
  var GrayLabel = ({ title, icon, font }) => {
8097
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
8117
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
8098
8118
  Label_default,
8099
8119
  {
8100
8120
  title,
@@ -8109,20 +8129,20 @@ var GrayLabel = ({ title, icon, font }) => {
8109
8129
  var GrayLabel_default = GrayLabel;
8110
8130
 
8111
8131
  // src/components/infos/InfoWithText.tsx
8112
- var import_jsx_runtime68 = require("react/jsx-runtime");
8132
+ var import_jsx_runtime69 = require("react/jsx-runtime");
8113
8133
  var InfoWithText = (props) => {
8114
8134
  const { value } = props;
8115
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
8116
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
8117
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "", children: value }) })
8135
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
8136
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
8137
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "", children: value }) })
8118
8138
  ] });
8119
8139
  };
8120
8140
  var InfoWithText_default = InfoWithText;
8121
8141
 
8122
8142
  // src/components/titles/SubTitle.tsx
8123
- var import_jsx_runtime69 = require("react/jsx-runtime");
8143
+ var import_jsx_runtime70 = require("react/jsx-runtime");
8124
8144
  var SubTitle = ({ title }) => {
8125
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
8145
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
8126
8146
  };
8127
8147
  var SubTitle_default = SubTitle;
8128
8148
 
@@ -10684,14 +10704,15 @@ var constructOutcomeActivityScoreList = (data) => {
10684
10704
  const traverseCategories = (categoryData, parentPath = "") => {
10685
10705
  const currentPath = parentPath ? `${parentPath} > ${categoryData.categoryDTO.name}` : categoryData.categoryDTO.name;
10686
10706
  if (categoryData.subCategoryActivityAnswerDTOList.length === 0) {
10707
+ const scores = categoryData.activityScoreList || (categoryData.activityScoreDTOSet ? Array.from(categoryData.activityScoreDTOSet) : []);
10687
10708
  const outcomeActivityScore = {
10688
10709
  code: categoryData.categoryDTO.code,
10689
10710
  name: categoryData.categoryDTO.name,
10690
- count: categoryData.activityScoreDTOSet.length,
10711
+ count: scores.length,
10691
10712
  score: 0,
10692
10713
  timeSpent: 0
10693
10714
  };
10694
- categoryData.activityScoreDTOSet.forEach((activity) => {
10715
+ scores.forEach((activity) => {
10695
10716
  outcomeActivityScore.score += activity.score;
10696
10717
  outcomeActivityScore.timeSpent += activity.timeSpent;
10697
10718
  });
@@ -11004,6 +11025,7 @@ var retrieveActivityMethodologyOptionList = () => {
11004
11025
  SelectionCheckbox,
11005
11026
  SelectionTab,
11006
11027
  SelectionTabFill,
11028
+ SelectionTabPill,
11007
11029
  StatusError,
11008
11030
  SubTitle,
11009
11031
  THREE_MONTHS,
package/dist/index.mjs CHANGED
@@ -7655,8 +7655,27 @@ var SelectionTabFill = ({
7655
7655
  };
7656
7656
  var SelectionTabFill_default = SelectionTabFill;
7657
7657
 
7658
+ // src/components/tabs/SelectionTabPill.tsx
7659
+ import { jsx as jsx56 } from "react/jsx-runtime";
7660
+ var SelectionTabPill = ({
7661
+ optionList,
7662
+ selectedId,
7663
+ handleSelectOnClick
7664
+ }) => {
7665
+ return /* @__PURE__ */ jsx56("div", { className: "flex flex-wrap items-center gap-3 my-2", children: optionList.map((option, index) => /* @__PURE__ */ jsx56(
7666
+ "button",
7667
+ {
7668
+ onClick: () => handleSelectOnClick(option.id),
7669
+ className: `px-4 py-2 rounded-catchup-full transition-all duration-200 cursor-pointer ${selectedId === option.id ? "bg-catchup-blue text-catchup-white shadow-card" : "bg-catchup-blue-100 text-catchup-blue-800 hover:bg-catchup-blue-200"}`,
7670
+ children: /* @__PURE__ */ jsx56("span", { className: "text-base font-semibold", children: option.title })
7671
+ },
7672
+ index
7673
+ )) });
7674
+ };
7675
+ var SelectionTabPill_default = SelectionTabPill;
7676
+
7658
7677
  // src/components/labels/Label.tsx
7659
- import { jsx as jsx56, jsxs as jsxs44 } from "react/jsx-runtime";
7678
+ import { jsx as jsx57, jsxs as jsxs44 } from "react/jsx-runtime";
7660
7679
  var Label = ({
7661
7680
  title,
7662
7681
  icon,
@@ -7666,7 +7685,7 @@ var Label = ({
7666
7685
  backgroundColor,
7667
7686
  textColor
7668
7687
  }) => {
7669
- return /* @__PURE__ */ jsx56(
7688
+ return /* @__PURE__ */ jsx57(
7670
7689
  "div",
7671
7690
  {
7672
7691
  className: "px-3 py-1 gap-x-3 border rounded-catchup-2xlarge text-center",
@@ -7678,7 +7697,7 @@ var Label = ({
7678
7697
  },
7679
7698
  children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
7680
7699
  icon,
7681
- /* @__PURE__ */ jsx56("p", { className: font, children: title })
7700
+ /* @__PURE__ */ jsx57("p", { className: font, children: title })
7682
7701
  ] })
7683
7702
  }
7684
7703
  );
@@ -7686,9 +7705,9 @@ var Label = ({
7686
7705
  var Label_default = Label;
7687
7706
 
7688
7707
  // src/components/labels/AmberLabel.tsx
7689
- import { jsx as jsx57 } from "react/jsx-runtime";
7708
+ import { jsx as jsx58 } from "react/jsx-runtime";
7690
7709
  var AmberLabel = ({ title, icon, font }) => {
7691
- return /* @__PURE__ */ jsx57(
7710
+ return /* @__PURE__ */ jsx58(
7692
7711
  Label_default,
7693
7712
  {
7694
7713
  title,
@@ -7703,9 +7722,9 @@ var AmberLabel = ({ title, icon, font }) => {
7703
7722
  var AmberLabel_default = AmberLabel;
7704
7723
 
7705
7724
  // src/components/labels/TealLabel.tsx
7706
- import { jsx as jsx58 } from "react/jsx-runtime";
7725
+ import { jsx as jsx59 } from "react/jsx-runtime";
7707
7726
  var TealLabel = ({ title, icon, font }) => {
7708
- return /* @__PURE__ */ jsx58(
7727
+ return /* @__PURE__ */ jsx59(
7709
7728
  Label_default,
7710
7729
  {
7711
7730
  title,
@@ -7720,9 +7739,9 @@ var TealLabel = ({ title, icon, font }) => {
7720
7739
  var TealLabel_default = TealLabel;
7721
7740
 
7722
7741
  // src/components/labels/PurpleLabel.tsx
7723
- import { jsx as jsx59 } from "react/jsx-runtime";
7742
+ import { jsx as jsx60 } from "react/jsx-runtime";
7724
7743
  var PurpleLabel = ({ title, icon, font }) => {
7725
- return /* @__PURE__ */ jsx59(
7744
+ return /* @__PURE__ */ jsx60(
7726
7745
  Label_default,
7727
7746
  {
7728
7747
  title,
@@ -7737,9 +7756,9 @@ var PurpleLabel = ({ title, icon, font }) => {
7737
7756
  var PurpleLabel_default = PurpleLabel;
7738
7757
 
7739
7758
  // src/components/labels/GreenLabel.tsx
7740
- import { jsx as jsx60 } from "react/jsx-runtime";
7759
+ import { jsx as jsx61 } from "react/jsx-runtime";
7741
7760
  var GreenLabel = ({ title, icon, font }) => {
7742
- return /* @__PURE__ */ jsx60(
7761
+ return /* @__PURE__ */ jsx61(
7743
7762
  Label_default,
7744
7763
  {
7745
7764
  title,
@@ -7754,9 +7773,9 @@ var GreenLabel = ({ title, icon, font }) => {
7754
7773
  var GreenLabel_default = GreenLabel;
7755
7774
 
7756
7775
  // src/components/labels/BlueLabel.tsx
7757
- import { jsx as jsx61 } from "react/jsx-runtime";
7776
+ import { jsx as jsx62 } from "react/jsx-runtime";
7758
7777
  var BlueLabel = ({ title, icon, font }) => {
7759
- return /* @__PURE__ */ jsx61(
7778
+ return /* @__PURE__ */ jsx62(
7760
7779
  Label_default,
7761
7780
  {
7762
7781
  title,
@@ -7771,9 +7790,9 @@ var BlueLabel = ({ title, icon, font }) => {
7771
7790
  var BlueLabel_default = BlueLabel;
7772
7791
 
7773
7792
  // src/components/labels/OrangeLabel.tsx
7774
- import { jsx as jsx62 } from "react/jsx-runtime";
7793
+ import { jsx as jsx63 } from "react/jsx-runtime";
7775
7794
  var OrangeLabel = ({ title, icon, font }) => {
7776
- return /* @__PURE__ */ jsx62(
7795
+ return /* @__PURE__ */ jsx63(
7777
7796
  Label_default,
7778
7797
  {
7779
7798
  title,
@@ -7788,9 +7807,9 @@ var OrangeLabel = ({ title, icon, font }) => {
7788
7807
  var OrangeLabel_default = OrangeLabel;
7789
7808
 
7790
7809
  // src/components/labels/RedLabel.tsx
7791
- import { jsx as jsx63 } from "react/jsx-runtime";
7810
+ import { jsx as jsx64 } from "react/jsx-runtime";
7792
7811
  var RedLabel = ({ title, icon, font }) => {
7793
- return /* @__PURE__ */ jsx63(
7812
+ return /* @__PURE__ */ jsx64(
7794
7813
  Label_default,
7795
7814
  {
7796
7815
  title,
@@ -7805,9 +7824,9 @@ var RedLabel = ({ title, icon, font }) => {
7805
7824
  var RedLabel_default = RedLabel;
7806
7825
 
7807
7826
  // src/components/labels/LimeLabel.tsx
7808
- import { jsx as jsx64 } from "react/jsx-runtime";
7827
+ import { jsx as jsx65 } from "react/jsx-runtime";
7809
7828
  var LimeLabel = ({ title, icon, font }) => {
7810
- return /* @__PURE__ */ jsx64(
7829
+ return /* @__PURE__ */ jsx65(
7811
7830
  Label_default,
7812
7831
  {
7813
7832
  title,
@@ -7822,9 +7841,9 @@ var LimeLabel = ({ title, icon, font }) => {
7822
7841
  var LimeLabel_default = LimeLabel;
7823
7842
 
7824
7843
  // src/components/labels/CoralLabel.tsx
7825
- import { jsx as jsx65 } from "react/jsx-runtime";
7844
+ import { jsx as jsx66 } from "react/jsx-runtime";
7826
7845
  var CoralLabel = ({ title, icon, font }) => {
7827
- return /* @__PURE__ */ jsx65(
7846
+ return /* @__PURE__ */ jsx66(
7828
7847
  Label_default,
7829
7848
  {
7830
7849
  title,
@@ -7839,9 +7858,9 @@ var CoralLabel = ({ title, icon, font }) => {
7839
7858
  var CoralLabel_default = CoralLabel;
7840
7859
 
7841
7860
  // src/components/labels/CyanLabel.tsx
7842
- import { jsx as jsx66 } from "react/jsx-runtime";
7861
+ import { jsx as jsx67 } from "react/jsx-runtime";
7843
7862
  var CyanLabel = ({ title, icon, font }) => {
7844
- return /* @__PURE__ */ jsx66(
7863
+ return /* @__PURE__ */ jsx67(
7845
7864
  Label_default,
7846
7865
  {
7847
7866
  title,
@@ -7856,9 +7875,9 @@ var CyanLabel = ({ title, icon, font }) => {
7856
7875
  var CyanLabel_default = CyanLabel;
7857
7876
 
7858
7877
  // src/components/labels/GrayLabel.tsx
7859
- import { jsx as jsx67 } from "react/jsx-runtime";
7878
+ import { jsx as jsx68 } from "react/jsx-runtime";
7860
7879
  var GrayLabel = ({ title, icon, font }) => {
7861
- return /* @__PURE__ */ jsx67(
7880
+ return /* @__PURE__ */ jsx68(
7862
7881
  Label_default,
7863
7882
  {
7864
7883
  title,
@@ -7873,20 +7892,20 @@ var GrayLabel = ({ title, icon, font }) => {
7873
7892
  var GrayLabel_default = GrayLabel;
7874
7893
 
7875
7894
  // src/components/infos/InfoWithText.tsx
7876
- import { jsx as jsx68, jsxs as jsxs45 } from "react/jsx-runtime";
7895
+ import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
7877
7896
  var InfoWithText = (props) => {
7878
7897
  const { value } = props;
7879
7898
  return /* @__PURE__ */ jsxs45("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
7880
- /* @__PURE__ */ jsx68(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7881
- /* @__PURE__ */ jsx68("div", { className: "flex-1", children: /* @__PURE__ */ jsx68("p", { className: "", children: value }) })
7899
+ /* @__PURE__ */ jsx69(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7900
+ /* @__PURE__ */ jsx69("div", { className: "flex-1", children: /* @__PURE__ */ jsx69("p", { className: "", children: value }) })
7882
7901
  ] });
7883
7902
  };
7884
7903
  var InfoWithText_default = InfoWithText;
7885
7904
 
7886
7905
  // src/components/titles/SubTitle.tsx
7887
- import { jsx as jsx69 } from "react/jsx-runtime";
7906
+ import { jsx as jsx70 } from "react/jsx-runtime";
7888
7907
  var SubTitle = ({ title }) => {
7889
- return /* @__PURE__ */ jsx69("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
7908
+ return /* @__PURE__ */ jsx70("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
7890
7909
  };
7891
7910
  var SubTitle_default = SubTitle;
7892
7911
 
@@ -10448,14 +10467,15 @@ var constructOutcomeActivityScoreList = (data) => {
10448
10467
  const traverseCategories = (categoryData, parentPath = "") => {
10449
10468
  const currentPath = parentPath ? `${parentPath} > ${categoryData.categoryDTO.name}` : categoryData.categoryDTO.name;
10450
10469
  if (categoryData.subCategoryActivityAnswerDTOList.length === 0) {
10470
+ const scores = categoryData.activityScoreList || (categoryData.activityScoreDTOSet ? Array.from(categoryData.activityScoreDTOSet) : []);
10451
10471
  const outcomeActivityScore = {
10452
10472
  code: categoryData.categoryDTO.code,
10453
10473
  name: categoryData.categoryDTO.name,
10454
- count: categoryData.activityScoreDTOSet.length,
10474
+ count: scores.length,
10455
10475
  score: 0,
10456
10476
  timeSpent: 0
10457
10477
  };
10458
- categoryData.activityScoreDTOSet.forEach((activity) => {
10478
+ scores.forEach((activity) => {
10459
10479
  outcomeActivityScore.score += activity.score;
10460
10480
  outcomeActivityScore.timeSpent += activity.timeSpent;
10461
10481
  });
@@ -10767,6 +10787,7 @@ export {
10767
10787
  SelectionCheckbox_default as SelectionCheckbox,
10768
10788
  SelectionTab_default as SelectionTab,
10769
10789
  SelectionTabFill_default as SelectionTabFill,
10790
+ SelectionTabPill_default as SelectionTabPill,
10770
10791
  StatusError_default as StatusError,
10771
10792
  SubTitle_default as SubTitle,
10772
10793
  THREE_MONTHS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.6.9",
3
+ "version": "2.6.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,27 @@
1
+ import { ISelectionTabPillProps } from "../../properties/TabProperties";
2
+
3
+ const SelectionTabPill = ({
4
+ optionList,
5
+ selectedId,
6
+ handleSelectOnClick,
7
+ }: ISelectionTabPillProps) => {
8
+ return (
9
+ <div className="flex flex-wrap items-center gap-3 my-2">
10
+ {optionList.map((option: any, index: number) => (
11
+ <button
12
+ key={index}
13
+ onClick={() => handleSelectOnClick(option.id)}
14
+ className={`px-4 py-2 rounded-catchup-full transition-all duration-200 cursor-pointer ${
15
+ selectedId === option.id
16
+ ? "bg-catchup-blue text-catchup-white shadow-card"
17
+ : "bg-catchup-blue-100 text-catchup-blue-800 hover:bg-catchup-blue-200"
18
+ }`}
19
+ >
20
+ <span className="text-base font-semibold">{option.title}</span>
21
+ </button>
22
+ ))}
23
+ </div>
24
+ );
25
+ };
26
+
27
+ export default SelectionTabPill;
package/src/index.ts CHANGED
@@ -53,6 +53,7 @@ export { default as SelectionCheckbox } from "./components/boxes/SelectionCheckb
53
53
 
54
54
  export { default as SelectionTab } from "./components/tabs/SelectionTab";
55
55
  export { default as SelectionTabFill } from "./components/tabs/SelectionTabFill";
56
+ export { default as SelectionTabPill } from "./components/tabs/SelectionTabPill";
56
57
 
57
58
  export { default as AmberLabel } from "./components/labels/AmberLabel";
58
59
  export { default as TealLabel } from "./components/labels/TealLabel";
@@ -13,3 +13,9 @@ export interface ISelectedTabFillProps {
13
13
  selectedId: any;
14
14
  handleSelectOnClick: (e: any) => void;
15
15
  }
16
+
17
+ export interface ISelectionTabPillProps {
18
+ optionList: any;
19
+ selectedId: any;
20
+ handleSelectOnClick: (e: any) => void;
21
+ }
@@ -135,15 +135,17 @@ export const constructOutcomeActivityScoreList = (data: any) => {
135
135
  : categoryData.categoryDTO.name;
136
136
 
137
137
  if (categoryData.subCategoryActivityAnswerDTOList.length === 0) {
138
+ const scores = categoryData.activityScoreList ||
139
+ (categoryData.activityScoreDTOSet ? Array.from(categoryData.activityScoreDTOSet) : []);
138
140
  const outcomeActivityScore = {
139
141
  code: categoryData.categoryDTO.code,
140
142
  name: categoryData.categoryDTO.name,
141
- count: categoryData.activityScoreDTOSet.length,
143
+ count: scores.length,
142
144
  score: 0,
143
145
  timeSpent: 0,
144
146
  };
145
147
 
146
- categoryData.activityScoreDTOSet.forEach((activity: any) => {
148
+ scores.forEach((activity: any) => {
147
149
  outcomeActivityScore.score += activity.score;
148
150
  outcomeActivityScore.timeSpent += activity.timeSpent;
149
151
  });