{
  "componentId": "shadcn:DataTable",
  "projectionState": "actual-normal-entry-source-SSR",
  "sourceRule": "There is no universal upstream DataTable root primitive. The official pinned Base UI data-table guide defines a caller DataTable<TData>({columns,data}) composition using Table and TanStack Table v9. This reference pins @tanstack/react-table/table-core9.3.1, matching that documented major; v8 get*RowModel APIs are not silently substituted. tableFeatures opts into columnFilteringFeature/columnVisibilityFeature/rowPaginationFeature/rowSelectionFeature/rowSortingFeature, registers createFilteredRowModel/createPaginatedRowModel/createSortedRowModel and includesString/text functions. Core row model is automatic. useTable owns derived feature models; separate state/onSortingChange/onColumnFiltersChange/onColumnVisibilityChange/onRowSelectionChange/onPaginationChange can be caller controlled, and each callback receives a value or updater function—not Base UI eventDetails. columns supplies real accessor/display and header/cell renderers; table.FlexRender renders actual definitions. Sorting only applies where enabled and affects row order, not selected IDs. Filters affect the filtered model; pagination shows that model, with native boundary-disabled Previous/Next controls; source default page size10 is explicitly overridden to2 in this reference. Visibility changes cells and empty-state colSpan, not row data. Stable getRowId is deliberately set to payment.id so sorting/filtering/paging cannot relabel a selected row; default index identity is not assumed safe for externally reordered data. Row selection stores ID booleans independently, so hidden/filtered selected rows may remain selected. Select-all-page and select-all-filtered are distinct source APIs, never conflated. Table is a native table, not an interactive ARIA grid or spreadsheet; no roving cell keyboard/editing behavior is promised. Upstream docs basic example does not add every accessible context: reference supplies real caption, scope=col, aria-sort on current sortable email header, named row checkboxes, visible filter label, pagination landmark and polite matching count. No results is a real row with current visible-column colSpan. Loading/fetch/error/retry are explicit caller concerns; simulated error and durable feedback here are local and do not imply server fetching. The separately frozen dashboard-01 DataTable({data}) block uses its own schema, tabs, drag/reorder, chart/detail and actions; it is a supplementary concrete block, not an additional generic widget API or compulsory feature of every table recipe.",
  "keyboardAndFocus": "Native Tab/Enter/Space reach actual filter/header buttons/row checkboxes/page buttons; text editing remains native. Sorting changes aria-sort and row order without moving focus to a row. Disabled boundary page buttons cannot activate. Row selection is native checkbox state and does not turn tr into a command. Hidden columns remove their controls from the tree; filtered/empty/error feedback remains readable. Escape and arrow keys have no invented table selection/activation meaning; composed menus/dialogs retain their own completed contracts.",
  "referenceDecision": "Reference uses the two literal payment records from the official guide plus a clearly named local third record to exercise pagination, USD formatting, stable IDs, page size2 and local error/retry. These dataset/page-size/caption/accessibility choices are caller composition, not visual values inferred from FIG or new upstream exports. The dashboard block is retained in the source inventory for audit; its application-specific drag/detail workflows are outside the generic guide recipe and are explicitly classified as block composition.",
  "protocol": "SCXML observes actual public callbacks and delegates native/source effects, retaining original event/updater identity. SOURCE_GEOMETRY/STATUS and _effect.* are internal reference observations/work, never new DOM events or public props. Independent item/answer, geometry/focus, and table feature authorities are not collapsed into one fake value. HTML comes from the exact normal-entry reference composition using pinned runtime packages; client registrations/observer effects are separately browser tested.",
  "semanticParts": {
    "recipe": {
      "kind": "element",
      "selector": "[data-part=\"data-table\"]",
      "description": "Caller Table/TanStack composition boundary"
    },
    "toolbar": {
      "kind": "element",
      "selector": "[data-part=\"data-table-toolbar\"]",
      "description": "Named native filter/visibility controls"
    },
    "filter": {
      "kind": "element",
      "selector": "[data-part=\"data-table-filter\"]",
      "description": "Controlled native email filter input"
    },
    "table": {
      "kind": "element",
      "selector": "[data-slot=\"table\"]",
      "description": "Native Table delegates all table head/body/row/cell/caption geometry"
    },
    "sort": {
      "kind": "element",
      "selector": "[data-part=\"data-table-sort\"]",
      "description": "Native column action, separate from aria-sort on header"
    },
    "selection": {
      "kind": "element",
      "selector": "[data-part=\"data-table-selection\"]",
      "description": "Native named row selection checkbox keyed by stable payment ID"
    },
    "empty": {
      "kind": "element",
      "selector": "[data-part=\"data-table-empty\"]",
      "description": "Real empty cell spans visible columns"
    },
    "pages": {
      "kind": "element",
      "selector": "[data-part=\"data-table-pages\"]",
      "description": "Named native page actions with actual boundary disabled"
    },
    "status": {
      "kind": "element",
      "selector": "[data-part=\"data-table-status\"]",
      "description": "Polite derived filtered count"
    },
    "error": {
      "kind": "element",
      "selector": "[data-part=\"data-table-error\"]",
      "description": "Caller data failure feedback, separate from empty model"
    },
    "dashboard-block": {
      "kind": "controller",
      "description": "Frozen dashboard-01 application block, source inventory retained; no generic extra DataTable widget or implicit drag/detail requirement."
    }
  },
  "visualStateMapping": {
    "sorting": {
      "source": "TanStack sorting",
      "attribute": "aria-sort on actual th"
    },
    "selected": {
      "source": "row.getIsSelected",
      "attribute": "data-state=selected"
    },
    "empty": {
      "source": "visible derived row model"
    },
    "visibility": {
      "source": "controlled columnVisibility"
    }
  }
}
