simple-table-core 1.9.9 → 2.0.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/dist/{Animate-8cac4901.js → Animate-af1cbe73.js} +2 -2
- package/dist/Animate-af1cbe73.js.map +1 -0
- package/dist/{DatePicker-07fae6f7.js → DatePicker-b87fba0b.js} +2 -2
- package/dist/DatePicker-b87fba0b.js.map +1 -0
- package/dist/cjs/{Animate-427567ec.js → Animate-ca94ec13.js} +2 -2
- package/dist/cjs/Animate-ca94ec13.js.map +1 -0
- package/dist/cjs/{DatePicker-a94cc464.js → DatePicker-20646e7b.js} +2 -2
- package/dist/cjs/DatePicker-20646e7b.js.map +1 -0
- package/dist/cjs/hooks/useSortableData.d.ts +1 -1
- package/dist/cjs/hooks/useTableAPI.d.ts +2 -1
- package/dist/cjs/{index-830abe68.js → index-fc6a62ca.js} +2 -2
- package/dist/cjs/index-fc6a62ca.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/TableRefType.d.ts +3 -3
- package/dist/hooks/useSortableData.d.ts +1 -1
- package/dist/hooks/useTableAPI.d.ts +2 -1
- package/dist/{index-8cb42869.js → index-74614bb2.js} +2 -2
- package/dist/index-74614bb2.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/types/TableRefType.d.ts +3 -3
- package/package.json +1 -1
- package/dist/Animate-8cac4901.js.map +0 -1
- package/dist/DatePicker-07fae6f7.js.map +0 -1
- package/dist/cjs/Animate-427567ec.js.map +0 -1
- package/dist/cjs/DatePicker-a94cc464.js.map +0 -1
- package/dist/cjs/index-830abe68.js.map +0 -1
- package/dist/index-8cb42869.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-74614bb2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DefaultEmptyState,k as DescIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-
|
|
1
|
+
export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DefaultEmptyState,k as DescIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-74614bb2.js";import"react/jsx-runtime";import"react";
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import UpdateDataProps from "./UpdateCellProps";
|
|
2
2
|
import HeaderObject, { Accessor } from "./HeaderObject";
|
|
3
3
|
import TableRow from "./TableRow";
|
|
4
|
-
import SortColumn from "./SortColumn";
|
|
4
|
+
import SortColumn, { SortDirection } from "./SortColumn";
|
|
5
5
|
import { TableFilterState, FilterCondition } from "./FilterTypes";
|
|
6
6
|
interface SetHeaderRenameProps {
|
|
7
7
|
accessor: Accessor;
|
|
@@ -21,8 +21,8 @@ type TableRefType = {
|
|
|
21
21
|
exportToCSV: (props?: ExportToCSVProps) => void;
|
|
22
22
|
/** Returns the current sort state */
|
|
23
23
|
getSortState: () => SortColumn | null;
|
|
24
|
-
/** Applies a new sort state to the table */
|
|
25
|
-
applySortState: (accessor: Accessor | null) => Promise<void>;
|
|
24
|
+
/** Applies a new sort state to the table. Pass null to clear sort. Direction defaults to cycling through asc -> desc -> null */
|
|
25
|
+
applySortState: (accessor: Accessor | null, direction?: SortDirection) => Promise<void>;
|
|
26
26
|
/** Returns the current filter state */
|
|
27
27
|
getFilterState: () => TableFilterState;
|
|
28
28
|
/** Applies a filter to a specific column */
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-8cac4901.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-07fae6f7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-427567ec.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-a94cc464.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-830abe68.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-8cb42869.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|