@nivaro/react 0.1.187 → 0.1.189
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 +23 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +20168 -20071
- package/package.json +1 -1
- package/styles.css +22 -1
package/dist/index.d.ts
CHANGED
|
@@ -827,7 +827,7 @@ export declare function CustomActionButtons({ collection, itemId, draft }: {
|
|
|
827
827
|
draft: Record<string, unknown>;
|
|
828
828
|
}): JSX.Element | null;
|
|
829
829
|
|
|
830
|
-
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, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
|
|
830
|
+
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;
|
|
831
831
|
|
|
832
832
|
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
833
833
|
columns: Column<T>[];
|
|
@@ -901,6 +901,9 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
901
901
|
}>;
|
|
902
902
|
collapsedGroups?: Set<string>;
|
|
903
903
|
onToggleGroup?: (key: string) => void;
|
|
904
|
+
/** Changes whenever a fresh result set lands (e.g. the query's dataUpdatedAt);
|
|
905
|
+
* the body remounts so rows replay their staggered enter animation. */
|
|
906
|
+
enterKey?: string | number;
|
|
904
907
|
}
|
|
905
908
|
|
|
906
909
|
export declare function DateField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
@@ -1823,12 +1826,18 @@ export declare type ItemEditAuthContextValue = {
|
|
|
1823
1826
|
userId: string;
|
|
1824
1827
|
};
|
|
1825
1828
|
|
|
1826
|
-
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, headerExtra, focusField, showItemActions, onDirtyChange, documentTitle, registerSaveHandler, onDuplicate, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
|
|
1829
|
+
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, initialAddendumViewId, onAddendumViewChange, onBack, onSaved, onDeleted, showHeader, headerExtra, focusField, showItemActions, onDirtyChange, documentTitle, registerSaveHandler, onDuplicate, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
|
|
1827
1830
|
|
|
1828
1831
|
export declare interface ItemEditFormProps {
|
|
1829
1832
|
collection: string;
|
|
1830
1833
|
itemId?: string;
|
|
1831
1834
|
layoutSlug?: string;
|
|
1835
|
+
/** Open with this addendum's view selected (the `?addendum=` deep link that
|
|
1836
|
+
* My Work rows, digest lines and notifications carry). */
|
|
1837
|
+
initialAddendumViewId?: string | null;
|
|
1838
|
+
/** Fires whenever the selected view changes: an addendum id, or null for the
|
|
1839
|
+
* current record — hosts mirror it into the URL / tab chrome. */
|
|
1840
|
+
onAddendumViewChange?: (addendumId: string | null) => void;
|
|
1832
1841
|
onBack?: () => void;
|
|
1833
1842
|
onSaved?: (id: string) => void;
|
|
1834
1843
|
onDeleted?: () => void;
|