@altertable/data-app 0.76.0 → 0.77.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 (45) hide show
  1. package/REFERENCE.md +365 -257
  2. package/dist/chunks/{contract-DsyRYgN_.js → contract-BQsFReRp.js} +323 -169
  3. package/dist/chunks/contract-BQsFReRp.js.map +1 -0
  4. package/dist/chunks/{contract-kNFYPHRK.js → contract-VhY9V9wd.js} +184 -91
  5. package/dist/chunks/contract-VhY9V9wd.js.map +1 -0
  6. package/dist/chunks/{date-time-range-value-TE8KCsfV.js → date-time-range-value-CnlTr1U1.js} +8 -8
  7. package/dist/chunks/date-time-range-value-CnlTr1U1.js.map +1 -0
  8. package/dist/chunks/{diagnostics-DhCqGklq.js → diagnostics-Dyj-rUsY.js} +2 -2
  9. package/dist/chunks/{diagnostics-DhCqGklq.js.map → diagnostics-Dyj-rUsY.js.map} +1 -1
  10. package/dist/chunks/{operation-7tiT4cpJ.js → operation-BVRM-A5Y.js} +3 -3
  11. package/dist/chunks/{operation-7tiT4cpJ.js.map → operation-BVRM-A5Y.js.map} +1 -1
  12. package/dist/client/index.js +65 -50
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/core/config.js +1 -1
  15. package/dist/core/config.js.map +1 -1
  16. package/dist/core/contract.js +4 -4
  17. package/dist/core/format.js +1 -1
  18. package/dist/internal.js +6 -124
  19. package/dist/internal.js.map +1 -1
  20. package/dist/server/index.js +3 -3
  21. package/dist/types/chunks/contract.d.ts +358 -309
  22. package/dist/types/chunks/contract2.d.ts +16 -2
  23. package/dist/types/chunks/index.d.ts +32 -5
  24. package/dist/types/client/index.d.ts +3 -3
  25. package/dist/types/core/config.d.ts +7 -3
  26. package/dist/types/core/contract.d.ts +3 -3
  27. package/dist/types/index.d.ts +1 -1
  28. package/dist/types/internal.d.ts +5 -5
  29. package/dist/types/server/index.d.ts +1 -1
  30. package/docs/app-authoring.md +15 -10
  31. package/docs/client.md +12 -7
  32. package/docs/contract.md +33 -51
  33. package/docs/data-context.md +9 -5
  34. package/docs/filters.md +295 -0
  35. package/docs/hosted-apps.md +4 -3
  36. package/docs/layout.md +24 -18
  37. package/docs/stories-and-export.md +19 -10
  38. package/docs/ui.md +6 -5
  39. package/docs/views.md +62 -26
  40. package/docs/widgets.md +38 -14
  41. package/package.json +1 -1
  42. package/dist/chunks/contract-DsyRYgN_.js.map +0 -1
  43. package/dist/chunks/contract-kNFYPHRK.js.map +0 -1
  44. package/dist/chunks/date-time-range-value-TE8KCsfV.js.map +0 -1
  45. 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; }
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
85
101
  AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>>
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.
@@ -135,7 +137,7 @@ booleanFilter.options.key: string
135
137
  booleanFilter.options.label: string
136
138
  booleanFilter.options.defaultValue?: BooleanSelection
137
139
  booleanFilter.options.history?: HistoryMode
138
- booleanFilter.options.presentation?: VariablePresentation
140
+ booleanFilter.options.presentation?: FilterPresentation
139
141
  BooleanFilter (type, @altertable/data-app/contract): = props listed as parseBooleanSelection.filter.*
140
142
  BooleanSelection (type, @altertable/data-app/contract)
141
143
  BooleanSelection.kind: 'all' [variant 1 of 2]
@@ -193,7 +195,28 @@ CheckboxGroup.onChange: (values: string[]) => void
193
195
  CheckboxGroup.…: plus props inherited from React
194
196
  CheckboxGroupProps (type, @altertable/data-app-react/ui): = props listed as CheckboxGroup.*
195
197
  CheckboxProps (type, @altertable/data-app-react/ui): = props listed as Checkbox.*
196
- ChoiceOption (type, @altertable/data-app-react, @altertable/data-app-react/ui)
198
+ 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.
199
+ choiceFilter.options.label?: string
200
+ choiceFilter.options.key: string
201
+ choiceFilter.options.history?: HistoryMode
202
+ choiceFilter.options.presentation?: FilterPresentation
203
+ choiceFilter.options.defaultValue: NoInfer<Options[number]['id']>
204
+ choiceFilter.options.options: Options & (Options extends readonly [] ? never : unknown)
205
+ ChoiceFilter (type, @altertable/data-app/contract): <Value>
206
+ ChoiceFilter.kind: 'choice'
207
+ ChoiceFilter.label?: string
208
+ ChoiceFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
209
+ ChoiceFilter.urlKeys: readonly string[]
210
+ ChoiceFilter.defaultValue: Value
211
+ ChoiceFilter.clearValue?: Value — Unrestricted value, when this filter can be cleared.
212
+ ChoiceFilter.describe?: ((value: Value) => string)
213
+ ChoiceFilter.history: HistoryMode
214
+ ChoiceFilter.read: (params: URLSearchParams) => Value
215
+ ChoiceFilter.write: (value: Value) => Record<string, string | null>
216
+ ChoiceFilter.valid: (value: Value) => boolean
217
+ ChoiceFilter.same: (left: Value, right: Value) => boolean
218
+ ChoiceFilter.options: readonly ChoiceOption[]
219
+ ChoiceOption (type, @altertable/data-app/contract, @altertable/data-app-react/ui)
197
220
  ChoiceOption.id: string
198
221
  ChoiceOption.label: string
199
222
  ChoiceOption.description?: string
@@ -217,27 +240,6 @@ ChoicePicker.selectionMode: 'single' [variant 2 of 2]
217
240
  ChoicePicker.value: string [variant 2 of 2]
218
241
  ChoicePicker.onChange: (value: string) => void [variant 2 of 2]
