analytica-frontend-lib 1.2.89 → 1.2.90
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/hooks/useStudentsHighlight.d.ts +18 -2
- package/dist/hooks/useStudentsHighlight.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/performance.d.ts +34 -0
- package/dist/types/performance.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -29391,6 +29391,12 @@ var ActivitiesHistory = ({
|
|
|
29391
29391
|
// src/hooks/useStudentsHighlight.ts
|
|
29392
29392
|
import { useState as useState57, useCallback as useCallback37 } from "react";
|
|
29393
29393
|
import { z as z10 } from "zod";
|
|
29394
|
+
var PERIOD_TABS = [
|
|
29395
|
+
{ value: "7_DAYS", label: "7 dias" },
|
|
29396
|
+
{ value: "30_DAYS", label: "30 dias" },
|
|
29397
|
+
{ value: "6_MONTHS", label: "6 meses" },
|
|
29398
|
+
{ value: "1_YEAR", label: "1 ano" }
|
|
29399
|
+
];
|
|
29394
29400
|
var trendDirectionSchema = z10.enum(["up", "down", "stable"]).nullable();
|
|
29395
29401
|
var studentHighlightItemSchema = z10.object({
|
|
29396
29402
|
id: z10.string().uuid(),
|
|
@@ -30678,6 +30684,44 @@ function useSendActivity(config) {
|
|
|
30678
30684
|
handleSubmit
|
|
30679
30685
|
};
|
|
30680
30686
|
}
|
|
30687
|
+
|
|
30688
|
+
// src/types/performance.ts
|
|
30689
|
+
var PERFORMANCE_TAG_CONFIG = {
|
|
30690
|
+
DESTAQUE_DA_TURMA: {
|
|
30691
|
+
label: "Destaque da turma",
|
|
30692
|
+
variant: "success",
|
|
30693
|
+
minPercentage: 90,
|
|
30694
|
+
maxPercentage: 100
|
|
30695
|
+
},
|
|
30696
|
+
ACIMA_DA_MEDIA: {
|
|
30697
|
+
label: "Acima da m\xE9dia",
|
|
30698
|
+
variant: "info",
|
|
30699
|
+
minPercentage: 70,
|
|
30700
|
+
maxPercentage: 89
|
|
30701
|
+
},
|
|
30702
|
+
ABAIXO_DA_MEDIA: {
|
|
30703
|
+
label: "Abaixo da m\xE9dia",
|
|
30704
|
+
variant: "warning",
|
|
30705
|
+
minPercentage: 40,
|
|
30706
|
+
maxPercentage: 69
|
|
30707
|
+
},
|
|
30708
|
+
PONTO_DE_ATENCAO: {
|
|
30709
|
+
label: "Ponto de aten\xE7\xE3o",
|
|
30710
|
+
variant: "error",
|
|
30711
|
+
minPercentage: 0,
|
|
30712
|
+
maxPercentage: 39
|
|
30713
|
+
}
|
|
30714
|
+
};
|
|
30715
|
+
function getPerformanceTag(percentage) {
|
|
30716
|
+
if (percentage >= 90) return "DESTAQUE_DA_TURMA";
|
|
30717
|
+
if (percentage >= 70) return "ACIMA_DA_MEDIA";
|
|
30718
|
+
if (percentage >= 40) return "ABAIXO_DA_MEDIA";
|
|
30719
|
+
return "PONTO_DE_ATENCAO";
|
|
30720
|
+
}
|
|
30721
|
+
function getPerformanceTagConfig(percentage) {
|
|
30722
|
+
const tag = getPerformanceTag(percentage);
|
|
30723
|
+
return PERFORMANCE_TAG_CONFIG[tag] ?? PERFORMANCE_TAG_CONFIG.PONTO_DE_ATENCAO;
|
|
30724
|
+
}
|
|
30681
30725
|
export {
|
|
30682
30726
|
ACTIVITY_AVAILABILITY,
|
|
30683
30727
|
ACTIVITY_FILTER_STATUS_OPTIONS,
|
|
@@ -30772,6 +30816,8 @@ export {
|
|
|
30772
30816
|
NotFound_default as NotFound,
|
|
30773
30817
|
NotificationCard_default as NotificationCard,
|
|
30774
30818
|
NotificationEntityType,
|
|
30819
|
+
PERFORMANCE_TAG_CONFIG,
|
|
30820
|
+
PERIOD_TABS,
|
|
30775
30821
|
PROFILE_ROLES,
|
|
30776
30822
|
PageContainer,
|
|
30777
30823
|
ProfileMenuFooter,
|
|
@@ -30926,6 +30972,8 @@ export {
|
|
|
30926
30972
|
getChatWsUrl,
|
|
30927
30973
|
getClassOptionsFromUserData,
|
|
30928
30974
|
getDeviceType,
|
|
30975
|
+
getPerformanceTag,
|
|
30976
|
+
getPerformanceTagConfig,
|
|
30929
30977
|
getQuestionStatusBadgeConfig,
|
|
30930
30978
|
getRecommendedClassStatusBadgeAction,
|
|
30931
30979
|
getRootDomain,
|