@altertable/data-app 0.70.0 → 0.72.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.
Files changed (291) hide show
  1. package/AGENTS.md +7 -1
  2. package/CONTRIBUTING.md +73 -33
  3. package/README.md +23 -26
  4. package/REFERENCE.md +1904 -0
  5. package/dist/chunks/index-5a27erdg.js +54 -0
  6. package/dist/chunks/index-5a27erdg.js.map +10 -0
  7. package/dist/chunks/{index-58kks6a8.js → index-9yxr7nmm.js} +330 -21
  8. package/dist/chunks/index-9yxr7nmm.js.map +17 -0
  9. package/dist/chunks/{index-wjt6cavj.js → index-j5q5n3ra.js} +5 -5
  10. package/dist/chunks/index-j5q5n3ra.js.map +10 -0
  11. package/dist/chunks/{index-22d576sn.js → index-q75zm3a7.js} +3 -3
  12. package/dist/chunks/{index-22d576sn.js.map → index-q75zm3a7.js.map} +3 -3
  13. package/dist/chunks/{index-9zqbrv2z.js → index-vhaec7m5.js} +4 -6
  14. package/dist/chunks/index-vhaec7m5.js.map +10 -0
  15. package/dist/chunks/{index-q1w84fv9.js → index-zp78caex.js} +345 -84
  16. package/dist/chunks/index-zp78caex.js.map +19 -0
  17. package/dist/client/index.js +284 -16
  18. package/dist/client/index.js.map +7 -3
  19. package/dist/core/appearance.js +181 -11
  20. package/dist/core/appearance.js.map +4 -3
  21. package/dist/core/config.js +3 -3
  22. package/dist/core/contract.js +10 -12
  23. package/dist/core/contract.js.map +1 -1
  24. package/dist/core/format.js +1 -1
  25. package/dist/index.js +4 -4
  26. package/dist/index.js.map +1 -1
  27. package/dist/internal.js +418 -0
  28. package/dist/internal.js.map +15 -0
  29. package/dist/server/index.js +102 -0
  30. package/dist/server/index.js.map +10 -0
  31. package/dist/types/client/annotations.d.ts +1 -1
  32. package/dist/types/client/iframe.d.ts +6 -6
  33. package/dist/types/client/index.d.ts +3 -4
  34. package/dist/types/client/location.d.ts +2 -2
  35. package/dist/types/client/logger.d.ts +1 -1
  36. package/dist/types/client/navigation.d.ts +1 -1
  37. package/dist/types/client/transport.d.ts +1 -1
  38. package/dist/types/core/bridge.d.ts +1 -1
  39. package/dist/types/core/config.d.ts +8 -9
  40. package/dist/types/core/filters.d.ts +1 -1
  41. package/dist/types/core/format.d.ts +1 -2
  42. package/dist/types/core/messages.d.ts +3 -3
  43. package/dist/types/core/operation-types.d.ts +1 -1
  44. package/dist/types/core/presentation.d.ts +1 -1
  45. package/dist/types/core/reading.d.ts +1 -1
  46. package/dist/types/internal.d.ts +22 -0
  47. package/dist/types/server/index.d.ts +1 -2
  48. package/docs/app-authoring.md +18 -1
  49. package/docs/client.md +1 -1
  50. package/docs/contract.md +1 -1
  51. package/docs/data-context.md +3 -3
  52. package/docs/embed.md +4 -4
  53. package/docs/formatting-and-appearance.md +1 -1
  54. package/docs/hosted-apps.md +16 -8
  55. package/docs/local-data-apps.md +1 -1
  56. package/docs/react-embed.md +7 -6
  57. package/docs/react.md +6 -6
  58. package/docs/server-bun.md +6 -6
  59. package/docs/stories-and-export.md +3 -3
  60. package/docs/styling.md +2 -2
  61. package/docs/ui.md +6 -6
  62. package/docs/views.md +2 -2
  63. package/docs/widgets.md +4 -4
  64. package/docs/worker.md +4 -4
  65. package/package.json +15 -92
  66. package/THIRD_PARTY_NOTICES +0 -18
  67. package/dist/chunks/index-2ajhmsc4.js +0 -355
  68. package/dist/chunks/index-2ajhmsc4.js.map +0 -13
  69. package/dist/chunks/index-58kks6a8.js.map +0 -13
  70. package/dist/chunks/index-7q99hf1z.js +0 -87
  71. package/dist/chunks/index-7q99hf1z.js.map +0 -10
  72. package/dist/chunks/index-9zqbrv2z.js.map +0 -10
  73. package/dist/chunks/index-cv36cyna.js +0 -180
  74. package/dist/chunks/index-cv36cyna.js.map +0 -10
  75. package/dist/chunks/index-q1w84fv9.js.map +0 -15
  76. package/dist/chunks/index-rew95tbg.js +0 -272
  77. package/dist/chunks/index-rew95tbg.js.map +0 -13
  78. package/dist/chunks/index-vtpygsbq.js +0 -17270
  79. package/dist/chunks/index-vtpygsbq.js.map +0 -126
  80. package/dist/chunks/index-wjt6cavj.js.map +0 -10
  81. package/dist/chunks/index-wss3gd3h.js +0 -319
  82. package/dist/chunks/index-wss3gd3h.js.map +0 -13
  83. package/dist/chunks/index-xzb7sx6g.js +0 -221
  84. package/dist/chunks/index-xzb7sx6g.js.map +0 -12
  85. package/dist/embed/index.js +0 -138
  86. package/dist/embed/index.js.map +0 -12
  87. package/dist/local.js +0 -465
  88. package/dist/local.js.map +0 -16
  89. package/dist/preview.js +0 -1456
  90. package/dist/preview.js.map +0 -17
  91. package/dist/react/embed/index.js +0 -117
  92. package/dist/react/embed/index.js.map +0 -10
  93. package/dist/react/index.js +0 -2890
  94. package/dist/react/index.js.map +0 -23
  95. package/dist/react/ui/index.js +0 -3514
  96. package/dist/react/ui/index.js.map +0 -36
  97. package/dist/server.js +0 -334
  98. package/dist/server.js.map +0 -15
  99. package/dist/types/core/time-interval.d.ts +0 -96
  100. package/dist/types/embed/bootstrap.d.ts +0 -5
  101. package/dist/types/embed/bridge.d.ts +0 -12
  102. package/dist/types/embed/host.d.ts +0 -36
  103. package/dist/types/embed/index.d.ts +0 -14
  104. package/dist/types/embed/navigation.d.ts +0 -6
  105. package/dist/types/embed/runtime-html.d.ts +0 -2
  106. package/dist/types/embed/source.d.ts +0 -16
  107. package/dist/types/embed/sql.d.ts +0 -4
  108. package/dist/types/react/actions.d.ts +0 -53
  109. package/dist/types/react/annotations/AnnotationBar.d.ts +0 -30
  110. package/dist/types/react/annotations/AnnotationControls.d.ts +0 -10
  111. package/dist/types/react/annotations/AnnotationEditor.d.ts +0 -16
  112. package/dist/types/react/annotations/AnnotationMarkers.d.ts +0 -19
  113. package/dist/types/react/annotations/AnnotationSelectionLayer.d.ts +0 -12
  114. package/dist/types/react/annotations/AnnotationTarget.d.ts +0 -9
  115. package/dist/types/react/annotations/AnnotationTooltip.d.ts +0 -9
  116. package/dist/types/react/annotations/AnnotationTrigger.d.ts +0 -10
  117. package/dist/types/react/annotations/annotation-editor-state.d.ts +0 -58
  118. package/dist/types/react/annotations/annotation-screenshot.d.ts +0 -4
  119. package/dist/types/react/annotations/annotation-targets.d.ts +0 -34
  120. package/dist/types/react/annotations/getAnnotationProps.d.ts +0 -17
  121. package/dist/types/react/annotations/styles.d.ts +0 -3
  122. package/dist/types/react/annotations/useAnnotationGeometry.d.ts +0 -22
  123. package/dist/types/react/annotations/useDataAppAnnotations.d.ts +0 -22
  124. package/dist/types/react/app-context.d.ts +0 -3
  125. package/dist/types/react/bindings.d.ts +0 -169
  126. package/dist/types/react/content.d.ts +0 -36
  127. package/dist/types/react/date-formatting.d.ts +0 -12
  128. package/dist/types/react/details.d.ts +0 -46
  129. package/dist/types/react/embed/bridge.d.ts +0 -21
  130. package/dist/types/react/embed/index.d.ts +0 -7
  131. package/dist/types/react/exploration.d.ts +0 -44
  132. package/dist/types/react/hooks.d.ts +0 -113
  133. package/dist/types/react/index.d.ts +0 -78
  134. package/dist/types/react/injectStyles.d.ts +0 -7
  135. package/dist/types/react/mount.d.ts +0 -13
  136. package/dist/types/react/search-suggestions.d.ts +0 -8
  137. package/dist/types/react/source-owner.d.ts +0 -2
  138. package/dist/types/react/style-contract.d.ts +0 -88
  139. package/dist/types/react/style-validation.d.ts +0 -2
  140. package/dist/types/react/styles.d.ts +0 -8
  141. package/dist/types/react/ui/AboutData.d.ts +0 -73
  142. package/dist/types/react/ui/AltertableLogo.d.ts +0 -3
  143. package/dist/types/react/ui/AppFooter.d.ts +0 -6
  144. package/dist/types/react/ui/AppHeader.d.ts +0 -10
  145. package/dist/types/react/ui/AppLayout.d.ts +0 -10
  146. package/dist/types/react/ui/AppScope.d.ts +0 -7
  147. package/dist/types/react/ui/AppToolbar.d.ts +0 -30
  148. package/dist/types/react/ui/AreaChart.d.ts +0 -7
  149. package/dist/types/react/ui/BarChart.d.ts +0 -6
  150. package/dist/types/react/ui/Breakdown.d.ts +0 -13
  151. package/dist/types/react/ui/Button.d.ts +0 -12
  152. package/dist/types/react/ui/ChartLegend.d.ts +0 -32
  153. package/dist/types/react/ui/Checkbox.d.ts +0 -21
  154. package/dist/types/react/ui/CheckboxGroup.d.ts +0 -7
  155. package/dist/types/react/ui/ChoicePicker.d.ts +0 -39
  156. package/dist/types/react/ui/Comparison.d.ts +0 -14
  157. package/dist/types/react/ui/ComposedChart.d.ts +0 -41
  158. package/dist/types/react/ui/ComposedChartLegend.d.ts +0 -9
  159. package/dist/types/react/ui/ContentSkeleton.d.ts +0 -7
  160. package/dist/types/react/ui/DataApp.d.ts +0 -24
  161. package/dist/types/react/ui/DataAppFrame.d.ts +0 -52
  162. package/dist/types/react/ui/DataBoundary.d.ts +0 -14
  163. package/dist/types/react/ui/DataSection.d.ts +0 -14
  164. package/dist/types/react/ui/DataSectionBoundary.d.ts +0 -30
  165. package/dist/types/react/ui/DataTable.d.ts +0 -29
  166. package/dist/types/react/ui/DataValue.d.ts +0 -9
  167. package/dist/types/react/ui/DataViewToast.d.ts +0 -11
  168. package/dist/types/react/ui/DataWidget.d.ts +0 -37
  169. package/dist/types/react/ui/DateDisplay.d.ts +0 -9
  170. package/dist/types/react/ui/DateRangePicker.d.ts +0 -30
  171. package/dist/types/react/ui/DateTimeTooltip.d.ts +0 -10
  172. package/dist/types/react/ui/DimensionPicker.d.ts +0 -13
  173. package/dist/types/react/ui/EmptyState.d.ts +0 -6
  174. package/dist/types/react/ui/ExplorationActionControl.d.ts +0 -60
  175. package/dist/types/react/ui/ExportControl.d.ts +0 -4
  176. package/dist/types/react/ui/FilterActions.d.ts +0 -10
  177. package/dist/types/react/ui/FilterBar.d.ts +0 -3
  178. package/dist/types/react/ui/FunnelChart.d.ts +0 -20
  179. package/dist/types/react/ui/GettingStarted.d.ts +0 -6
  180. package/dist/types/react/ui/GlossaryDefinition.d.ts +0 -7
  181. package/dist/types/react/ui/GlossaryExplanation.d.ts +0 -16
  182. package/dist/types/react/ui/GradientScroll.d.ts +0 -23
  183. package/dist/types/react/ui/Grid.d.ts +0 -12
  184. package/dist/types/react/ui/GridItem.d.ts +0 -7
  185. package/dist/types/react/ui/HelpPopover.d.ts +0 -21
  186. package/dist/types/react/ui/IconButton.d.ts +0 -19
  187. package/dist/types/react/ui/InspectionContext.d.ts +0 -12
  188. package/dist/types/react/ui/InspectionProvider.d.ts +0 -29
  189. package/dist/types/react/ui/JourneyChart.d.ts +0 -10
  190. package/dist/types/react/ui/Kbd.d.ts +0 -7
  191. package/dist/types/react/ui/LineChart.d.ts +0 -7
  192. package/dist/types/react/ui/LiveControl.d.ts +0 -10
  193. package/dist/types/react/ui/Menu.d.ts +0 -13
  194. package/dist/types/react/ui/MetricWidget.d.ts +0 -51
  195. package/dist/types/react/ui/NumberField.d.ts +0 -27
  196. package/dist/types/react/ui/NumberFilterPicker.d.ts +0 -11
  197. package/dist/types/react/ui/PeriodSummary.d.ts +0 -17
  198. package/dist/types/react/ui/PickerField.d.ts +0 -23
  199. package/dist/types/react/ui/PieChart.d.ts +0 -11
  200. package/dist/types/react/ui/PopoverSurface.d.ts +0 -5
  201. package/dist/types/react/ui/PresentStory.d.ts +0 -30
  202. package/dist/types/react/ui/QueryList.d.ts +0 -14
  203. package/dist/types/react/ui/RadioGroup.d.ts +0 -18
  204. package/dist/types/react/ui/Ranking.d.ts +0 -13
  205. package/dist/types/react/ui/RefreshControl.d.ts +0 -9
  206. package/dist/types/react/ui/RequestHint.d.ts +0 -20
  207. package/dist/types/react/ui/RetentionChart.d.ts +0 -27
  208. package/dist/types/react/ui/ScatterChart.d.ts +0 -17
  209. package/dist/types/react/ui/SearchField.d.ts +0 -23
  210. package/dist/types/react/ui/SearchInput.d.ts +0 -10
  211. package/dist/types/react/ui/SearchMatch.d.ts +0 -6
  212. package/dist/types/react/ui/SearchTypeahead.d.ts +0 -15
  213. package/dist/types/react/ui/SectionHeading.d.ts +0 -8
  214. package/dist/types/react/ui/Select.d.ts +0 -22
  215. package/dist/types/react/ui/SelectionMark.d.ts +0 -5
  216. package/dist/types/react/ui/Sheet.d.ts +0 -21
  217. package/dist/types/react/ui/Skeleton.d.ts +0 -8
  218. package/dist/types/react/ui/Stack.d.ts +0 -7
  219. package/dist/types/react/ui/StaticDataApp.d.ts +0 -4
  220. package/dist/types/react/ui/StatusPanel.d.ts +0 -10
  221. package/dist/types/react/ui/TableWidget.d.ts +0 -67
  222. package/dist/types/react/ui/Tabs.d.ts +0 -10
  223. package/dist/types/react/ui/TextContent.d.ts +0 -4
  224. package/dist/types/react/ui/TextWidget.d.ts +0 -20
  225. package/dist/types/react/ui/ThemeSelector.d.ts +0 -12
  226. package/dist/types/react/ui/Toast.d.ts +0 -8
  227. package/dist/types/react/ui/Tooltip.d.ts +0 -23
  228. package/dist/types/react/ui/TooltipSurface.d.ts +0 -3
  229. package/dist/types/react/ui/TrendChart.d.ts +0 -5
  230. package/dist/types/react/ui/UpdatedAt.d.ts +0 -9
  231. package/dist/types/react/ui/VariableBar.d.ts +0 -6
  232. package/dist/types/react/ui/VisualizationWidget.d.ts +0 -43
  233. package/dist/types/react/ui/WidgetDisclosure.d.ts +0 -6
  234. package/dist/types/react/ui/WidgetEvidence.d.ts +0 -12
  235. package/dist/types/react/ui/WidgetViewTabs.d.ts +0 -16
  236. package/dist/types/react/ui/chart-data.d.ts +0 -36
  237. package/dist/types/react/ui/chart-date-axis.d.ts +0 -15
  238. package/dist/types/react/ui/chart-interaction.d.ts +0 -27
  239. package/dist/types/react/ui/chart-primitives.d.ts +0 -22
  240. package/dist/types/react/ui/chart-time.d.ts +0 -19
  241. package/dist/types/react/ui/chartColor.d.ts +0 -2
  242. package/dist/types/react/ui/classNames.d.ts +0 -1
  243. package/dist/types/react/ui/csv-export.d.ts +0 -19
  244. package/dist/types/react/ui/data-context.d.ts +0 -76
  245. package/dist/types/react/ui/data-identifiers.d.ts +0 -32
  246. package/dist/types/react/ui/icons.d.ts +0 -49
  247. package/dist/types/react/ui/index.d.ts +0 -111
  248. package/dist/types/react/ui/journey-flow.d.ts +0 -49
  249. package/dist/types/react/ui/keyboard.d.ts +0 -6
  250. package/dist/types/react/ui/metric-comparison.d.ts +0 -30
  251. package/dist/types/react/ui/metric.d.ts +0 -11
  252. package/dist/types/react/ui/presentation.d.ts +0 -25
  253. package/dist/types/react/ui/search.d.ts +0 -6
  254. package/dist/types/react/ui/searchItems.d.ts +0 -36
  255. package/dist/types/react/ui/shortcuts.d.ts +0 -45
  256. package/dist/types/react/ui/story.d.ts +0 -20
  257. package/dist/types/react/ui/use-chart-scroll-to-end.d.ts +0 -2
  258. package/dist/types/react/ui/useAppAppearance.d.ts +0 -3
  259. package/dist/types/react/ui/useDataAppPresentation.d.ts +0 -3
  260. package/dist/types/react/ui/useSvgId.d.ts +0 -2
  261. package/dist/types/react/ui/variables.d.ts +0 -38
  262. package/dist/types/react/ui/widget-views.d.ts +0 -3
  263. package/dist/types/react/view-control-bar.d.ts +0 -18
  264. package/dist/types/react/view-controls.d.ts +0 -20
  265. package/dist/types/react/view-runtime.d.ts +0 -34
  266. package/dist/types/react/view.d.ts +0 -87
  267. package/dist/types/react/widgets.d.ts +0 -90
  268. package/dist/types/server/local.d.ts +0 -19
  269. package/dist/types/server/preview/host.d.ts +0 -1
  270. package/dist/types/server/preview/index.d.ts +0 -16
  271. package/dist/types/server/reload-channel.d.ts +0 -6
  272. package/dist/worker.js +0 -106
  273. package/examples/starter-data-app/index.tsx +0 -193
  274. package/examples/starter-local-data-app/.bun-version +0 -1
  275. package/examples/starter-local-data-app/.node-version +0 -1
  276. package/examples/starter-local-data-app/.oxfmtrc.json +0 -4
  277. package/examples/starter-local-data-app/.oxlintrc.json +0 -33
  278. package/examples/starter-local-data-app/AGENTS.md +0 -22
  279. package/examples/starter-local-data-app/README.md +0 -54
  280. package/examples/starter-local-data-app/app.ts +0 -28
  281. package/examples/starter-local-data-app/bunfig.toml +0 -2
  282. package/examples/starter-local-data-app/package.json +0 -33
  283. package/examples/starter-local-data-app/src/App.tsx +0 -8
  284. package/examples/starter-local-data-app/src/assets.d.ts +0 -1
  285. package/examples/starter-local-data-app/src/data-context.ts +0 -21
  286. package/examples/starter-local-data-app/src/favicon.svg +0 -13
  287. package/examples/starter-local-data-app/src/index.html +0 -14
  288. package/examples/starter-local-data-app/src/main.tsx +0 -7
  289. package/examples/starter-local-data-app/src/operations.ts +0 -6
  290. package/examples/starter-local-data-app/src/server.ts +0 -6
  291. package/examples/starter-local-data-app/tsconfig.json +0 -21