219
242
  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
243
  ColumnIdentifier (type, @altertable/data-app-react): <TableId>
242
244
  ColumnIdentifier.table: TableId
243
245
  ColumnIdentifier.name: string
@@ -278,6 +280,7 @@ ComposedChart.LabelList: (props: Props)
278
280
  ComposedChart.ErrorBar: (outsideProps: Props)
279
281
  ComposedChartLegendProps (type, @altertable/data-app-react/ui)
280
282
  ComposedChartLegendProps.maxVisibleItems?: number
283
+ ComposedChartLegendProps.interactive?: boolean — Enable hover emphasis and click to focus one or more series.
281
284
  ComposedChartLegendProps.…: plus props inherited from React, recharts
282
285
  ComposedChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as ComposedChart.*
283
286
  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 +290,55 @@ ConnectionOperation.input: (value: unknown) => Record<string, never>
287
290
  ConnectionOperation.run: (context: OperationContext, input: Record<string, never>) => Promise<true>
288
291
  ConnectionOperation.checks: readonly [Record<string, never>, ...Record<string, never>[]]
289
292
  ConnectionOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
293
+ ConnectionOperation.filters: {}
290
294
  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]
295
+ ControlBar (component, @altertable/data-app-react/ui): (props: ControlBarProps) — User-controlled inputs below the page header.
296
+ ControlBar.children: ReactNode
297
+ ControlBar.…: plus props inherited from React
298
+ ControlBarProps (type, @altertable/data-app-react/ui): = props listed as ControlBar.*
299
+ createDataClient (function, @altertable/data-app/client): <Operations extends DataOperations>(...args: DataClientOptions<Operations> extends never ? [ options: never ] : keyof OperationFilters<Operations> extends never ? [ ] : [ options: never ]): DataClient<Operations>; (options: TransportOptions): DataClient<DataOperations>; <Operations extends DataOperations>(options: DataClientOptions<Operations>): DataClient<Operations> — Named clients derive data from the declared operations' run return types. Without an operation contract, external operation data remains unknown.
297
300
  createDataClient.options.transport?: DataTransport
298
301
  createDataClient.options.endpoint?: string
299
- createDataClient.options.fetch?: typeof fetch
302
+ createDataClient.options.fetch?: (input: RequestInfo | URL, init: RequestInit): Promise<Response>
303
+ createDataClient.options.fetch?: (input: string | URL | Request, init: BunFetchRequestInit): Promise<Response>
304
+ createDataClient.options.fetch?: (input: string | URL | Request, init: RequestInit): Promise<Response>
305
+ createDataClient.options.operations: Operations [variant 1 of 2]
306
+ createDataClient.options.lakehouse?: Lakehouse [variant 1 of 2]
307
+ createDataClient.options.transport?: DataTransport [variant 2 of 2]
308
+ createDataClient.options.endpoint?: string [variant 2 of 2]
309
+ createDataClient.options.fetch?: (input: RequestInfo | URL, init: RequestInit): Promise<Response> [variant 2 of 2]
310
+ createDataClient.options.fetch?: (input: string | URL | Request, init: BunFetchRequestInit): Promise<Response> [variant 2 of 2]
311
+ createDataClient.options.fetch?: (input: string | URL | Request, init: RequestInit): Promise<Response> [variant 2 of 2]
312
+ createDataClient.options.filters?: OperationFilters<Operations> [variant 2 of 2] — Pass the same filter declarations the server operations read.
300
313
  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.
314
+ 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.
315
+ createDataHooks.client.filters: Readonly<Record<string, FilterCollection>> — Each operation's filters; views derive their inputs and controls from them.
302
316
  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<...>
317
+ 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…
318
+ createDataHooks().defineView.definition.operation: Name & (true extends IsUnion<NoInfer<Name>> ? never : unknown)
319
+ createDataHooks().defineView.definition.dataContext: DataContext & Context
320
+ 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`.
321
+ createDataHooks().defineView.definition.isEmpty?: ((data: OutputOf<Operations[Name]>) => boolean) — App-owned semantics: measured zero need not mean an empty result. Defaults to never empty.
322
+ createDataHooks().defineView.definition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
323
+ createDataHooks().defineView().filter: (): FilterTarget<Partial<{ [Key in keyof FiltersOf<Operations[Name]>]: Extract<FiltersOf<Operations[Name]>[Key]['presentation'], { group: 'display'; }> extends never ? FilterValues<...>[Key] : never; }>>
324
+ createDataHooks().defineView().breakdown: <Key extends DisplayChoiceName<Filters>>(key: Key): FiltersOf<Operations[Name]>[Key] extends ChoiceFilter<infer Value extends string> ? BreakdownTarget<Value> : never
325
+ 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…
326
+ 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]>>>
327
+ createDataHooks().defineView().scope: (snapshot: DisplayedSnapshot<Data, FilterInput<Filters>>): string
328
+ createDataHooks().defineView().content: (render: (state: DataContentState<Data, FilterInput<Filters>>) => ReactNode): ViewContent<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>>
329
+ 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…
330
+ createDataHooks().defineDetailView.definition.id: string
331
+ createDataHooks().defineDetailView.definition.title: ReactNode
332
+ createDataHooks().defineDetailView.definition.parseInput: (input: unknown) => InputOf<Operations[Name]> — Validates untrusted navigation input before a detail operation can run.
333
+ 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`.
334
+ createDataHooks().defineDetailView.definition.isEmpty?: ((data: OutputOf<Operations[Name]>) => boolean) — App-owned semantics: measured zero need not mean an empty result. Defaults to never empty.
335
+ createDataHooks().defineDetailView.definition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
336
+ createDataHooks().defineDetailView.definition.operation: Name
337
+ createDataHooks().defineDetailView.definition.dataContext: Context
338
+ createDataHooks().defineDetailView().useResult: (input: Input): ViewResult<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>
339
+ 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.
340
+ 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>
341
+ 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
342
  CsvCell (type, @altertable/data-app-react): = string | number | boolean | null | undefined
