@nivaro/react 0.2.0 → 0.2.1
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/full.css +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.js +34531 -34171
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1223,7 +1223,7 @@ export declare function CustomStatusEditor({ status, invalidate, theme, showExpi
|
|
|
1223
1223
|
className?: string;
|
|
1224
1224
|
}): JSX.Element;
|
|
1225
1225
|
|
|
1226
|
-
export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, enterKey, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
|
|
1226
|
+
export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, 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, enterKey, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
|
|
1227
1227
|
|
|
1228
1228
|
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
1229
1229
|
columns: Column<T>[];
|
|
@@ -1284,6 +1284,9 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
1284
1284
|
* instead of sitting below a page-tall table. Parent must give the card a
|
|
1285
1285
|
* definite height (flex chain with min-h-0). */
|
|
1286
1286
|
fillHeight?: boolean;
|
|
1287
|
+
/** Rendered inside the card, under the rows and the scroll proxy, above
|
|
1288
|
+
* pagination — e.g. the row-colour legend (CollectionBrowserView parity). */
|
|
1289
|
+
footer?: React_2.ReactNode;
|
|
1287
1290
|
selectedIds?: string[];
|
|
1288
1291
|
onSelectionChange?: (ids: string[]) => void;
|
|
1289
1292
|
/** Optional per-row class — e.g. at-risk background tinting. */
|
|
@@ -1925,9 +1928,11 @@ export declare interface FilterDef {
|
|
|
1925
1928
|
/** Defaults to 'select' — every existing FilterDef without this field keeps its current dropdown behavior unchanged. */
|
|
1926
1929
|
type?: 'select' | 'text' | 'range' | 'combobox' | 'date' | 'number';
|
|
1927
1930
|
/** Required when type is 'select' or omitted; static options for 'combobox'; ignored for 'text'/'range'. */
|
|
1931
|
+
/** `count` (optional) shows beside the option in facet dropdowns. */
|
|
1928
1932
|
options?: {
|
|
1929
1933
|
label: string;
|
|
1930
1934
|
value: string;
|
|
1935
|
+
count?: number;
|
|
1931
1936
|
}[];
|
|
1932
1937
|
/** 'combobox' only: server-backed autocomplete. Called (debounced) with the search
|
|
1933
1938
|
* text; overrides `options` when provided. */
|
|
@@ -5051,12 +5056,17 @@ export declare interface QueueRealtimeAdapter {
|
|
|
5051
5056
|
subscribe: (collections: string[], onUpdate: () => void) => () => void;
|
|
5052
5057
|
}
|
|
5053
5058
|
|
|
5054
|
-
export declare function QueueWorklist({ queueId, realtime, renderError }: QueueWorklistProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null;
|
|
5059
|
+
export declare function QueueWorklist({ queueId, realtime, renderError, hideCreateActions }: QueueWorklistProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null;
|
|
5055
5060
|
|
|
5056
5061
|
export declare interface QueueWorklistProps {
|
|
5057
5062
|
queueId: string;
|
|
5058
5063
|
realtime?: QueueRealtimeAdapter;
|
|
5059
5064
|
renderError?: (status: number) => React.ReactNode;
|
|
5065
|
+
/** Hide the toolbar's New and Import-from-file buttons — for hosts whose
|
|
5066
|
+
* own header already offers them (efp-new's New menu). `true` hides them
|
|
5067
|
+
* everywhere; a list hides them only when every collection the queue can
|
|
5068
|
+
* create in is on it (the header covers those, not the rest). */
|
|
5069
|
+
hideCreateActions?: boolean | string[];
|
|
5060
5070
|
}
|
|
5061
5071
|
|
|
5062
5072
|
export declare function QueueWorkloadView({ queueId }: {
|