@altertable/data-app 0.76.0 → 0.78.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 (69) hide show
  1. package/CONTRIBUTING.md +3 -0
  2. package/REFERENCE.md +392 -276
  3. package/dist/chunks/contract-gu1rDsV0.js +1588 -0
  4. package/dist/chunks/contract-gu1rDsV0.js.map +1 -0
  5. package/dist/chunks/data-client-BMdL73Ab.js +122 -0
  6. package/dist/chunks/data-client-BMdL73Ab.js.map +1 -0
  7. package/dist/chunks/{date-time-range-value-TE8KCsfV.js → date-time-range-value-D-XfqVTT.js} +28 -31
  8. package/dist/chunks/date-time-range-value-D-XfqVTT.js.map +1 -0
  9. package/dist/chunks/{diagnostics-DhCqGklq.js → diagnostics-CX9SsU79.js} +240 -63
  10. package/dist/chunks/diagnostics-CX9SsU79.js.map +1 -0
  11. package/dist/chunks/record-Cr4Uk1K3.js +9 -0
  12. package/dist/chunks/record-Cr4Uk1K3.js.map +1 -0
  13. package/dist/client/index.js +4 -86
  14. package/dist/client/index.js.map +1 -1
  15. package/dist/core/appearance.js +3 -5
  16. package/dist/core/appearance.js.map +1 -1
  17. package/dist/core/config.js +11 -3
  18. package/dist/core/config.js.map +1 -1
  19. package/dist/core/contract.js +3 -4
  20. package/dist/core/format.js +1 -1
  21. package/dist/internal.js +58 -124
  22. package/dist/internal.js.map +1 -1
  23. package/dist/types/chunks/contract.d.ts +592 -308
  24. package/dist/types/chunks/data-client.d.ts +46 -0
  25. package/dist/types/chunks/date-time-range-value.d.ts +28 -2
  26. package/dist/types/chunks/index.d.ts +65 -53
  27. package/dist/types/client/index.d.ts +4 -3
  28. package/dist/types/core/config.d.ts +16 -6
  29. package/dist/types/core/contract.d.ts +3 -5
  30. package/dist/types/core/format.d.ts +1 -2
  31. package/dist/types/index.d.ts +4 -4
  32. package/dist/types/internal.d.ts +26 -7
  33. package/docs/app-authoring.md +23 -14
  34. package/docs/client.md +14 -48
  35. package/docs/contract.md +58 -56
  36. package/docs/data-context.md +13 -6
  37. package/docs/diagnostics.md +16 -23
  38. package/docs/embed.md +60 -25
  39. package/docs/filters.md +271 -0
  40. package/docs/hosted-apps.md +11 -10
  41. package/docs/layout.md +45 -18
  42. package/docs/local-data-apps.md +5 -6
  43. package/docs/react-embed.md +44 -2
  44. package/docs/react.md +1 -2
  45. package/docs/server-bun.md +8 -5
  46. package/docs/stories-and-export.md +23 -14
  47. package/docs/styling.md +2 -1
  48. package/docs/ui.md +18 -8
  49. package/docs/views.md +63 -26
  50. package/docs/widgets.md +40 -16
  51. package/docs/worker.md +1 -1
  52. package/package.json +1 -5
  53. package/dist/chunks/contract-DsyRYgN_.js +0 -626
  54. package/dist/chunks/contract-DsyRYgN_.js.map +0 -1
  55. package/dist/chunks/contract-kNFYPHRK.js +0 -713
  56. package/dist/chunks/contract-kNFYPHRK.js.map +0 -1
  57. package/dist/chunks/date-time-range-value-TE8KCsfV.js.map +0 -1
  58. package/dist/chunks/diagnostics-DhCqGklq.js.map +0 -1
  59. package/dist/chunks/operation-7tiT4cpJ.js +0 -134
  60. package/dist/chunks/operation-7tiT4cpJ.js.map +0 -1
  61. package/dist/chunks/request-body-H1qPmmTN.js +0 -50
  62. package/dist/chunks/request-body-H1qPmmTN.js.map +0 -1
  63. package/dist/server/index.js +0 -90
  64. package/dist/server/index.js.map +0 -1
  65. package/dist/types/chunks/contract2.d.ts +0 -207
  66. package/dist/types/chunks/date-time-range.d.ts +0 -29
  67. package/dist/types/server/index.d.ts +0 -17
  68. package/docs/server.md +0 -41
  69. package/docs/variables.md +0 -280