304
343
  CsvExport (type, @altertable/data-app-react/ui): All distinct datasets in the displayed result; filename names the download.
305
344
  CsvExport.filename: string
@@ -308,7 +347,7 @@ CsvTable (type, @altertable/data-app-react/ui): One named dataset with ordered c
308
347
  CsvTable.name: string
309
348
  CsvTable.columns: readonly string[]
310
349
  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.
350
+ 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
351
  DataApp.children: ReactNode
313
352
  DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
314
353
  DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
@@ -317,10 +356,11 @@ DataApp.footerActions?: ReactNode
317
356
  DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
318
357
  DataApp.showSearch?: boolean — Show declared search controls. Defaults to true; hiding preserves their values.
319
358
  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; }
359
+ 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.
360
+ 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
361
  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.
362
+ 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.
363
+ 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
364
  DataApp.details?: readonly DetailContent<any, any>[] — Detail destinations available to dataset actions and metric record inspection.
325
365
  DataApp (component, @altertable/data-app-react/ui): (props: DataAppProps) — Setup and static screens; fetched data uses the declared-view DataApp.
326
366
  DataApp.children: ReactNode
@@ -346,13 +386,14 @@ DataAppDefinition.description: string — Explain what the app helps readers exp
346
386
  DataAppDefinition.appearance?: AppearanceOptions — Omit to use the standard appearance.
347
387
  DataAppDefinition.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
348
388
  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'> & { ...; }
389
+ DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionFilter<...>
390
+ 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.
391
+ DataAppDefinition.defineOperation: <const Filters extends FilterCollection = {}, Output = unknown>(operation: FilterOperationDefinition<Filters, Output, Queries>): DefinedOperation<FilterInput<Filters>, Output, Queries, Filters>
351
392
  DataAppError (class, @altertable/data-app/client)
352
393
  DataAppError.code: string
353
394
  DataAppError.requestId?: string
354
395
  DataAppError.…: plus props inherited from built-in
355
- DataAppProps (type, @altertable/data-app-react): <Data, Input> = props listed as DataApp.*
396
+ DataAppProps (type, @altertable/data-app-react): <Data, Input, SummaryViews> = props listed as DataApp.*
356
397
  DataAppProps (type, @altertable/data-app-react/ui)
357
398
  DataAppProps.children: ReactNode
358
399
  DataAppProps.dataContext: DataContext
@@ -376,6 +417,8 @@ DataAppStylesOptions (type, @altertable/data-app-react)
376
417
  DataAppStylesOptions.document?: Document — Defaults to the current browser document.
377
418
  DataAppStylesOptions.nonce?: string — Nonce permitted by the document's style-src CSP.
378
419
  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'
420
+ DataAppView (type, @altertable/data-app-react): <Data, Input> — A declared data or time view that `<DataApp>` can run and describe.
421
+ DataAppView.scope: (snapshot: DisplayedSnapshot<Data, Input>) => string
379
422
  DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
380
423
  DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Browser operations and named-operation delivery are mutually exclusive.
381
424
  DataContext (type, @altertable/data-app-react)
@@ -392,6 +435,7 @@ DataIdentifierDefinition.kind: 'table' [variant 2 of 2]
392
435
  DataIdentifierDefinition.catalog: string [variant 2 of 2]
393
436
  DataIdentifierDefinition.schema: string [variant 2 of 2]
394
437
  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.
438
+ DataOperation.filters?: Readonly<FilterCollection> — The app filters the operation reads; its input has one field per filter.
395
439
  DataOperation.input: (value: unknown) => Input
396
440
  DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
397
441
  DataOperation.checks: readonly [Input, ...Input[]]
@@ -408,13 +452,20 @@ DataResponse.queriedAt: string
408
452
  DataResponse.queryIds: string[]
409
453
  DataResponse.queries?: DisclosedQuery[]
410
454
  DataResponse.input: Input — The exact browser input that produced this response.
411
- DataSection (component, @altertable/data-app-react): <Data, Input>(props: DataSectionProps<Data, Input>)
455
+ 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
456
  DataSection.content: ViewContent<Data, Input>
413
457
  DataSection.emptyFallback?: EmptyContent
414
458
  DataSection.error?: { title: ReactNode; description?: ReactNode; onRetry?: (() => void) | undefined; }
415
459
  DataSection.label?: string
416
460
  DataSection.…: plus props inherited from React
417
461
  DataSectionProps (type, @altertable/data-app-react): <Data, Input> = props listed as DataSection.*
462
+ Dataset (class, @altertable/data-app-react): <Data, Input, Row>
463
+ Dataset.evidence: WidgetEvidence
464
+ Dataset.actions: <const Actions extends Record<string, ActionDeclaration<Row, Input>>>(build: (action: ActionBuilder<Row, Input>) => Actions, options?: { primary?: (keyof Actions & string) | undefined; } | undefined) => ExplorationActions<...>
465
+ Dataset.readSearchSuggestions: (source: ViewSource<Data, Input>) => DataReading<readonly SearchSuggestion[]> | undefined
466
+ Dataset.read: <Source extends ViewSource<Data, Input>>(source: Source) => SourceReading<Source, readonly Row[]>
467
+ Dataset.assertSource: (source: object) => void
468
+ Dataset.name: string
418
469
  DatasetColumn (type, @altertable/data-app-react): <Row> — Keys supply IDs; accessors supply raw CSV values. Formats affect display only.
419
470
  DatasetColumn.label?: string
420
471
  DatasetColumn.value: (row: Row) => CsvCell [variant 1 of 4]
@@ -517,51 +568,50 @@ DateFormat.precision?: 'minute' | 'second' [variant 2 of 2]
517
568
  DateFormatOptions (type, @altertable/data-app/format): Formatting for calendar dates and instants without implicit time-zone parsing.
518
569
  DateFormatOptions.locale?: string
519
570
  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
571
  DateTimeFormatOptions (type, @altertable/data-app/format)
525
572
  DateTimeFormatOptions.locale?: string
526
573
  DateTimeFormatOptions.missing?: string
527
574
  DateTimeFormatOptions.timeZone?: string
