@fayz-ai/plugin-reports 0.16.14 → 0.16.15
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportPagination.d.ts","sourceRoot":"","sources":["../../src/components/ReportPagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ReportPagination.d.ts","sourceRoot":"","sources":["../../src/components/ReportPagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,EAAE,qBAAqB,qBAmDhH"}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import * as React10 from 'react';
|
|
|
7
7
|
import React10__default, { useState, useEffect } from 'react';
|
|
8
8
|
import { usePluginRuntime, getAnalyticsCards, useTranslation, exportCSV, registerTranslations, createSafeDataProvider, getSupabaseClientOptional, hashRouterAdapter } from '@fayz-ai/core';
|
|
9
9
|
import { useOrganizationStore, askAI, useAgentSurface, QuickActionsButton, AssistantInvite, RightRailPage } from '@fayz-ai/admin';
|
|
10
|
-
import { AnalyticsContextProvider, useModuleLayout, ModulePage, collectFilters, AnalyticsControls, AnalyticsGrid, Card, FilterChip, DataTable, Button, SubpageHeader, useToolbarPanelClose, useAnalyticsCard, useAnalyticsCardRows, ToolbarAction, PageHeaderActions, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, useAnalyticsContext, useAnalyticsAllRows, StatementTable, formatBucket, AnalyticsCard, Dropdown, DropdownTrigger, DropdownContent, DropdownItem, Badge, getLucideIcon,
|
|
10
|
+
import { AnalyticsContextProvider, useModuleLayout, ModulePage, collectFilters, AnalyticsControls, AnalyticsGrid, Card, Input, FilterChip, DataTable, Button, SubpageHeader, useToolbarPanelClose, useAnalyticsCard, useAnalyticsCardRows, ToolbarAction, PageHeaderActions, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, useAnalyticsContext, useAnalyticsAllRows, StatementTable, formatBucket, AnalyticsCard, Dropdown, DropdownTrigger, DropdownContent, DropdownItem, Badge, getLucideIcon, Checkbox } from '@fayz-ai/ui';
|
|
11
11
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
12
|
import { BarChart3, User, Search, ArrowLeft, Printer, RotateCcw, ChevronUp, ChevronDown, EyeOff, Eye, Trash2, Construction, Download, GripVertical, SlidersHorizontal, Radio, ChevronLeft, ChevronRight } from 'lucide-react';
|
|
13
13
|
|
|
@@ -1927,13 +1927,12 @@ function ReportsListPage() {
|
|
|
1927
1927
|
/* @__PURE__ */ jsx("div", { className: "min-w-[10rem] flex-1", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1928
1928
|
/* @__PURE__ */ jsx(Search, { className: "pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
1929
1929
|
/* @__PURE__ */ jsx(
|
|
1930
|
-
|
|
1930
|
+
Input,
|
|
1931
1931
|
{
|
|
1932
|
-
type: "text",
|
|
1933
1932
|
value: search,
|
|
1934
1933
|
onChange: (e) => setSearch(e.target.value),
|
|
1935
1934
|
placeholder: labels.searchReports,
|
|
1936
|
-
className: "
|
|
1935
|
+
className: "h-auto rounded-none border-0 bg-transparent py-1.5 pl-8 pr-3 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"
|
|
1937
1936
|
}
|
|
1938
1937
|
)
|
|
1939
1938
|
] }) }),
|
|
@@ -2036,15 +2035,10 @@ function ReportPagination({ page: page2, pageSize, total, onPageChange, onPageSi
|
|
|
2036
2035
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t px-4 py-3", children: [
|
|
2037
2036
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: total > 0 ? t("reports.pagination.range", { from, to, total }) : t("reports.pagination.empty") }),
|
|
2038
2037
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2039
|
-
/* @__PURE__ */
|
|
2040
|
-
"
|
|
2041
|
-
{
|
|
2042
|
-
|
|
2043
|
-
onChange: (e) => onPageSizeChange(Number(e.target.value)),
|
|
2044
|
-
className: "h-8 rounded-input border border-input bg-card shadow-[inset_0_1px_0_rgb(0_0_0_/0.06)] px-2 text-sm",
|
|
2045
|
-
children: [25, 50, 100].map((size) => /* @__PURE__ */ jsx("option", { value: size, children: t("reports.pagination.perPage", { size }) }, size))
|
|
2046
|
-
}
|
|
2047
|
-
),
|
|
2038
|
+
/* @__PURE__ */ jsxs(Select, { value: String(pageSize), onValueChange: (v) => onPageSizeChange(Number(v)), children: [
|
|
2039
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "h-8 w-auto gap-2 bg-card px-2 shadow-[inset_0_1px_0_rgb(0_0_0_/0.06)]", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
2040
|
+
/* @__PURE__ */ jsx(SelectContent, { children: [25, 50, 100].map((size) => /* @__PURE__ */ jsx(SelectItem, { value: String(size), children: t("reports.pagination.perPage", { size }) }, size)) })
|
|
2041
|
+
] }),
|
|
2048
2042
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2049
2043
|
/* @__PURE__ */ jsx(
|
|
2050
2044
|
Button,
|