@nivaro/react 0.3.113 → 0.3.114

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.
@@ -10,7 +10,7 @@ import { noteReplayEvent as Fe, createReplayCheckoutState as Me } from "../share
10
10
  import { emitReplayTap as Ne, setReplayRecorderMode as O, registerReplayCapture as Oe, clipEndOffset as Ue, withClipKind as We } from "../shared/lib/replay-capture.js";
11
11
  import { instrumentConsole as He, instrumentRequests as Ke, redactSecrets as $e } from "../shared/lib/replay-context.js";
12
12
  import { instrumentSocket as Be } from "../shared/lib/replay-socket.js";
13
- const ze = "nivaro-react@0.3.113", Q = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, V = () => typeof navigator > "u" || navigator.onLine !== !1;
13
+ const ze = "nivaro-react@0.3.114", Q = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, V = () => typeof navigator > "u" || navigator.onLine !== !1;
14
14
  function Je(o) {
15
15
  return typeof o.url != "string" || typeof fetch != "function" ? null : (f, u) => {
16
16
  const l = typeof o.getToken == "function" ? o.getToken() : void 0, d = { "Content-Type": "application/json" };
package/dist/index.d.ts CHANGED
@@ -2349,6 +2349,9 @@ export declare interface Column<T = Record<string, unknown>> {
2349
2349
  className?: string;
2350
2350
  headerClassName?: string;
2351
2351
  render?: (row: T, index: number) => React_2.ReactNode;
2352
+ /** A column menu beside the header (e.g. the totals row choice, cbv/ColumnHeaderMenu); it
2353
+ * stops its own clicks, and shows on header hover (`group/hcell`). */
2354
+ headerMenu?: React_2.ReactNode;
2352
2355
  }
2353
2356
 
2354
2357
  export declare type ColumnFormatConfig = {
@@ -2721,7 +2724,7 @@ export declare function dashboardPretendDownOptions(widgets: Array<{
2721
2724
  field?: string | null;
2722
2725
  }>, labels?: Record<string, string | null | undefined>): PretendDownOption[];
2723
2726
 
2724
- export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, onRetry, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, footer, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup, onRowFocus, activeRowKey, rowAriaLabel }: DataTableProps<T>): React_2.JSX.Element;
2727
+ export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, onRetry, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, footer, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup, onRowFocus, activeRowKey, rowAriaLabel, totalsRow }: DataTableProps<T>): React_2.JSX.Element;
2725
2728
 
2726
2729
  export declare interface DataTableProps<T = Record<string, unknown>> {
2727
2730
  columns: Column<T>[];
@@ -2818,6 +2821,15 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
2818
2821
  activeRowKey?: string | null;
2819
2822
  /** Accessible name of a focusable row (e.g. its record id and title). */
2820
2823
  rowAriaLabel?: (row: T) => string | undefined;
2824
+ /**
2825
+ * Totals row (2026-11-14): a footer row that stays at the bottom of the scrolling rows,
2826
+ * one cell per column (`cells[key]`, absent = empty); `label` fills the first empty data
2827
+ * cell ("Σ totals"). Hidden while grouped, loading or empty.
2828
+ */
2829
+ totalsRow?: {
2830
+ cells: Record<string, React_2.ReactNode>;
2831
+ label?: React_2.ReactNode;
2832
+ };
2821
2833
  }
2822
2834
 
2823
2835
  export declare function DateField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;