528
575
  DateTimeFormatOptions.precision?: 'minute' | 'second'
529
576
  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.
577
+ 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.
578
+ 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 `{ range, comparison }`: `from` inclusive, `to` exclusive.
579
+ dateTimeRangeFilter.options.key: string
580
+ dateTimeRangeFilter.options.label?: string
581
+ dateTimeRangeFilter.options.defaultValue: string | DateTimeRange — Range text such as "7d" stays relative; `{ from, to }` is absolute.
582
+ dateTimeRangeFilter.options.timeZone?: string — Reporting zone for relative ranges, calendar days, and labels. Defaults to UTC.
583
+ dateTimeRangeFilter.options.maxRangeDays?: number — Longest selectable range.
584
+ dateTimeRangeFilter.options.minDate?: string — First date with data, as YYYY-MM-DD.
585
+ dateTimeRangeFilter.options.maxDate?: string | (() => string) — Last date with data, as YYYY-MM-DD.
586
+ dateTimeRangeFilter.options.completeDays?: boolean — End coverage yesterday, for sources that load whole days.
587
+ dateTimeRangeFilter.options.comparison?: Comparison — Offer the previous-period comparison. Omit for none.
588
+ 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.
589
+ dateTimeRangeFilter.options.history?: HistoryMode
590
+ dateTimeRangeFilter.options.presentation?: FilterPresentation
591
+ DateTimeRangeFilter (type, @altertable/data-app/contract, @altertable/data-app-react/ui): <Comparable>
592
+ DateTimeRangeFilter.kind: 'dateTimeRange'
593
+ DateTimeRangeFilter.label?: string
594
+ DateTimeRangeFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
595
+ DateTimeRangeFilter.urlKeys: readonly string[]
596
+ DateTimeRangeFilter.defaultValue: DateTimeRangeSelection
597
+ DateTimeRangeFilter.clearValue?: DateTimeRangeSelection — Unrestricted value, when this filter can be cleared.
598
+ DateTimeRangeFilter.describe?: ((value: DateTimeRangeSelection) => string)
599
+ DateTimeRangeFilter.history: HistoryMode
600
+ DateTimeRangeFilter.read: (params: URLSearchParams) => DateTimeRangeSelection
601
+ DateTimeRangeFilter.write: (value: DateTimeRangeSelection) => Record<string, string | null>
602
+ DateTimeRangeFilter.valid: (value: DateTimeRangeSelection) => boolean
603
+ DateTimeRangeFilter.same: (left: DateTimeRangeSelection, right: DateTimeRangeSelection) => boolean
604
+ DateTimeRangeFilter.comparable: Comparable — Whether readers can turn on the previous-period comparison.
605
+ 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…
606
+ DateTimeRangeFilter.maxRangeDays?: number
607
+ DateTimeRangeFilter.presets?: readonly DateTimeRangePreset[]
608
+ DateTimeRangeFilter.request: (selection: DateTimeRangeSelection, now?: Date | undefined) => DateTimeRangeRequest — Resolve a selection against one reference time.
609
+ DateTimeRangeFilter.parseInput: (value: unknown) => DateTimeRangeInput — Validate untrusted input against coverage and return what the operation receives.
610
+ DateTimeRangeFilter.previous: (selection: DateTimeRangeSelection) => ResolvedDateTimeRange | null
611
+ DateTimeRangeFilterOptions (type, @altertable/data-app/contract, @altertable/data-app-react/ui): <Comparison> = props listed as dateTimeRangeFilter.options.*
612
+ DateTimeRangeInput (type, @altertable/data-app/contract): 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.
613
+ DateTimeRangeInput.range: ResolvedDateTimeRange
614
+ DateTimeRangeInput.comparison: ResolvedDateTimeRange | null
565
615
  DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
566
616
  DateTimeRangeParserOptions (type, @altertable/data-app/format)
567
617
  DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
@@ -574,7 +624,7 @@ DateTimeRangePicker.placeholder?: string
574
624
  DateTimeRangePicker.label?: string
575
625
  DateTimeRangePicker.labelPlacement?: ControlLabelPlacement
576
626
  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.
627
+ 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
628
  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
629
  DateTimeRangePicker.disabled?: boolean
580
630
  DateTimeRangePicker.isDefault?: boolean
@@ -582,49 +632,27 @@ DateTimeRangePicker.onReset?: (() => void)
582
632
  DateTimeRangePicker.calendarFooter?: ReactNode
583
633
  DateTimeRangePicker.comparison?: { enabled: boolean; range: DateTimeRange | null; onChange: (enabled: boolean) => void; } — Optional controlled comparison with the immediately preceding equal-length interval.
584
634
  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.
635
+ DateTimeRangePolicy (type, @altertable/data-app/contract): A date filter's coverage, duration limit, and reporting time zone. Parsing preserves relative values.
636
+ DateTimeRangePolicy.timeZone: string
637
+ DateTimeRangePolicy.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number | undefined; timeZone: string; }
638
+ DateTimeRangePolicy.parse: (value: unknown, now?: Date | undefined) => DateTimeRange — Validate coverage and duration while preserving symbolic relative bounds.
639
+ DateTimeRangePolicy.resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange — Resolve to UTC-rebased bounds using reporting-zone wall-clock fields, then validate policy.
640
+ DateTimeRangePolicy.comparison: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange | null — Return the comparison window, or null when source coverage excludes it.
641
+ DateTimeRangePolicy.endAtNow: (range: ResolvedDateTimeRange, now?: Date | undefined) => ResolvedDateTimeRange — End a resolved range at the reference time when it runs past it.
642
+ DateTimeRangePolicy.request: (value: unknown, compare?: boolean | undefined, now?: Date | undefined) => DateTimeRangeInput — Resolve both periods against one reference instant, ending the range at now.
643
+ 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
644
  DateTimeRangePreset.label: string — Menu label, also shown when this preset matches the selected range.
587
645
  DateTimeRangePreset.range: string | DateTimeRange
588
646
  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.
647
+ 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
648
  dateTimeRangePresets.monitoring: readonly DateTimeRangePreset[]
