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
|
@@ -1966,7 +1966,8 @@ var TablePagination = ({
|
|
|
1966
1966
|
className,
|
|
1967
1967
|
...props
|
|
1968
1968
|
}) => {
|
|
1969
|
-
const startItem = (currentPage - 1) * itemsPerPage + 1;
|
|
1969
|
+
const startItem = totalItems === 0 ? 0 : (currentPage - 1) * itemsPerPage + 1;
|
|
1970
|
+
const endItem = totalItems === 0 ? 0 : Math.min(currentPage * itemsPerPage, totalItems);
|
|
1970
1971
|
const handlePrevious = () => {
|
|
1971
1972
|
if (currentPage > 1) {
|
|
1972
1973
|
onPageChange(currentPage - 1);
|
|
@@ -1996,6 +1997,8 @@ var TablePagination = ({
|
|
|
1996
1997
|
children: [
|
|
1997
1998
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "font-normal text-xs leading-[14px] text-text-800", children: [
|
|
1998
1999
|
startItem,
|
|
2000
|
+
" - ",
|
|
2001
|
+
endItem,
|
|
1999
2002
|
" de ",
|
|
2000
2003
|
totalItems,
|
|
2001
2004
|
" ",
|
|
@@ -3384,6 +3387,9 @@ var ProfileMenuInfo = (0, import_react9.forwardRef)(
|
|
|
3384
3387
|
store: _store,
|
|
3385
3388
|
...props
|
|
3386
3389
|
}, ref) => {
|
|
3390
|
+
if (!schoolName && !classYearName && !schoolYearName) {
|
|
3391
|
+
return null;
|
|
3392
|
+
}
|
|
3387
3393
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3388
3394
|
"div",
|
|
3389
3395
|
{
|
|
@@ -3394,11 +3400,11 @@ var ProfileMenuInfo = (0, import_react9.forwardRef)(
|
|
|
3394
3400
|
children: [
|
|
3395
3401
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "w-16 h-16" }),
|
|
3396
3402
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col ", children: [
|
|
3397
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolName }),
|
|
3398
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row items-center gap-2", children: [
|
|
3399
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: classYearName }),
|
|
3400
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3401
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolYearName })
|
|
3403
|
+
schoolName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolName }),
|
|
3404
|
+
(classYearName || schoolYearName) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row items-center gap-2", children: [
|
|
3405
|
+
classYearName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: classYearName }),
|
|
3406
|
+
classYearName && schoolYearName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: "\u25CF" }),
|
|
3407
|
+
schoolYearName && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolYearName })
|
|
3402
3408
|
] })
|
|
3403
3409
|
] })
|
|
3404
3410
|
]
|