package/REFERENCE.md CHANGED
@@ -56,6 +56,9 @@ AbsoluteOrRelativeDateTime (type, @altertable/data-app, @altertable/data-app/con
56
56
  AbsoluteOrRelativeDateTime.anchor: RelativeAnchor [variant 2 of 2]
57
57
  AbsoluteOrRelativeDateTime.offset: RelativeOffset[] [variant 2 of 2]
58
58
  AbsoluteOrRelativeDateTime.…: plus props inherited from built-in
59
+ ActionBuilder (class, @altertable/data-app-react): <Row, Input>
60
+ ActionBuilder.detail: <DestinationInput, Own>(config: DetailAction<Row, Input, DestinationInput, Own>) => ActionDeclaration<Row, Input>
61
+ ActionBuilder.filter: <Patch extends object, const Values extends NoInfer<Patch>, Value extends string = never>(config: ActionCondition<Row> & { label: string; target: FilterTarget<Patch>; values: (row: Row) => Values & NoInfer<Patch>; breakdown?: { ...; } | undefined; }) => ActionDeclaration<...>
59
62
  AnnotationTarget (component, @altertable/data-app-react): (props: AnnotationTargetProps) — A stable feedback target for app-owned content outside the built-in widgets.
60
63
  AnnotationTarget.annotationId: string
61
64
  AnnotationTarget.label: string
@@ -82,26 +85,25 @@ AppearanceSettings.density: 'comfortable' | 'compact' | 'spacious'
82
85
  AppearanceSettings.cornerRadius: 'large' | 'medium' | 'none' | 'small'
83
86
  AppearanceSettings.elevation: 'flat' | 'raised' | 'subtle'
84
87
  AppearanceSettings.typography: { body: string; heading: string; }
85
- AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>>
88
+ AppFilter (type, @altertable/data-app/contract): <Value, Kind> — An app-owned value with one URL representation. Controls never parse or write routes.
89
+ AppFilter.kind: Kind
90
+ AppFilter.label?: string
91
+ AppFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
92
+ AppFilter.urlKeys: readonly string[]
93
+ AppFilter.defaultValue: Value
94
+ AppFilter.clearValue?: Value — Unrestricted value, when this filter can be cleared.
95
+ AppFilter.describe?: ((value: Value) => string)
96
+ AppFilter.history: HistoryMode
97
+ AppFilter.read: (params: URLSearchParams) => Value
98
+ AppFilter.write: (value: Value) => Record<string, string | null>
99
+ AppFilter.valid: (value: Value) => boolean
100
+ AppFilter.same: (left: Value, right: Value) => boolean
101
+ AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>> — Defaults to the shared control icon size so icons follow density tokens.
86
102
  AppIcon.options.name: 'annotate' | 'breakdown' | 'calendar' | 'cancel' | 'check' | 'clearFilters' | 'clock' | 'close' | 'copy' | 'darkTheme' | 'disclosure' | 'displayOptions' | 'error' | 'explore' | ... 22 more ... | 'wrap'
87
103
  AppIcon.options.size?: string | number
88
104
  AppIcon.options.…: plus props inherited from lucide-react, React
89
105
  AppIconName (type, @altertable/data-app-react/ui): = 'annotate' | 'breakdown' | 'calendar' | 'cancel' | 'check' | 'clearFilters' | 'clock' | 'close' | 'copy' | 'darkTheme' | 'disclosure' | 'displayOptions' | 'error' | 'explore' | ... 22 more ... | 'wrap'
90
106
  AppIconProps (type, @altertable/data-app-react/ui): = props listed as AppIcon.options.*
91
- AppVariable (type, @altertable/data-app-react): <Value, Kind> — An app-owned value with one URL representation. Controls never parse or write routes.
92
- AppVariable.kind: Kind
93
- AppVariable.label?: string
94
- AppVariable.presentation?: VariablePresentation
95
- AppVariable.urlKeys: readonly string[]
96
- AppVariable.defaultValue: Value
97
- AppVariable.clearValue?: Value — Unrestricted value, when this variable represents a filter.
98
- AppVariable.describe?: ((value: Value) => string)
99
- AppVariable.history: HistoryMode
100
- AppVariable.read: (params: URLSearchParams) => Value
101
- AppVariable.write: (value: Value) => Record<string, string | null>
102
- AppVariable.valid: (value: Value) => boolean
103
- AppVariable.same: (left: Value, right: Value) => boolean
104
- AppVariableValues (type, @altertable/data-app-react): <Variables> = { [Key in keyof Variables]: Variables[Key] extends DimensionSelectionVariable<infer Value extends DimensionValue> ? DimensionSelection<...> : ...; }
105
107
  AreaChart (component, @altertable/data-app-react/ui): <Row extends AreaChartItem>(props: AreaChartProps<Row>) — Ordered finite samples filled to a zero baseline, including negative values. Samples are equally spaced; supply missing periods explicitly.
106
108
  AreaChart.items: readonly Row[] — Ordered samples; the chart validates IDs and values when rendering.
107
109
  AreaChart.itemActions?: ItemActions<Row> — Actions available for each displayed item. Domain fields remain available to this callback.
@@ -124,6 +126,9 @@ BarChart.ariaLabel: string
124
126
  BarChart.formatValue?: ((value: number) => string)
125
127
  BarChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
126
128
  BarChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
129
+ BarChart.showYAxis?: boolean — Show a vertical value scale beside the bars.
130
+ BarChart.scrollToEnd?: boolean — Automatically reveal the last items after updates. Disable for ranked categories.
131
+ BarChart.valueFormat?: MetricFormat — Formats the vertical axis and, unless overridden, inspected values.
127
132
  BarChartItem (type, @altertable/data-app-react/ui)
128
133
  BarChartItem.id: string
129
134
  BarChartItem.label: string
@@ -135,7 +140,7 @@ booleanFilter.options.key: string
135
140
  booleanFilter.options.label: string
136
141
  booleanFilter.options.defaultValue?: BooleanSelection
137
142
  booleanFilter.options.history?: HistoryMode
138
- booleanFilter.options.presentation?: VariablePresentation
143
+ booleanFilter.options.presentation?: FilterPresentation
139
144
  BooleanFilter (type, @altertable/data-app/contract): = props listed as parseBooleanSelection.filter.*
140
145
  BooleanSelection (type, @altertable/data-app/contract)
141
146
  BooleanSelection.kind: 'all' [variant 1 of 2]
@@ -193,7 +198,28 @@ CheckboxGroup.onChange: (values: string[]) => void
193
198
  CheckboxGroup.…: plus props inherited from React
194
199
  CheckboxGroupProps (type, @altertable/data-app-react/ui): = props listed as CheckboxGroup.*
195
200
  CheckboxProps (type, @altertable/data-app-react/ui): = props listed as Checkbox.*
196
- ChoiceOption (type, @altertable/data-app-react, @altertable/data-app-react/ui)
201
+ choiceFilter (function, @altertable/data-app/contract): <const Options extends readonly ChoiceOption[]>(options: ChoiceOptions<Options>): ChoiceFilter<Options[number]['id']> — One choice that narrows the included data.
202
+ choiceFilter.options.label?: string
203
+ choiceFilter.options.key: string
204
+ choiceFilter.options.history?: HistoryMode
205
+ choiceFilter.options.presentation?: FilterPresentation
206
+ choiceFilter.options.defaultValue: NoInfer<Options[number]['id']>
207
+ choiceFilter.options.options: Options & (Options extends readonly [] ? never : unknown)
208
+ ChoiceFilter (type, @altertable/data-app/contract): <Value>
209
+ ChoiceFilter.kind: 'choice'
210
+ ChoiceFilter.label?: string
211
+ ChoiceFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
212
+ ChoiceFilter.urlKeys: readonly string[]
213
+ ChoiceFilter.defaultValue: Value
214
+ ChoiceFilter.clearValue?: Value — Unrestricted value, when this filter can be cleared.
215
+ ChoiceFilter.describe?: ((value: Value) => string)
216
+ ChoiceFilter.history: HistoryMode
217
+ ChoiceFilter.read: (params: URLSearchParams) => Value
218
+ ChoiceFilter.write: (value: Value) => Record<string, string | null>
219
+ ChoiceFilter.valid: (value: Value) => boolean
220
+ ChoiceFilter.same: (left: Value, right: Value) => boolean
221
+ ChoiceFilter.options: readonly ChoiceOption[]
222
+ ChoiceOption (type, @altertable/data-app/contract, @altertable/data-app-react/ui)
197
223
  ChoiceOption.id: string
198
224
  ChoiceOption.label: string
199
225
  ChoiceOption.description?: string
@@ -217,27 +243,6 @@ ChoicePicker.selectionMode: 'single' [variant 2 of 2]
217
243
  ChoicePicker.value: string [variant 2 of 2]
218
244
  ChoicePicker.onChange: (value: string) => void [variant 2 of 2]
219
245
  ChoicePickerProps (type, @altertable/data-app-react/ui): = props listed as ChoicePicker.*
220
- choiceVariable (function, @altertable/data-app-react): <const Options extends readonly ChoiceOption[], const Presentation extends VariablePresentation | undefined = undefined>(options: Omit<ScalarVariableOptions, 'presentation'> & { presentation?: Presentation; defaultValue: NoInfer<Options[number]['id']>; options: Options & (Options extends readonly […
221
- choiceVariable.options.label?: string
222
- choiceVariable.options.key: string
223
- choiceVariable.options.defaultValue: (string | undefined) & NoInfer<Options[number]['id']>
224
- choiceVariable.options.history?: HistoryMode
225
- choiceVariable.options.presentation?: Presentation
226
- choiceVariable.options.options: Options & (Options extends readonly [] ? never : unknown)
227
- ChoiceVariable (type, @altertable/data-app-react): <Value>
228
- ChoiceVariable.kind: 'choice'
229
- ChoiceVariable.label?: string
230
- ChoiceVariable.presentation?: VariablePresentation
231
- ChoiceVariable.urlKeys: readonly string[]
232
- ChoiceVariable.defaultValue: Value
233
- ChoiceVariable.clearValue?: Value — Unrestricted value, when this variable represents a filter.
234
- ChoiceVariable.describe?: ((value: Value) => string)
235
- ChoiceVariable.history: HistoryMode
236
- ChoiceVariable.read: (params: URLSearchParams) => Value
237
- ChoiceVariable.write: (value: Value) => Record<string, string | null>
238
- ChoiceVariable.valid: (value: Value) => boolean
239
- ChoiceVariable.same: (left: Value, right: Value) => boolean
240
- ChoiceVariable.options: readonly ChoiceOption[]
241
246
  ColumnIdentifier (type, @altertable/data-app-react): <TableId>
242
247
  ColumnIdentifier.table: TableId
243
248
  ColumnIdentifier.name: string
@@ -278,6 +283,7 @@ ComposedChart.LabelList: (props: Props)
278
283
  ComposedChart.ErrorBar: (outsideProps: Props)
279
284
  ComposedChartLegendProps (type, @altertable/data-app-react/ui)
280
285
  ComposedChartLegendProps.maxVisibleItems?: number
286
+ ComposedChartLegendProps.interactive?: boolean — Enable hover emphasis and click to focus one or more series.
281
287
  ComposedChartLegendProps.…: plus props inherited from React, recharts
282
288
  ComposedChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as ComposedChart.*
283
289
  connectionCheck (function, @altertable/data-app/contract): <const Queries extends QueryDefinitions & { connection: QueryDefinitions[string]; }>(queries: CheckedQueries<Queries>): ConnectionOperation — A connectivity probe uses the app's registered connection query.
@@ -287,19 +293,44 @@ ConnectionOperation.input: (value: unknown) => Record<string, never>
287
293
  ConnectionOperation.run: (context: OperationContext, input: Record<string, never>) => Promise<true>
288
294
  ConnectionOperation.checks: readonly [Record<string, never>, ...Record<string, never>[]]
289
295
  ConnectionOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
296
+ ConnectionOperation.filters: {}
290
297
  ConnectionOperation.queryNames: { readonly connection: 'connection'; }
291
- createDataClient (function, @altertable/data-app/client): <Operations extends DataOperations>(options: DataClientOptions<Operations>): DataClient<Operations>; <Operations extends DataOperations>(...args: DataClientOptions<Operations> extends never ? [ options: never ] : [ ]): DataClient<Operations>; (options: TransportOptions): DataClient<DataOperations> — Named HTTP operations, or browser-owned operations executed through an authorized SQL bridge. Named clients derive data from the declared operations' run return types.
292
- createDataClient.options.transport?: DataTransport [variant 1 of 2]
293
- createDataClient.options.endpoint?: string [variant 1 of 2]
294
- createDataClient.options.fetch?: typeof fetch [variant 1 of 2]
295
- createDataClient.options.operations: Operations [variant 2 of 2]
296
- createDataClient.options.lakehouse?: Lakehouse [variant 2 of 2]
297
- createDataClient.options.transport?: DataTransport
298
- createDataClient.options.endpoint?: string
299
- createDataClient.options.fetch?: typeof fetch
298
+ ControlBar (component, @altertable/data-app-react/ui): (props: ControlBarProps) — User-controlled inputs below the page header.
299
+ ControlBar.children: ReactNode
300
+ ControlBar.…: plus props inherited from React
301
+ ControlBarProps (type, @altertable/data-app-react/ui): = props listed as ControlBar.*
302
+ createDataClient (function, @altertable/data-app/client): <Operations extends DataOperations>(options: DataClientOptions<Operations>): DataClient<Operations> — Create a browser operation client.
303
+ createDataClient.options.operations: Operations
304
+ createDataClient.options.lakehouse?: Lakehouse
300
305
  createDataContext (function, @altertable/data-app-react): <const Names extends Record<string, string>>(queryNames: Names): <const Context extends Omit<DataContext, 'glossary'> & { glossary: Record<string, Omit<GlossaryEntry, 'queryNames'> & { queryNames?: Names[keyof Names][]; }>; }>(context: Context) => Context & { ...; } — Bind glossary query references and card evidence to the same registry.
301
- createDataHooks (function, @altertable/data-app-react): <Operations extends DataOperations>(client: DataClient<Operations>): { defineDataView: { <Name extends keyof Operations & string, const Variables extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: { operation: Name; dataContext: DataConte… — Bind declared operations to URL variables, displayed readings, and request feedback.
306
+ createDataHooks (function, @altertable/data-app-react): <Operations extends DataOperations>(client: DataClient<Operations>): { defineView: <Name extends ViewOperationName<Operations>, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: { operation: Name; dataContext: DataContext; describeInput?: ((input: FilterInput<...>) => s… — Bind declared operations to URL filters, displayed readings, and request feedback. The client's operations declare their filters; `<DataApp>` renders their controls.
307
+ createDataHooks.client.filters: Readonly<Record<string, FilterCollection>> — Each operation's filters; views derive their inputs and controls from them.
302
308
  createDataHooks.client.query: <Name extends keyof Operations & string>(this: void, name: Name & (true extends IsUnion<NoInfer<Name>, NoInfer<Name>> ? never : unknown), input: InputOf<Operations[NoInfer<Name>]>, options?: { ...; } | undefined) => Promise<...>
309
+ createDataHooks().defineView: <Name extends ViewOperationName<Operations>, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: ViewDefinition<Name, FilterInput<FiltersOf<Operations[Name]>>, OutputOf<Operations[Name]>> & { operation: Name & (true extends IsUnion<NoInfer<Name>> ? never : unknown); dataC…
310
+ createDataHooks().defineView.definition.operation: Name & (true extends IsUnion<NoInfer<Name>> ? never : unknown)
311
+ createDataHooks().defineView.definition.dataContext: DataContext & Context
312
+ createDataHooks().defineView.definition.describeInput?: ((input: FilterInput<FiltersOf<Operations[Name]>>) => string) — Describe the displayed scope in prose. Defaults to the reporting period and each narrowed filter, such as `Mar 1–7, 2026 UTC · group Alpha`, or `all data`.
313
+ createDataHooks().defineView.definition.isEmpty?: ((data: OutputOf<Operations[Name]>) => boolean) — App-owned semantics: measured zero need not mean an empty result. Defaults to never empty.
314
+ createDataHooks().defineView.definition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
315
+ createDataHooks().defineView().filter: (): FilterTarget<Partial<{ [Key in keyof FiltersOf<Operations[Name]>]: Extract<FiltersOf<Operations[Name]>[Key]['presentation'], { group: 'display'; }> extends never ? FilterValues<...>[Key] : never; }>>
316
+ createDataHooks().defineView().breakdown: <Key extends DisplayChoiceName<Filters>>(key: Key): FiltersOf<Operations[Name]>[Key] extends ChoiceFilter<infer Value extends string> ? BreakdownTarget<Value> : never
317
+ createDataHooks().defineView().dataset: <Row, const Columns extends Record<string, object> = Record<string, object>>(definition: DatasetDefinition<Data, FilterInput<Filters>, Row, Parameters<Context['evidence']>[0]> & { columns: Columns & NonEmptyColumns<Columns>; }): Dataset<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[N…
318
+ createDataHooks().defineView().metric: (definition: Parameters<Context['metric']>[0], select: (data: Data, input: FilterInput<Filters>) => HasPeriod<Filters> extends true ? MetricValues : { current: number; previous?: never; }): Metric<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>>
319
+ createDataHooks().defineView().scope: (snapshot: DisplayedSnapshot<Data, FilterInput<Filters>>): string
320
+ createDataHooks().defineView().content: (render: (state: DataContentState<Data, FilterInput<Filters>>) => ReactNode): ViewContent<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>>
321
+ createDataHooks().defineDetailView: <Name extends keyof Operations & string, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: DetailViewDefinition<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> & { operation: Name; dataContext: Context; }): BoundDetailView<OutputOf<Operations[Name]>, InputOf<Oper…
322
+ createDataHooks().defineDetailView.definition.id: string
323
+ createDataHooks().defineDetailView.definition.title: ReactNode
324
+ createDataHooks().defineDetailView.definition.parseInput: (input: unknown) => InputOf<Operations[Name]> — Validates untrusted navigation input before a detail operation can run.
325
+ createDataHooks().defineDetailView.definition.describeInput?: ((input: InputOf<Operations[Name]>) => string) — Describe the destination's scope. Defaults to the filters its operation reads; supply it to name the record, such as `orders for Customer 042`.
326
+ createDataHooks().defineDetailView.definition.isEmpty?: ((data: OutputOf<Operations[Name]>) => boolean) — App-owned semantics: measured zero need not mean an empty result. Defaults to never empty.
327
+ createDataHooks().defineDetailView.definition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
328
+ createDataHooks().defineDetailView.definition.operation: Name
329
+ createDataHooks().defineDetailView.definition.dataContext: Context
330
+ createDataHooks().defineDetailView().useResult: (input: Input): ViewResult<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>
331
+ createDataHooks().defineDetailView().content: (render: (state: DataContentState<Data, Input>) => ReactNode): DetailContent<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> — Render like view content: displayed data, its input, and the derived scope.
332
+ createDataHooks().defineDetailView().dataset: <Row, const Columns extends Record<string, object> = Record<string, object>>(definition: DatasetDefinition<Data, Input, Row, Parameters<Context['evidence']>[0]> & { columns: Columns & NonEmptyColumns<Columns>; }): Dataset<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Row>
333
+ createDataHooks().defineDetailView().metric: (definition: Parameters<Context['metric']>[0], select: (data: Data, input: Input) => { current: number; previous?: never; }): Metric<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>
303
334
  CsvCell (type, @altertable/data-app-react): = string | number | boolean | null | undefined
304
335
  CsvExport (type, @altertable/data-app-react/ui): All distinct datasets in the displayed result; filename names the download.
305
336
  CsvExport.filename: string
@@ -308,27 +339,28 @@ CsvTable (type, @altertable/data-app-react/ui): One named dataset with ordered c
308
339
  CsvTable.name: string
309
340
  CsvTable.columns: readonly string[]
310
341
  CsvTable.rows: readonly (readonly CsvCell[])[]
311
- DataApp (component, @altertable/data-app-react): <Data, Input>(props: DataAppProps<Data, Input>) — Executes the primary view and owns its controls, inspection, exports, and stories.
342
+ DataApp (component, @altertable/data-app-react): <Data, Input, const SummaryViews extends readonly AnyView[] = [ ]>(props: DataAppProps<Data, Input, SummaryViews>) — Executes the primary view and its summary views, and owns controls, inspection, exports, and stories.
312
343
  DataApp.children: ReactNode
313
344
  DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
314
- DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
315
- DataApp.toolbarActions?: ReactNode
316
- DataApp.footerActions?: ReactNode
345
+ DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states. Embedded surfaces have no toolbar: the host runs page actions through its bridge.
346
+ DataApp.toolbarActions?: ReactNode — Standalone toolbar controls; embedded surfaces omit them.
347
+ DataApp.footerActions?: ReactNode — Standalone footer controls; embedded surfaces omit them.
317
348
  DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
318
349
  DataApp.showSearch?: boolean — Show declared search controls. Defaults to true; hiding preserves their values.
319
350
  DataApp.showFilters?: boolean — Show declared filter controls, including display options. Defaults to true; hiding preserves their values.
320
- DataApp.view: DeclaredView<Data, Input, unknown> & { scope(snapshot: DisplayedSnapshot<Data, Input>): string; }
351
+ DataApp.view: DataAppView<Data, Input> — The headline view. `<DataApp>` renders the controls for every filter its client's operations read and owns their URL state.
352
+ DataApp.summaryViews?: SummaryViews — Other views that the story and CSV export read, sharing `view`’s data context. They load with `view` instead of waiting for their sections to near the viewport.
321
353
  DataApp.showSearchSuggestions?: boolean — Show supplied datasets’ record suggestions on the first declared search. Defaults to true.
322
- DataApp.story?: ((snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & { evidence: RegisteredBinding; })[]) — Omit to leave presentation out of the toolbar.
323
- DataApp.datasets?: readonly [ExportDataset<Data, Input>, ...ExportDataset<Data, Input>[]] — Omit to leave CSV export out of the toolbar.
354
+ DataApp.story?: ((snapshot: DisplayedSnapshot<Data, Input>, ...summaries: { [Index in keyof SummaryViews]: SnapshotOf<SummaryViews[Index]>; }) => StoryFindings) — Omit to leave presentation out of the toolbar. Receives `view`’s displayed snapshot, then one per summary view in `summaryViews` order.
355
+ DataApp.datasets?: readonly [ExportDataset<Data, Input> | ExportOf<SummaryViews[number]>, ...(ExportDataset<Data, Input> | ExportOf<...>)[]] — Omit to leave CSV export out of the toolbar. Datasets may belong to `view` or a summary view.
324
356
  DataApp.details?: readonly DetailContent<any, any>[] — Detail destinations available to dataset actions and metric record inspection.
325
357
  DataApp (component, @altertable/data-app-react/ui): (props: DataAppProps) — Setup and static screens; fetched data uses the declared-view DataApp.
326
358
  DataApp.children: ReactNode
327
359
  DataApp.dataContext: DataContext
328
360
  DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
329
- DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
330
- DataApp.toolbarActions?: ReactNode
331
- DataApp.footerActions?: ReactNode
361
+ DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states. Embedded surfaces have no toolbar: the host runs page actions through its bridge.
362
+ DataApp.toolbarActions?: ReactNode — Standalone toolbar controls; embedded surfaces omit them.
363
+ DataApp.footerActions?: ReactNode — Standalone footer controls; embedded surfaces omit them.
332
364
  DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
333
365
  DataApp.csvExport?: CsvExport
334
366
  DataApp.queries?: DisclosedQuery[]
@@ -346,20 +378,24 @@ DataAppDefinition.description: string — Explain what the app helps readers exp
346
378
  DataAppDefinition.appearance?: AppearanceOptions — Omit to use the standard appearance.
347
379
  DataAppDefinition.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
348
380
  DataAppDefinition.queries: QuerySnapshot<Queries>
349
- DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionVariable<...>
350
- DataAppDefinition.defineOperation: <Input, Output>(operation: OperationDefinition<Input, Output, Queries>) => Omit<DataOperation<Input, Output>, 'queryNames'> & { ...; }
381
+ DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionFilter<...>
382
+ DataAppDefinition.defineOperation: <Input, Output, const Filters extends FilterCollection = {}>(operation: InputOperationDefinition<Input, Output, Queries, Filters>): DefinedOperation<WithFilterInput<Filters, Input>, Output, Queries, keyof Filters extends never ? undefined : Filters> — Parse a destination's own input, such as a record id, and list valid `checks`. Declare `filters` too when it reads the displayed scope.
383
+ DataAppDefinition.defineOperation: <const Filters extends FilterCollection = {}, Output = unknown>(operation: FilterOperationDefinition<Filters, Output, Queries>): DefinedOperation<FilterInput<Filters>, Output, Queries, Filters>
384
+ DataAppDefinition.defineOperations: <const Operations extends DataOperations>(operations: Operations) => DataAppOperationRegistry<Operations> — Bind a named registry to these queries and derive its client and filters.
351
385
  DataAppError (class, @altertable/data-app/client)
352
386
  DataAppError.code: string
353
387
  DataAppError.requestId?: string
354
388
  DataAppError.…: plus props inherited from built-in
355
- DataAppProps (type, @altertable/data-app-react): <Data, Input> = props listed as DataApp.*
389
+ DataAppOperationRegistry (type, @altertable/data-app, @altertable/data-app/config): <Operations>
390
+ DataAppOperationRegistry.createDataClient: () => DataClient<Operations> — Run operations in the browser using its installed query bridge.
391
+ DataAppProps (type, @altertable/data-app-react): <Data, Input, SummaryViews> = props listed as DataApp.*
356
392
  DataAppProps (type, @altertable/data-app-react/ui)
357
393
  DataAppProps.children: ReactNode
358
394
  DataAppProps.dataContext: DataContext
359
395
  DataAppProps.description?: ReactNode — Override the declared subtitle; null hides it.
360
- DataAppProps.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
361
- DataAppProps.toolbarActions?: ReactNode
362
- DataAppProps.footerActions?: ReactNode
396
+ DataAppProps.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states. Embedded surfaces have no toolbar: the host runs page actions through its bridge.
397
+ DataAppProps.toolbarActions?: ReactNode — Standalone toolbar controls; embedded surfaces omit them.
398
+ DataAppProps.footerActions?: ReactNode — Standalone footer controls; embedded surfaces omit them.
363
399
  DataAppProps.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
364
400
  DataAppProps.csvExport?: CsvExport
365
401
  DataAppProps.queries?: DisclosedQuery[]
@@ -376,8 +412,10 @@ DataAppStylesOptions (type, @altertable/data-app-react)
376
412
  DataAppStylesOptions.document?: Document — Defaults to the current browser document.
377
413
  DataAppStylesOptions.nonce?: string — Nonce permitted by the document's style-src CSP.
378
414
  DataAppStyleToken (type, @altertable/data-app-react, @altertable/data-app-react/ui): = '--atbl-accent' | '--atbl-annotation-accent' | '--atbl-annotation-accent-hover' | '--atbl-annotation-highlight' | '--atbl-annotation-on-accent' | '--atbl-backdrop' | '--atbl-background' | ... 86 more ... | '--atbl-type-widget-size'
415
+ DataAppView (type, @altertable/data-app-react): <Data, Input> — A declared data or time view that `<DataApp>` can run and describe.
416
+ DataAppView.scope: (snapshot: DisplayedSnapshot<Data, Input>) => string
379
417
  DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
380
- DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Browser operations and named-operation delivery are mutually exclusive.
418
+ DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Execute declared operations in the browser against registered query IDs.
381
419
  DataContext (type, @altertable/data-app-react)
382
420
  DataContext.description: ReactNode
383
421
  DataContext.glossary: Record<string, GlossaryEntry>
@@ -391,7 +429,8 @@ DataIdentifierDefinition.name: string
391
429
  DataIdentifierDefinition.kind: 'table' [variant 2 of 2]
392
430
  DataIdentifierDefinition.catalog: string [variant 2 of 2]
393
431
  DataIdentifierDefinition.schema: string [variant 2 of 2]
394
- DataOperation (type, @altertable/data-app/contract): <Input, Output> — The input parser runs in the operation executor's runtime: server for HTTP apps, browser for bundle apps. Browser validation does not replace backend authorization or query limits.
432
+ DataOperation (type, @altertable/data-app/contract): <Input, Output> — The input parser runs in the browser. Browser validation does not replace backend authorization or query limits.
433
+ DataOperation.filters?: Readonly<FilterCollection> — The app filters the operation reads; its input has one field per filter.
395
434
  DataOperation.input: (value: unknown) => Input
396
435
  DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
397
436
  DataOperation.checks: readonly [Input, ...Input[]]
@@ -408,13 +447,20 @@ DataResponse.queriedAt: string
408
447
  DataResponse.queryIds: string[]
409
448
  DataResponse.queries?: DisclosedQuery[]
410
449
  DataResponse.input: Input — The exact browser input that produced this response.
411
- DataSection (component, @altertable/data-app-react): <Data, Input>(props: DataSectionProps<Data, Input>)
450
+ DataSection (component, @altertable/data-app-react): <Data, Input>(props: DataSectionProps<Data, Input>) — Sections of views that `<DataApp>` runs share its results; every other section requests its own view once it nears the viewport.
412
451
  DataSection.content: ViewContent<Data, Input>
413
452
  DataSection.emptyFallback?: EmptyContent
414
453
  DataSection.error?: { title: ReactNode; description?: ReactNode; onRetry?: (() => void) | undefined; }
415
454
  DataSection.label?: string
416
455
  DataSection.…: plus props inherited from React
417
456
  DataSectionProps (type, @altertable/data-app-react): <Data, Input> = props listed as DataSection.*
457
+ Dataset (class, @altertable/data-app-react): <Data, Input, Row>
458
+ Dataset.evidence: WidgetEvidence
459
+ Dataset.actions: <const Actions extends Record<string, ActionDeclaration<Row, Input>>>(build: (action: ActionBuilder<Row, Input>) => Actions, options?: { primary?: (keyof Actions & string) | undefined; } | undefined) => ExplorationActions<...>
460
+ Dataset.readSearchSuggestions: (source: ViewSource<Data, Input>) => DataReading<readonly SearchSuggestion[]> | undefined
461
+ Dataset.read: <Source extends ViewSource<Data, Input>>(source: Source) => SourceReading<Source, readonly Row[]>
462
+ Dataset.assertSource: (source: object) => void
463
+ Dataset.name: string
418
464
  DatasetColumn (type, @altertable/data-app-react): <Row> — Keys supply IDs; accessors supply raw CSV values. Formats affect display only.
419
465
  DatasetColumn.label?: string
420
466
  DatasetColumn.value: (row: Row) => CsvCell [variant 1 of 4]
@@ -517,51 +563,48 @@ DateFormat.precision?: 'minute' | 'second' [variant 2 of 2]
517
563
  DateFormatOptions (type, @altertable/data-app/format): Formatting for calendar dates and instants without implicit time-zone parsing.
518
564
  DateFormatOptions.locale?: string
519
565
  DateFormatOptions.missing?: string
520
- DateRangeContract (type, @altertable/data-app/contract)
521
- DateRangeContract.datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange; comparison…
522
- DateRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
523
- DateRangeContractOptions (type, @altertable/data-app/contract): = props listed as defineDateRangeContract.options.*
524
566
  DateTimeFormatOptions (type, @altertable/data-app/format)
525
567
  DateTimeFormatOptions.locale?: string
526
568
  DateTimeFormatOptions.missing?: string
527
569
  DateTimeFormatOptions.timeZone?: string
528
570
  DateTimeFormatOptions.precision?: 'minute' | 'second'
529
571
  DateTimeRange (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): = props listed as dateTimeRangeSql.range.*
530
- DateTimeRangeComparisonRequest (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): An execution snapshot with the relative selection retained for URL and displayed-scope matching.
531
- DateTimeRangeComparisonRequest.range: ResolvedDateTimeRange
532
- DateTimeRangeComparisonRequest.comparison: ResolvedDateTimeRange | null
533
- DateTimeRangeComparisonRequest.selection: DateTimeRangeComparisonSelection
534
- DateTimeRangeComparisonRequest.reference: string
535
- DateTimeRangeComparisonSelection (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
536
- DateTimeRangeComparisonSelection.range: DateTimeRange
537
- DateTimeRangeComparisonSelection.comparison?: 'previous'
538
- DateTimeRangeComparisonVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
539
- DateTimeRangeComparisonVariable.kind: 'dateTimeRangeComparison'
540
- DateTimeRangeComparisonVariable.label?: string
541
- DateTimeRangeComparisonVariable.presentation?: VariablePresentation
542
- DateTimeRangeComparisonVariable.urlKeys: readonly string[]
543
- DateTimeRangeComparisonVariable.defaultValue: DateTimeRangeComparisonSelection
544
- DateTimeRangeComparisonVariable.clearValue?: DateTimeRangeComparisonSelection — Unrestricted value, when this variable represents a filter.
545
- DateTimeRangeComparisonVariable.describe?: ((value: DateTimeRangeComparisonSelection) => string)
546
- DateTimeRangeComparisonVariable.history: HistoryMode
547
- DateTimeRangeComparisonVariable.read: (params: URLSearchParams) => DateTimeRangeComparisonSelection
548
- DateTimeRangeComparisonVariable.write: (value: DateTimeRangeComparisonSelection) => Record<string, string | null>
549
- DateTimeRangeComparisonVariable.valid: (value: DateTimeRangeComparisonSelection) => boolean
550
- DateTimeRangeComparisonVariable.same: (left: DateTimeRangeComparisonSelection, right: DateTimeRangeComparisonSelection) => boolean
551
- DateTimeRangeComparisonVariable.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
552
- DateTimeRangeComparisonVariable.maxRangeDays?: number
553
- DateTimeRangeComparisonVariable.presets?: readonly DateTimeRangePreset[]
554
- DateTimeRangeComparisonVariable.input: (selection: DateTimeRangeComparisonSelection, now?: Date | undefined) => DateTimeRangeComparisonRequest
555
- DateTimeRangeComparisonVariable.parseInput: (value: unknown) => DateTimeRangeComparisonRequest
556
- DateTimeRangeComparisonVariable.previous: (selection: DateTimeRangeComparisonSelection) => ResolvedDateTimeRange | null
557
- DateTimeRangeComparisonVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
558
- DateTimeRangeContract (type, @altertable/data-app/contract): Datetime policy exposed by defineDateRangeContract().datetime. Parsing preserves relative values.
559
- DateTimeRangeContract.timeZone: string
560
- DateTimeRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
561
- DateTimeRangeContract.parse: (value: unknown, now?: Date | undefined) => DateTimeRange — Validate coverage and duration while preserving symbolic relative bounds.
562
- DateTimeRangeContract.resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange — Resolve to UTC-rebased bounds using reporting-zone wall-clock fields, then validate policy.
563
- DateTimeRangeContract.comparison: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange | null — Return the preceding equal-length interval, or null when source coverage excludes it.
564
- DateTimeRangeContract.request: (value: unknown, compare?: boolean | undefined, now?: Date | undefined) => DateTimeRangeRequest — Resolve both periods against one reference instant. Use these bounds for comparison queries.
572
+ DateTimeRangeComparison (type, @altertable/data-app/contract, @altertable/data-app-react/ui): = 'off' | 'on' — Offer the previous-period comparison, with its toggle starting off or on.
573
+ dateTimeRangeFilter (function, @altertable/data-app/contract, @altertable/data-app-react/ui): <Comparison extends DateTimeRangeComparison | undefined = undefined>(options: DateTimeRangeFilterOptions<Comparison>): DateTimeRangeFilter<undefined extends Comparison ? false : true> — One declaration drives the picker, URL state, and the input of operations that list it. Operations receive resolved bounds and the original selection: `from` inclusive, `to` exclusive.
574
+ dateTimeRangeFilter.options.key: string
575
+ dateTimeRangeFilter.options.label?: string
576
+ dateTimeRangeFilter.options.defaultValue: string | DateTimeRange — Range text such as "7d" stays relative; `{ from, to }` is absolute.
577
+ dateTimeRangeFilter.options.timeZone?: string — Reporting zone for relative ranges, calendar days, and labels. Defaults to UTC.
578
+ dateTimeRangeFilter.options.maxRangeDays?: number — Longest selectable range.
579
+ dateTimeRangeFilter.options.minDate?: string — First date with data, as YYYY-MM-DD.
580
+ dateTimeRangeFilter.options.maxDate?: string | (() => string) — Last date with data, as YYYY-MM-DD.
581
+ dateTimeRangeFilter.options.completeDays?: boolean — End coverage yesterday, for sources that load whole days.
582
+ dateTimeRangeFilter.options.comparison?: Comparison — Offer the previous-period comparison. Omit for none.
583
+ dateTimeRangeFilter.options.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
584
+ dateTimeRangeFilter.options.history?: HistoryMode
585
+ dateTimeRangeFilter.options.presentation?: FilterPresentation
586
+ DateTimeRangeFilter (type, @altertable/data-app/contract, @altertable/data-app-react/ui): <Comparable>
587
+ DateTimeRangeFilter.kind: 'dateTimeRange'
588
+ DateTimeRangeFilter.label?: string
589
+ DateTimeRangeFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
590
+ DateTimeRangeFilter.urlKeys: readonly string[]
591
+ DateTimeRangeFilter.defaultValue: DateTimeRangeSelection
592
+ DateTimeRangeFilter.clearValue?: DateTimeRangeSelection — Unrestricted value, when this filter can be cleared.
593
+ DateTimeRangeFilter.describe?: ((value: DateTimeRangeSelection) => string)
594
+ DateTimeRangeFilter.history: HistoryMode
595
+ DateTimeRangeFilter.read: (params: URLSearchParams) => DateTimeRangeSelection
596
+ DateTimeRangeFilter.write: (value: DateTimeRangeSelection) => Record<string, string | null>
597
+ DateTimeRangeFilter.valid: (value: DateTimeRangeSelection) => boolean
598
+ DateTimeRangeFilter.same: (left: DateTimeRangeSelection, right: DateTimeRangeSelection) => boolean
599
+ DateTimeRangeFilter.comparable: Comparable — Whether readers can turn on the previous-period comparison.
600
+ DateTimeRangeFilter.policy: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number | undefined; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
601
+ DateTimeRangeFilter.maxRangeDays?: number
602
+ DateTimeRangeFilter.presets?: readonly DateTimeRangePreset[]
603
+ DateTimeRangeFilter.request: (selection: DateTimeRangeSelection, now?: Date | undefined) => DateTimeRangeRequest — Resolve a selection against one reference time.
604
+ DateTimeRangeFilter.parseInput: (value: unknown) => DateTimeRangeInput — Validate untrusted input against coverage and return what the operation receives.
605
+ DateTimeRangeFilter.previous: (selection: DateTimeRangeSelection) => ResolvedDateTimeRange | null
606
+ DateTimeRangeFilterOptions (type, @altertable/data-app/contract, @altertable/data-app-react/ui): <Comparison> = props listed as dateTimeRangeFilter.options.*
607
+ DateTimeRangeInput (type, @altertable/data-app/contract): = props listed as queryDateTimeRangeParams.input.* — What an operation receives for a date filter: resolved bounds, `from` inclusive and `to` exclusive, and the same window one selected length earlier while the comparison is on.
565
608
  DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
566
609
  DateTimeRangeParserOptions (type, @altertable/data-app/format)
567
610
  DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
@@ -574,7 +617,7 @@ DateTimeRangePicker.placeholder?: string
574
617
  DateTimeRangePicker.label?: string
575
618
  DateTimeRangePicker.labelPlacement?: ControlLabelPlacement
576
619
  DateTimeRangePicker.maxRangeDays?: number — Client limit for determinate durations; validate timezone-dependent ranges on the backend.
577
- DateTimeRangePicker.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting policy; generated controls inherit it from their variable.
620
+ DateTimeRangePicker.policy?: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number | undefined; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting policy; generated controls inherit it from their filter.
578
621
  DateTimeRangePicker.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
579
622
  DateTimeRangePicker.disabled?: boolean
580
623
  DateTimeRangePicker.isDefault?: boolean
@@ -582,49 +625,27 @@ DateTimeRangePicker.onReset?: (() => void)
582
625
  DateTimeRangePicker.calendarFooter?: ReactNode
583
626
  DateTimeRangePicker.comparison?: { enabled: boolean; range: DateTimeRange | null; onChange: (enabled: boolean) => void; } — Optional controlled comparison with the immediately preceding equal-length interval.
584
627
  DateTimeRangePickerProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as DateTimeRangePicker.*
585
- DateTimeRangePreset (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): A picker suggestion. Text ranges use the same natural-language parser as typed input.
628
+ DateTimeRangePolicy (type, @altertable/data-app/contract): A date filter's coverage, duration limit, and reporting time zone. Parsing preserves relative values.
629
+ DateTimeRangePolicy.timeZone: string
630
+ DateTimeRangePolicy.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number | undefined; timeZone: string; }
631
+ DateTimeRangePolicy.parse: (value: unknown, now?: Date | undefined) => DateTimeRange — Validate coverage and duration while preserving symbolic relative bounds.
632
+ DateTimeRangePolicy.resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange — Resolve to UTC-rebased bounds using reporting-zone wall-clock fields, then validate policy.
633
+ DateTimeRangePolicy.comparison: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange | null — Return the comparison window, or null when source coverage excludes it.
634
+ DateTimeRangePolicy.endAtNow: (range: ResolvedDateTimeRange, now?: Date | undefined) => ResolvedDateTimeRange — End a resolved range at the reference time when it runs past it.
635
+ DateTimeRangePolicy.request: (value: unknown, compare?: boolean | undefined, now?: Date | undefined) => DateTimeRangeInput — Resolve both periods against one reference instant, ending the range at now.
636
+ DateTimeRangePreset (type, @altertable/data-app/contract, @altertable/data-app-react/ui): A picker suggestion. Text ranges use the same natural-language parser as typed input.
586
637
  DateTimeRangePreset.label: string — Menu label, also shown when this preset matches the selected range.
587
638
  DateTimeRangePreset.range: string | DateTimeRange
588
639
  DateTimeRangePreset.shortcut?: string — Optional compact badge, for example "15m".
589
- dateTimeRangePresets (const, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): Monitoring offers minute/hour windows; analytics offers longer periods and to-date windows. Spread either menu to add custom presets.
640
+ dateTimeRangePresets (const, @altertable/data-app/contract, @altertable/data-app-react/ui): Monitoring offers minute/hour windows; analytics offers longer periods and to-date windows. Spread either menu to add custom presets.
590
641
  dateTimeRangePresets.monitoring: readonly DateTimeRangePreset[]
591
642
  dateTimeRangePresets.analytics: readonly DateTimeRangePreset[]
592
- DateTimeRangeRequest (type, @altertable/data-app/contract): Resolved UTC-rebased bounds for one execution, optionally with the preceding equal-length interval.
593
- DateTimeRangeRequest.range: ResolvedDateTimeRange
594
- DateTimeRangeRequest.comparison: ResolvedDateTimeRange | null
643
+ DateTimeRangeSelection (type, @altertable/data-app/contract, @altertable/data-app-react/ui): The picker's URL state: the selected range, relative or absolute, and the comparison toggle.
644
+ DateTimeRangeSelection.range: DateTimeRange
645
+ DateTimeRangeSelection.comparison?: 'previous'
595
646
  dateTimeRangeSql (function, @altertable/data-app/contract): (range: DateTimeRange, parameter: string): { from: string; to: string; params: Record<string, string>; } — DuckDB timestamp expressions using the query session's timezone for relative anchors. Absolute fields remain UTC-rebased TIMESTAMP values. Start is inclusive, end exclusive.
596
647
  dateTimeRangeSql.range.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
597
648
  dateTimeRangeSql.range.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
598
- dateTimeRangeVariable (function, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): (options: DateTimeRangeComparisonVariableOptions): DateTimeRangeComparisonVariable; (options: DateTimeRangeVariableOptions): DateTimeRangeVariable — One declaration drives the picker, URL state, and operation input. With comparison enabled, use input(defaultValue) for operation checks and variableInput() to validate request snapshots.
599
- dateTimeRangeVariable.options.key: string
600
- dateTimeRangeVariable.options.label?: string
601
- dateTimeRangeVariable.options.defaultValue: string | DateTimeRange — Relative defaults such as "7d" stay relative.
602
- dateTimeRangeVariable.options.maxRangeDays?: number — Client limit for determinate durations; the backend must validate timezone-dependent ranges.
603
- dateTimeRangeVariable.options.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
604
- dateTimeRangeVariable.options.history?: HistoryMode
605
- dateTimeRangeVariable.options.presentation?: VariablePresentation
606
- dateTimeRangeVariable.options.allowComparison: true
607
- dateTimeRangeVariable.options.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
608
- dateTimeRangeVariable.options.allowComparison?: false — Enable the previous-period reporting workflow. Requires a shared contract.
609
- dateTimeRangeVariable.options.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
610
- DateTimeRangeVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
611
- DateTimeRangeVariable.kind: 'dateTimeRange'
612
- DateTimeRangeVariable.label?: string
613
- DateTimeRangeVariable.presentation?: VariablePresentation
614
- DateTimeRangeVariable.urlKeys: readonly string[]
615
- DateTimeRangeVariable.defaultValue: DateTimeRange
616
- DateTimeRangeVariable.clearValue?: DateTimeRange — Unrestricted value, when this variable represents a filter.
617
- DateTimeRangeVariable.describe?: ((value: DateTimeRange) => string)
618
- DateTimeRangeVariable.history: HistoryMode
619
- DateTimeRangeVariable.read: (params: URLSearchParams) => DateTimeRange
620
- DateTimeRangeVariable.write: (value: DateTimeRange) => Record<string, string | null>
621
- DateTimeRangeVariable.valid: (value: DateTimeRange) => boolean
622
- DateTimeRangeVariable.same: (left: DateTimeRange, right: DateTimeRange) => boolean
623
- DateTimeRangeVariable.parse: (value: unknown) => DateTimeRange
624
- DateTimeRangeVariable.maxRangeDays?: number
625
- DateTimeRangeVariable.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
626
- DateTimeRangeVariable.presets?: readonly DateTimeRangePreset[]
627
- DateTimeRangeVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
628
649
  DateTimeTooltip (component, @altertable/data-app-react): (props: DateTimeTooltipProps) — Exact-time disclosure uses the same reporting zone and locale as other date displays.
629
650
  DateTimeTooltip.date: Date
630
651
  DateTimeTooltip.timeZone?: string
@@ -647,46 +668,78 @@ defineDataApp.config.queries: Queries & KnownRecord<Queries> & ('' extends keyof
647
668
  defineDataIdentifiers (function, @altertable/data-app-react): <const Tables extends Record<string, TableIdentifier>, const Columns extends Record<string, ColumnIdentifier<Extract<keyof Tables, string>>>>(options: {…}): { definitions: Readonly<Record<IdentifierId<Tables, Columns>, DataIdentifierDefinition>>; DataIdentifier: ({ id, display }: { ...; }) => Eleme… — Register exact source names once; returned JSX IDs are checked against this registry.
648
669
  defineDataIdentifiers.options.tables: Tables
649
670
  defineDataIdentifiers.options.columns: Columns
650
- defineDateRangeContract (function, @altertable/data-app/contract): (options: DateRangeContractOptions): { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date… — One source policy for datetime picker validation and operation requests.
651
- defineDateRangeContract.options.minDate?: string
652
- defineDateRangeContract.options.maxDate?: string | (() => string)
653
- defineDateRangeContract.options.maxRangeDays: number
654
- defineDateRangeContract.options.timeZone: string
655
- defineDateRangeContract.options.completeDays?: boolean — Defaults to complete days through yesterday in the reporting timezone. Set false to include today.
656
- defineOperation (function, @altertable/data-app/contract): <Input, Output, const Queries extends QueryDefinitions>(operation: OperationDefinition<Input, Output, Queries> & { queries: CheckedQueries<Queries>; }): Omit<DataOperation<Input, Output>, 'queryNames'> & { queryNames: { readonly [Name in keyof Queries & string]: Name; }; }
657
- defineOperation.operation.input: (value: unknown) => Input
658
- defineOperation.operation.checks: readonly [Input, ...Input[]]
671
+ DefinedOperation (type, @altertable/data-app/contract): <Input, Output, Queries, Filters>
672
+ DefinedOperation.input: (value: unknown) => Input
673
+ DefinedOperation.run: (context: OperationContext, input: Input) => Promise<Output>
674
+ DefinedOperation.checks: readonly [Input, ...Input[]]
675
+ DefinedOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
676
+ DefinedOperation.queryNames: { readonly [Name in keyof Queries & string]: Name; }
677
+ DefinedOperation.filters?: FilterCollection
678
+ defineOperation (function, @altertable/data-app/contract): <Input, Output, const Queries extends QueryDefinitions, const Filters extends FilterCollection = {}>(operation: InputOperationDefinition<Input, Output, Queries, Filters> & { queries: CheckedQueries<Queries>; }): DefinedOperation<WithFilterInput<Filters, Input>, Output, Queries, keyof Filters extend…; <const Queries extends QueryDefinitions, const Filters extends FilterCollection = {}, Output = unknown>(operation: FilterOperationDefinition<Filters, Output, Queries> & { queries: CheckedQueries<Queries>; }): DefinedOperation<FilterInput<Filters>, Output, Queries, Filters>
679
+ defineOperation.operation.filters?: CheckedOperationFilters<Filters> — Filters the operation reads beside its own input; they are parsed for it.
680
+ defineOperation.operation.input: (value: unknown) => Input — Parses the operation's own fields, without the filters.
681
+ defineOperation.operation.checks: readonly [Input, ...Input[]] — Representative valid own inputs; each must pass `input`.
659
682
  defineOperation.operation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
660
- defineOperation.operation.run: (context: Pick<OperationContext, 'signal'> & { query: RegisteredQuery<NoInfer<Queries>>; }, input: Input) => Promise<...>
683
+ defineOperation.operation.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
661
684
  defineOperation.operation.queries: CheckedQueries<Queries>
685
+ defineOperation.operation.filters?: CheckedOperationFilters<Filters> — The filters `run` reads. Omit for an operation without inputs.
686
+ defineOperation.operation.run: OperationRun<FilterInput<Filters>, Output, Queries>
662
687
  defineQueryNames (function, @altertable/data-app/contract): <const Names extends Record<string, string>>(names: Names): Names
688
+ DetailAction (type, @altertable/data-app-react): <Row, Input, DestinationInput, Own> — A detail interaction: the destination and the fields a row supplies.
689
+ DetailAction.label: string
690
+ DetailAction.when?: ((row: Row) => boolean)
691
+ DetailAction.target: DetailView<any, DestinationInput, Own>
692
+ DetailAction.input: (row: Row, displayedInput: Input) => Own & Partial<DestinationInput> — The destination's own fields, such as the clicked record, and any filter it narrows; its other filters carry over from the displayed scope.
663
693
  DetailContent (class, @altertable/data-app-react): <Data, Input> — A destination’s rendered body. Pass these to DataApp.details.
664
- DetailContent.target: DetailView<Data, Input>
665
- DetailContent.render: (source: ViewSource<Data, Input>) => ReactNode
666
- DetailView (class, @altertable/data-app-react): <Data, Input> — A typed, query-backed destination.
667
- DetailView.definition: DetailViewDefinition<Data, Input>
694
+ DetailContent.target: DetailView<Data, Input, any>
695
+ DetailContent.render: (state: DataContentState<Data, Input>) => ReactNode
696
+ DetailView (class, @altertable/data-app-react): <Data, Input, Own> — A typed, query-backed destination. Interactions supply its own fields (`Own`); the filters its operation reads carry over from the displayed scope.
697
+ DetailView.definition: { id: string; title: ReactNode; parseInput: (input: unknown) => Input; describeInput?: ((input: Input) => string) | undefined; } & ViewEmptiness<Data> & Required<...> & { ...; }
668
698
  DetailView.useResult: (input: Input) => ViewResult<Data, Input>
669
- DetailView.content: (render: (source: ViewSource<Data, Input>) => ReactNode) => DetailContent<Data, Input>
699
+ DetailView.ownInput?: Own
700
+ DetailView.content: (render: (state: DataContentState<Data, Input>) => ReactNode) => DetailContent<Data, Input> — Render like view content: displayed data, its input, and the derived scope.
670
701
  DetailViewDefinition (type, @altertable/data-app-react): <Data, Input>
671
702
  DetailViewDefinition.id: string
672
703
  DetailViewDefinition.title: ReactNode
673
704
  DetailViewDefinition.parseInput: (input: unknown) => Input — Validates untrusted navigation input before a detail operation can run.
674
- DetailViewDefinition.describeInput: (input: Input) => string
675
- DetailViewDefinition.isEmpty: (data: Data) => boolean
676
- DetailViewDefinition.emptyFallback: EmptyContent
677
- dimensionFilter (function, @altertable/data-app/contract): <const T extends string>(config: DimensionFilterOptions<T>): DimensionVariable<T>; <const T extends number>(config: DimensionFilterOptions<T>): DimensionVariable<T> — A bounded categorical filter with app-owned fixed options.
705
+ DetailViewDefinition.describeInput?: ((input: Input) => string) — Describe the destination's scope. Defaults to the filters its operation reads; supply it to name the record, such as `orders for Customer 042`.
706
+ DetailViewDefinition.isEmpty?: ((data: Data) => boolean) — App-owned semantics: measured zero need not mean an empty result. Defaults to never empty.
707
+ DetailViewDefinition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
708
+ dimensionFilter (function, @altertable/data-app/contract): <const T extends string>(config: DimensionFilterOptions<T>): DimensionFilter<T>; <const T extends number>(config: DimensionFilterOptions<T>): DimensionFilter<T> — A bounded categorical filter with app-owned fixed options.
678
709
  dimensionFilter.config.key: string
679
710
  dimensionFilter.config.label: string
680
711
  dimensionFilter.config.allowMissing?: boolean
681
712
  dimensionFilter.config.allowExclusion?: boolean
682
713
  dimensionFilter.config.history?: HistoryMode
683
- dimensionFilter.config.presentation?: VariablePresentation
714
+ dimensionFilter.config.presentation?: FilterPresentation
684
715
  dimensionFilter.config.selectionMode: 'single' [variant 1 of 2]
685
716
  dimensionFilter.config.maxSelected?: 1 [variant 1 of 2]
686
717
  dimensionFilter.config.valueType: T extends number ? 'number' : 'string'
718
+ dimensionFilter.config.defaultValue?: DimensionSelection<NoInfer<T>> — The selection before readers change it, such as paid orders only. Clearing filters still returns to every member. Defaults to `{ kind: 'all' }`.
687
719
  dimensionFilter.config.options: readonly DimensionOption<T>[]
688
720
  dimensionFilter.config.selectionMode: 'multiple' [variant 2 of 2]
689
721
  dimensionFilter.config.maxSelected?: number [variant 2 of 2]
722
+ DimensionFilter (type, @altertable/data-app/contract): <T> — A fixed-option dimension retains its distinction from query-backed facets.
723
+ DimensionFilter.kind: 'dimension'
724
+ DimensionFilter.label: string
725
+ DimensionFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
726
+ DimensionFilter.urlKeys: readonly string[]
727
+ DimensionFilter.defaultValue: DimensionSelection<T>
728
+ DimensionFilter.clearValue?: DimensionSelection<T> — Unrestricted value, when this filter can be cleared.
729
+ DimensionFilter.describe: (value: Value): string
730
+ DimensionFilter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
731
+ DimensionFilter.history: HistoryMode
732
+ DimensionFilter.read: (params: URLSearchParams) => DimensionSelection<T>
733
+ DimensionFilter.write: (value: DimensionSelection<T>) => Record<string, string | null>
734
+ DimensionFilter.valid: (value: DimensionSelection<T>) => boolean
735
+ DimensionFilter.same: (left: DimensionSelection<T>, right: DimensionSelection<T>) => boolean
736
+ DimensionFilter.optionsSource: 'fixed'
737
+ DimensionFilter.selectionMode: 'multiple' | 'single'
738
+ DimensionFilter.valueType: T extends number ? 'number' : 'string'
739
+ DimensionFilter.allowMissing: boolean
740
+ DimensionFilter.allowExclusion: boolean
741
+ DimensionFilter.maxSelected: number
742
+ DimensionFilter.options: readonly DimensionOption<T>[]
690
743
  DimensionFilterOptions (type, @altertable/data-app/contract): <T> = props listed as dimensionFilter.config.*
691
744
  DimensionMember (type, @altertable/data-app/contract): <T>
692
745
  DimensionMember.kind: 'value' [variant 1 of 2]
@@ -697,7 +750,7 @@ DimensionOption.value: T
697
750
  DimensionOption.label: string
698
751
  DimensionOption.count?: number
699
752
  DimensionPicker (component, @altertable/data-app-react/ui): <T extends DimensionValue>(props: {…}) — Adapts the typed dimension contract to the shared ChoicePicker control.
700
- DimensionPicker.filter: DimensionSelectionVariable<T>
753
+ DimensionPicker.filter: DimensionSelectionFilter<T>
701
754
  DimensionPicker.labelPlacement?: ControlLabelPlacement
702
755
  DimensionPicker.value: DimensionSelection<T>
703
756
  DimensionPicker.onChange: (value: DimensionSelection<T>) => void
@@ -710,31 +763,18 @@ dimensionPredicate.selection.kind: 'all' [variant 1 of 2]
710
763
  dimensionPredicate.selection.kind: 'exclude' | 'include' [variant 2 of 2]
711
764
  dimensionPredicate.selection.members: readonly DimensionMember<T>[] [variant 2 of 2]
712
765
  DimensionSelection (type, @altertable/data-app/contract): <T> = props listed as dimensionPredicate.selection.*
713
- DimensionVariable (type, @altertable/data-app/contract): <T> — A fixed-option dimension retains its distinction from query-backed facets.
714
- DimensionVariable.kind: 'dimension'
715
- DimensionVariable.label: string
716
- DimensionVariable.presentation?: VariablePresentation
717
- DimensionVariable.urlKeys: readonly string[]
718
- DimensionVariable.defaultValue: DimensionSelection<T>
719
- DimensionVariable.clearValue?: DimensionSelection<T> — Unrestricted value, when this variable represents a filter.
720
- DimensionVariable.describe: ((value: DimensionSelection<T>) => string) & ((selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[] | undefined) => string)
721
- DimensionVariable.history: HistoryMode
722
- DimensionVariable.read: (params: URLSearchParams) => DimensionSelection<T>
723
- DimensionVariable.write: (value: DimensionSelection<T>) => Record<string, string | null>
724
- DimensionVariable.valid: (value: DimensionSelection<T>) => boolean
725
- DimensionVariable.same: (left: DimensionSelection<T>, right: DimensionSelection<T>) => boolean
726
- DimensionVariable.optionsSource: 'fixed'
727
- DimensionVariable.selectionMode: 'multiple' | 'single'
728
- DimensionVariable.valueType: T extends number ? 'number' : 'string'
729
- DimensionVariable.allowMissing: boolean
730
- DimensionVariable.allowExclusion: boolean
731
- DimensionVariable.maxSelected: number
732
- DimensionVariable.options: readonly DimensionOption<T>[]
733
766
  DisclosedQuery (type, @altertable/data-app/contract): One registered statement an operation ran, with its parameter values.
734
767
  DisclosedQuery.name: string
735
768
  DisclosedQuery.statement: string
736
769
  DisclosedQuery.params?: Readonly<Record<string, QueryParameterValue>>
737
770
  DisclosedQuery.queryId?: string
771
+ displayChoice (function, @altertable/data-app/contract): <const Options extends readonly ChoiceOption[]>(options: ChoiceOptions<Options>): AppFilter<Options[number]['id'], 'choice'> & { options: readonly ChoiceOption[]; } & { presentation: { group: 'display'; }; } — One choice that changes how results are shown, such as a chart breakdown or sort order. Clearing filters keeps it; pass `view.breakdown(name)` to render it beside its chart.
772
+ displayChoice.options.label?: string
773
+ displayChoice.options.key: string
774
+ displayChoice.options.history?: HistoryMode
775
+ displayChoice.options.presentation?: FilterPresentation
776
+ displayChoice.options.defaultValue: NoInfer<Options[number]['id']>
777
+ displayChoice.options.options: Options & (Options extends readonly [] ? never : unknown)
738
778
  EmptyState (component, @altertable/data-app-react): (props: EmptyStateProps)
739
779
  EmptyState.title: ReactNode
740
780
  EmptyState.description?: ReactNode
@@ -763,6 +803,43 @@ ExternalLink.children: ReactNode
763
803
  ExternalLink.className?: string
764
804
  ExternalLink.title?: string
765
805
  ExternalLinkProps (type, @altertable/data-app-react): = props listed as ExternalLink.*
806
+ facetFilter (function, @altertable/data-app/contract): <const Operation extends string>(config: FacetFilterOptions<string, Operation> & { valueType: 'string'; }): FacetFilter<string, Operation>; <const Operation extends string>(config: FacetFilterOptions<number, Operation> & { valueType: 'number'; }): FacetFilter<number, Operation> — Options load from `options`, an operation returning `DimensionOption[]`; the client checks that it is registered. Validate selections like any dimension.
807
+ facetFilter.config.key: string
808
+ facetFilter.config.label: string
809
+ facetFilter.config.allowMissing?: boolean
810
+ facetFilter.config.allowExclusion?: boolean
811
+ facetFilter.config.history?: HistoryMode
812
+ facetFilter.config.presentation?: FilterPresentation
813
+ facetFilter.config.selectionMode: 'single' [variant 1 of 2]
814
+ facetFilter.config.maxSelected?: 1 [variant 1 of 2]
815
+ facetFilter.config.valueType: 'string'
816
+ facetFilter.config.defaultValue?: DimensionSelection<string> — The selection before readers change it, such as paid orders only. Clearing filters still returns to every member. Defaults to `{ kind: 'all' }`.
817
+ facetFilter.config.options: Operation — The registered operation that returns this dimension's options.
818
+ facetFilter.config.selectionMode: 'multiple' [variant 2 of 2]
819
+ facetFilter.config.maxSelected?: number [variant 2 of 2]
820
+ facetFilter.config.valueType: 'number'
821
+ facetFilter.config.defaultValue?: DimensionSelection<number> — The selection before readers change it, such as paid orders only. Clearing filters still returns to every member. Defaults to `{ kind: 'all' }`.
822
+ FacetFilter (type, @altertable/data-app/contract): <Value, Operation> — A dimension whose options come from an operation. The options follow that operation's own filters, so selecting a period narrows the choices.
823
+ FacetFilter.kind: 'dimension'
824
+ FacetFilter.label: string
825
+ FacetFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
826
+ FacetFilter.urlKeys: readonly string[]
827
+ FacetFilter.defaultValue: DimensionSelection<Value>
828
+ FacetFilter.clearValue?: DimensionSelection<Value> — Unrestricted value, when this filter can be cleared.
829
+ FacetFilter.describe: (value: Value): string
830
+ FacetFilter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
831
+ FacetFilter.history: HistoryMode
832
+ FacetFilter.read: (params: URLSearchParams) => DimensionSelection<Value>
833
+ FacetFilter.write: (value: DimensionSelection<Value>) => Record<string, string | null>
834
+ FacetFilter.valid: (value: DimensionSelection<Value>) => boolean
835
+ FacetFilter.same: (left: DimensionSelection<Value>, right: DimensionSelection<Value>) => boolean
836
+ FacetFilter.optionsSource: 'query'
837
+ FacetFilter.selectionMode: 'multiple' | 'single'
838
+ FacetFilter.valueType: Value extends number ? 'number' : 'string'
839
+ FacetFilter.allowMissing: boolean
840
+ FacetFilter.allowExclusion: boolean
841
+ FacetFilter.maxSelected: number
842
+ FacetFilter.options: readonly DimensionOption<Value>[]
766
843
  FilterActions (component, @altertable/data-app-react/ui): (props: FilterActionsProps)
767
844
  FilterActions.onClear?: (() => void)
768
845
  FilterActions.onApply: () => void [variant 1 of 2]
@@ -772,6 +849,16 @@ FilterBar (component, @altertable/data-app-react/ui): (props: FilterBarProps)
772
849
  FilterBar.…: plus props inherited from React
773
850
  FilterBarProps (type, @altertable/data-app-react/ui): <HTMLAttributes<HTMLDivElement>, HTMLDivElement>
774
851
  FilterBarProps.…: plus props inherited from React
852
+ FilterCollection (type, @altertable/data-app/contract): = { [x: string]: SearchFilter | BooleanFilter | ChoiceFilter<any> | DateTimeRangeFilter<boolean> | DimensionFilter<any> | FacetFilter<...> | MultiChoiceFilter | NumberFilter | SourceDimensionFilter<...>; }
853
+ FilterInput (type, @altertable/data-app/contract): <Filters> = keyof Filters extends never ? Record<string, never> : { [Name in keyof Filters]: FilterInputValue<Filters[Name]>; } — An operation's input: one flat field per declared filter.
854
+ FilterOperationDefinition (type, @altertable/data-app/contract): <Filters, Output, Queries> — An operation that reads app filters. Its input has one field per filter, validated by the filters themselves; views derive their filters, scope, and period from it.
855
+ FilterOperationDefinition.filters?: CheckedOperationFilters<Filters> — The filters `run` reads. Omit for an operation without inputs.
856
+ FilterOperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
857
+ FilterOperationDefinition.run: OperationRun<FilterInput<Filters>, Output, Queries>
858
+ FilterPresentation (type, @altertable/data-app/contract): Where a filter's or display option's control renders.
859
+ FilterPresentation.control?: 'toolbar' | 'widget' — Widget controls render beside their visualization instead of in the toolbar. Scope filters remain available in the Filters sheet and active summaries.
860
+ FilterPresentation.prominence?: 'primary' | 'secondary' — Secondary scope controls live in the Filters sheet with compact pickers when active; secondary display options follow primary options. Defaults to primary.
861
+ FilterValues (type, @altertable/data-app/contract): <Collection> = { [Key in keyof Collection]: Collection[Key] extends DimensionSelectionFilter<infer Value extends DimensionValue> ? DimensionSelection<...> : ...; }
775
862
  formatCount (function, @altertable/data-app/format): (value: number | null | undefined, options: CommonOptions & { compact?: boolean; }): string — Negative and fractional counts render as missing. Compact notation is opt-in.
776
863
  formatCount.options.locale?: string
777
864
  formatCount.options.missing?: string
@@ -825,6 +912,7 @@ FunnelChart.className?: string
825
912
  FunnelChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
826
913
  FunnelChart.steps: readonly FunnelChartStep[]
827
914
  FunnelChart.series: readonly FunnelChartSeries[]
915
+ FunnelChart.interactiveLegend?: boolean — Disable legend hover and focus controls.
828
916
  FunnelChartProps (type, @altertable/data-app-react/ui): = props listed as FunnelChart.*
829
917
  FunnelChartSeries (type, @altertable/data-app-react/ui)
830
918
  FunnelChartSeries.id: string — Unique, nonblank population ID.
@@ -833,8 +921,9 @@ FunnelChartSeries.values: readonly number[] — Finite, nonnegative counts align
833
921
  FunnelChartStep (type, @altertable/data-app-react/ui): Ordered step with a unique, nonblank ID.
834
922
  FunnelChartStep.id: string
835
923
  FunnelChartStep.label: string
836
- GettingStarted (component, @altertable/data-app-react/ui): (props: {…}) — Query-backed connection state and next steps for a newly created app. Mount within `DataAppProvider` and register `connection: connectionCheck(app.queries)` on the server.
924
+ GettingStarted (component, @altertable/data-app-react/ui): (props: {…}) — Query-backed connection state and next steps for a newly created app. Mount within `DataAppProvider` and supply the app's registered connection operation.
837
925
  GettingStarted.dataContext: DataContext
926
+ GettingStarted.client: DataClient<{ connection: ConnectionOperation; }>
838
927
  GlossaryDefinition (component, @altertable/data-app-react/ui): (props: GlossaryDefinitionProps)
839
928
  GlossaryDefinition.entry: GlossaryEntry
840
929
  GlossaryDefinition.children?: ReactNode
@@ -899,9 +988,16 @@ injectDataAppStyles (function, @altertable/data-app-react, @altertable/data-app-
899
988
  injectDataAppStyles.options.document?: Document — Defaults to the current browser document.
900
989
  injectDataAppStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
901
990
  InputOf (type, @altertable/data-app/client): <T> = T extends { input: (value: unknown) => infer Input; } ? Input : never
991
+ InputOperationDefinition (type, @altertable/data-app/contract): <Input, Output, Queries, Filters> — An operation with its own input, such as a detail destination's record id. It may also read filters, such as the displayed scope it lists records for.
992
+ InputOperationDefinition.filters?: CheckedOperationFilters<Filters> — Filters the operation reads beside its own input; they are parsed for it.
993
+ InputOperationDefinition.input: (value: unknown) => Input — Parses the operation's own fields, without the filters.
994
+ InputOperationDefinition.checks: readonly [Input, ...Input[]] — Representative valid own inputs; each must pass `input`.
995
+ InputOperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
996
+ InputOperationDefinition.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
902
997
  isPlainKeyEvent (function, @altertable/data-app-react/ui): (event: KeyEvent, options: {…}): boolean — Keep local key actions separate from shortcuts and IME composition. Pass React's nativeEvent.
903
998
  isPlainKeyEvent.event.…: plus props inherited from built-in
904
999
  isPlainKeyEvent.options.allowShift?: boolean
1000
+ isPlainKeyEvent().valueOf: (): boolean — Returns the primitive value of the specified object.
905
1001
  ItemActions (type, @altertable/data-app-react/ui): <Row> = (row: Row) => readonly ExplorationAction[] — Resolves the actions available for a displayed domain row.
906
1002
  JourneyChart (component, @altertable/data-app-react/ui): (props: JourneyChartProps) — Path exploration with two initial steps, expandable prefixes, and three events per depth. Counts and flows use the Step 1 population. Compose inside VisualizationWidget.
907
1003
  JourneyChart.ariaLabel: string — Accessible measure and scope description.
@@ -971,7 +1067,7 @@ MetricFormat (type, @altertable/data-app/format): = props listed as formatMetric
971
1067
  MetricReading (type, @altertable/data-app-react/ui)
972
1068
  MetricReading.loading: true [variant 1 of 2]
973
1069
  MetricReading.loading: false [variant 2 of 2]
974
- MetricReading.value: MetricValues & { period?: DateTimeRangeRequest | undefined; } [variant 2 of 2]
1070
+ MetricReading.value: MetricValues & { period?: DateTimeRangeInput | undefined; } [variant 2 of 2]
975
1071
  MetricRecords (class, @altertable/data-app-react): <Data, Input, DetailData, DetailInput> — A metric-owned record destination. It can only render from that metric's displayed source.
976
1072
  MetricRecords.render: (source: ViewSource<Data, Input>, navigation?: DetailNavigation | undefined) => { scope: string; content: FunctionComponentElement<{ content: DetailContent<any, any>; input: any; navigation?: DetailNavigation | undefined; }>; } | undefined
977
1073
  MetricValues (type, @altertable/data-app-react): Zero is measured data. null or omitted means no previous measurement. Comparison activation belongs to the reading's period, not these values.
@@ -1010,33 +1106,39 @@ MetricWidget.content: string | (string & Iterable<ReactNode>) | (string & Promis
1010
1106
  MetricWidget.…: plus props inherited from React
1011
1107
  MetricWidgetProps (type, @altertable/data-app-react): <Data, Input> = props listed as MetricWidget.*
1012
1108
  MetricWidgetProps (type, @altertable/data-app-react/ui): = props listed as MetricWidget.* — VisualizationWidget with a formatted metric, optional comparison, and evidence.
1013
- mountDataApp (function, @altertable/data-app-react): <const Queries extends QueryDefinitions>(options: {…}): void — Mount once per document; installs document identity and the shared request provider.
1109
+ mountDataApp (function, @altertable/data-app-react): <const Queries extends QueryDefinitions>(options: {…}): void — Mount once per browser document; server imports do not mount.
1014
1110
  mountDataApp.options.app: DataAppDefinition<Queries>
1015
1111
  mountDataApp.options.component: ComponentType
1016
1112
  mountDataApp.options.root?: HTMLElement | null
1017
- multiChoiceVariable (function, @altertable/data-app-react): <const Options extends readonly ChoiceOption[], const Presentation extends VariablePresentation | undefined = undefined>(options: Omit<ScalarVariableOptions, 'defaultValue' | 'presentation'> & { presentation?: Presentation; defaultValue?: readonly NoInfer<Options[number]['id']>[]; options: Options…
1018
- multiChoiceVariable.options.label?: string
1019
- multiChoiceVariable.options.key: string
1020
- multiChoiceVariable.options.history?: HistoryMode
1021
- multiChoiceVariable.options.presentation?: Presentation
1022
- multiChoiceVariable.options.defaultValue?: readonly NoInfer<Options[number]['id']>[]
1023
- multiChoiceVariable.options.options: Options & (Options extends readonly [] ? never : unknown)
1024
- multiChoiceVariable.options.maxSelected?: number
1025
- MultiChoiceVariable (type, @altertable/data-app-react)
1026
- MultiChoiceVariable.kind: 'multiChoice'
1027
- MultiChoiceVariable.label?: string
1028
- MultiChoiceVariable.presentation?: VariablePresentation
1029
- MultiChoiceVariable.urlKeys: readonly string[]
1030
- MultiChoiceVariable.defaultValue: readonly string[]
1031
- MultiChoiceVariable.clearValue?: readonly string[] — Unrestricted value, when this variable represents a filter.
1032
- MultiChoiceVariable.describe?: ((value: readonly string[]) => string)
1033
- MultiChoiceVariable.history: HistoryMode
1034
- MultiChoiceVariable.read: (params: URLSearchParams) => readonly string[]
1035
- MultiChoiceVariable.write: (value: readonly string[]) => Record<string, string | null>
1036
- MultiChoiceVariable.valid: (value: readonly string[]) => boolean
1037
- MultiChoiceVariable.same: (left: readonly string[], right: readonly string[]) => boolean
1038
- MultiChoiceVariable.options: readonly ChoiceOption[]
1039
- MultiChoiceVariable.maxSelected: number
1113
+ multiChoiceFilter (function, @altertable/data-app/contract): <const Options extends readonly ChoiceOption[]>(options: Omit<ScalarFilterOptions, 'defaultValue'> & { defaultValue?: readonly NoInfer<Options[number]['id']>[]; options: Options & (Options extends readonly [ ] ? never : unknown); maxSelected?: number; }): MultiChoiceFilter
1114
+ multiChoiceFilter.options.label?: string
1115
+ multiChoiceFilter.options.key: string
1116
+ multiChoiceFilter.options.history?: HistoryMode
1117
+ multiChoiceFilter.options.presentation?: FilterPresentation
1118
+ multiChoiceFilter.options.defaultValue?: readonly NoInfer<Options[number]['id']>[]
1119
+ multiChoiceFilter.options.options: Options & (Options extends readonly [] ? never : unknown)
1120
+ multiChoiceFilter.options.maxSelected?: number
1121
+ MultiChoiceFilter (type, @altertable/data-app/contract)
1122
+ MultiChoiceFilter.kind: 'multiChoice'
1123
+ MultiChoiceFilter.label?: string
1124
+ MultiChoiceFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1125
+ MultiChoiceFilter.urlKeys: readonly string[]
1126
+ MultiChoiceFilter.defaultValue: readonly string[]
1127
+ MultiChoiceFilter.clearValue?: readonly string[] — Unrestricted value, when this filter can be cleared.
1128
+ MultiChoiceFilter.describe?: ((value: readonly string[]) => string)
1129
+ MultiChoiceFilter.history: HistoryMode
1130
+ MultiChoiceFilter.read: (params: URLSearchParams) => readonly string[]
1131
+ MultiChoiceFilter.write: (value: readonly string[]) => Record<string, string | null>
1132
+ MultiChoiceFilter.valid: (value: readonly string[]) => boolean
1133
+ MultiChoiceFilter.same: (left: readonly string[], right: readonly string[]) => boolean
1134
+ MultiChoiceFilter.options: readonly ChoiceOption[]
1135
+ MultiChoiceFilter.maxSelected: number
1136
+ Notice (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: NoticeProps) — Quiet contextual feedback with an optional action. Content wraps before its action on narrow containers.
1137
+ Notice.title: ReactNode
1138
+ Notice.description?: ReactNode
1139
+ Notice.action?: ReactNode
1140
+ Notice.…: plus props inherited from React
1141
+ NoticeProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as Notice.*
1040
1142
  NumberField (component, @altertable/data-app-react/ui): (props: NumberFieldProps) — Localized numeric entry. Empty input is null rather than zero.
1041
1143
  NumberField.label: string
1042
1144
  NumberField.value: number | null
@@ -1049,7 +1151,7 @@ numberFilter.options.key: string
1049
1151
  numberFilter.options.label: string
1050
1152
  numberFilter.options.defaultValue?: NumberSelection
1051
1153
  numberFilter.options.history?: HistoryMode
1052
- numberFilter.options.presentation?: VariablePresentation
1154
+ numberFilter.options.presentation?: FilterPresentation
1053
1155
  numberFilter.options.min?: number
1054
1156
  numberFilter.options.max?: number
1055
1157
  NumberFilter (type, @altertable/data-app/contract): = props listed as parseNumberSelection.filter.*
@@ -1082,19 +1184,15 @@ NumberSelection.value: number [variant 2 of 3]
1082
1184
  NumberSelection.kind: 'range' [variant 3 of 3]
1083
1185
  NumberSelection.min?: number [variant 3 of 3]
1084
1186
  NumberSelection.max?: number [variant 3 of 3]
1085
- OperationDefinition (type, @altertable/data-app/contract): <Input, Output, Queries> — Infer operation data from run().
1086
- OperationDefinition.input: (value: unknown) => Input
1087
- OperationDefinition.checks: readonly [Input, ...Input[]]
1088
- OperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
1089
- OperationDefinition.run: (context: Pick<OperationContext, 'signal'> & { query: RegisteredQuery<NoInfer<Queries>>; }, input: Input) => Promise<...>
1187
+ OperationFilters (type, @altertable/data-app/client): <Operations> = { readonly [Name in keyof Operations as Operations[Name] extends { filters: infer Filters extends FilterCollection; } ? keyof Filters extends never ? never : Name : never]: ...; } — The filters each operation reads, for operations that read any.
1090
1188
  OutputOf (type, @altertable/data-app/client): <T> = T extends { run: (...args: never[]) => Promise<infer Output>; } ? Output : unknown — An operation's data is what its `run` resolves to.
1091
1189
  parseBooleanSelection (function, @altertable/data-app/contract): (value: unknown, filter: BooleanFilter): BooleanSelection
1092
1190
  parseBooleanSelection.filter.kind: 'booleanFilter'
1093
1191
  parseBooleanSelection.filter.label: string
1094
- parseBooleanSelection.filter.presentation?: VariablePresentation
1192
+ parseBooleanSelection.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1095
1193
  parseBooleanSelection.filter.urlKeys: readonly string[]
1096
1194
  parseBooleanSelection.filter.defaultValue: BooleanSelection
1097
- parseBooleanSelection.filter.clearValue?: BooleanSelection — Unrestricted value, when this variable represents a filter.
1195
+ parseBooleanSelection.filter.clearValue?: BooleanSelection — Unrestricted value, when this filter can be cleared.
1098
1196
  parseBooleanSelection.filter.describe?: ((value: BooleanSelection) => string)
1099
1197
  parseBooleanSelection.filter.history: HistoryMode
1100
1198
  parseBooleanSelection.filter.read: (params: URLSearchParams) => BooleanSelection
@@ -1102,6 +1200,13 @@ parseBooleanSelection.filter.write: (value: BooleanSelection) => Record<string,
1102
1200
  parseBooleanSelection.filter.valid: (value: BooleanSelection) => boolean
1103
1201
  parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelection) => boolean
1104
1202
  parseCount (function, @altertable/data-app/contract): (value: unknown): number — Accepts numeric strings from DuckDB; rejects negative, fractional, and unsafe integers.
1203
+ parseCount().toString: (radix: number): string — Returns a string representation of an object.
1204
+ parseCount().toFixed: (fractionDigits: number): string — Returns a string representing a number in fixed-point notation.
1205
+ parseCount().toExponential: (fractionDigits: number): string — Returns a string containing a number represented in exponential notation.
1206
+ parseCount().toPrecision: (precision: number): string — Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
1207
+ parseCount().valueOf: (): number — Returns the primitive value of the specified object.
1208
+ parseCount().toLocaleString: (locales: string | string[], options: Intl.NumberFormatOptions): string; (locales: Intl.LocalesArgument, options: Intl.NumberFormatOptions): string — Converts a number to a string by using the current or specified locale.
1209
+ parseCount().toLocaleString.options.…: plus props inherited from built-in
1105
1210
  parseDateTime (function, @altertable/data-app/format): (value: DateTimeValue): Date | null — Parse only unambiguous instants. String values must include `Z` or an explicit offset.
1106
1211
  parseDateTimeBound (function, @altertable/data-app/contract): (text: string): AbsoluteOrRelativeDateTime | null — Parse one bound without resolving relative anchors or offsets.
1107
1212
  parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
@@ -1115,14 +1220,15 @@ ParseDateTimeRangeResult.normalizedInput: string
1115
1220
  ParseDateTimeRangeResult.parser: 'calendar-preset' | 'calendar-range' | 'chrono' | 'relative' | 'unix' [variant 1 of 2]
1116
1221
  ParseDateTimeRangeResult.ok: false [variant 2 of 2]
1117
1222
  ParseDateTimeRangeResult.reason: DateTimeRangeParseFailureReason [variant 2 of 2]
1118
- parseDimensionSelection (function, @altertable/data-app/contract): <T extends DimensionValue>(value: unknown, filter: DimensionSelectionVariable<T>): DimensionSelection<T> — Server-side parser; call from the operation input parser before building SQL.
1223
+ parseDimensionSelection (function, @altertable/data-app/contract): <T extends DimensionValue>(value: unknown, filter: DimensionSelectionFilter<T>): DimensionSelection<T> — Server-side parser; call from the operation input parser before building SQL.
1119
1224
  parseDimensionSelection.filter.kind: 'dimension'
1120
1225
  parseDimensionSelection.filter.label: string
1121
- parseDimensionSelection.filter.presentation?: VariablePresentation
1226
+ parseDimensionSelection.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1122
1227
  parseDimensionSelection.filter.urlKeys: readonly string[]
1123
1228
  parseDimensionSelection.filter.defaultValue: DimensionSelection<T>
1124
- parseDimensionSelection.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this variable represents a filter.
1125
- parseDimensionSelection.filter.describe: ((value: DimensionSelection<T>) => string) & ((selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[] | undefined) => string)
1229
+ parseDimensionSelection.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this filter can be cleared.
1230
+ parseDimensionSelection.filter.describe: (value: Value): string
1231
+ parseDimensionSelection.filter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
1126
1232
  parseDimensionSelection.filter.history: HistoryMode
1127
1233
  parseDimensionSelection.filter.read: (params: URLSearchParams) => DimensionSelection<T>
1128
1234
  parseDimensionSelection.filter.write: (value: DimensionSelection<T>) => Record<string, string | null>
@@ -1135,15 +1241,15 @@ parseDimensionSelection.filter.allowMissing: boolean
1135
1241
  parseDimensionSelection.filter.allowExclusion: boolean
1136
1242
  parseDimensionSelection.filter.maxSelected: number
1137
1243
  parseDimensionSelection.filter.options: readonly DimensionOption<T>[]
1138
- parseEmptyInput (function, @altertable/data-app/contract): (value: unknown): Record<string, never>
1139
- parseFacetOptions (function, @altertable/data-app/contract): <T extends DimensionValue>(value: unknown, filter: DimensionSelectionVariable<T>): DimensionOption<T>[] — Validate bounded facet results before showing them in a picker.
1244
+ parseFacetOptions (function, @altertable/data-app/contract): <T extends DimensionValue>(value: unknown, filter: DimensionSelectionFilter<T>): DimensionOption<T>[] — Validate bounded facet results before showing them in a picker.
1140
1245
  parseFacetOptions.filter.kind: 'dimension'
1141
1246
  parseFacetOptions.filter.label: string
1142
- parseFacetOptions.filter.presentation?: VariablePresentation
1247
+ parseFacetOptions.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1143
1248
  parseFacetOptions.filter.urlKeys: readonly string[]
1144
1249
  parseFacetOptions.filter.defaultValue: DimensionSelection<T>
1145
- parseFacetOptions.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this variable represents a filter.
1146
- parseFacetOptions.filter.describe: ((value: DimensionSelection<T>) => string) & ((selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[] | undefined) => string)
1250
+ parseFacetOptions.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this filter can be cleared.
1251
+ parseFacetOptions.filter.describe: (value: Value): string
1252
+ parseFacetOptions.filter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
1147
1253
  parseFacetOptions.filter.history: HistoryMode
1148
1254
  parseFacetOptions.filter.read: (params: URLSearchParams) => DimensionSelection<T>
1149
1255
  parseFacetOptions.filter.write: (value: DimensionSelection<T>) => Record<string, string | null>
@@ -1160,10 +1266,10 @@ parseLabel (function, @altertable/data-app/contract): (value: unknown, maxLength
1160
1266
  parseNumberSelection (function, @altertable/data-app/contract): (value: unknown, filter: NumberFilter): NumberSelection
1161
1267
  parseNumberSelection.filter.kind: 'numberFilter'
1162
1268
  parseNumberSelection.filter.label: string
1163
- parseNumberSelection.filter.presentation?: VariablePresentation
1269
+ parseNumberSelection.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1164
1270
  parseNumberSelection.filter.urlKeys: readonly string[]
1165
1271
  parseNumberSelection.filter.defaultValue: NumberSelection
1166
- parseNumberSelection.filter.clearValue?: NumberSelection — Unrestricted value, when this variable represents a filter.
1272
+ parseNumberSelection.filter.clearValue?: NumberSelection — Unrestricted value, when this filter can be cleared.
1167
1273
  parseNumberSelection.filter.describe?: ((value: NumberSelection) => string)
1168
1274
  parseNumberSelection.filter.history: HistoryMode
1169
1275
  parseNumberSelection.filter.read: (params: URLSearchParams) => NumberSelection
@@ -1173,11 +1279,12 @@ parseNumberSelection.filter.same: (left: NumberSelection, right: NumberSelection
1173
1279
  parseNumberSelection.filter.min?: number
1174
1280
  parseNumberSelection.filter.max?: number
1175
1281
  parseTrue (function, @altertable/data-app/contract): (value: unknown): true
1282
+ parseTrue().valueOf: (): boolean — Returns the primitive value of the specified object.
1176
1283
  PeriodComparison (type, @altertable/data-app-react)
1177
1284
  PeriodComparison.kind: 'previous' [variant 1 of 2]
1178
1285
  PeriodComparison.kind: 'period' [variant 2 of 2]
1179
1286
  PeriodComparison.period: ReportingPeriod [variant 2 of 2]
1180
- PeriodSummary (component, @altertable/data-app-react): (props: PeriodSummaryProps) — Read-only period context for the variable bar, including exact bounds for assistive technology.
1287
+ PeriodSummary (component, @altertable/data-app-react): (props: PeriodSummaryProps) — Read-only period context for the control bar, including exact bounds for assistive technology.
1181
1288
  PeriodSummary.period: ReportingPeriod
1182
1289
  PeriodSummary.comparison?: PeriodComparison
1183
1290
  PeriodSummary.className?: string
@@ -1204,28 +1311,37 @@ PresentStory.dataContext: DataContext
1204
1311
  PresentStory.theme?: ThemeController
1205
1312
  PresentStory.headerActions?: ReactNode
1206
1313
  PresentStory.footer?: ReactNode
1314
+ PresentStory.trigger?: boolean — False renders only the presentation, which `?present=1&step=` opens.
1207
1315
  PresentStory.…: plus props inherited from React
1208
1316
  PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
1317
+ queryDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(filter: Pick<DateTimeRangeFilter, 'request'>, input: DateTimeRangeInput, prefix: Prefix, now: Date): { current: Record<`${Prefix}_from` | `${Prefix}_to`, string>; comparison: Record<`${Prefix}_from` | `${Prefix}_to`, string> | null; combined: Record<`${Prefix}_from` |… — Bind one date selection immediately before dispatching a query. Both periods share one clock.
1318
+ queryDateTimeRangeParams.filter.request: (selection: DateTimeRangeSelection, now?: Date | undefined) => DateTimeRangeRequest — Resolve a selection against one reference time.
1319
+ queryDateTimeRangeParams.input.range: ResolvedDateTimeRange
1320
+ queryDateTimeRangeParams.input.comparison: ResolvedDateTimeRange | null
1321
+ queryDateTimeRangeParams.input.selection?: DateTimeRangeSelection — Original selection, retained so relative bounds can be resolved when a query runs.
1322
+ queryDateTimeRangeParams.now.…: plus props inherited from built-in
1209
1323
  QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryDefinition>> = { readonly [x: string]: QueryDefinition; }
1210
1324
  QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
1211
1325
  QueryField.type: keyof QueryValues
1212
1326
  QueryField.nullable?: boolean
1213
- QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar or datetime-range parameters with optional fallback values.
1214
- QueryParameter.type: 'dateTimeRange' [variant 1 of 9]
1215
- QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5 of 9]
1216
- QueryParameter.defaultValue?: { from?: string | AbsoluteOrRelativeDateTime | null | undefined; to?: string | AbsoluteOrRelativeDateTime | null | undefined; } [variant 1 of 9] — Absolute defaults may use canonical UTC ISO strings (including milliseconds) for static manifests. Snapshots hydrate them into Dates.
1217
- QueryParameter.type: 'boolean' [variants 2, 6 of 9]
1218
- QueryParameter.defaultValue?: boolean [variant 2 of 9]
1219
- QueryParameter.type: 'null' [variants 3, 7 of 9]
1220
- QueryParameter.defaultValue?: null [variants 3, 7 of 9]
1221
- QueryParameter.type: 'number' [variants 4, 8 of 9]
1222
- QueryParameter.defaultValue?: number [variant 4 of 9]
1223
- QueryParameter.type: 'string' [variants 5, 9 of 9]
1224
- QueryParameter.defaultValue?: string [variant 5 of 9]
1225
- QueryParameter.nullable: true [variants 6, 7, 8, 9 of 9]
1226
- QueryParameter.defaultValue?: boolean | null [variant 6 of 9]
1227
- QueryParameter.defaultValue?: number | null [variant 8 of 9]
1228
- QueryParameter.defaultValue?: string | null [variant 9 of 9]
1327
+ QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar, datetime-range, or dimension parameters with optional fallback values. Structured values bind as JSON; statements use DuckDB SQL to read their fields.
1328
+ QueryParameter.type: 'dimension' [variant 1 of 10] — A dimension filter's `DimensionSelection`, bound as validated JSON.
1329
+ QueryParameter.valueType: 'number' | 'string' [variant 1 of 10]
1330
+ QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5, 6 of 10]
1331
+ QueryParameter.type: 'dateTimeRange' [variant 2 of 10]
1332
+ QueryParameter.defaultValue?: { from?: string | AbsoluteOrRelativeDateTime | null | undefined; to?: string | AbsoluteOrRelativeDateTime | null | undefined; } [variant 2 of 10] — Absolute defaults may use canonical UTC ISO strings (including milliseconds) for static manifests. Snapshots hydrate them into Dates.
1333
+ QueryParameter.type: 'boolean' [variants 3, 7 of 10]
1334
+ QueryParameter.defaultValue?: boolean [variant 3 of 10]
1335
+ QueryParameter.type: 'null' [variants 4, 8 of 10]
1336
+ QueryParameter.defaultValue?: null [variants 4, 8 of 10]
1337
+ QueryParameter.type: 'number' [variants 5, 9 of 10]
1338
+ QueryParameter.defaultValue?: number [variant 5 of 10]
1339
+ QueryParameter.type: 'string' [variants 6, 10 of 10]
1340
+ QueryParameter.defaultValue?: string [variant 6 of 10]
1341
+ QueryParameter.nullable: true [variants 7, 8, 9, 10 of 10]
1342
+ QueryParameter.defaultValue?: boolean | null [variant 7 of 10]
1343
+ QueryParameter.defaultValue?: number | null [variant 9 of 10]
1344
+ QueryParameter.defaultValue?: string | null [variant 10 of 10]
1229
1345
  QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
1230
1346
  QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
1231
1347
  QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
@@ -1276,9 +1392,10 @@ resolveDateTimeRange (function, @altertable/data-app/contract): (value: DateTime
1276
1392
  resolveDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
1277
1393
  resolveDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
1278
1394
  resolveDateTimeRange.now.…: plus props inherited from built-in
1279
- ResolvedDateTimeRange (type, @altertable/data-app/contract): Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
1280
- ResolvedDateTimeRange.from: Date
1281
- ResolvedDateTimeRange.to: Date
1395
+ ResolvedDateTimeRange (type, @altertable/data-app/contract): = props listed as resolvedDateTimeRangeParams.range.* — Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
1396
+ resolvedDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(range: ResolvedDateTimeRange, prefix: Prefix): Record<`${Prefix}_from` | `${Prefix}_to`, string> — Bind a resolved filter range as timestamp strings for literal DuckDB SQL. Dates carry reporting-zone wall-clock fields in UTC; omit `Z` for TIMESTAMP casts.
1397
+ resolvedDateTimeRangeParams.range.from: Date
1398
+ resolvedDateTimeRangeParams.range.to: Date
1282
1399
  RetentionChart (component, @altertable/data-app-react/ui): (props: RetentionChartProps) — Query-defined retention curves with count inspection and dotted incomplete periods. Rates are not recomputed from counts. Compose inside VisualizationWidget.
1283
1400
  RetentionChart.ariaLabel: string — Accessible measure and scope description.
1284
1401
  RetentionChart.unit: string — Population unit, such as users or sessions.
@@ -1286,6 +1403,7 @@ RetentionChart.formatValue?: ((value: number) => string) — Formats counts; rat
1286
1403
  RetentionChart.className?: string
1287
1404
  RetentionChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
1288
1405
  RetentionChart.series: readonly RetentionChartSeries[]
1406
+ RetentionChart.interactiveLegend?: boolean — Disable legend hover and focus controls.
1289
1407
  RetentionChartPoint (type, @altertable/data-app-react/ui)
1290
1408
  RetentionChartPoint.offset: number — Nonnegative integer, unique per series; uneven offsets retain their distance.
1291
1409
  RetentionChartPoint.label: string — Must agree across series for the same offset.
@@ -1335,6 +1453,25 @@ SearchField.inputProps?: Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputEle
1335
1453
  SearchField.children?: ReactNode
1336
1454
  SearchField.…: plus props inherited from React
1337
1455
  SearchFieldProps (type, @altertable/data-app-react/ui): = props listed as SearchField.*
1456
+ searchFilter (function, @altertable/data-app/contract): (options: Omit<ScalarFilterOptions, 'presentation'> & { maxLength?: number; }): SearchFilter — Search query state; typing replaces history by default. Operations reject text longer than `maxLength` (200 by default).
1457
+ searchFilter.options.label?: string
1458
+ searchFilter.options.key: string
1459
+ searchFilter.options.defaultValue?: string
1460
+ searchFilter.options.history?: HistoryMode
1461
+ searchFilter.options.maxLength?: number
1462
+ SearchFilter (type, @altertable/data-app/contract)
1463
+ SearchFilter.kind: 'search'
1464
+ SearchFilter.label?: string
1465
+ SearchFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1466
+ SearchFilter.urlKeys: readonly string[]
1467
+ SearchFilter.defaultValue: string
1468
+ SearchFilter.clearValue?: string — Unrestricted value, when this filter can be cleared.
1469
+ SearchFilter.describe?: ((value: string) => string)
1470
+ SearchFilter.history: HistoryMode
1471
+ SearchFilter.read: (params: URLSearchParams) => string
1472
+ SearchFilter.write: (value: string) => Record<string, string | null>
1473
+ SearchFilter.valid: (value: string) => boolean
1474
+ SearchFilter.same: (left: string, right: string) => boolean
1338
1475
  SearchHit (type, @altertable/data-app-react/ui): <Item>
1339
1476
  SearchHit.item: Item
1340
1477
  SearchHit.score: number
@@ -1378,24 +1515,6 @@ SearchTypeahead.children?: ReactNode
1378
1515
  SearchTypeahead.items: readonly SearchSuggestion[] — Suggestions from the displayed result, in its order. No additional filtering or request.
1379
1516
  SearchTypeahead.…: plus props inherited from React
1380
1517
  SearchTypeaheadProps (type, @altertable/data-app-react/ui): = props listed as SearchTypeahead.*
1381
- searchVariable (function, @altertable/data-app-react): (options: Omit<ScalarVariableOptions, 'presentation'>): SearchVariable — Search query state; typing replaces history by default.
1382
- searchVariable.options.label?: string
1383
- searchVariable.options.key: string
1384
- searchVariable.options.defaultValue?: string
1385
- searchVariable.options.history?: HistoryMode
1386
- SearchVariable (type, @altertable/data-app-react)
1387
- SearchVariable.kind: 'search'
1388
- SearchVariable.label?: string
1389
- SearchVariable.presentation?: VariablePresentation
1390
- SearchVariable.urlKeys: readonly string[]
1391
- SearchVariable.defaultValue: string
1392
- SearchVariable.clearValue?: string — Unrestricted value, when this variable represents a filter.
1393
- SearchVariable.describe?: ((value: string) => string)
1394
- SearchVariable.history: HistoryMode
1395
- SearchVariable.read: (params: URLSearchParams) => string
1396
- SearchVariable.write: (value: string) => Record<string, string | null>
1397
- SearchVariable.valid: (value: string) => boolean
1398
- SearchVariable.same: (left: string, right: string) => boolean
1399
1518
  SectionHeading (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: SectionHeadingProps) — A section title with the shared section-heading appearance.
1400
1519
  SectionHeading.children: ReactNode
1401
1520
  SectionHeading.level?: 2 | 3 | 4 | 5 | 6 — Document outline level. Defaults to the section level below the page title.
@@ -1602,7 +1721,7 @@ UpdatedAt.open?: boolean
1602
1721
  UpdatedAt.onOpenChange?: ((open: boolean) => void)
1603
1722
  UpdatedAt.timeZone?: string
1604
1723
  UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
1605
- useAppVariables (hook, @altertable/data-app-react/ui): <const Variables extends VariableCollection>(definitions: Variables): { values: AppVariableValues<Variables>; calendarRevision: number; set: <Key extends keyof Variables & string>(name: Key, value: AppVariableValues<Variables>[Key]) => void; ... 4 more ...; bind: <Key extends keyof Variables & stri… — URL is the source of truth for app variables; one update can change dependent values atomically.
1724
+ useAppFilters (hook, @altertable/data-app-react/ui): <const Collection extends FilterCollection>(definitions: Collection): { values: FilterValues<Collection>; calendarRevision: number; set: <Key extends keyof Collection & string>(name: Key, value: FilterValues<Collection>[Key]) => void; ... 4 more ...; bind: <Key extends keyof Collection & string>(na… — URL is the source of truth for app filters; one update can change dependent values atomically.
1606
1725
  useChartCursorGroup (hook, @altertable/data-app-react/ui): (): ChartCursorGroup — Creates a stable shared mouse-hover cursor handle. Pass it explicitly to each participating chart's cursorGroup prop. Peers indicate exact timestamp matches while tooltips remain local.
1607
1726
  useDateFormatting (hook, @altertable/data-app-react, @altertable/data-app-react/ui): (options: {…}): { locale: string; timeZone: string; } — Resolve date display defaults for custom charts and narrative. Explicit options override the view and app.
1608
1727
  useDateFormatting.options.locale?: string
@@ -1610,15 +1729,11 @@ useDateFormatting.options.timeZone?: string
1610
1729
  useDetailNavigation (hook, @altertable/data-app-react): (): DetailNavigation — Resolve a detail target from an interaction. The destination validates input before fetching.
1611
1730
  useSvgId (hook, @altertable/data-app-react/ui): (): string — Stable React ID for SVG definitions and their URL references; safe with identifier prefixes.
1612
1731
  useViewTab (hook, @altertable/data-app-react/ui): <View extends string>(views: readonly View[], fallback: View): [View, (key: string | number) => void] — Keep a page-level tab in `?view=`; reserve `?tab=` for the inspect sheet.
1613
- VariableBar (component, @altertable/data-app-react/ui): (props: VariableBarProps) — User-controlled inputs below the page header.
1614
- VariableBar.children: ReactNode
1615
- VariableBar.…: plus props inherited from React
1616
- VariableBarProps (type, @altertable/data-app-react/ui): = props listed as VariableBar.*
1617
- variableInput (function, @altertable/data-app/contract): <Input extends object, const Variables extends VariableCollection>(parse: (value: unknown) => Input, variables: Variables): (value: unknown) => Input & ParsedVariableValues<Variables> — Validate named variable values at the operation boundary.
1618
- VariablePresentation (type, @altertable/data-app-react)
1619
- VariablePresentation.group?: 'display' | 'scope' — Scope changes the included data; display changes its presentation. Defaults to scope.
1620
- VariablePresentation.control?: 'toolbar' | 'widget' — Widget controls render beside their visualization instead of in the toolbar. Scope filters remain available in the Filters sheet and active summaries.
1621
- VariablePresentation.prominence?: 'primary' | 'secondary' — Secondary scope controls live in the Filters sheet with compact pickers when active; secondary display options follow primary options. Defaults to primary.
1732
+ ViewSource (type, @altertable/data-app-react): <Data, Input> — A view's displayed data and input, or its loading state; widgets and bindings read it.
1733
+ ViewSource.loading: true [variant 1 of 2]
1734
+ ViewSource.loading?: false [variant 2 of 2]
1735
+ ViewSource.data: Data [variant 2 of 2]
1736
+ ViewSource.input: Input [variant 2 of 2]
1622
1737
  VisualizationWidget (component, @altertable/data-app-react): <Row, Data, Input>(props: VisualizationWidgetProps<Row, Data, Input>)
1623
1738
  VisualizationWidget.skeleton?: SkeletonContent
1624
1739
  VisualizationWidget.headingLevel?: 2 | 3 | 4 | 5 | 6 — Document outline level. The widget title keeps the shared widget-heading appearance.
@@ -1686,4 +1801,5 @@ WidgetStatus.kind: 'updating' [variant 2 of 3]
1686
1801
  WidgetStatus.message?: string [variants 2, 3 of 3]
1687
1802
  WidgetStatus.kind: 'error' [variant 3 of 3]
1688
1803
  WidgetStatus.onRetry?: (() => void) [variant 3 of 3]
1804
+ WithFilterInput (type, @altertable/data-app/contract): <Filters, Input> = keyof Filters extends never ? Input : FilterInput<Filters> & Input — The full input of an operation with its own fields and optional filters.
1689
1805
  ```