591
649
  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
650
+ 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.
651
+ DateTimeRangeSelection.range: DateTimeRange
652
+ DateTimeRangeSelection.comparison?: 'previous'
595
653
  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
654
  dateTimeRangeSql.range.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
597
655
  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
656
  DateTimeTooltip (component, @altertable/data-app-react): (props: DateTimeTooltipProps) — Exact-time disclosure uses the same reporting zone and locale as other date displays.
629
657
  DateTimeTooltip.date: Date
630
658
  DateTimeTooltip.timeZone?: string
@@ -647,46 +675,78 @@ defineDataApp.config.queries: Queries & KnownRecord<Queries> & ('' extends keyof
647
675
  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
676
  defineDataIdentifiers.options.tables: Tables
649
677
  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[]]
678
+ DefinedOperation (type, @altertable/data-app/contract): <Input, Output, Queries, Filters>
679
+ DefinedOperation.input: (value: unknown) => Input
680
+ DefinedOperation.run: (context: OperationContext, input: Input) => Promise<Output>
681
+ DefinedOperation.checks: readonly [Input, ...Input[]]
682
+ DefinedOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
683
+ DefinedOperation.queryNames: { readonly [Name in keyof Queries & string]: Name; }
684
+ DefinedOperation.filters?: FilterCollection
685
+ 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>
686
+ defineOperation.operation.filters?: CheckedOperationFilters<Filters> — Filters the operation reads beside its own input; they are parsed for it.
687
+ defineOperation.operation.input: (value: unknown) => Input — Parses the operation's own fields, without the filters.
688
+ defineOperation.operation.checks: readonly [Input, ...Input[]] — Representative valid own inputs; each must pass `input`.
659
689
  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<...>
690
+ defineOperation.operation.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
661
691
  defineOperation.operation.queries: CheckedQueries<Queries>
692
+ defineOperation.operation.filters?: CheckedOperationFilters<Filters> — The filters `run` reads. Omit for an operation without inputs.
693
+ defineOperation.operation.run: OperationRun<FilterInput<Filters>, Output, Queries>
662
694
  defineQueryNames (function, @altertable/data-app/contract): <const Names extends Record<string, string>>(names: Names): Names
695
+ DetailAction (type, @altertable/data-app-react): <Row, Input, DestinationInput, Own> — A detail interaction: the destination and the fields a row supplies.
696
+ DetailAction.label: string
697
+ DetailAction.when?: ((row: Row) => boolean)
698
+ DetailAction.target: DetailView<any, DestinationInput, Own>
699
+ 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
700
  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>
701
+ DetailContent.target: DetailView<Data, Input, any>
702
+ DetailContent.render: (state: DataContentState<Data, Input>) => ReactNode
703
+ 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.
704
+ DetailView.definition: { id: string; title: ReactNode; parseInput: (input: unknown) => Input; describeInput?: ((input: Input) => string) | undefined; } & ViewEmptiness<Data> & Required<...> & { ...; }
668
705
  DetailView.useResult: (input: Input) => ViewResult<Data, Input>
669
- DetailView.content: (render: (source: ViewSource<Data, Input>) => ReactNode) => DetailContent<Data, Input>
706
+ DetailView.ownInput?: Own
707
+ DetailView.content: (render: (state: DataContentState<Data, Input>) => ReactNode) => DetailContent<Data, Input> — Render like view content: displayed data, its input, and the derived scope.
670
708
  DetailViewDefinition (type, @altertable/data-app-react): <Data, Input>
671
709
  DetailViewDefinition.id: string
672
710
  DetailViewDefinition.title: ReactNode
673
711
  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.
