analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
1 lines • 5.05 kB
Source Map (JSON)
{"version":3,"sources":["../src/components/StudentPerformanceDetailsModal/types.ts"],"sourcesContent":["/**\n * Activity progress data for the accordion section\n */\nexport interface ActivityProgress {\n /** Unique identifier */\n id: string;\n /** Activity name */\n name: string;\n /** Number of correct answers */\n correctCount: number;\n /** Total number of questions */\n totalCount: number;\n /** True if activity has not been completed yet */\n hasNoData?: boolean;\n /** Optional description shown when accordion is expanded */\n description?: string;\n}\n\n/**\n * Complete student performance details data\n */\nexport interface StudentPerformanceDetailsData {\n /** Student name */\n studentName: string;\n /** Main stat: NOTA (grade/score) */\n grade: {\n /** Grade value (e.g., 9.0) */\n value: number;\n /** Performance label (e.g., \"Acima da média\") */\n performanceLabel: string;\n };\n /** Main stat: N° DE QUESTÕES CORRETAS */\n correctQuestions: {\n /** Number of correct answers */\n value: number;\n /** Best result topic name */\n bestResultTopic: string | null;\n };\n /** Main stat: N° DE QUESTÕES INCORRETAS */\n incorrectQuestions: {\n /** Number of incorrect answers */\n value: number;\n /** Hardest topic name */\n hardestTopic: string | null;\n };\n /** Secondary stat: ATIVIDADES REALIZADAS */\n activitiesCompleted: number | string;\n /** Secondary stat: CONTEÚDOS CONCLUÍDOS (deprecated - not displayed) */\n contentsCompleted?: number | string;\n /** Secondary stat: QUESTÕES RESPONDIDAS */\n questionsAnswered: number | string;\n /** Tertiary stat: QUANTIDADE DE ACESSOS */\n accessCount: number | string;\n /** Tertiary stat: TEMPO ONLINE (format: \"00:00:00\") */\n timeOnline: string;\n /** Tertiary stat: ÚLTIMO LOGIN (format: \"00/00/0000 • 00:00h\") */\n lastLogin: string;\n /** Activity progress list */\n activities: ActivityProgress[];\n}\n\n/**\n * Customizable labels for the modal\n */\nexport interface StudentPerformanceDetailsLabels {\n /** Modal title */\n title: string;\n /** Grade card label */\n gradeLabel: string;\n /** Correct questions card label */\n correctQuestionsLabel: string;\n /** Incorrect questions card label */\n incorrectQuestionsLabel: string;\n /** Performance tag label */\n performanceTagLabel: string;\n /** Best result label */\n bestResultLabel: string;\n /** Hardest topic label */\n hardestTopicLabel: string;\n /** Activities completed label */\n activitiesLabel: string;\n /** Contents completed label (deprecated - not displayed) */\n contentsLabel?: string;\n /** Questions answered label */\n questionsLabel: string;\n /** Access count label */\n accessCountLabel: string;\n /** Time online label */\n timeOnlineLabel: string;\n /** Last login label */\n lastLoginLabel: string;\n /** Activities progress section title */\n activitiesProgressTitle: string;\n /** No data message */\n noDataMessage: string;\n /** Activity progress text template (use {correct} and {total} placeholders) */\n activityProgressText: string;\n /** Activity details unavailable message */\n activityDetailsUnavailable: string;\n}\n\n/**\n * Default labels in Portuguese (pt-BR)\n */\nexport const DEFAULT_PERFORMANCE_DETAILS_LABELS: StudentPerformanceDetailsLabels =\n {\n title: 'Desempenho em 7 dias',\n gradeLabel: 'NOTA',\n correctQuestionsLabel: 'N° DE QUESTÕES CORRETAS',\n incorrectQuestionsLabel: 'N° DE QUESTÕES INCORRETAS',\n performanceTagLabel: 'DESEMPENHO',\n bestResultLabel: 'MELHOR RESULTADO',\n hardestTopicLabel: 'MAIOR DIFICULDADE',\n activitiesLabel: 'ATIVIDADES REALIZADAS',\n contentsLabel: 'CONTEÚDOS CONCLUÍDOS',\n questionsLabel: 'QUESTÕES RESPONDIDAS',\n accessCountLabel: 'QUANTIDADE DE ACESSOS',\n timeOnlineLabel: 'TEMPO ONLINE',\n lastLoginLabel: 'ÚLTIMO LOGIN',\n activitiesProgressTitle: 'Desempenho atividades',\n noDataMessage: 'Sem dados ainda! A atividade ainda não foi feita.',\n activityProgressText: '{correct} de {total} corretas',\n activityDetailsUnavailable: 'Detalhes da atividade não disponíveis.',\n };\n\n/**\n * Props for StudentPerformanceDetailsModal component\n */\nexport interface StudentPerformanceDetailsModalProps {\n /** Whether the modal is open */\n isOpen: boolean;\n /** Callback to close the modal */\n onClose: () => void;\n /** Student performance data */\n data: StudentPerformanceDetailsData | null;\n /** Loading state */\n loading?: boolean;\n /** Error message */\n error?: string | null;\n /** Custom labels */\n labels?: Partial<StudentPerformanceDetailsLabels>;\n}\n"],"mappings":";AAwGO,IAAM,qCACX;AAAA,EACE,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,uBAAuB;AAAA,EACvB,yBAAyB;AAAA,EACzB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,yBAAyB;AAAA,EACzB,eAAe;AAAA,EACf,sBAAsB;AAAA,EACtB,4BAA4B;AAC9B;","names":[]}