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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance tag types based on percentage ranges
|
|
3
|
+
*/
|
|
4
|
+
export type PerformanceTag = 'DESTAQUE_DA_TURMA' | 'ACIMA_DA_MEDIA' | 'ABAIXO_DA_MEDIA' | 'PONTO_DE_ATENCAO';
|
|
5
|
+
/**
|
|
6
|
+
* Performance tag configuration
|
|
7
|
+
*/
|
|
8
|
+
export interface PerformanceTagConfig {
|
|
9
|
+
label: string;
|
|
10
|
+
variant: 'success' | 'info' | 'warning' | 'error';
|
|
11
|
+
minPercentage: number;
|
|
12
|
+
maxPercentage: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Performance tag configurations by type
|
|
16
|
+
* 90-100%: Destaque da turma (success)
|
|
17
|
+
* 70-89%: Acima da média (info)
|
|
18
|
+
* 40-69%: Abaixo da média (warning)
|
|
19
|
+
* 0-39%: Ponto de atenção (error)
|
|
20
|
+
*/
|
|
21
|
+
export declare const PERFORMANCE_TAG_CONFIG: Record<PerformanceTag, PerformanceTagConfig>;
|
|
22
|
+
/**
|
|
23
|
+
* Get performance tag based on percentage
|
|
24
|
+
* @param percentage - Performance percentage (0-100)
|
|
25
|
+
* @returns Performance tag type
|
|
26
|
+
*/
|
|
27
|
+
export declare function getPerformanceTag(percentage: number): PerformanceTag;
|
|
28
|
+
/**
|
|
29
|
+
* Get performance tag configuration based on percentage
|
|
30
|
+
* @param percentage - Performance percentage (0-100)
|
|
31
|
+
* @returns Performance tag configuration
|
|
32
|
+
*/
|
|
33
|
+
export declare function getPerformanceTagConfig(percentage: number): PerformanceTagConfig;
|
|
34
|
+
//# sourceMappingURL=performance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../../src/types/performance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,cAAc,EACd,oBAAoB,CA0BrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,CAKpE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,oBAAoB,CAGtB"}
|
package/package.json
CHANGED