simple-table-core 1.2.4 → 1.2.5
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/components/simple-table/SimpleTable.d.ts +1 -1
- package/dist/components/simple-table/TableContent.d.ts +1 -1
- package/dist/components/simple-table/TableHeaderCell.d.ts +1 -1
- package/dist/hooks/useExternalSort.d.ts +1 -1
- package/dist/hooks/useSortableData.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/types/SortColumn.d.ts +6 -0
- package/dist/types/TableHeaderProps.d.ts +1 -1
- package/dist/types/TableHeaderSectionProps.d.ts +1 -1
- package/dist/utils/sortUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/SortConfig.d.ts +0 -11
|
@@ -8,7 +8,7 @@ import TableRefType from "../../types/TableRefType";
|
|
|
8
8
|
import OnNextPage from "../../types/OnNextPage";
|
|
9
9
|
import "../../styles/simple-table.css";
|
|
10
10
|
import { TableFilterState } from "../../types/FilterTypes";
|
|
11
|
-
import
|
|
11
|
+
import SortColumn from "../../types/SortColumn";
|
|
12
12
|
interface SimpleTableProps {
|
|
13
13
|
allowAnimations?: boolean;
|
|
14
14
|
cellUpdateFlash?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import HeaderObject from "../types/HeaderObject";
|
|
2
2
|
import Row from "../types/Row";
|
|
3
|
-
import
|
|
3
|
+
import SortColumn from "../types/SortColumn";
|
|
4
4
|
declare const useSortableData: ({ headers, tableRows, externalSortHandling, onSortChange, rowGrouping, }: {
|
|
5
5
|
headers: HeaderObject[];
|
|
6
6
|
tableRows: Row[];
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { AggregationConfig, AggregationType } from "./types/AggregationType
|
|
|
11
11
|
import type OnSortProps from "./types/OnSortProps";
|
|
12
12
|
import type Row from "./types/Row";
|
|
13
13
|
import type SharedTableProps from "./types/SharedTableProps";
|
|
14
|
-
import type
|
|
14
|
+
import type SortColumn from "./types/SortColumn";
|
|
15
15
|
import type TableCellProps from "./types/TableCellProps";
|
|
16
16
|
import type TableHeaderProps from "./types/TableHeaderProps";
|
|
17
17
|
import TableRefType from "./types/TableRefType";
|
|
@@ -20,4 +20,4 @@ import type Theme from "./types/Theme";
|
|
|
20
20
|
import type UpdateDataProps from "./types/UpdateCellProps";
|
|
21
21
|
import { FilterCondition, TableFilterState } from "./types/FilterTypes";
|
|
22
22
|
export { SimpleTable };
|
|
23
|
-
export type { AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellValue, ColumnEditorPosition, DragHandlerProps, EnumOption, FilterCondition, HeaderObject, OnSortProps, Row, SharedTableProps,
|
|
23
|
+
export type { AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellValue, ColumnEditorPosition, DragHandlerProps, EnumOption, FilterCondition, HeaderObject, OnSortProps, Row, SharedTableProps, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIEventHandler } from "react";
|
|
2
2
|
import { Pinned } from "./Pinned";
|
|
3
|
-
import
|
|
3
|
+
import SortColumn from "./SortColumn";
|
|
4
4
|
import { HeaderObject } from "..";
|
|
5
5
|
import { RefObject } from "react";
|
|
6
6
|
import { ColumnIndices } from "../utils/columnIndicesUtils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import HeaderObject from "../types/HeaderObject";
|
|
2
|
-
import { SortColumn } from "../types/SortConfig";
|
|
3
2
|
import Row from "../types/Row";
|
|
3
|
+
import SortColumn from "../types/SortColumn";
|
|
4
4
|
export declare const handleSort: ({ headers, rows, sortColumn, }: {
|
|
5
5
|
headers: HeaderObject[];
|
|
6
6
|
rows: Row[];
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import HeaderObject from "./HeaderObject";
|
|
2
|
-
export type SortColumn = {
|
|
3
|
-
key: HeaderObject;
|
|
4
|
-
direction: "ascending" | "descending";
|
|
5
|
-
};
|
|
6
|
-
type SortConfig = {
|
|
7
|
-
previous: SortColumn | null;
|
|
8
|
-
current: SortColumn | null;
|
|
9
|
-
next: SortColumn | null;
|
|
10
|
-
};
|
|
11
|
-
export default SortConfig;
|