Skip to main content

gpui_table_runtime/
lib.rs

1//! GPUI-facing runtime contracts for generated and manual table integrations.
2//!
3//! This crate owns row rendering traits, load-more traits, default cell
4//! rendering, filter-shape contracts, and generic generated-filter helpers.
5//! Built-in filter widget shape implementations live in `gpui-table-component`
6//! so this runtime crate can be used without depending on concrete components.
7
8mod cell;
9mod text;
10pub use text::text_cell;
11pub mod generated_filters;
12mod load;
13pub mod ordering;
14mod row;
15pub mod selection;
16pub use ordering::{
17    OrderedTableDelegate, ResolvedOrderedTableDelegate, ResolvedTableColumn, ResolvedTableDelegate,
18    TableRowSelection, set_table_ordering, set_table_resolved_columns,
19    set_table_resolved_sort_columns,
20};
21pub mod shape;
22
23pub use cell::{DisplayCell, FormattedCell, TableCell};
24pub use generated_filters::{
25    FilterEntitiesExt, FilterSidebarData, FilterSidebarGroup, FilterSidebarItem, icon_from_name,
26};
27pub use gpui_table_schema::registry::TableId;
28pub use load::{TableDataLoader, TableLoader};
29pub use row::{
30    TableRowContextMenu, TableRowGeneratedContextMenu, TableRowMeta, TableRowStyle,
31    default_render_cell, default_render_row,
32};
33pub use shape::{
34    ComponentShapeFor, ComponentShapeMetadata, DeclaredComponentShape, McpInput, McpInputShape,
35    McpPrimitiveKind, McpRangeBoundKind,
36};
37
38/// Private module for macro internals. Not part of public API.
39#[doc(hidden)]
40pub mod __private {
41    pub use crate::load::LoadMoreDelegate;
42}