712
+ 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`.
713
+ DetailViewDefinition.isEmpty?: ((data: Data) => boolean) — App-owned semantics: measured zero need not mean an empty result. Defaults to never empty.
714
+ DetailViewDefinition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
715
+ 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
716
  dimensionFilter.config.key: string
679
717
  dimensionFilter.config.label: string
680
718
  dimensionFilter.config.allowMissing?: boolean
681
719
  dimensionFilter.config.allowExclusion?: boolean
682
720
  dimensionFilter.config.history?: HistoryMode
683
- dimensionFilter.config.presentation?: VariablePresentation
721
+ dimensionFilter.config.presentation?: FilterPresentation
684
722
  dimensionFilter.config.selectionMode: 'single' [variant 1 of 2]
685
723
  dimensionFilter.config.maxSelected?: 1 [variant 1 of 2]
686
724
  dimensionFilter.config.valueType: T extends number ? 'number' : 'string'
725
+ 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
726
  dimensionFilter.config.options: readonly DimensionOption<T>[]
688
727
  dimensionFilter.config.selectionMode: 'multiple' [variant 2 of 2]
689
728
  dimensionFilter.config.maxSelected?: number [variant 2 of 2]
729
+ DimensionFilter (type, @altertable/data-app/contract): <T> — A fixed-option dimension retains its distinction from query-backed facets.
730
+ DimensionFilter.kind: 'dimension'
731
+ DimensionFilter.label: string
732
+ DimensionFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
733
+ DimensionFilter.urlKeys: readonly string[]
734
+ DimensionFilter.defaultValue: DimensionSelection<T>
735
+ DimensionFilter.clearValue?: DimensionSelection<T> — Unrestricted value, when this filter can be cleared.
736
+ DimensionFilter.describe: (value: Value): string
737
+ DimensionFilter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
738
+ DimensionFilter.history: HistoryMode
739
+ DimensionFilter.read: (params: URLSearchParams) => DimensionSelection<T>
740
+ DimensionFilter.write: (value: DimensionSelection<T>) => Record<string, string | null>
741
+ DimensionFilter.valid: (value: DimensionSelection<T>) => boolean
742
+ DimensionFilter.same: (left: DimensionSelection<T>, right: DimensionSelection<T>) => boolean
743
+ DimensionFilter.optionsSource: 'fixed'
744
+ DimensionFilter.selectionMode: 'multiple' | 'single'
745
+ DimensionFilter.valueType: T extends number ? 'number' : 'string'
746
+ DimensionFilter.allowMissing: boolean
747
+ DimensionFilter.allowExclusion: boolean
748
+ DimensionFilter.maxSelected: number
749
+ DimensionFilter.options: readonly DimensionOption<T>[]
690
750
  DimensionFilterOptions (type, @altertable/data-app/contract): <T> = props listed as dimensionFilter.config.*
691
751
  DimensionMember (type, @altertable/data-app/contract): <T>
692
752
  DimensionMember.kind: 'value' [variant 1 of 2]
@@ -697,7 +757,7 @@ DimensionOption.value: T
697
757
  DimensionOption.label: string
698
758
  DimensionOption.count?: number
699
759
  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>
760
+ DimensionPicker.filter: DimensionSelectionFilter<T>
701
761
  DimensionPicker.labelPlacement?: ControlLabelPlacement
702
762
  DimensionPicker.value: DimensionSelection<T>
703
763
  DimensionPicker.onChange: (value: DimensionSelection<T>) => void
@@ -710,31 +770,18 @@ dimensionPredicate.selection.kind: 'all' [variant 1 of 2]
710
770
  dimensionPredicate.selection.kind: 'exclude' | 'include' [variant 2 of 2]
711
771
  dimensionPredicate.selection.members: readonly DimensionMember<T>[] [variant 2 of 2]
712
772
  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
773
  DisclosedQuery (type, @altertable/data-app/contract): One registered statement an operation ran, with its parameter values.
734
774
  DisclosedQuery.name: string
735
775
  DisclosedQuery.statement: string
736
776
  DisclosedQuery.params?: Readonly<Record<string, QueryParameterValue>>
737
777
  DisclosedQuery.queryId?: string
778
+ 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.
779
+ displayChoice.options.label?: string
780
+ displayChoice.options.key: string
781
+ displayChoice.options.history?: HistoryMode
782
+ displayChoice.options.presentation?: FilterPresentation
783
+ displayChoice.options.defaultValue: NoInfer<Options[number]['id']>
784
+ displayChoice.options.options: Options & (Options extends readonly [] ? never : unknown)
738
785
  EmptyState (component, @altertable/data-app-react): (props: EmptyStateProps)
739
786
  EmptyState.title: ReactNode
740
787
  EmptyState.description?: ReactNode
@@ -763,6 +810,43 @@ ExternalLink.children: ReactNode
763
810
  ExternalLink.className?: string
764
811
  ExternalLink.title?: string
765
812
  ExternalLinkProps (type, @altertable/data-app-react): = props listed as ExternalLink.*
813
+ 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.
814
+ facetFilter.config.key: string
815
+ facetFilter.config.label: string
816
+ facetFilter.config.allowMissing?: boolean
817
+ facetFilter.config.allowExclusion?: boolean
818
+ facetFilter.config.history?: HistoryMode
819
+ facetFilter.config.presentation?: FilterPresentation
820
+ facetFilter.config.selectionMode: 'single' [variant 1 of 2]
821
+ facetFilter.config.maxSelected?: 1 [variant 1 of 2]
822
+ facetFilter.config.valueType: 'string'
823
+ 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' }`.
824
+ facetFilter.config.options: Operation — The registered operation that returns this dimension's options.
825
+ facetFilter.config.selectionMode: 'multiple' [variant 2 of 2]
826
+ facetFilter.config.maxSelected?: number [variant 2 of 2]
827
+ facetFilter.config.valueType: 'number'
828
+ 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' }`.
829
+ 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.
830
+ FacetFilter.kind: 'dimension'
831
+ FacetFilter.label: string
832
+ FacetFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
833
+ FacetFilter.urlKeys: readonly string[]
834
+ FacetFilter.defaultValue: DimensionSelection<Value>
835
+ FacetFilter.clearValue?: DimensionSelection<Value> — Unrestricted value, when this filter can be cleared.
836
+ FacetFilter.describe: (value: Value): string
837
+ FacetFilter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
838
+ FacetFilter.history: HistoryMode
839
+ FacetFilter.read: (params: URLSearchParams) => DimensionSelection<Value>
840
+ FacetFilter.write: (value: DimensionSelection<Value>) => Record<string, string | null>
841
+ FacetFilter.valid: (value: DimensionSelection<Value>) => boolean
842
+ FacetFilter.same: (left: DimensionSelection<Value>, right: DimensionSelection<Value>) => boolean
843
+ FacetFilter.optionsSource: 'query'
844
+ FacetFilter.selectionMode: 'multiple' | 'single'
845
+ FacetFilter.valueType: Value extends number ? 'number' : 'string'
846
+ FacetFilter.allowMissing: boolean
847
+ FacetFilter.allowExclusion: boolean
848
+ FacetFilter.maxSelected: number
849
+ FacetFilter.options: readonly DimensionOption<Value>[]
766
850
  FilterActions (component, @altertable/data-app-react/ui): (props: FilterActionsProps)
767
851
  FilterActions.onClear?: (() => void)
768
852
  FilterActions.onApply: () => void [variant 1 of 2]
@@ -772,6 +856,16 @@ FilterBar (component, @altertable/data-app-react/ui): (props: FilterBarProps)
772
856
  FilterBar.…: plus props inherited from React
773
857
  FilterBarProps (type, @altertable/data-app-react/ui): <HTMLAttributes<HTMLDivElement>, HTMLDivElement>
774
858
  FilterBarProps.…: plus props inherited from React
859
+ FilterCollection (type, @altertable/data-app/contract): = { [x: string]: SearchFilter | BooleanFilter | ChoiceFilter<any> | DateTimeRangeFilter<boolean> | DimensionFilter<any> | FacetFilter<...> | MultiChoiceFilter | NumberFilter | SourceDimensionFilter<...>; }
860
+ 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.
861
+ 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.
862
+ FilterOperationDefinition.filters?: CheckedOperationFilters<Filters> — The filters `run` reads. Omit for an operation without inputs.
863
+ FilterOperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
864
+ FilterOperationDefinition.run: OperationRun<FilterInput<Filters>, Output, Queries>
865
+ FilterPresentation (type, @altertable/data-app/contract): Where a filter's or display option's control renders.
866
+ 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.
867
+ 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.
868
+ FilterValues (type, @altertable/data-app/contract): <Collection> = { [Key in keyof Collection]: Collection[Key] extends DimensionSelectionFilter<infer Value extends DimensionValue> ? DimensionSelection<...> : ...; }
775
869
  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
