analytica-frontend-lib 1.3.69 → 1.3.70
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.js +56 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -54
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42611,22 +42611,6 @@ function buildStudentHoursSlices(hoursByItem) {
|
|
|
42611
42611
|
}
|
|
42612
42612
|
];
|
|
42613
42613
|
}
|
|
42614
|
-
function buildProfessionalHoursSlices(hoursByItem) {
|
|
42615
|
-
return [
|
|
42616
|
-
{
|
|
42617
|
-
label: "Atividades",
|
|
42618
|
-
value: hoursByItem.activities.percentage,
|
|
42619
|
-
colorClass: "bg-success-700",
|
|
42620
|
-
color: "var(--Success-success700, #206F3E)"
|
|
42621
|
-
},
|
|
42622
|
-
{
|
|
42623
|
-
label: "Aulas recomendadas",
|
|
42624
|
-
value: hoursByItem.recommendedLessons.percentage,
|
|
42625
|
-
colorClass: "bg-indicator-positive",
|
|
42626
|
-
color: "var(--Indicator-Indicator-Positive, #F8CC2E)"
|
|
42627
|
-
}
|
|
42628
|
-
];
|
|
42629
|
-
}
|
|
42630
42614
|
var ReportContentLayout = ({
|
|
42631
42615
|
user,
|
|
42632
42616
|
metricBoxes,
|
|
@@ -42688,40 +42672,48 @@ var StudentModalContent2 = ({ data }) => /* @__PURE__ */ (0, import_jsx_runtime1
|
|
|
42688
42672
|
);
|
|
42689
42673
|
var ProfessionalModalContent2 = ({
|
|
42690
42674
|
data
|
|
42691
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime174.
|
|
42692
|
-
|
|
42693
|
-
|
|
42694
|
-
|
|
42695
|
-
|
|
42696
|
-
|
|
42697
|
-
|
|
42698
|
-
|
|
42699
|
-
|
|
42700
|
-
|
|
42701
|
-
|
|
42702
|
-
|
|
42703
|
-
|
|
42704
|
-
|
|
42705
|
-
|
|
42706
|
-
|
|
42707
|
-
|
|
42708
|
-
|
|
42709
|
-
|
|
42710
|
-
|
|
42711
|
-
|
|
42712
|
-
|
|
42713
|
-
|
|
42714
|
-
|
|
42715
|
-
|
|
42716
|
-
|
|
42717
|
-
|
|
42718
|
-
|
|
42719
|
-
|
|
42720
|
-
|
|
42721
|
-
|
|
42722
|
-
|
|
42723
|
-
)
|
|
42724
|
-
|
|
42675
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
42676
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
42677
|
+
UserHeader,
|
|
42678
|
+
{
|
|
42679
|
+
name: data.user.name,
|
|
42680
|
+
school: data.user.school,
|
|
42681
|
+
className: data.user.class ?? "",
|
|
42682
|
+
year: data.user.year
|
|
42683
|
+
}
|
|
42684
|
+
),
|
|
42685
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "grid grid-cols-2 gap-3 sm:grid-cols-3", children: [
|
|
42686
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
42687
|
+
MetricBox,
|
|
42688
|
+
{
|
|
42689
|
+
label: "Tempo na plataforma",
|
|
42690
|
+
value: data.accessData.totalTime
|
|
42691
|
+
}
|
|
42692
|
+
),
|
|
42693
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
42694
|
+
MetricBox,
|
|
42695
|
+
{
|
|
42696
|
+
label: "Quantidade de acessos",
|
|
42697
|
+
value: data.accessData.accessCount
|
|
42698
|
+
}
|
|
42699
|
+
),
|
|
42700
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
42701
|
+
MetricBox,
|
|
42702
|
+
{
|
|
42703
|
+
label: "\xDAltimo acesso",
|
|
42704
|
+
value: data.accessData.lastAccess ?? "\u2014"
|
|
42705
|
+
}
|
|
42706
|
+
)
|
|
42707
|
+
] }),
|
|
42708
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
42709
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(SectionTitle, { children: "Plataforma de acesso" }),
|
|
42710
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(LegendPieCard, { slices: buildPlatformSlices(data.accessByPlatform) })
|
|
42711
|
+
] })
|
|
42712
|
+
] });
|
|
42713
|
+
var LoadingSkeleton8 = ({
|
|
42714
|
+
metricCount,
|
|
42715
|
+
showSecondaryChart = true
|
|
42716
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "flex flex-col gap-4 animate-pulse", children: [
|
|
42725
42717
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "grid grid-cols-2 gap-3 sm:grid-cols-3", children: Array.from({ length: metricCount }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
42726
42718
|
"div",
|
|
42727
42719
|
{
|
|
@@ -42731,8 +42723,10 @@ var LoadingSkeleton8 = ({ metricCount }) => /* @__PURE__ */ (0, import_jsx_runti
|
|
|
42731
42723
|
)) }),
|
|
42732
42724
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "h-5 bg-background-200 rounded w-40 mt-2" }),
|
|
42733
42725
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "h-32 bg-background-200 rounded-xl" }),
|
|
42734
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.
|
|
42735
|
-
|
|
42726
|
+
showSecondaryChart && /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)(import_jsx_runtime174.Fragment, { children: [
|
|
42727
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "h-5 bg-background-200 rounded w-32" }),
|
|
42728
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "h-32 bg-background-200 rounded-xl" })
|
|
42729
|
+
] })
|
|
42736
42730
|
] });
|
|
42737
42731
|
var AccessReportModal = ({
|
|
42738
42732
|
isOpen,
|
|
@@ -42743,9 +42737,17 @@ var AccessReportModal = ({
|
|
|
42743
42737
|
...variantProps
|
|
42744
42738
|
}) => {
|
|
42745
42739
|
let content;
|
|
42746
|
-
const
|
|
42740
|
+
const isStudent = variantProps.variant === "student" /* STUDENT */;
|
|
42741
|
+
const metricCount = isStudent ? 6 : 3;
|
|
42742
|
+
const showSecondaryChart = isStudent;
|
|
42747
42743
|
if (loading) {
|
|
42748
|
-
content = /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
42744
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
42745
|
+
LoadingSkeleton8,
|
|
42746
|
+
{
|
|
42747
|
+
metricCount,
|
|
42748
|
+
showSecondaryChart
|
|
42749
|
+
}
|
|
42750
|
+
);
|
|
42749
42751
|
} else if (error) {
|
|
42750
42752
|
content = /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ErrorContent5, { message: error });
|
|
42751
42753
|
} else if (variantProps.data === null) {
|