/** * @suphark/ui/data-table — ตารางข้อมูลบน @tanstack/react-table (ยกจาก supplychain `components/data-table`) * แยก entry เพราะต้องมี peer `@tanstack/react-table` — แอปที่ไม่ใช้ตารางไม่ต้องติดตั้ง * * ```ts * import { DataTable, DataTableColumnHeader, useDataTable } from "@suphark/ui/data-table"; * ``` * state ของตารางใน URL (`useTableSearchParams`) ต้องใช้ next/navigation → อยู่ที่ `@suphark/ui/next` */ export { DataTable, DataTableColumnHeader, DataTableDateRangeFilter, DataTableFacetedFilter, type DataTableMobileSlot, DataTablePagination, type DataTableProps, DataTableToolbar, DataTableViewOptions, type FacetedFilterConfig, type FacetedFilterOption, facetedFilterFn, localeSortingFn, preloadDataTableFacetedFilter, useDataTable, } from "./components/data-table"; export type { DataTableEditable } from "./components/data-table/data-table-editable-cell"; export { DataTableRowActions } from "./components/data-table/data-table-row-actions"; export { currentViewState, type DataTableSavedView, type DataTableViewState, isSameViewState, } from "./components/data-table/data-table-saved-views"; export { DeleteManyButton } from "./components/shared/button/delete-many-button"; export { countActiveResourcePropertyFilters, filterResourcePropertyDefinitions, isResourcePropertyFilterActive, ResourcePropertyFilter, type ResourcePropertyFilterDefinition, type ResourcePropertyFilterState, type ResourcePropertyFilterValue, } from "./components/shared/resource-property-filter";