870
  formatCount.options.locale?: string
777
871
  formatCount.options.missing?: string
@@ -825,6 +919,7 @@ FunnelChart.className?: string
825
919
  FunnelChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
826
920
  FunnelChart.steps: readonly FunnelChartStep[]
827
921
  FunnelChart.series: readonly FunnelChartSeries[]
922
+ FunnelChart.interactiveLegend?: boolean — Disable legend hover and focus controls.
828
923
  FunnelChartProps (type, @altertable/data-app-react/ui): = props listed as FunnelChart.*
829
924
  FunnelChartSeries (type, @altertable/data-app-react/ui)
830
925
  FunnelChartSeries.id: string — Unique, nonblank population ID.
@@ -899,9 +994,16 @@ injectDataAppStyles (function, @altertable/data-app-react, @altertable/data-app-
899
994
  injectDataAppStyles.options.document?: Document — Defaults to the current browser document.
900
995
  injectDataAppStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
901
996
  InputOf (type, @altertable/data-app/client): <T> = T extends { input: (value: unknown) => infer Input; } ? Input : never
997
+ 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.
998
+ InputOperationDefinition.filters?: CheckedOperationFilters<Filters> — Filters the operation reads beside its own input; they are parsed for it.
999
+ InputOperationDefinition.input: (value: unknown) => Input — Parses the operation's own fields, without the filters.
1000
+ InputOperationDefinition.checks: readonly [Input, ...Input[]] — Representative valid own inputs; each must pass `input`.
1001
+ InputOperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
1002
+ InputOperationDefinition.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
902
1003
  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
1004
  isPlainKeyEvent.event.…: plus props inherited from built-in
904
1005
  isPlainKeyEvent.options.allowShift?: boolean
1006
+ isPlainKeyEvent().valueOf: (): boolean — Returns the primitive value of the specified object.
905
1007
  ItemActions (type, @altertable/data-app-react/ui): <Row> = (row: Row) => readonly ExplorationAction[] — Resolves the actions available for a displayed domain row.
906
1008
  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
1009
  JourneyChart.ariaLabel: string — Accessible measure and scope description.
@@ -971,7 +1073,7 @@ MetricFormat (type, @altertable/data-app/format): = props listed as formatMetric
971
1073
  MetricReading (type, @altertable/data-app-react/ui)
972
1074
  MetricReading.loading: true [variant 1 of 2]
973
1075
  MetricReading.loading: false [variant 2 of 2]
974
- MetricReading.value: MetricValues & { period?: DateTimeRangeRequest | undefined; } [variant 2 of 2]
1076
+ MetricReading.value: MetricValues & { period?: DateTimeRangeInput | undefined; } [variant 2 of 2]
975
1077
  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
1078
  MetricRecords.render: (source: ViewSource<Data, Input>, navigation?: DetailNavigation | undefined) => { scope: string; content: FunctionComponentElement<{ content: DetailContent<any, any>; input: any; navigation?: DetailNavigation | undefined; }>; } | undefined
977
1079
  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.
@@ -1014,29 +1116,29 @@ mountDataApp (function, @altertable/data-app-react): <const Queries extends Quer
1014
1116
  mountDataApp.options.app: DataAppDefinition<Queries>
1015
1117
  mountDataApp.options.component: ComponentType
1016
1118
  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
1119
+ 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
1120
+ multiChoiceFilter.options.label?: string
1121
+ multiChoiceFilter.options.key: string
1122
+ multiChoiceFilter.options.history?: HistoryMode
1123
+ multiChoiceFilter.options.presentation?: FilterPresentation
1124
+ multiChoiceFilter.options.defaultValue?: readonly NoInfer<Options[number]['id']>[]
1125
+ multiChoiceFilter.options.options: Options & (Options extends readonly [] ? never : unknown)
1126
+ multiChoiceFilter.options.maxSelected?: number
1127
+ MultiChoiceFilter (type, @altertable/data-app/contract)
1128
+ MultiChoiceFilter.kind: 'multiChoice'
1129
+ MultiChoiceFilter.label?: string
1130
+ MultiChoiceFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1131
+ MultiChoiceFilter.urlKeys: readonly string[]
1132
+ MultiChoiceFilter.defaultValue: readonly string[]
1133
+ MultiChoiceFilter.clearValue?: readonly string[] — Unrestricted value, when this filter can be cleared.
1134
+ MultiChoiceFilter.describe?: ((value: readonly string[]) => string)
1135
+ MultiChoiceFilter.history: HistoryMode
1136
+ MultiChoiceFilter.read: (params: URLSearchParams) => readonly string[]
1137
+ MultiChoiceFilter.write: (value: readonly string[]) => Record<string, string | null>
1138
+ MultiChoiceFilter.valid: (value: readonly string[]) => boolean
1139
+ MultiChoiceFilter.same: (left: readonly string[], right: readonly string[]) => boolean
1140
+ MultiChoiceFilter.options: readonly ChoiceOption[]
1141
+ MultiChoiceFilter.maxSelected: number
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
@@ -1210,22 +1317,24 @@ QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @alte
1210
1317
  QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
1211
1318
  QueryField.type: keyof QueryValues
1212
1319
  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]
