@prt-ts/fluent-react-table-v2 9.46.8-build.6.0 → 9.46.8-build.7.0
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/index.cjs.js +656 -643
- package/index.esm.js +657 -644
- package/package.json +1 -1
- package/src/lib/components/filters/FilterDrawer.d.ts +1 -5
- package/src/lib/components/grid-header/GridHeader.d.ts +0 -3
- package/src/lib/components/views/ViewsDrawer.d.ts +0 -4
- package/src/lib/helpers/StylesHelper.d.ts +2 -2
- package/src/lib/index.d.ts +17 -1
package/package.json
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { RowData, Table } from '@tanstack/react-table';
|
|
3
|
-
import { ActionType, DrawerTableState } from '../reducer';
|
|
4
2
|
type FilterDrawerProps<TItem extends RowData> = {
|
|
5
|
-
drawerState: DrawerTableState;
|
|
6
|
-
dispatch: React.Dispatch<ActionType<string>>;
|
|
7
3
|
table: Table<TItem>;
|
|
8
4
|
};
|
|
9
|
-
export declare const FilterDrawer: <TItem extends unknown>({
|
|
5
|
+
export declare const FilterDrawer: <TItem extends unknown>({ table }: FilterDrawerProps<TItem>) => import("react/jsx-runtime").JSX.Element;
|
|
10
6
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RowData, Table, TableState } from '@tanstack/react-table';
|
|
3
|
-
import { ActionType, DrawerTableState } from '../reducer';
|
|
4
3
|
type GridHeaderProps<TItem extends RowData> = {
|
|
5
4
|
table: Table<TItem>;
|
|
6
5
|
gridTitle: JSX.Element | React.ReactNode;
|
|
@@ -8,8 +7,6 @@ type GridHeaderProps<TItem extends RowData> = {
|
|
|
8
7
|
globalFilter: string;
|
|
9
8
|
setGlobalFilter: (value: string) => void;
|
|
10
9
|
applyTableState: (tableState: TableState) => boolean;
|
|
11
|
-
drawerState: DrawerTableState;
|
|
12
|
-
dispatch: React.Dispatch<ActionType<string>>;
|
|
13
10
|
};
|
|
14
11
|
export declare const GridHeader: <TItem extends unknown>(props: GridHeaderProps<TItem>) => import("react/jsx-runtime").JSX.Element;
|
|
15
12
|
export {};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { TableView } from '../../types';
|
|
3
2
|
import { RowData, Table, TableState } from '@tanstack/react-table';
|
|
4
|
-
import { ActionType, DrawerTableState } from '../reducer';
|
|
5
3
|
type ViewsDrawerProps<TItem extends RowData> = {
|
|
6
|
-
drawerState: DrawerTableState;
|
|
7
|
-
dispatch: React.Dispatch<ActionType<string>>;
|
|
8
4
|
table: Table<TItem>;
|
|
9
5
|
tableViews: TableView[];
|
|
10
6
|
applyTableState: (tableView: TableState) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Column } from "@tanstack/react-table";
|
|
2
2
|
import { CSSProperties } from "react";
|
|
3
|
-
export declare const getHeaderCellPinningStyles: <TItem extends unknown>(column: Column<TItem, unknown
|
|
4
|
-
export declare const getBodyCellPinningStyles: <TItem extends unknown>(column: Column<TItem, unknown
|
|
3
|
+
export declare const getHeaderCellPinningStyles: <TItem extends unknown>(column: Column<TItem, unknown>, isDragging: boolean, additionalStyles: CSSProperties) => CSSProperties;
|
|
4
|
+
export declare const getBodyCellPinningStyles: <TItem extends unknown>(column: Column<TItem, unknown>, isDragging: boolean, additionalStyles: CSSProperties) => CSSProperties;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ExpandedState, FilterFn, GroupingState, PaginationState, RowData, RowPinningState, RowSelectionState, SortingState, VisibilityState } from "@tanstack/react-table";
|
|
2
3
|
import { TableProps } from "./types";
|
|
4
|
+
import { ActionType, DrawerTableState } from "./components/reducer";
|
|
3
5
|
declare module '@tanstack/table-core' {
|
|
4
6
|
interface FilterFns {
|
|
5
7
|
arrIncludesSome: FilterFn<unknown>;
|
|
@@ -20,6 +22,20 @@ declare module '@tanstack/react-table' {
|
|
|
20
22
|
updateData?: (rowIndex: number, columnId: string, value: unknown) => void;
|
|
21
23
|
onTableViewSave?: TableProps<TData>["onTableViewSave"];
|
|
22
24
|
onTableViewDelete?: TableProps<TData>["onTableViewDelete"];
|
|
25
|
+
drawerState: DrawerTableState;
|
|
26
|
+
dispatchDrawerAction: React.Dispatch<ActionType<string>>;
|
|
27
|
+
setPagination: React.Dispatch<React.SetStateAction<PaginationState>>;
|
|
28
|
+
setSorting: React.Dispatch<React.SetStateAction<SortingState>>;
|
|
29
|
+
setColumnFilters: React.Dispatch<React.SetStateAction<ColumnFiltersState>>;
|
|
30
|
+
setGlobalFilter: React.Dispatch<React.SetStateAction<string>>;
|
|
31
|
+
setGrouping: React.Dispatch<React.SetStateAction<GroupingState>>;
|
|
32
|
+
setRowSelection: React.Dispatch<React.SetStateAction<RowSelectionState>>;
|
|
33
|
+
setColumnVisibility: React.Dispatch<React.SetStateAction<VisibilityState>>;
|
|
34
|
+
setColumnOrder: React.Dispatch<React.SetStateAction<ColumnOrderState>>;
|
|
35
|
+
setExpanded: React.Dispatch<React.SetStateAction<ExpandedState>>;
|
|
36
|
+
setColumnPinning: React.Dispatch<React.SetStateAction<ColumnPinningState>>;
|
|
37
|
+
setColumnSizing: React.Dispatch<React.SetStateAction<ColumnSizingState>>;
|
|
38
|
+
setRowPinning: React.Dispatch<React.SetStateAction<RowPinningState>>;
|
|
23
39
|
}
|
|
24
40
|
}
|
|
25
41
|
export { Table, useSkipper } from "./components";
|