@@ -1,32 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- export type ChartLegendProps = {
3
- children: ReactNode;
4
- /** Single-row fits up to four cells before expansion, adapting to available width. */
5
- layout?: 'horizontal' | 'vertical' | 'single-row';
6
- align?: 'start' | 'center' | 'end';
7
- /** Optional cell cap, including expansion. Horizontal legends default to two rows. */
8
- maxVisibleItems?: number;
9
- } & Omit<ComponentPropsWithRef<'ul'>, 'children'>;
10
- /** Optional chart key, placed beside any chart with the app's layout components.
11
- * Items describe displayed series or categories; the caller owns series visibility and interactions. */
12
- declare function ChartLegendRoot({ children, layout, align, maxVisibleItems, className, 'aria-label': ariaLabel, ...props }: ChartLegendProps): import("react").JSX.Element;
13
- export type ChartLegendItemProps = ComponentPropsWithRef<'li'> & {
14
- inactive?: boolean;
15
- };
16
- /** Descriptive by default; compose a button inside the item for an authored series toggle. */
17
- declare function ChartLegendItem({ inactive, className, ...props }: ChartLegendItemProps): import("react").JSX.Element;
18
- export type ChartLegendMarkerKind = 'square' | 'bar' | 'line' | 'area' | 'point' | 'slice';
19
- export type ChartLegendMarkerProps = Omit<ComponentPropsWithRef<'svg'>, 'children'> & {
20
- kind: ChartLegendMarkerKind;
21
- };
22
- /** Decorative mark; color accepts public palette tokens or any CSS color.
23
- * Defaults match the shared bar or accent-colored series primitives. */
24
- declare function ChartLegendMarker({ kind, color, className, style, ...props }: ChartLegendMarkerProps): import("react").JSX.Element;
25
- export type ChartLegendLabelProps = ComponentPropsWithRef<'span'>;
26
- declare function ChartLegendLabel({ className, children, title, ...props }: ChartLegendLabelProps): import("react").JSX.Element;
27
- export declare const ChartLegend: typeof ChartLegendRoot & {
28
- Item: typeof ChartLegendItem;
29
- Marker: typeof ChartLegendMarker;
30
- Label: typeof ChartLegendLabel;
31
- };
32
- export {};
@@ -1,21 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export declare const CheckboxGroupContext: import("react").Context<{
3
- values: readonly string[];
4
- disabled?: boolean;
5
- onChange: (value: string, checked: boolean) => void;
6
- } | null>;
7
- export type CheckboxProps = {
8
- label: string;
9
- description?: ReactNode;
10
- disabled?: boolean;
11
- className?: string;
12
- } & ({
13
- value: string;
14
- checked?: never;
15
- onChange?: never;
16
- } | {
17
- value?: never;
18
- checked: boolean;
19
- onChange: (checked: boolean) => void;
20
- });
21
- export declare function Checkbox({ label, description, checked, value, onChange, disabled, className, }: CheckboxProps): import("react").JSX.Element;
@@ -1,7 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- export type CheckboxGroupProps = Omit<ComponentPropsWithRef<'fieldset'>, 'onChange'> & {
3
- label: string;
4
- values: readonly string[];
5
- onChange: (values: string[]) => void;
6
- };
7
- export declare function CheckboxGroup({ label, values, onChange, className, children, disabled, ...props }: CheckboxGroupProps): import("react").JSX.Element;
@@ -1,39 +0,0 @@
1
- import { type ControlLabelPlacement } from './PickerField.js';
2
- import type { ChoiceOption } from '../../core/variables.js';
3
- export type { ChoiceOption } from '../../core/variables.js';
4
- type SharedProps = {
5
- label: string;
6
- labelPlacement?: ControlLabelPlacement;
7
- options: readonly ChoiceOption[];
8
- /** Separate source state, rendered last with a divider and the shared option component. */
9
- missingOption?: ChoiceOption;
10
- disabled?: boolean;
11
- placeholder?: string;
12
- emptyMessage?: string;
13
- /** Known options remain selectable while refreshing; unavailable selected IDs are retained. */
14
- loading?: boolean;
15
- /** Shows failure feedback without removing known options or unavailable selections. */
16
- error?: boolean;
17
- onRetry?: () => void;
18
- };
19
- export type SingleChoicePickerProps = SharedProps & {
20
- selectionMode: 'single';
21
- value: string;
22
- onChange: (value: string) => void;
23
- values?: never;
24
- maxSelected?: never;
25
- emptySelectionLabel?: never;
26
- };
27
- export type MultiChoicePickerProps = SharedProps & {
28
- selectionMode: 'multiple';
29
- values: readonly string[];
30
- onChange: (values: string[]) => void;
31
- /** Positive integer; at capacity, only unselected options are disabled. */
32
- maxSelected: number;
33
- /** Meaning of an empty selection belongs to the caller, e.g. All or Select a value. */
34
- emptySelectionLabel: string;
35
- value?: never;
36
- };
37
- export type ChoicePickerProps = SingleChoicePickerProps | MultiChoicePickerProps;
38
- /** Searchable selection picker with one focus and popup model for single and multiple values. */
39
- export declare function ChoicePicker(props: ChoicePickerProps): import("react").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { type MetricComparison } from './metric-comparison.js';
2
- import type { MetricDefinition } from './metric.js';
3
- import type { MetricReading } from '../../core/reading.js';
4
- type UnboundComparisonProps = MetricComparison & {
5
- label: string;
6
- emphasis?: 'standard' | 'story';
7
- };
8
- export type ComparisonProps = UnboundComparisonProps | {
9
- metric: MetricDefinition;
10
- reading: MetricReading;
11
- emphasis?: 'standard' | 'story';
12
- };
13
- export declare function Comparison(props: ComparisonProps): import("react").JSX.Element | null;
14
- export {};
@@ -1,41 +0,0 @@
1
- import { type ComponentProps } from 'react';
2
- import { ComposedChartLegend as Legend } from './ComposedChartLegend.js';
3
- import { ComposedChart as RechartsComposedChart, ZAxis, ReferenceLine, ReferenceArea, ReferenceDot, Brush, Label, LabelList, ErrorBar } from 'recharts';
4
- import { ChartBar as Bar, ChartDot as Dot, ChartLine as Line, ChartArea as Area, ChartScatter as Scatter, ChartXAxis as XAxis, ChartYAxis as YAxis, ChartGrid as CartesianGrid, ChartTooltip as Tooltip } from './chart-primitives.js';
5
- export type ComposedChartProps<Row = unknown> = Omit<ComponentProps<typeof RechartsComposedChart<Row>>, 'data' | 'title'> & {
6
- /** Displayed rows; series and axes select fields with Recharts dataKey props. */
7
- data: readonly Row[];
8
- /** Describes the measures and scope for assistive technology. */
9
- ariaLabel: string;
10
- };
11
- /** Compose Cartesian series inside VisualizationWidget. Defaults to responsive
12
- * full width and 300px height. Children retain native Recharts props and behavior,
13
- * including stacking, numeric/time axes, missing values, tooltips, and keyboard
14
- * navigation. Match yAxisId on axes and series for different units; use stackId
15
- * for stacks. Preserve missing measures as null and choose connectNulls deliberately.
16
- * Use public chart tokens for series colors. Dataset bindings own
17
- * loading, empty results, evidence, and CSV; this primitive owns only the plot. */
18
- declare function ComposedChartRoot<Row>({ data, ariaLabel, width, height, responsive, className, ...props }: ComposedChartProps<Row>): import("react").JSX.Element;
19
- /** Shared themed series and controls; other children retain native Recharts defaults. */
20
- export declare const ComposedChart: typeof ComposedChartRoot & {
21
- Dot: typeof Dot;
22
- Area: typeof Area;
23
- Bar: typeof Bar;
24
- Line: typeof Line;
25
- Scatter: typeof Scatter;
26
- XAxis: typeof XAxis;
27
- YAxis: typeof YAxis;
28
- ZAxis: typeof ZAxis;
29
- CartesianGrid: typeof CartesianGrid;
30
- Tooltip: typeof Tooltip;
31
- Legend: typeof Legend;
32
- ReferenceLine: typeof ReferenceLine;
33
- ReferenceArea: typeof ReferenceArea;
34
- ReferenceDot: typeof ReferenceDot;
35
- Brush: typeof Brush;
36
- Cell: import("react").FunctionComponent<import("recharts").CellProps>;
37
- Label: typeof Label;
38
- LabelList: typeof LabelList;
39
- ErrorBar: typeof ErrorBar;
40
- };
41
- export {};
@@ -1,9 +0,0 @@
1
- import { type ComponentProps } from 'react';
2
- import { Legend } from 'recharts';
3
- export type ComposedChartLegendProps = ComponentProps<typeof Legend> & {
4
- maxVisibleItems?: number;
5
- };
6
- /** Opt in inside ComposedChart to derive the shared legend from its displayed series.
7
- * Give native series unique IDs when they share a data key.
8
- * Native positioning, sorting, formatters, callbacks, and custom content remain available. */
9
- export declare function ComposedChartLegend({ maxVisibleItems, ...props }: ComposedChartLegendProps): import("react").JSX.Element;
@@ -1,7 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import type { SkeletonContent } from './presentation.js';
3
- export type ContentSkeletonProps = SkeletonContent & Omit<ComponentPropsWithRef<'div'>, 'children'>;
4
- /** A metric, panel, or ranking placeholder to compose in the same layout as live content. */
5
- export declare function ContentSkeleton({ variant, rows, className, ...props }: ContentSkeletonProps): import("react").JSX.Element;
6
- /** Placeholder for a widget body; static headings stay outside it. */
7
- export declare function ContentSkeletonBody({ variant, rows }: SkeletonContent): import("react").JSX.Element;
@@ -1,24 +0,0 @@
1
- import { type ExportDataset, type RegisteredBinding } from '../bindings.js';
2
- import type { DisplayedSnapshot } from '../../core/data-view.js';
3
- import type { StoryFinding } from './story.js';
4
- import { type DataAppBaseProps, type DataAppControlProps } from './DataAppFrame.js';
5
- import { type DeclaredView } from '../view-runtime.js';
6
- import { type DetailContent } from '../details.js';
7
- export type DataAppProps<Data, Input = unknown> = Omit<DataAppBaseProps, 'dataContext'> & DataAppControlProps & {
8
- view: DeclaredView<Data, Input> & {
9
- scope(snapshot: DisplayedSnapshot<Data, Input>): string;
10
- };
11
- /** Show supplied datasets’ record suggestions on the first declared search. Defaults to true. */
12
- showSearchSuggestions?: boolean;
13
- story: (snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & {
14
- evidence: RegisteredBinding;
15
- })[];
16
- datasets: readonly [
17
- ExportDataset<Data, Input>,
18
- ...ExportDataset<Data, Input>[]
19
- ];
20
- /** Detail destinations available to dataset actions and metric record inspection. */
21
- details?: readonly DetailContent<any, any>[];
22
- };
23
- /** Executes the primary view and owns its controls, inspection, exports, and stories. */
24
- export declare function DataApp<Data, Input>(props: DataAppProps<Data, Input>): import("react").JSX.Element;
@@ -1,52 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import type { DisclosedQuery } from '../../core/contract.js';
3
- import type { CsvExport } from './csv-export.js';
4
- import { type DisplayedSnapshot } from '../../core/data-view.js';
5
- import type { DataContext } from './data-context.js';
6
- import type { BoundStory } from './story.js';
7
- import type { SectionResult } from './DataSectionBoundary.js';
8
- export type DataAppBaseProps = {
9
- children: ReactNode;
10
- dataContext: DataContext;
11
- /** Override the declared subtitle; null hides it. */
12
- description?: ReactNode;
13
- toolbarActions?: ReactNode;
14
- footerActions?: ReactNode;
15
- /** Optional source, coverage, or methodology note below the app content.
16
- * Compose prose and inline components; typography and spacing are provided.
17
- * Put data widgets in children and app controls in footerActions. */
18
- footer?: ReactNode;
19
- };
20
- export type DataAppRequest<Data, Input> = SectionResult<Data, Input> & {
21
- queries?: DisclosedQuery[];
22
- /** Actual request activity, including retries with retained data. */
23
- refreshing?: boolean;
24
- cancel?: () => unknown;
25
- searchControls?: ReactNode;
26
- filterControls?: ReactNode;
27
- };
28
- export type DataAppControlProps = {
29
- /** Show declared search controls. Defaults to true; hiding preserves their values. */
30
- showSearch?: boolean;
31
- /** Show declared filter controls, including display options. Defaults to true; hiding preserves their values. */
32
- showFilters?: boolean;
33
- };
34
- export type StaticDataAppProps = DataAppBaseProps & {
35
- csvExport?: CsvExport;
36
- queries?: DisclosedQuery[];
37
- };
38
- export type DataAppProps<Data = unknown, Input = unknown> = (DataAppBaseProps & DataAppControlProps & {
39
- request: DataAppRequest<Data, Input>;
40
- /** Findings are always derived from the result currently visible to the user. */
41
- story: BoundStory<Data, Input>;
42
- /** Export every distinct dataset in the displayed result. */
43
- csvExport: (snapshot: DisplayedSnapshot<Data, Input>) => CsvExport;
44
- queries?: never;
45
- }) | (StaticDataAppProps & {
46
- request?: never;
47
- story?: never;
48
- });
49
- /** Owns the page title, header, gutter, and width; body content uses section headings.
50
- * The primary request binds the toolbar, controls, refresh, and inspection.
51
- * Children always render; compose DataSection boundaries around independently loading content. */
52
- export declare function DataAppFrame<Data, Input>(props: DataAppProps<Data, Input>): import("react").JSX.Element;
@@ -1,14 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- import type { DataView } from '../../core/data-view.js';
3
- export type DataBoundaryProps<T, Input = unknown> = {
4
- view: DataView<T, Input>;
5
- loadingFallback: ReactNode;
6
- emptyFallback: ReactNode;
7
- error: (error: Error) => ReactNode;
8
- staleError?: (error: Error) => ReactNode;
9
- notice?: 'inline' | 'none';
10
- children: (data: T, displayedInput: Input) => ReactNode;
11
- } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
12
- /** Render one request state at a time. Prior content remains readable during an update.
13
- * Feedback ownership is supplied by the containing section. */
14
- export declare function DataBoundary<T, Input>({ view, loadingFallback, emptyFallback, error, staleError, notice, children, className, ...props }: DataBoundaryProps<T, Input>): import("react").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { type ViewContent } from '../content.js';
2
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
3
- import type { EmptyContent } from './presentation.js';
4
- export type DataSectionProps<Data, Input = unknown> = {
5
- content: ViewContent<Data, Input>;
6
- emptyFallback?: EmptyContent;
7
- error?: {
8
- title: ReactNode;
9
- description?: ReactNode;
10
- onRetry?: () => void;
11
- };
12
- label?: string;
13
- } & Omit<ComponentPropsWithRef<'div'>, 'children' | 'content'>;
14
- export declare function DataSection<Data, Input>({ content, ...presentation }: DataSectionProps<Data, Input>): import("react").JSX.Element;
@@ -1,30 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- import type { DataView } from '../../core/data-view.js';
3
- import type { EmptyContent } from './presentation.js';
4
- export type SectionResult<Data, Input> = {
5
- view: DataView<Data, Input>;
6
- refetch: () => unknown;
7
- };
8
- export type DataSectionProps<Data, Input = unknown> = {
9
- children: (data: Data, displayedInput: Input) => ReactNode;
10
- /** Placeholder layout for an initial request; use the ready view's grid without copied values. */
11
- loadingFallback: ReactNode;
12
- error?: {
13
- title: ReactNode;
14
- description?: ReactNode;
15
- onRetry?: () => void;
16
- };
17
- label?: string;
18
- notice?: 'none' | 'inline';
19
- } & ({
20
- result: SectionResult<Data, Input> & {
21
- emptyFallback: EmptyContent;
22
- };
23
- emptyFallback?: EmptyContent;
24
- } | {
25
- result: SectionResult<Data, Input>;
26
- emptyFallback: EmptyContent;
27
- }) & Omit<ComponentPropsWithRef<'div'>, 'children'>;
28
- /** One request boundary for any number of cards. `DataBoundary` exposes the lower-level
29
- * view-state slots internally. The primary DataApp request uses page-level feedback. */
30
- export declare function DataSectionBoundary<Data, Input>({ result, children, emptyFallback, loadingFallback, error, label, notice: feedback, ...props }: DataSectionProps<Data, Input>): import("react").JSX.Element;
@@ -1,29 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- import type { EmptyContent } from './presentation.js';
3
- import { type SearchFieldProps } from './SearchField.js';
4
- export type DataTableSearch = Pick<SearchFieldProps, 'label' | 'placeholder' | 'value' | 'onChange' | 'resetValue' | 'inputProps'> & {
5
- /** Number of available records before filtering or a display limit. */
6
- itemCount: number;
7
- };
8
- export type DataTableProps = ComponentPropsWithRef<'table'> & {
9
- searchable?: DataTableSearch;
10
- };
11
- /** Scrollable native table. Mark quantitative th/td cells with data-type="number";
12
- * the runtime aligns them to the end and uses tabular digits. */
13
- export declare function DataTable({ className, ref, searchable, ...props }: DataTableProps): import("react").JSX.Element;
14
- /** Accepts a fraction of the stated whole, using `formatPercent` semantics. */
15
- export declare function DataTableShare({ value }: {
16
- value: number;
17
- }): import("react").JSX.Element;
18
- export type DataTableEmptyRowProps = EmptyContent & {
19
- colSpan: number;
20
- };
21
- export declare function DataTableEmptyRow({ colSpan, title, description, action, }: DataTableEmptyRowProps): import("react").JSX.Element;
22
- export type DataTableTimestampProps = {
23
- value: string | Date | number;
24
- children?: ReactNode;
25
- timeZone?: string;
26
- locale?: string;
27
- precision?: 'minute' | 'second';
28
- };
29
- export declare function DataTableTimestamp({ value, children, timeZone, locale, precision, }: DataTableTimestampProps): import("react").JSX.Element;
@@ -1,9 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- import type { DataReading } from '../../core/reading.js';
3
- export type DataValueProps<Value> = {
4
- reading: DataReading<Value>;
5
- loadingFallback: ReactNode;
6
- children: (value: Value) => ReactNode;
7
- } & Omit<ComponentPropsWithRef<'span'>, 'children'>;
8
- /** Bind inline content to displayed data. Keep static wording outside this span. */
9
- export declare function DataValue<Value>({ reading, loadingFallback, children, ...props }: DataValueProps<Value>): import("react").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import type { DataView } from '../../core/data-view.js';
3
- export type DataViewToastProps<Data, Input> = {
4
- view: DataView<Data, Input>;
5
- message?: ReactNode;
6
- notice?: ReactNode;
7
- onRetry?: () => void;
8
- };
9
- /** One page-level refresh status. Updating waits briefly; a failed refresh waits
10
- * long enough to avoid interrupting the displayed result before showing retry. */
11
- export declare function DataViewToast<Data, Input>({ view, message, notice, onRetry, }: DataViewToastProps<Data, Input>): import("react").JSX.Element | null;
@@ -1,37 +0,0 @@
1
- import type { InspectionRecords } from './AboutData.js';
2
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
3
- import { type WidgetStatus } from './RequestHint.js';
4
- import type { EmptyContent, BoundWidgetReading } from './presentation.js';
5
- import type { WidgetEvidence } from './WidgetEvidence.js';
6
- type DataWidgetBaseProps = {
7
- title: ReactNode;
8
- /** Document outline level. The widget title keeps the shared widget-heading appearance. */
9
- headingLevel?: 2 | 3 | 4 | 5 | 6;
10
- /** Unique stable target for persisted feedback; overrides automatic evidence identity. */
11
- annotationId?: string;
12
- /** Result count beside the heading. Derive from the displayed result; zero is visible. */
13
- count?: number;
14
- description?: ReactNode;
15
- evidence?: WidgetEvidence;
16
- /** Lazy detail records rendered as the first inspection tab. */
17
- records?: InspectionRecords;
18
- action?: ReactNode;
19
- /** Reserved feedback slot; retain displayed content while refreshing or after failure. */
20
- status?: WidgetStatus;
21
- footer?: ReactNode;
22
- bodyPadding?: 'inset' | 'flush';
23
- } & Omit<ComponentPropsWithRef<'section'>, 'about' | 'title' | 'children'>;
24
- /** Owns loading, empty content, actions, and inspection. Page and sheet mount the same
25
- * body and footer; hold interactive child state above the widget to share it across mounts.
26
- * A bound reading requires evidence; its child renderer runs only for nonempty ready data. */
27
- export type DataWidgetProps<Data = unknown> = DataWidgetBaseProps & ((BoundWidgetReading<Data> & {
28
- children: (data: Data) => ReactNode;
29
- }) | {
30
- reading?: never;
31
- isEmpty?: never;
32
- skeleton?: never;
33
- emptyFallback?: EmptyContent;
34
- children: ReactNode;
35
- });
36
- export declare function DataWidget<Data>(props: DataWidgetProps<Data>): import("react").JSX.Element;
37
- export {};
@@ -1,9 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import { type DateFormat } from '../../core/format.js';
3
- export type DateDisplayProps = {
4
- value: string | Date | number | null | undefined;
5
- /** Calendar dates stay dates; instants require a Date, epoch milliseconds, or an offset-bearing ISO string. */
6
- format?: DateFormat;
7
- } & Omit<ComponentPropsWithRef<'time'>, 'children' | 'dateTime'>;
8
- /** Readable dates with exact-time disclosure for instants; invalid or ambiguous values render as missing. */
9
- export declare function DateDisplay({ value, format, className, ...props }: DateDisplayProps): import("react").JSX.Element;
@@ -1,30 +0,0 @@
1
- import { type ControlLabelPlacement } from './PickerField.js';
2
- import { type ComponentProps, type ReactNode } from 'react';
3
- import { type CalendarDate } from '@internationalized/date';
4
- import { DateRangePicker as AriaDateRangePicker } from 'react-aria-components';
5
- import { type DatePresetId, type DateRange } from '../../core/date-range.js';
6
- export type { DatePresetId, DateRange } from '../../core/date-range.js';
7
- export type DateRangePickerProps = {
8
- label?: string;
9
- labelPlacement?: Exclude<ControlLabelPlacement, 'inline'>;
10
- value: DateRange | null;
11
- onChange: (range: DateRange | null) => void;
12
- minDate?: string;
13
- maxDate?: string;
14
- maxRangeDays?: number;
15
- timeZone?: string;
16
- /** Used to display the reset affordance. The app variable owns the URL and reset meaning. */
17
- resetValue?: DateRange;
18
- isDefault?: boolean;
19
- onReset?: () => void;
20
- onPresetChange?: (id: DatePresetId) => void;
21
- selectedPresetId?: DatePresetId | null;
22
- calendarFooter?: ReactNode;
23
- comparison?: {
24
- enabled: boolean;
25
- range: DateRange | null;
26
- onChange: (enabled: boolean) => void;
27
- };
28
- } & Omit<ComponentProps<typeof AriaDateRangePicker<CalendarDate>>, 'children' | 'value' | 'onChange' | 'minValue' | 'maxValue' | 'isOpen' | 'onOpenChange' | 'defaultValue' | 'defaultOpen'>;
29
- /** The app owns URL state; `dateRangeControl` binds a date variable to this picker. */
30
- export declare function DateRangePicker({ label, labelPlacement, value, onChange, minDate, maxDate, maxRangeDays, timeZone, resetValue, isDefault, onReset, onPresetChange, selectedPresetId, calendarFooter, comparison, className, ...props }: DateRangePickerProps): import("react").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import { type HelpPopoverProps } from './HelpPopover.js';
3
- export type DateTimeTooltipProps = {
4
- date: Date;
5
- timeZone?: string;
6
- locale?: string;
7
- children?: ReactNode;
8
- } & Omit<HelpPopoverProps, 'trigger' | 'triggerLabel' | 'label' | 'children'>;
9
- /** Exact-time disclosure uses the same reporting zone and locale as other date displays. */
10
- export declare function DateTimeTooltip({ date, timeZone, locale, children, panelProps, ...props }: DateTimeTooltipProps): import("react").JSX.Element;
@@ -1,13 +0,0 @@
1
- import type { ControlLabelPlacement } from './PickerField.js';
2
- import type { DimensionOption, DimensionSelection, DimensionValue, DimensionSelectionVariable } from '../../core/dimension.js';
3
- /** Adapts the typed dimension contract to the shared ChoicePicker control. */
4
- export declare function DimensionPicker<T extends DimensionValue>({ filter, labelPlacement, value, onChange, options: suppliedOptions, loading, error, onRetry, }: {
5
- filter: DimensionSelectionVariable<T>;
6
- labelPlacement?: ControlLabelPlacement;
7
- value: DimensionSelection<T>;
8
- onChange: (value: DimensionSelection<T>) => void;
9
- options?: readonly DimensionOption<T>[];
10
- loading?: boolean;
11
- error?: boolean;
12
- onRetry?: () => void;
13
- }): import("react").JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { EmptyContent } from './presentation.js';
2
- export type EmptyStateProps = EmptyContent & {
3
- variant?: 'visual' | 'table';
4
- className?: string;
5
- };
6
- export declare function EmptyState({ title, description, action, variant, className, }: EmptyStateProps): import("react").JSX.Element;
@@ -1,60 +0,0 @@
1
- import { type ComponentRef, type RefObject, type Ref, type KeyboardEvent } from 'react';
2
- /** A resolved action available for one displayed exploration item. */
3
- export type ExplorationAction = {
4
- id: string;
5
- label: string;
6
- onSelect: (trigger?: HTMLElement | SVGElement) => void;
7
- /** Keep this action directly available when other actions require a menu. */
8
- primary?: boolean;
9
- /** Keep utility actions separate from exploration destinations. */
10
- group?: 'clipboard';
11
- };
12
- /** Resolves the actions available for a displayed domain row. */
13
- export type ItemActions<Row> = (row: Row) => readonly ExplorationAction[];
14
- export type ExplorationActionControlProps = {
15
- actions: readonly ExplorationAction[];
16
- /** Identifies the item whose actions the control exposes. */
17
- ariaLabel: string;
18
- /** Use when another item-level hit target already exposes the primary action. */
19
- hidePrimary?: boolean;
20
- /** Own a context menu without adding a second visible or keyboard trigger. */
21
- contextOnly?: boolean;
22
- /** Chart labels use a chevron; other action menus use an ellipsis. */
23
- indicator?: 'ellipsis' | 'chevron';
24
- /** Shares this menu trigger with an item's context and keyboard actions. */
25
- ref?: Ref<HTMLButtonElement>;
26
- className?: string;
27
- };
28
- /**
29
- * Presents exploration actions consistently: a sole action is direct, an explicit
30
- * primary action stays direct, and all available choices remain in the menu.
31
- */
32
- export declare function ExplorationActionControl({ actions, ariaLabel, className, hidePrimary, contextOnly, indicator, ref, }: ExplorationActionControlProps): import("react").JSX.Element | null;
33
- /** Menu content for an item-level trigger composed by a chart or custom control. */
34
- export declare function ExplorationActionMenu({ actions, ariaLabel, triggerRef, placement, }: Pick<ExplorationActionControlProps, 'actions' | 'ariaLabel'> & {
35
- triggerRef?: RefObject<ComponentRef<'button'> | null>;
36
- placement?: 'bottom' | 'bottom start' | 'bottom end';
37
- }): import("react").JSX.Element;
38
- /** Adds clipboard utilities derived only from the displayed chart item. */
39
- export declare function useChartActions(): {
40
- actions(declared: readonly ExplorationAction[], label: string, summary: string): readonly ExplorationAction[];
41
- feedback: import("react").JSX.Element | null;
42
- };
43
- export declare function openExplorationMenu(trigger: RefObject<HTMLButtonElement | null>, event: {
44
- preventDefault: () => void;
45
- currentTarget?: EventTarget | null;
46
- }, point?: {
47
- x: number;
48
- y: number;
49
- }): void;
50
- /** Reuse the item's menu for pointer and keyboard context requests. */
51
- export declare function explorationMenuEvents(trigger: RefObject<HTMLButtonElement | null>): {
52
- onContextMenu: (event: {
53
- preventDefault: () => void;
54
- clientX: number;
55
- clientY: number;
56
- }) => void;
57
- onKeyDown(event: KeyboardEvent<Element>): void;
58
- };
59
- /** The direct action for an item, when the action declaration supplies one. */
60
- export declare function getPrimaryExplorationAction(actions: readonly ExplorationAction[]): ExplorationAction | undefined;
@@ -1,4 +0,0 @@
1
- import { type CsvExport } from './csv-export.js';
2
- export declare function ExportControl({ csv }: {
3
- csv?: CsvExport;
4
- }): import("react").JSX.Element;
@@ -1,10 +0,0 @@
1
- export type FilterActionsProps = {
2
- onClear?: () => void;
3
- } & ({
4
- onApply: () => void;
5
- onCancel: () => void;
6
- } | {
7
- onApply?: never;
8
- onCancel?: never;
9
- });
10
- export declare function FilterActions({ onClear, onApply, onCancel, }: FilterActionsProps): import("react").JSX.Element;
@@ -1,3 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- export type FilterBarProps = ComponentPropsWithRef<'div'>;
3
- export declare function FilterBar({ className, role, 'aria-label': label, ...props }: FilterBarProps): import("react").JSX.Element;
@@ -1,20 +0,0 @@
1
- import type { CountChartProps } from './chart-data.js';
2
- /** Ordered step with a unique, nonblank ID. */
3
- export type FunnelChartStep = {
4
- id: string;
5
- label: string;
6
- };
7
- export type FunnelChartSeries = {
8
- /** Unique, nonblank population ID. */
9
- id: string;
10
- label: string;
11
- /** Finite, nonnegative counts aligned with steps and nonincreasing. */
12
- values: readonly number[];
13
- };
14
- export type FunnelChartProps = CountChartProps & {
15
- steps: readonly FunnelChartStep[];
16
- series: readonly FunnelChartSeries[];
17
- };
18
- /** Conversion columns with previous-step drop-off, normalized to each series' first step.
19
- * Owns series highlighting and portion-specific inspection; compose inside VisualizationWidget. */
20
- export declare function FunnelChart({ steps, series, unit, ariaLabel, className, formatValue, }: FunnelChartProps): import("react").JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { DataContext } from './data-context.js';
2
- /** Query-backed connection state and next steps for a newly created app. Mount within
3
- * `DataAppProvider` and register `connection: connectionCheck(app.queries)` on the server. */
4
- export declare function GettingStarted({ dataContext }: {
5
- dataContext: DataContext;
6
- }): import("react").JSX.Element;
@@ -1,7 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { GlossaryEntry } from './data-context.js';
3
- export type GlossaryDefinitionProps = {
4
- entry: GlossaryEntry;
5
- children?: ReactNode;
6
- };
7
- export declare function GlossaryDefinition({ entry, children, }: GlossaryDefinitionProps): import("react").JSX.Element;
@@ -1,16 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- import type { DisclosedQuery } from '../../core/contract.js';
3
- import type { DataContext, GlossaryEntry } from './data-context.js';
4
- import { type AboutEmpty } from './AboutData.js';
5
- export type GlossaryExplanationProps = {
6
- entry: GlossaryEntry;
7
- empty?: AboutEmpty;
8
- title?: ReactNode;
9
- description?: ReactNode;
10
- visual?: ReactNode;
11
- queries?: DisclosedQuery[];
12
- dataContext?: DataContext;
13
- } & Omit<ComponentPropsWithRef<'button'>, 'children' | 'title'>;
14
- /** Opens the inspect sheet for one glossary term. Prefer a card's evidence slot
15
- * when the surface already has a title, description, and visual. */
16
- export declare function GlossaryExplanation({ entry, empty, title, description, visual, queries, dataContext, className, ...props }: GlossaryExplanationProps): import("react").JSX.Element;