@vendorflow/components 4.0.2 → 4.0.3

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/lib/App.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import './App.css';
2
+ declare function App(): import("react/jsx-runtime").JSX.Element;
3
+ export default App;
@@ -20,8 +20,9 @@ interface Props<D extends object> {
20
20
  ExpandedRow?: (props: {
21
21
  data: D;
22
22
  }) => JSX.Element;
23
+ onContextMenu?: (evt: React.MouseEvent<HTMLDivElement, MouseEvent>, data: D) => void;
23
24
  }
24
- export declare function DataTable<D extends object>({ title, labels, columns, instance, options, renderActions, renderRowSelectActions, ExpandedRow, ...restOfProps }: Props<D>): JSX.Element;
25
+ export declare function DataTable<D extends object>({ title, labels, columns, instance, options, renderActions, renderRowSelectActions, ExpandedRow, onContextMenu, ...restOfProps }: Props<D>): JSX.Element;
25
26
  export declare function usePluginConfig<D extends object>(options: TableFeatureOptions<D>): PluginHook<D>[];
26
27
  export declare function useDefaultTableInstance<D extends object>({ columns, data, options, initialState, defaultColumn, }: UseDefaultTableInstanceProps<D>): {
27
28
  setColumnWidth: (columnId: string, width: number) => void;
@@ -16,6 +16,7 @@ interface Props<D extends object> {
16
16
  className?: string;
17
17
  measure?: () => void;
18
18
  getRowClassName?: Maybe<(rowId: string) => string>;
19
+ onContextMenu?: (evt: React.MouseEvent<HTMLDivElement, MouseEvent>, data: D) => void;
19
20
  }
20
- export default function BodyRow<D extends object>({ ExpandedComponent, row, rowProps, innerRef, style, className: rootClassName, measure, getRowClassName, }: Props<D>): jsx.JSX.Element;
21
+ export default function BodyRow<D extends object>({ ExpandedComponent, row, rowProps, innerRef, style, className: rootClassName, measure, getRowClassName, onContextMenu, }: Props<D>): jsx.JSX.Element;
21
22
  export {};
@@ -26,6 +26,7 @@ interface Props<D extends object> {
26
26
  totalColumnsWidth: number;
27
27
  width: number | undefined;
28
28
  getRowClassName: Maybe<(rowId: string) => string>;
29
+ onContextMenu?: (evt: React.MouseEvent<HTMLDivElement, MouseEvent>, data: D) => void;
29
30
  }
30
- export default function TableBodyContent<D extends object>({ defaultRowHeight, ExpandedComponent, flexLayoutEnabled, hasScrollbar, hasScrollbarRefCallback, height, isVirtualizeEnabled, noMatchLabel, prepareRow, scrollbarWidth, scrollContainerRef, setScrollLeft, tableBodyRef, tableBodyMeasureRefCallback, tableRows, totalColumnsWidth, width, getRowClassName, }: Props<D>): jsx.JSX.Element;
31
+ export default function TableBodyContent<D extends object>({ defaultRowHeight, ExpandedComponent, flexLayoutEnabled, hasScrollbar, hasScrollbarRefCallback, height, isVirtualizeEnabled, noMatchLabel, prepareRow, scrollbarWidth, scrollContainerRef, setScrollLeft, tableBodyRef, tableBodyMeasureRefCallback, tableRows, totalColumnsWidth, width, getRowClassName, onContextMenu, }: Props<D>): jsx.JSX.Element;
31
32
  export {};