analytica-frontend-lib 1.3.69 → 1.3.71
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/ActivitiesHistory/index.js +12 -6
- package/dist/ActivitiesHistory/index.js.map +1 -1
- package/dist/ActivitiesHistory/index.mjs +12 -6
- package/dist/ActivitiesHistory/index.mjs.map +1 -1
- package/dist/ActivityDetails/index.js +12 -6
- package/dist/ActivityDetails/index.js.map +1 -1
- package/dist/ActivityDetails/index.mjs +12 -6
- package/dist/ActivityDetails/index.mjs.map +1 -1
- package/dist/ActivityFilters/index.js +8 -5
- package/dist/ActivityFilters/index.js.map +1 -1
- package/dist/ActivityFilters/index.mjs +8 -5
- package/dist/ActivityFilters/index.mjs.map +1 -1
- package/dist/ActivityPageLayout/index.js +12 -6
- package/dist/ActivityPageLayout/index.js.map +1 -1
- package/dist/ActivityPageLayout/index.mjs +12 -6
- package/dist/ActivityPageLayout/index.mjs.map +1 -1
- package/dist/AlertManager/index.js +8 -5
- package/dist/AlertManager/index.js.map +1 -1
- package/dist/AlertManager/index.mjs +8 -5
- package/dist/AlertManager/index.mjs.map +1 -1
- package/dist/DropdownMenu/index.d.ts.map +1 -1
- package/dist/DropdownMenu/index.js +8 -5
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs +8 -5
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js +8 -5
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +8 -5
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/RecommendedLessonsHistory/index.js +12 -6
- package/dist/RecommendedLessonsHistory/index.js.map +1 -1
- package/dist/RecommendedLessonsHistory/index.mjs +12 -6
- package/dist/RecommendedLessonsHistory/index.mjs.map +1 -1
- package/dist/Search/index.js +8 -5
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs +8 -5
- package/dist/Search/index.mjs.map +1 -1
- package/dist/SendActivityModal/SendActivityModal.js +8 -5
- package/dist/SendActivityModal/SendActivityModal.js.map +1 -1
- package/dist/SendActivityModal/SendActivityModal.mjs +8 -5
- package/dist/SendActivityModal/SendActivityModal.mjs.map +1 -1
- package/dist/SendActivityModal/index.js +8 -5
- package/dist/SendActivityModal/index.js.map +1 -1
- package/dist/SendActivityModal/index.mjs +8 -5
- package/dist/SendActivityModal/index.mjs.map +1 -1
- package/dist/Table/TablePagination/index.d.ts.map +1 -1
- package/dist/Table/TablePagination/index.js +4 -1
- package/dist/Table/TablePagination/index.js.map +1 -1
- package/dist/Table/TablePagination/index.mjs +4 -1
- package/dist/Table/TablePagination/index.mjs.map +1 -1
- package/dist/Table/index.js +4 -1
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/index.mjs +4 -1
- package/dist/Table/index.mjs.map +1 -1
- package/dist/TableProvider/index.js +12 -6
- package/dist/TableProvider/index.js.map +1 -1
- package/dist/TableProvider/index.mjs +12 -6
- package/dist/TableProvider/index.mjs.map +1 -1
- package/dist/index.js +68 -60
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +68 -60
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -961,7 +961,8 @@ var TablePagination = ({
|
|
|
961
961
|
className,
|
|
962
962
|
...props
|
|
963
963
|
}) => {
|
|
964
|
-
const startItem = (currentPage - 1) * itemsPerPage + 1;
|
|
964
|
+
const startItem = totalItems === 0 ? 0 : (currentPage - 1) * itemsPerPage + 1;
|
|
965
|
+
const endItem = totalItems === 0 ? 0 : Math.min(currentPage * itemsPerPage, totalItems);
|
|
965
966
|
const handlePrevious = () => {
|
|
966
967
|
if (currentPage > 1) {
|
|
967
968
|
onPageChange(currentPage - 1);
|
|
@@ -991,6 +992,8 @@ var TablePagination = ({
|
|
|
991
992
|
children: [
|
|
992
993
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "font-normal text-xs leading-[14px] text-text-800", children: [
|
|
993
994
|
startItem,
|
|
995
|
+
" - ",
|
|
996
|
+
endItem,
|
|
994
997
|
" de ",
|
|
995
998
|
totalItems,
|
|
996
999
|
" ",
|
|
@@ -2379,6 +2382,9 @@ var ProfileMenuInfo = (0, import_react10.forwardRef)(
|
|
|
2379
2382
|
store: _store,
|
|
2380
2383
|
...props
|
|
2381
2384
|
}, ref) => {
|
|
2385
|
+
if (!schoolName && !classYearName && !schoolYearName) {
|
|
2386
|
+
return null;
|
|
2387
|
+
}
|
|
2382
2388
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2383
2389
|
"div",
|
|
2384
2390
|
{
|
|
@@ -2389,11 +2395,11 @@ var ProfileMenuInfo = (0, import_react10.forwardRef)(
|
|
|
2389
2395
|
children: [
|
|
2390
2396
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "w-16 h-16" }),
|
|
2391
2397
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col ", children: [
|
|
2392
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolName }),
|
|
2393
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row items-center gap-2", children: [
|
|
2394
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: classYearName }),
|
|
2395
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2396
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolYearName })
|
|
2398
|
+
schoolName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolName }),
|
|
2399
|
+
(classYearName || schoolYearName) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row items-center gap-2", children: [
|
|
2400
|
+
classYearName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: classYearName }),
|
|
2401
|
+
classYearName && schoolYearName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: "\u25CF" }),
|
|
2402
|
+
schoolYearName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolYearName })
|
|
2397
2403
|
] })
|
|
2398
2404
|
] })
|
|
2399
2405
|
]
|