1320
+ QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar, datetime-range, or dimension parameters with optional fallback values.
1321
+ QueryParameter.type: 'dimension' [variant 1 of 10] — A dimension filter's `DimensionSelection`; `$name.matches(column)` is true for the rows it keeps, including missing-value and exclusion semantics.
1322
+ QueryParameter.valueType: 'number' | 'string' [variant 1 of 10]
1323
+ QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5, 6 of 10]
1324
+ QueryParameter.type: 'dateTimeRange' [variant 2 of 10]
1325
+ 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.
1326
+ QueryParameter.type: 'boolean' [variants 3, 7 of 10]
1327
+ QueryParameter.defaultValue?: boolean [variant 3 of 10]
1328
+ QueryParameter.type: 'null' [variants 4, 8 of 10]
1329
+ QueryParameter.defaultValue?: null [variants 4, 8 of 10]
1330
+ QueryParameter.type: 'number' [variants 5, 9 of 10]
1331
+ QueryParameter.defaultValue?: number [variant 5 of 10]
1332
+ QueryParameter.type: 'string' [variants 6, 10 of 10]
1333
+ QueryParameter.defaultValue?: string [variant 6 of 10]
1334
+ QueryParameter.nullable: true [variants 7, 8, 9, 10 of 10]
1335
+ QueryParameter.defaultValue?: boolean | null [variant 7 of 10]
1336
+ QueryParameter.defaultValue?: number | null [variant 9 of 10]
1337
+ QueryParameter.defaultValue?: string | null [variant 10 of 10]
1229
1338
  QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
1230
1339
  QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
1231
1340
  QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
@@ -1286,6 +1395,7 @@ RetentionChart.formatValue?: ((value: number) => string) — Formats counts; rat
1286
1395
  RetentionChart.className?: string
1287
1396
  RetentionChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
1288
1397
  RetentionChart.series: readonly RetentionChartSeries[]
1398
+ RetentionChart.interactiveLegend?: boolean — Disable legend hover and focus controls.
1289
1399
  RetentionChartPoint (type, @altertable/data-app-react/ui)
1290
1400
  RetentionChartPoint.offset: number — Nonnegative integer, unique per series; uneven offsets retain their distance.
1291
1401
  RetentionChartPoint.label: string — Must agree across series for the same offset.
@@ -1335,6 +1445,25 @@ SearchField.inputProps?: Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputEle
1335
1445
  SearchField.children?: ReactNode
1336
1446
  SearchField.…: plus props inherited from React
1337
1447
  SearchFieldProps (type, @altertable/data-app-react/ui): = props listed as SearchField.*
1448
+ 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).
1449
+ searchFilter.options.label?: string
1450
+ searchFilter.options.key: string
1451
+ searchFilter.options.defaultValue?: string
1452
+ searchFilter.options.history?: HistoryMode
1453
+ searchFilter.options.maxLength?: number
1454
+ SearchFilter (type, @altertable/data-app/contract)
1455
+ SearchFilter.kind: 'search'
1456
+ SearchFilter.label?: string
1457
+ SearchFilter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
1458
+ SearchFilter.urlKeys: readonly string[]
1459
+ SearchFilter.defaultValue: string
1460
+ SearchFilter.clearValue?: string — Unrestricted value, when this filter can be cleared.
1461
+ SearchFilter.describe?: ((value: string) => string)
1462
+ SearchFilter.history: HistoryMode
1463
+ SearchFilter.read: (params: URLSearchParams) => string
1464
+ SearchFilter.write: (value: string) => Record<string, string | null>
1465
+ SearchFilter.valid: (value: string) => boolean
1466
+ SearchFilter.same: (left: string, right: string) => boolean
1338
1467
  SearchHit (type, @altertable/data-app-react/ui): <Item>
1339
1468
  SearchHit.item: Item
1340
1469
  SearchHit.score: number
@@ -1378,24 +1507,6 @@ SearchTypeahead.children?: ReactNode
1378
1507
  SearchTypeahead.items: readonly SearchSuggestion[] — Suggestions from the displayed result, in its order. No additional filtering or request.
1379
1508
  SearchTypeahead.…: plus props inherited from React
1380
1509
  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
1510
  SectionHeading (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: SectionHeadingProps) — A section title with the shared section-heading appearance.
1400
1511
  SectionHeading.children: ReactNode
1401
1512
  SectionHeading.level?: 2 | 3 | 4 | 5 | 6 — Document outline level. Defaults to the section level below the page title.
@@ -1602,7 +1713,7 @@ UpdatedAt.open?: boolean
1602
1713
  UpdatedAt.onOpenChange?: ((open: boolean) => void)
1603
1714
  UpdatedAt.timeZone?: string
1604
1715
  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.
1716
+ 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
1717
  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
1718
  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
1719
  useDateFormatting.options.locale?: string
@@ -1610,15 +1721,11 @@ useDateFormatting.options.timeZone?: string
1610
1721
  useDetailNavigation (hook, @altertable/data-app-react): (): DetailNavigation — Resolve a detail target from an interaction. The destination validates input before fetching.
1611
1722
  useSvgId (hook, @altertable/data-app-react/ui): (): string — Stable React ID for SVG definitions and their URL references; safe with identifier prefixes.
1612
1723
  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.
1724
+ ViewSource (type, @altertable/data-app-react): <Data, Input> — A view's displayed data and input, or its loading state; widgets and bindings read it.
1725
+ ViewSource.loading: true [variant 1 of 2]
1726
+ ViewSource.loading?: false [variant 2 of 2]
1727
+ ViewSource.data: Data [variant 2 of 2]
1728
+ ViewSource.input: Input [variant 2 of 2]
1622
1729
  VisualizationWidget (component, @altertable/data-app-react): <Row, Data, Input>(props: VisualizationWidgetProps<Row, Data, Input>)
1623
1730
  VisualizationWidget.skeleton?: SkeletonContent
1624
1731
  VisualizationWidget.headingLevel?: 2 | 3 | 4 | 5 | 6 — Document outline level. The widget title keeps the shared widget-heading appearance.
@@ -1686,4 +1793,5 @@ WidgetStatus.kind: 'updating' [variant 2 of 3]
1686
1793
  WidgetStatus.message?: string [variants 2, 3 of 3]
1687
1794
  WidgetStatus.kind: 'error' [variant 3 of 3]
1688
1795
  WidgetStatus.onRetry?: (() => void) [variant 3 of 3]
1796
+ 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
1797
  ```