@altertable/data-app 0.75.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.
- package/README.md +56 -9
- package/REFERENCE.md +387 -333
- package/dist/chunks/{contract-B3s0ybE2.js → contract-BQsFReRp.js} +314 -237
- package/dist/chunks/contract-BQsFReRp.js.map +1 -0
- package/dist/chunks/{contract-DcPjfm0R.js → contract-VhY9V9wd.js} +184 -91
- package/dist/chunks/contract-VhY9V9wd.js.map +1 -0
- package/dist/chunks/{format-5hMYUWk3.js → date-time-range-value-CnlTr1U1.js} +8 -153
- package/dist/chunks/date-time-range-value-CnlTr1U1.js.map +1 -0
- package/dist/chunks/{diagnostics-DVwQ5PDK.js → diagnostics-Dyj-rUsY.js} +2 -2
- package/dist/chunks/{diagnostics-DVwQ5PDK.js.map → diagnostics-Dyj-rUsY.js.map} +1 -1
- package/dist/chunks/{operation-CGuN7Zcb.js → operation-BVRM-A5Y.js} +3 -3
- package/dist/chunks/{operation-CGuN7Zcb.js.map → operation-BVRM-A5Y.js.map} +1 -1
- package/dist/client/index.js +65 -50
- package/dist/client/index.js.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/contract.js +4 -4
- package/dist/core/format.js +149 -1
- package/dist/core/format.js.map +1 -0
- package/dist/internal.js +6 -308
- package/dist/internal.js.map +1 -1
- package/dist/server/index.js +3 -3
- package/dist/types/chunks/contract.d.ts +359 -599
- package/dist/types/chunks/contract2.d.ts +221 -0
- package/dist/types/chunks/date-time-range-value.d.ts +2 -28
- package/dist/types/chunks/date-time-range.d.ts +29 -0
- package/dist/types/chunks/index.d.ts +33 -5
- package/dist/types/client/index.d.ts +3 -3
- package/dist/types/core/config.d.ts +8 -4
- package/dist/types/core/contract.d.ts +5 -3
- package/dist/types/core/format.d.ts +2 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/internal.d.ts +7 -5
- package/dist/types/server/index.d.ts +1 -1
- package/docs/app-authoring.md +15 -10
- package/docs/client.md +12 -7
- package/docs/contract.md +33 -50
- package/docs/data-context.md +9 -5
- package/docs/filters.md +295 -0
- package/docs/hosted-apps.md +4 -3
- package/docs/layout.md +24 -18
- package/docs/stories-and-export.md +19 -10
- package/docs/ui.md +7 -6
- package/docs/views.md +62 -26
- package/docs/widgets.md +38 -14
- package/package.json +16 -5
- package/dist/chunks/contract-B3s0ybE2.js.map +0 -1
- package/dist/chunks/contract-DcPjfm0R.js.map +0 -1
- package/dist/chunks/format-5hMYUWk3.js.map +0 -1
- package/docs/variables.md +0 -269
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,36 +85,38 @@ 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.
|
|
108
110
|
AreaChart.unit: string
|
|
109
111
|
AreaChart.ariaLabel: string
|
|
110
112
|
AreaChart.formatValue?: ((value: number) => string)
|
|
113
|
+
AreaChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
114
|
+
AreaChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
111
115
|
AreaChartItem (type, @altertable/data-app-react/ui)
|
|
112
116
|
AreaChartItem.id: string
|
|
113
117
|
AreaChartItem.label: string
|
|
114
118
|
AreaChartItem.value: number
|
|
119
|
+
AreaChartItem.time?: number — Optional timestamp in epoch milliseconds for cursor linking. Omit for category samples.
|
|
115
120
|
AreaChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as AreaChart.*
|
|
116
121
|
BarChart (component, @altertable/data-app-react/ui): <Row extends BarChartItem>(props: BarChartProps<Row>) — Nonnegative category values. Compose inside VisualizationWidget for a titled panel. Owns hover/touch tooltips; no selection state or keyboard navigation.
|
|
117
122
|
BarChart.items: readonly Row[] — Ordered samples; the chart validates IDs and values when rendering.
|
|
@@ -119,17 +124,20 @@ BarChart.itemActions?: ItemActions<Row> — Actions available for each displayed
|
|
|
119
124
|
BarChart.unit: string
|
|
120
125
|
BarChart.ariaLabel: string
|
|
121
126
|
BarChart.formatValue?: ((value: number) => string)
|
|
127
|
+
BarChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
128
|
+
BarChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
122
129
|
BarChartItem (type, @altertable/data-app-react/ui)
|
|
123
130
|
BarChartItem.id: string
|
|
124
131
|
BarChartItem.label: string
|
|
125
132
|
BarChartItem.value: number
|
|
133
|
+
BarChartItem.time?: number — Milliseconds since the Unix epoch. Enables adaptive time ticks when no item actions are supplied.
|
|
126
134
|
BarChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as BarChart.*
|
|
127
135
|
booleanFilter (function, @altertable/data-app/contract): (options: FilterOptions<BooleanSelection>): BooleanFilter — Boolean predicate with a distinct unrestricted state.
|
|
128
136
|
booleanFilter.options.key: string
|
|
129
137
|
booleanFilter.options.label: string
|
|
130
138
|
booleanFilter.options.defaultValue?: BooleanSelection
|
|
131
139
|
booleanFilter.options.history?: HistoryMode
|
|
132
|
-
booleanFilter.options.presentation?:
|
|
140
|
+
booleanFilter.options.presentation?: FilterPresentation
|
|
133
141
|
BooleanFilter (type, @altertable/data-app/contract): = props listed as parseBooleanSelection.filter.*
|
|
134
142
|
BooleanSelection (type, @altertable/data-app/contract)
|
|
135
143
|
BooleanSelection.kind: 'all' [variant 1 of 2]
|
|
@@ -152,6 +160,7 @@ Button.size?: 'compact' | 'default' | 'icon' | 'icon-compact'
|
|
|
152
160
|
Button.…: plus props inherited from React
|
|
153
161
|
ButtonProps (type, @altertable/data-app-react): = props listed as Button.*
|
|
154
162
|
chartColor (function, @altertable/data-app-react): (id: string): string
|
|
163
|
+
ChartCursorGroup (type, @altertable/data-app-react/ui): Opaque shared-cursor handle. Create with useChartCursorGroup and pass through chart cursorGroup props.
|
|
155
164
|
ChartLegend (component, @altertable/data-app-react/ui): (props: ChartLegendProps)
|
|
156
165
|
ChartLegend.children: ReactNode
|
|
157
166
|
ChartLegend.layout?: 'horizontal' | 'single-row' | 'vertical' — Single-row fits up to four cells before expansion, adapting to available width.
|
|
@@ -186,7 +195,28 @@ CheckboxGroup.onChange: (values: string[]) => void
|
|
|
186
195
|
CheckboxGroup.…: plus props inherited from React
|
|
187
196
|
CheckboxGroupProps (type, @altertable/data-app-react/ui): = props listed as CheckboxGroup.*
|
|
188
197
|
CheckboxProps (type, @altertable/data-app-react/ui): = props listed as Checkbox.*
|
|
189
|
-
|
|
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)
|
|
190
220
|
ChoiceOption.id: string
|
|
191
221
|
ChoiceOption.label: string
|
|
192
222
|
ChoiceOption.description?: string
|
|
@@ -210,27 +240,6 @@ ChoicePicker.selectionMode: 'single' [variant 2 of 2]
|
|
|
210
240
|
ChoicePicker.value: string [variant 2 of 2]
|
|
211
241
|
ChoicePicker.onChange: (value: string) => void [variant 2 of 2]
|
|
212
242
|
ChoicePickerProps (type, @altertable/data-app-react/ui): = props listed as ChoicePicker.*
|
|
213
|
-
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 […
|
|
214
|
-
choiceVariable.options.label?: string
|
|
215
|
-
choiceVariable.options.key: string
|
|
216
|
-
choiceVariable.options.defaultValue: (string | undefined) & NoInfer<Options[number]['id']>
|
|
217
|
-
choiceVariable.options.history?: HistoryMode
|
|
218
|
-
choiceVariable.options.presentation?: Presentation
|
|
219
|
-
choiceVariable.options.options: Options & (Options extends readonly [] ? never : unknown)
|
|
220
|
-
ChoiceVariable (type, @altertable/data-app-react): <Value>
|
|
221
|
-
ChoiceVariable.kind: 'choice'
|
|
222
|
-
ChoiceVariable.label?: string
|
|
223
|
-
ChoiceVariable.presentation?: VariablePresentation
|
|
224
|
-
ChoiceVariable.urlKeys: readonly string[]
|
|
225
|
-
ChoiceVariable.defaultValue: Value
|
|
226
|
-
ChoiceVariable.clearValue?: Value — Unrestricted value, when this variable represents a filter.
|
|
227
|
-
ChoiceVariable.describe?: ((value: Value) => string)
|
|
228
|
-
ChoiceVariable.history: HistoryMode
|
|
229
|
-
ChoiceVariable.read: (params: URLSearchParams) => Value
|
|
230
|
-
ChoiceVariable.write: (value: Value) => Record<string, string | null>
|
|
231
|
-
ChoiceVariable.valid: (value: Value) => boolean
|
|
232
|
-
ChoiceVariable.same: (left: Value, right: Value) => boolean
|
|
233
|
-
ChoiceVariable.options: readonly ChoiceOption[]
|
|
234
243
|
ColumnIdentifier (type, @altertable/data-app-react): <TableId>
|
|
235
244
|
ColumnIdentifier.table: TableId
|
|
236
245
|
ColumnIdentifier.name: string
|
|
@@ -244,9 +253,11 @@ Comparison.favorableDirection?: 'down' | 'up' [variant 2 of 2]
|
|
|
244
253
|
Comparison.label: string [variant 2 of 2]
|
|
245
254
|
ComparisonProps (type, @altertable/data-app-react): = props listed as Comparison.*
|
|
246
255
|
ComposedChart (component, @altertable/data-app-react/ui): <Row>(props: ComposedChartProps<Row>) — Shared themed series and controls; other children retain native Recharts defaults.
|
|
256
|
+
ComposedChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
247
257
|
ComposedChart.data: readonly Row[] — Displayed rows; series and axes select fields with Recharts dataKey props.
|
|
248
258
|
ComposedChart.ariaLabel: string — Describes the measures and scope for assistive technology.
|
|
249
259
|
ComposedChart.valueFormat?: MetricFormat — Shared measure semantics: compact numeric axes and precise tooltips. For mixed units, use explicit axis tickFormatter and series/tooltip formatters.
|
|
260
|
+
ComposedChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle, using the temporal X axis.
|
|
250
261
|
ComposedChart.…: plus props inherited from recharts
|
|
251
262
|
ComposedChart.Dot: (props: DotProps & { active?: boolean; })
|
|
252
263
|
ComposedChart.Area: <Row = unknown, Value = number | null>(props: AreaProps<Row, Value>)
|
|
@@ -269,6 +280,7 @@ ComposedChart.LabelList: (props: Props)
|
|
|
269
280
|
ComposedChart.ErrorBar: (outsideProps: Props)
|
|
270
281
|
ComposedChartLegendProps (type, @altertable/data-app-react/ui)
|
|
271
282
|
ComposedChartLegendProps.maxVisibleItems?: number
|
|
283
|
+
ComposedChartLegendProps.interactive?: boolean — Enable hover emphasis and click to focus one or more series.
|
|
272
284
|
ComposedChartLegendProps.…: plus props inherited from React, recharts
|
|
273
285
|
ComposedChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as ComposedChart.*
|
|
274
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.
|
|
@@ -278,19 +290,55 @@ ConnectionOperation.input: (value: unknown) => Record<string, never>
|
|
|
278
290
|
ConnectionOperation.run: (context: OperationContext, input: Record<string, never>) => Promise<true>
|
|
279
291
|
ConnectionOperation.checks: readonly [Record<string, never>, ...Record<string, never>[]]
|
|
280
292
|
ConnectionOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
293
|
+
ConnectionOperation.filters: {}
|
|
281
294
|
ConnectionOperation.queryNames: { readonly connection: 'connection'; }
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
createDataClient
|
|
287
|
-
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.
|
|
288
300
|
createDataClient.options.transport?: DataTransport
|
|
289
301
|
createDataClient.options.endpoint?: string
|
|
290
|
-
createDataClient.options.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.
|
|
291
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.
|
|
292
|
-
createDataHooks (function, @altertable/data-app-react): <Operations extends DataOperations>(client: DataClient<Operations>): {
|
|
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.
|
|
293
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]>>
|
|
294
342
|
CsvCell (type, @altertable/data-app-react): = string | number | boolean | null | undefined
|
|
295
343
|
CsvExport (type, @altertable/data-app-react/ui): All distinct datasets in the displayed result; filename names the download.
|
|
296
344
|
CsvExport.filename: string
|
|
@@ -299,7 +347,7 @@ CsvTable (type, @altertable/data-app-react/ui): One named dataset with ordered c
|
|
|
299
347
|
CsvTable.name: string
|
|
300
348
|
CsvTable.columns: readonly string[]
|
|
301
349
|
CsvTable.rows: readonly (readonly CsvCell[])[]
|
|
302
|
-
DataApp (component, @altertable/data-app-react): <Data, Input>(props: DataAppProps<Data, Input>) — Executes the primary view and owns
|
|
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.
|
|
303
351
|
DataApp.children: ReactNode
|
|
304
352
|
DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
305
353
|
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
@@ -308,10 +356,11 @@ DataApp.footerActions?: ReactNode
|
|
|
308
356
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
309
357
|
DataApp.showSearch?: boolean — Show declared search controls. Defaults to true; hiding preserves their values.
|
|
310
358
|
DataApp.showFilters?: boolean — Show declared filter controls, including display options. Defaults to true; hiding preserves their values.
|
|
311
|
-
DataApp.view:
|
|
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.
|
|
312
361
|
DataApp.showSearchSuggestions?: boolean — Show supplied datasets’ record suggestions on the first declared search. Defaults to true.
|
|
313
|
-
DataApp.story?: ((snapshot: DisplayedSnapshot<Data, Input
|
|
314
|
-
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.
|
|
315
364
|
DataApp.details?: readonly DetailContent<any, any>[] — Detail destinations available to dataset actions and metric record inspection.
|
|
316
365
|
DataApp (component, @altertable/data-app-react/ui): (props: DataAppProps) — Setup and static screens; fetched data uses the declared-view DataApp.
|
|
317
366
|
DataApp.children: ReactNode
|
|
@@ -337,13 +386,14 @@ DataAppDefinition.description: string — Explain what the app helps readers exp
|
|
|
337
386
|
DataAppDefinition.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
338
387
|
DataAppDefinition.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
339
388
|
DataAppDefinition.queries: QuerySnapshot<Queries>
|
|
340
|
-
DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) =>
|
|
341
|
-
DataAppDefinition.defineOperation: <Input, Output>(operation:
|
|
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>
|
|
342
392
|
DataAppError (class, @altertable/data-app/client)
|
|
343
393
|
DataAppError.code: string
|
|
344
394
|
DataAppError.requestId?: string
|
|
345
395
|
DataAppError.…: plus props inherited from built-in
|
|
346
|
-
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.*
|
|
347
397
|
DataAppProps (type, @altertable/data-app-react/ui)
|
|
348
398
|
DataAppProps.children: ReactNode
|
|
349
399
|
DataAppProps.dataContext: DataContext
|
|
@@ -358,7 +408,7 @@ DataAppProvider (component, @altertable/data-app-react/ui): <const Queries exten
|
|
|
358
408
|
DataAppProvider.app: DataAppDefinition<Queries>
|
|
359
409
|
DataAppProvider.children: ReactNode
|
|
360
410
|
DataAppStyle (type, @altertable/data-app-react, @altertable/data-app-react/ui): React style properties with checked public Altertable custom properties.
|
|
361
|
-
DataAppStyle.{--atbl-accent, --atbl-
|
|
411
|
+
DataAppStyle.{--atbl-accent, --atbl-annotation-accent, --atbl-annotation-accent-hover, --atbl-annotation-highlight, --atbl-annotation-on-accent, --atbl-backdrop, --atbl-background, --atbl-border, --atbl-chart-1, --atbl-chart-2, --atbl-chart-3, --atbl-chart-4, --atbl-chart-5, --atbl-chart-6, --atbl-chart-7, --atbl-chart-8, --atbl-chart-fill, --atbl-code-keyword, --atbl-code-surface, --atbl-code-text, --atbl-content-width, --atbl-control-compact-height, --atbl-control-disabled-opacity, --atbl-control-gap, --atbl-control-height, --atbl-control-hover-border, --atbl-control-hover-surface, --atbl-control-icon-size, --atbl-control-open-border, --atbl-control-open-surface, --atbl-control-padding-block, --atbl-control-padding-inline, --atbl-control-pressed-surface, --atbl-control-selected-surface, --atbl-control-selected-text, --atbl-control-text-size, --atbl-cursor-action, --atbl-cursor-busy, --atbl-cursor-disabled, --atbl-cursor-help, --atbl-danger, --atbl-danger-subtle, --atbl-dropdown-item-gap, --atbl-dropdown-item-padding-block, --atbl-dropdown-item-padding-inline, --atbl-dropdown-padding, --atbl-duration-fast, --atbl-duration-normal, --atbl-duration-slow, --atbl-ease-enter, --atbl-ease-standard, --atbl-focus-color, --atbl-focus-outline, --atbl-focus-ring-inset, --atbl-focus-ring-offset, --atbl-font, --atbl-font-heading, --atbl-layout-gap, --atbl-mono-font, --atbl-muted, --atbl-negative, --atbl-on-accent, --atbl-positive, --atbl-radius-control, --atbl-radius-overlay, --atbl-radius-surface, --atbl-shadow-control, --atbl-shadow-overlay, --atbl-shadow-surface, --atbl-space-lg, --atbl-space-md, --atbl-space-sm, --atbl-space-xl, --atbl-space-xs, --atbl-subtle, --atbl-surface, --atbl-surface-padding, --atbl-text, --atbl-text-measure, --atbl-type-body-leading, --atbl-type-body-size, --atbl-type-emphasis-weight, --atbl-type-heading-leading, --atbl-type-heading-weight, --atbl-type-label-leading, --atbl-type-label-size, --atbl-type-label-weight, --atbl-type-meta-size, --atbl-type-meta-weight, --atbl-type-metric-leading, --atbl-type-metric-size, --atbl-type-page-size, --atbl-type-section-size, --atbl-type-widget-size}?: string | number
|
|
362
412
|
DataAppStyle.…: plus props inherited from csstype
|
|
363
413
|
DataAppStyleHooks (type, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
364
414
|
DataAppStyleHooks.data-atbl-focus?: 'group' | 'inset' | 'ring'
|
|
@@ -366,7 +416,9 @@ DataAppStyleHooks.data-atbl-control?: 'action' | 'default' | 'help' | 'text'
|
|
|
366
416
|
DataAppStylesOptions (type, @altertable/data-app-react)
|
|
367
417
|
DataAppStylesOptions.document?: Document — Defaults to the current browser document.
|
|
368
418
|
DataAppStylesOptions.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
369
|
-
DataAppStyleToken (type, @altertable/data-app-react, @altertable/data-app-react/ui): = '--atbl-accent' | '--atbl-accent
|
|
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
|
|
370
422
|
DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
|
|
371
423
|
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Browser operations and named-operation delivery are mutually exclusive.
|
|
372
424
|
DataContext (type, @altertable/data-app-react)
|
|
@@ -383,6 +435,7 @@ DataIdentifierDefinition.kind: 'table' [variant 2 of 2]
|
|
|
383
435
|
DataIdentifierDefinition.catalog: string [variant 2 of 2]
|
|
384
436
|
DataIdentifierDefinition.schema: string [variant 2 of 2]
|
|
385
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.
|
|
386
439
|
DataOperation.input: (value: unknown) => Input
|
|
387
440
|
DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
|
|
388
441
|
DataOperation.checks: readonly [Input, ...Input[]]
|
|
@@ -399,13 +452,20 @@ DataResponse.queriedAt: string
|
|
|
399
452
|
DataResponse.queryIds: string[]
|
|
400
453
|
DataResponse.queries?: DisclosedQuery[]
|
|
401
454
|
DataResponse.input: Input — The exact browser input that produced this response.
|
|
402
|
-
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.
|
|
403
456
|
DataSection.content: ViewContent<Data, Input>
|
|
404
457
|
DataSection.emptyFallback?: EmptyContent
|
|
405
458
|
DataSection.error?: { title: ReactNode; description?: ReactNode; onRetry?: (() => void) | undefined; }
|
|
406
459
|
DataSection.label?: string
|
|
407
460
|
DataSection.…: plus props inherited from React
|
|
408
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
|
|
409
469
|
DatasetColumn (type, @altertable/data-app-react): <Row> — Keys supply IDs; accessors supply raw CSV values. Formats affect display only.
|
|
410
470
|
DatasetColumn.label?: string
|
|
411
471
|
DatasetColumn.value: (row: Row) => CsvCell [variant 1 of 4]
|
|
@@ -508,118 +568,50 @@ DateFormat.precision?: 'minute' | 'second' [variant 2 of 2]
|
|
|
508
568
|
DateFormatOptions (type, @altertable/data-app/format): Formatting for calendar dates and instants without implicit time-zone parsing.
|
|
509
569
|
DateFormatOptions.locale?: string
|
|
510
570
|
DateFormatOptions.missing?: string
|
|
511
|
-
DatePresetId (type, @altertable/data-app-react/ui): = 'day' | 'last-14' | 'last-3' | 'last-30' | 'last-7' | 'last-90' | 'previous-month' | 'previous-week' | 'this-month' | 'this-week'
|
|
512
|
-
DateRange (type, @altertable/data-app-react/ui): = props listed as previousDateRange.options.* — ISO calendar dates; the app operation defines timezone and inclusive bounds.
|
|
513
|
-
DateRangeContract (type, @altertable/data-app/contract)
|
|
514
|
-
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…
|
|
515
|
-
DateRangeContract.request: (value: unknown, compare?: boolean | undefined) => DateRangeRequest
|
|
516
|
-
DateRangeContract.parseRequest: (value: unknown) => DateRangeRequest
|
|
517
|
-
DateRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
518
|
-
DateRangeContract.parse: (value: unknown) => DateRange
|
|
519
|
-
DateRangeContract.period: ({ start, end }: DateRange) => ReportingPeriod
|
|
520
|
-
DateRangeContract.comparison: (input: DateRange) => DateRange | null
|
|
521
|
-
DateRangeContract.describeInput: (input: DateRange) => string
|
|
522
|
-
DateRangeContract.view: { period: ({ start, end }: DateRange) => ReportingPeriod; describeInput: (input: DateRange) => string; }
|
|
523
|
-
DateRangeContractOptions (type, @altertable/data-app/contract): = props listed as defineDateRangeContract.options.*
|
|
524
|
-
DateRangeInput (type, @altertable/data-app/contract): = props listed as previousDateRange.options.* — ISO calendar dates; the app operation defines timezone and inclusive bounds.
|
|
525
|
-
DateRangePicker (component, @altertable/data-app-react/ui): (props: DateRangePickerProps) — The app owns URL state; `dateRangeControl` binds a date variable to this picker.
|
|
526
|
-
DateRangePicker.label?: string
|
|
527
|
-
DateRangePicker.labelPlacement?: 'above' | 'beside'
|
|
528
|
-
DateRangePicker.value: DateRange | null
|
|
529
|
-
DateRangePicker.onChange: (range: DateRange | null) => void
|
|
530
|
-
DateRangePicker.minDate?: string
|
|
531
|
-
DateRangePicker.maxDate?: string
|
|
532
|
-
DateRangePicker.maxRangeDays?: number
|
|
533
|
-
DateRangePicker.timeZone?: string
|
|
534
|
-
DateRangePicker.resetValue?: DateRange — Used to display the reset affordance. The app variable owns the URL and reset meaning.
|
|
535
|
-
DateRangePicker.isDefault?: boolean
|
|
536
|
-
DateRangePicker.onReset?: (() => void)
|
|
537
|
-
DateRangePicker.onPresetChange?: ((id: DatePresetId) => void)
|
|
538
|
-
DateRangePicker.selectedPresetId?: DatePresetId | null
|
|
539
|
-
DateRangePicker.calendarFooter?: ReactNode
|
|
540
|
-
DateRangePicker.comparison?: { enabled: boolean; range: DateRange | null; onChange: (enabled: boolean) => void; }
|
|
541
|
-
DateRangePicker.…: plus props inherited from @react-types/shared, React, react-aria-components, react-stately
|
|
542
|
-
DateRangePickerProps (type, @altertable/data-app-react/ui): = props listed as DateRangePicker.*
|
|
543
|
-
DateRangeRequest (type, @altertable/data-app/contract)
|
|
544
|
-
DateRangeRequest.range: DateRange
|
|
545
|
-
DateRangeRequest.comparison: DateRange | null
|
|
546
|
-
DateRangeSelection (type, @altertable/data-app-react)
|
|
547
|
-
DateRangeSelection.kind: 'preset' [variant 1 of 2]
|
|
548
|
-
DateRangeSelection.id: DatePresetId [variant 1 of 2]
|
|
549
|
-
DateRangeSelection.comparison?: 'previous'
|
|
550
|
-
DateRangeSelection.kind: 'dates' [variant 2 of 2]
|
|
551
|
-
DateRangeSelection.start: string [variant 2 of 2]
|
|
552
|
-
DateRangeSelection.end: string [variant 2 of 2]
|
|
553
|
-
dateRangeVariable (function, @altertable/data-app-react): (options: DateRangeVariableOptions): DateRangeVariable — A date variable keeps relative presets relative and validates exact dates against source coverage.
|
|
554
|
-
dateRangeVariable.options.label?: string
|
|
555
|
-
dateRangeVariable.options.key: string — URL key for a relative preset; explicit dates use start/end for period, otherwise key-prefixed fields.
|
|
556
|
-
dateRangeVariable.options.defaultValue: DateRangeSelection & { comparison?: undefined; }
|
|
557
|
-
dateRangeVariable.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…
|
|
558
|
-
dateRangeVariable.options.history?: HistoryMode
|
|
559
|
-
dateRangeVariable.options.comparison?: boolean — Opt into a URL-backed comparison with the preceding equal-length range.
|
|
560
|
-
dateRangeVariable.options.presentation?: VariablePresentation
|
|
561
|
-
DateRangeVariable (type, @altertable/data-app-react)
|
|
562
|
-
DateRangeVariable.kind: 'dateRange'
|
|
563
|
-
DateRangeVariable.label?: string
|
|
564
|
-
DateRangeVariable.presentation?: VariablePresentation
|
|
565
|
-
DateRangeVariable.urlKeys: readonly string[]
|
|
566
|
-
DateRangeVariable.defaultValue: DateRangeSelection
|
|
567
|
-
DateRangeVariable.clearValue?: DateRangeSelection — Unrestricted value, when this variable represents a filter.
|
|
568
|
-
DateRangeVariable.describe?: ((value: DateRangeSelection) => string)
|
|
569
|
-
DateRangeVariable.history: HistoryMode
|
|
570
|
-
DateRangeVariable.read: (params: URLSearchParams) => DateRangeSelection
|
|
571
|
-
DateRangeVariable.write: (value: DateRangeSelection) => Record<string, string | null>
|
|
572
|
-
DateRangeVariable.valid: (value: DateRangeSelection) => boolean
|
|
573
|
-
DateRangeVariable.same: (left: DateRangeSelection, right: DateRangeSelection) => boolean
|
|
574
|
-
DateRangeVariable.supportsComparison: boolean
|
|
575
|
-
DateRangeVariable.input: (selection: DateRangeSelection) => DateRangeRequest
|
|
576
|
-
DateRangeVariable.describeInput: (input: DateRangeRequest) => string
|
|
577
|
-
DateRangeVariable.bounds: () => { minDate?: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
578
|
-
DateRangeVariable.resolve: (selection: DateRangeSelection) => DateRange
|
|
579
|
-
DateRangeVariable.previous: (selection: DateRangeSelection) => DateRange | null
|
|
580
|
-
DateRangeVariable.comparisonRange: (selection: DateRangeSelection) => DateRange | null
|
|
581
|
-
DateRangeVariableOptions (type, @altertable/data-app-react): = props listed as dateRangeVariable.options.*
|
|
582
571
|
DateTimeFormatOptions (type, @altertable/data-app/format)
|
|
583
572
|
DateTimeFormatOptions.locale?: string
|
|
584
573
|
DateTimeFormatOptions.missing?: string
|
|
585
574
|
DateTimeFormatOptions.timeZone?: string
|
|
586
575
|
DateTimeFormatOptions.precision?: 'minute' | 'second'
|
|
587
576
|
DateTimeRange (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): = props listed as dateTimeRangeSql.range.*
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
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
|
|
623
615
|
DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
|
|
624
616
|
DateTimeRangeParserOptions (type, @altertable/data-app/format)
|
|
625
617
|
DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
|
|
@@ -632,54 +624,35 @@ DateTimeRangePicker.placeholder?: string
|
|
|
632
624
|
DateTimeRangePicker.label?: string
|
|
633
625
|
DateTimeRangePicker.labelPlacement?: ControlLabelPlacement
|
|
634
626
|
DateTimeRangePicker.maxRangeDays?: number — Client limit for determinate durations; validate timezone-dependent ranges on the backend.
|
|
635
|
-
DateTimeRangePicker.
|
|
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.
|
|
636
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.
|
|
637
629
|
DateTimeRangePicker.disabled?: boolean
|
|
630
|
+
DateTimeRangePicker.isDefault?: boolean
|
|
631
|
+
DateTimeRangePicker.onReset?: (() => void)
|
|
632
|
+
DateTimeRangePicker.calendarFooter?: ReactNode
|
|
638
633
|
DateTimeRangePicker.comparison?: { enabled: boolean; range: DateTimeRange | null; onChange: (enabled: boolean) => void; } — Optional controlled comparison with the immediately preceding equal-length interval.
|
|
639
634
|
DateTimeRangePickerProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as DateTimeRangePicker.*
|
|
640
|
-
|
|
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.
|
|
641
644
|
DateTimeRangePreset.label: string — Menu label, also shown when this preset matches the selected range.
|
|
642
645
|
DateTimeRangePreset.range: string | DateTimeRange
|
|
643
646
|
DateTimeRangePreset.shortcut?: string — Optional compact badge, for example "15m".
|
|
644
|
-
dateTimeRangePresets (const, @altertable/data-app/contract, @altertable/data-app-react
|
|
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.
|
|
645
648
|
dateTimeRangePresets.monitoring: readonly DateTimeRangePreset[]
|
|
646
649
|
dateTimeRangePresets.analytics: readonly DateTimeRangePreset[]
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
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'
|
|
650
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.
|
|
651
654
|
dateTimeRangeSql.range.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
652
655
|
dateTimeRangeSql.range.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
653
|
-
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.
|
|
654
|
-
dateTimeRangeVariable.options.key: string
|
|
655
|
-
dateTimeRangeVariable.options.label?: string
|
|
656
|
-
dateTimeRangeVariable.options.defaultValue: string | DateTimeRange — Relative defaults such as "7d" stay relative.
|
|
657
|
-
dateTimeRangeVariable.options.maxRangeDays?: number — Client limit for determinate durations; the backend must validate timezone-dependent ranges.
|
|
658
|
-
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.
|
|
659
|
-
dateTimeRangeVariable.options.history?: HistoryMode
|
|
660
|
-
dateTimeRangeVariable.options.presentation?: VariablePresentation
|
|
661
|
-
dateTimeRangeVariable.options.allowComparison: true
|
|
662
|
-
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…
|
|
663
|
-
dateTimeRangeVariable.options.allowComparison?: false — Enable the previous-period reporting workflow. Requires a shared contract.
|
|
664
|
-
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.
|
|
665
|
-
DateTimeRangeVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
666
|
-
DateTimeRangeVariable.kind: 'dateTimeRange'
|
|
667
|
-
DateTimeRangeVariable.label?: string
|
|
668
|
-
DateTimeRangeVariable.presentation?: VariablePresentation
|
|
669
|
-
DateTimeRangeVariable.urlKeys: readonly string[]
|
|
670
|
-
DateTimeRangeVariable.defaultValue: DateTimeRange
|
|
671
|
-
DateTimeRangeVariable.clearValue?: DateTimeRange — Unrestricted value, when this variable represents a filter.
|
|
672
|
-
DateTimeRangeVariable.describe?: ((value: DateTimeRange) => string)
|
|
673
|
-
DateTimeRangeVariable.history: HistoryMode
|
|
674
|
-
DateTimeRangeVariable.read: (params: URLSearchParams) => DateTimeRange
|
|
675
|
-
DateTimeRangeVariable.write: (value: DateTimeRange) => Record<string, string | null>
|
|
676
|
-
DateTimeRangeVariable.valid: (value: DateTimeRange) => boolean
|
|
677
|
-
DateTimeRangeVariable.same: (left: DateTimeRange, right: DateTimeRange) => boolean
|
|
678
|
-
DateTimeRangeVariable.parse: (value: unknown) => DateTimeRange
|
|
679
|
-
DateTimeRangeVariable.maxRangeDays?: number
|
|
680
|
-
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.
|
|
681
|
-
DateTimeRangeVariable.presets?: readonly DateTimeRangePreset[]
|
|
682
|
-
DateTimeRangeVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
|
|
683
656
|
DateTimeTooltip (component, @altertable/data-app-react): (props: DateTimeTooltipProps) — Exact-time disclosure uses the same reporting zone and locale as other date displays.
|
|
684
657
|
DateTimeTooltip.date: Date
|
|
685
658
|
DateTimeTooltip.timeZone?: string
|
|
@@ -702,46 +675,78 @@ defineDataApp.config.queries: Queries & KnownRecord<Queries> & ('' extends keyof
|
|
|
702
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.
|
|
703
676
|
defineDataIdentifiers.options.tables: Tables
|
|
704
677
|
defineDataIdentifiers.options.columns: Columns
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
defineOperation
|
|
713
|
-
defineOperation.operation.
|
|
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`.
|
|
714
689
|
defineOperation.operation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
715
|
-
defineOperation.operation.run:
|
|
690
|
+
defineOperation.operation.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
|
|
716
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>
|
|
717
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.
|
|
718
700
|
DetailContent (class, @altertable/data-app-react): <Data, Input> — A destination’s rendered body. Pass these to DataApp.details.
|
|
719
|
-
DetailContent.target: DetailView<Data, Input>
|
|
720
|
-
DetailContent.render: (
|
|
721
|
-
DetailView (class, @altertable/data-app-react): <Data, Input> — A typed, query-backed destination.
|
|
722
|
-
DetailView.definition:
|
|
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<...> & { ...; }
|
|
723
705
|
DetailView.useResult: (input: Input) => ViewResult<Data, Input>
|
|
724
|
-
DetailView.
|
|
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.
|
|
725
708
|
DetailViewDefinition (type, @altertable/data-app-react): <Data, Input>
|
|
726
709
|
DetailViewDefinition.id: string
|
|
727
710
|
DetailViewDefinition.title: ReactNode
|
|
728
711
|
DetailViewDefinition.parseInput: (input: unknown) => Input — Validates untrusted navigation input before a detail operation can run.
|
|
729
|
-
DetailViewDefinition.describeInput
|
|
730
|
-
DetailViewDefinition.isEmpty
|
|
731
|
-
DetailViewDefinition.emptyFallback
|
|
732
|
-
dimensionFilter (function, @altertable/data-app/contract): <const T extends string>(config: DimensionFilterOptions<T>):
|
|
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.
|
|
733
716
|
dimensionFilter.config.key: string
|
|
734
717
|
dimensionFilter.config.label: string
|
|
735
718
|
dimensionFilter.config.allowMissing?: boolean
|
|
736
719
|
dimensionFilter.config.allowExclusion?: boolean
|
|
737
720
|
dimensionFilter.config.history?: HistoryMode
|
|
738
|
-
dimensionFilter.config.presentation?:
|
|
721
|
+
dimensionFilter.config.presentation?: FilterPresentation
|
|
739
722
|
dimensionFilter.config.selectionMode: 'single' [variant 1 of 2]
|
|
740
723
|
dimensionFilter.config.maxSelected?: 1 [variant 1 of 2]
|
|
741
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' }`.
|
|
742
726
|
dimensionFilter.config.options: readonly DimensionOption<T>[]
|
|
743
727
|
dimensionFilter.config.selectionMode: 'multiple' [variant 2 of 2]
|
|
744
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>[]
|
|
745
750
|
DimensionFilterOptions (type, @altertable/data-app/contract): <T> = props listed as dimensionFilter.config.*
|
|
746
751
|
DimensionMember (type, @altertable/data-app/contract): <T>
|
|
747
752
|
DimensionMember.kind: 'value' [variant 1 of 2]
|
|
@@ -752,7 +757,7 @@ DimensionOption.value: T
|
|
|
752
757
|
DimensionOption.label: string
|
|
753
758
|
DimensionOption.count?: number
|
|
754
759
|
DimensionPicker (component, @altertable/data-app-react/ui): <T extends DimensionValue>(props: {…}) — Adapts the typed dimension contract to the shared ChoicePicker control.
|
|
755
|
-
DimensionPicker.filter:
|
|
760
|
+
DimensionPicker.filter: DimensionSelectionFilter<T>
|
|
756
761
|
DimensionPicker.labelPlacement?: ControlLabelPlacement
|
|
757
762
|
DimensionPicker.value: DimensionSelection<T>
|
|
758
763
|
DimensionPicker.onChange: (value: DimensionSelection<T>) => void
|
|
@@ -765,31 +770,18 @@ dimensionPredicate.selection.kind: 'all' [variant 1 of 2]
|
|
|
765
770
|
dimensionPredicate.selection.kind: 'exclude' | 'include' [variant 2 of 2]
|
|
766
771
|
dimensionPredicate.selection.members: readonly DimensionMember<T>[] [variant 2 of 2]
|
|
767
772
|
DimensionSelection (type, @altertable/data-app/contract): <T> = props listed as dimensionPredicate.selection.*
|
|
768
|
-
DimensionVariable (type, @altertable/data-app/contract): <T> — A fixed-option dimension retains its distinction from query-backed facets.
|
|
769
|
-
DimensionVariable.kind: 'dimension'
|
|
770
|
-
DimensionVariable.label: string
|
|
771
|
-
DimensionVariable.presentation?: VariablePresentation
|
|
772
|
-
DimensionVariable.urlKeys: readonly string[]
|
|
773
|
-
DimensionVariable.defaultValue: DimensionSelection<T>
|
|
774
|
-
DimensionVariable.clearValue?: DimensionSelection<T> — Unrestricted value, when this variable represents a filter.
|
|
775
|
-
DimensionVariable.describe: ((value: DimensionSelection<T>) => string) & ((selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[] | undefined) => string)
|
|
776
|
-
DimensionVariable.history: HistoryMode
|
|
777
|
-
DimensionVariable.read: (params: URLSearchParams) => DimensionSelection<T>
|
|
778
|
-
DimensionVariable.write: (value: DimensionSelection<T>) => Record<string, string | null>
|
|
779
|
-
DimensionVariable.valid: (value: DimensionSelection<T>) => boolean
|
|
780
|
-
DimensionVariable.same: (left: DimensionSelection<T>, right: DimensionSelection<T>) => boolean
|
|
781
|
-
DimensionVariable.optionsSource: 'fixed'
|
|
782
|
-
DimensionVariable.selectionMode: 'multiple' | 'single'
|
|
783
|
-
DimensionVariable.valueType: T extends number ? 'number' : 'string'
|
|
784
|
-
DimensionVariable.allowMissing: boolean
|
|
785
|
-
DimensionVariable.allowExclusion: boolean
|
|
786
|
-
DimensionVariable.maxSelected: number
|
|
787
|
-
DimensionVariable.options: readonly DimensionOption<T>[]
|
|
788
773
|
DisclosedQuery (type, @altertable/data-app/contract): One registered statement an operation ran, with its parameter values.
|
|
789
774
|
DisclosedQuery.name: string
|
|
790
775
|
DisclosedQuery.statement: string
|
|
791
776
|
DisclosedQuery.params?: Readonly<Record<string, QueryParameterValue>>
|
|
792
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)
|
|
793
785
|
EmptyState (component, @altertable/data-app-react): (props: EmptyStateProps)
|
|
794
786
|
EmptyState.title: ReactNode
|
|
795
787
|
EmptyState.description?: ReactNode
|
|
@@ -818,6 +810,43 @@ ExternalLink.children: ReactNode
|
|
|
818
810
|
ExternalLink.className?: string
|
|
819
811
|
ExternalLink.title?: string
|
|
820
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>[]
|
|
821
850
|
FilterActions (component, @altertable/data-app-react/ui): (props: FilterActionsProps)
|
|
822
851
|
FilterActions.onClear?: (() => void)
|
|
823
852
|
FilterActions.onApply: () => void [variant 1 of 2]
|
|
@@ -827,6 +856,16 @@ FilterBar (component, @altertable/data-app-react/ui): (props: FilterBarProps)
|
|
|
827
856
|
FilterBar.…: plus props inherited from React
|
|
828
857
|
FilterBarProps (type, @altertable/data-app-react/ui): <HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
|
829
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<...> : ...; }
|
|
830
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.
|
|
831
870
|
formatCount.options.locale?: string
|
|
832
871
|
formatCount.options.missing?: string
|
|
@@ -877,8 +916,10 @@ FunnelChart.ariaLabel: string — Accessible measure and scope description.
|
|
|
877
916
|
FunnelChart.unit: string — Population unit, such as users or sessions.
|
|
878
917
|
FunnelChart.formatValue?: ((value: number) => string) — Formats counts; rates use percentage formatting.
|
|
879
918
|
FunnelChart.className?: string
|
|
919
|
+
FunnelChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
880
920
|
FunnelChart.steps: readonly FunnelChartStep[]
|
|
881
921
|
FunnelChart.series: readonly FunnelChartSeries[]
|
|
922
|
+
FunnelChart.interactiveLegend?: boolean — Disable legend hover and focus controls.
|
|
882
923
|
FunnelChartProps (type, @altertable/data-app-react/ui): = props listed as FunnelChart.*
|
|
883
924
|
FunnelChartSeries (type, @altertable/data-app-react/ui)
|
|
884
925
|
FunnelChartSeries.id: string — Unique, nonblank population ID.
|
|
@@ -953,9 +994,16 @@ injectDataAppStyles (function, @altertable/data-app-react, @altertable/data-app-
|
|
|
953
994
|
injectDataAppStyles.options.document?: Document — Defaults to the current browser document.
|
|
954
995
|
injectDataAppStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
955
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>
|
|
956
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.
|
|
957
1004
|
isPlainKeyEvent.event.…: plus props inherited from built-in
|
|
958
1005
|
isPlainKeyEvent.options.allowShift?: boolean
|
|
1006
|
+
isPlainKeyEvent().valueOf: (): boolean — Returns the primitive value of the specified object.
|
|
959
1007
|
ItemActions (type, @altertable/data-app-react/ui): <Row> = (row: Row) => readonly ExplorationAction[] — Resolves the actions available for a displayed domain row.
|
|
960
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.
|
|
961
1009
|
JourneyChart.ariaLabel: string — Accessible measure and scope description.
|
|
@@ -976,10 +1024,13 @@ LineChart.itemActions?: ItemActions<Row> — Actions available for each displaye
|
|
|
976
1024
|
LineChart.unit: string
|
|
977
1025
|
LineChart.ariaLabel: string
|
|
978
1026
|
LineChart.formatValue?: ((value: number) => string)
|
|
1027
|
+
LineChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
1028
|
+
LineChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
979
1029
|
LineChartItem (type, @altertable/data-app-react/ui)
|
|
980
1030
|
LineChartItem.id: string
|
|
981
1031
|
LineChartItem.label: string
|
|
982
1032
|
LineChartItem.value: number
|
|
1033
|
+
LineChartItem.time?: number — Optional timestamp in epoch milliseconds for cursor linking. Omit for category samples.
|
|
983
1034
|
LineChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as LineChart.*
|
|
984
1035
|
LiveControl (component, @altertable/data-app-react/ui): (props: LiveControlProps) — Toggle an app-owned recurring refresh. The app supplies the timer and its cadence.
|
|
985
1036
|
LiveControl.enabled: boolean
|
|
@@ -1022,7 +1073,7 @@ MetricFormat (type, @altertable/data-app/format): = props listed as formatMetric
|
|
|
1022
1073
|
MetricReading (type, @altertable/data-app-react/ui)
|
|
1023
1074
|
MetricReading.loading: true [variant 1 of 2]
|
|
1024
1075
|
MetricReading.loading: false [variant 2 of 2]
|
|
1025
|
-
MetricReading.value: MetricValues & { period?:
|
|
1076
|
+
MetricReading.value: MetricValues & { period?: DateTimeRangeInput | undefined; } [variant 2 of 2]
|
|
1026
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.
|
|
1027
1078
|
MetricRecords.render: (source: ViewSource<Data, Input>, navigation?: DetailNavigation | undefined) => { scope: string; content: FunctionComponentElement<{ content: DetailContent<any, any>; input: any; navigation?: DetailNavigation | undefined; }>; } | undefined
|
|
1028
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.
|
|
@@ -1065,29 +1116,29 @@ mountDataApp (function, @altertable/data-app-react): <const Queries extends Quer
|
|
|
1065
1116
|
mountDataApp.options.app: DataAppDefinition<Queries>
|
|
1066
1117
|
mountDataApp.options.component: ComponentType
|
|
1067
1118
|
mountDataApp.options.root?: HTMLElement | null
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
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
|
|
1091
1142
|
NumberField (component, @altertable/data-app-react/ui): (props: NumberFieldProps) — Localized numeric entry. Empty input is null rather than zero.
|
|
1092
1143
|
NumberField.label: string
|
|
1093
1144
|
NumberField.value: number | null
|
|
@@ -1100,7 +1151,7 @@ numberFilter.options.key: string
|
|
|
1100
1151
|
numberFilter.options.label: string
|
|
1101
1152
|
numberFilter.options.defaultValue?: NumberSelection
|
|
1102
1153
|
numberFilter.options.history?: HistoryMode
|
|
1103
|
-
numberFilter.options.presentation?:
|
|
1154
|
+
numberFilter.options.presentation?: FilterPresentation
|
|
1104
1155
|
numberFilter.options.min?: number
|
|
1105
1156
|
numberFilter.options.max?: number
|
|
1106
1157
|
NumberFilter (type, @altertable/data-app/contract): = props listed as parseNumberSelection.filter.*
|
|
@@ -1133,19 +1184,15 @@ NumberSelection.value: number [variant 2 of 3]
|
|
|
1133
1184
|
NumberSelection.kind: 'range' [variant 3 of 3]
|
|
1134
1185
|
NumberSelection.min?: number [variant 3 of 3]
|
|
1135
1186
|
NumberSelection.max?: number [variant 3 of 3]
|
|
1136
|
-
|
|
1137
|
-
OperationDefinition.input: (value: unknown) => Input
|
|
1138
|
-
OperationDefinition.checks: readonly [Input, ...Input[]]
|
|
1139
|
-
OperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
1140
|
-
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.
|
|
1141
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.
|
|
1142
1189
|
parseBooleanSelection (function, @altertable/data-app/contract): (value: unknown, filter: BooleanFilter): BooleanSelection
|
|
1143
1190
|
parseBooleanSelection.filter.kind: 'booleanFilter'
|
|
1144
1191
|
parseBooleanSelection.filter.label: string
|
|
1145
|
-
parseBooleanSelection.filter.presentation?:
|
|
1192
|
+
parseBooleanSelection.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
|
|
1146
1193
|
parseBooleanSelection.filter.urlKeys: readonly string[]
|
|
1147
1194
|
parseBooleanSelection.filter.defaultValue: BooleanSelection
|
|
1148
|
-
parseBooleanSelection.filter.clearValue?: BooleanSelection — Unrestricted value, when this
|
|
1195
|
+
parseBooleanSelection.filter.clearValue?: BooleanSelection — Unrestricted value, when this filter can be cleared.
|
|
1149
1196
|
parseBooleanSelection.filter.describe?: ((value: BooleanSelection) => string)
|
|
1150
1197
|
parseBooleanSelection.filter.history: HistoryMode
|
|
1151
1198
|
parseBooleanSelection.filter.read: (params: URLSearchParams) => BooleanSelection
|
|
@@ -1153,10 +1200,13 @@ parseBooleanSelection.filter.write: (value: BooleanSelection) => Record<string,
|
|
|
1153
1200
|
parseBooleanSelection.filter.valid: (value: BooleanSelection) => boolean
|
|
1154
1201
|
parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelection) => boolean
|
|
1155
1202
|
parseCount (function, @altertable/data-app/contract): (value: unknown): number — Accepts numeric strings from DuckDB; rejects negative, fractional, and unsafe integers.
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
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
|
|
1160
1210
|
parseDateTime (function, @altertable/data-app/format): (value: DateTimeValue): Date | null — Parse only unambiguous instants. String values must include `Z` or an explicit offset.
|
|
1161
1211
|
parseDateTimeBound (function, @altertable/data-app/contract): (text: string): AbsoluteOrRelativeDateTime | null — Parse one bound without resolving relative anchors or offsets.
|
|
1162
1212
|
parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
|
|
@@ -1170,14 +1220,15 @@ ParseDateTimeRangeResult.normalizedInput: string
|
|
|
1170
1220
|
ParseDateTimeRangeResult.parser: 'calendar-preset' | 'calendar-range' | 'chrono' | 'relative' | 'unix' [variant 1 of 2]
|
|
1171
1221
|
ParseDateTimeRangeResult.ok: false [variant 2 of 2]
|
|
1172
1222
|
ParseDateTimeRangeResult.reason: DateTimeRangeParseFailureReason [variant 2 of 2]
|
|
1173
|
-
parseDimensionSelection (function, @altertable/data-app/contract): <T extends DimensionValue>(value: unknown, filter:
|
|
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.
|
|
1174
1224
|
parseDimensionSelection.filter.kind: 'dimension'
|
|
1175
1225
|
parseDimensionSelection.filter.label: string
|
|
1176
|
-
parseDimensionSelection.filter.presentation?:
|
|
1226
|
+
parseDimensionSelection.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
|
|
1177
1227
|
parseDimensionSelection.filter.urlKeys: readonly string[]
|
|
1178
1228
|
parseDimensionSelection.filter.defaultValue: DimensionSelection<T>
|
|
1179
|
-
parseDimensionSelection.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this
|
|
1180
|
-
parseDimensionSelection.filter.describe: (
|
|
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
|
|
1181
1232
|
parseDimensionSelection.filter.history: HistoryMode
|
|
1182
1233
|
parseDimensionSelection.filter.read: (params: URLSearchParams) => DimensionSelection<T>
|
|
1183
1234
|
parseDimensionSelection.filter.write: (value: DimensionSelection<T>) => Record<string, string | null>
|
|
@@ -1190,15 +1241,15 @@ parseDimensionSelection.filter.allowMissing: boolean
|
|
|
1190
1241
|
parseDimensionSelection.filter.allowExclusion: boolean
|
|
1191
1242
|
parseDimensionSelection.filter.maxSelected: number
|
|
1192
1243
|
parseDimensionSelection.filter.options: readonly DimensionOption<T>[]
|
|
1193
|
-
|
|
1194
|
-
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.
|
|
1195
1245
|
parseFacetOptions.filter.kind: 'dimension'
|
|
1196
1246
|
parseFacetOptions.filter.label: string
|
|
1197
|
-
parseFacetOptions.filter.presentation?:
|
|
1247
|
+
parseFacetOptions.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
|
|
1198
1248
|
parseFacetOptions.filter.urlKeys: readonly string[]
|
|
1199
1249
|
parseFacetOptions.filter.defaultValue: DimensionSelection<T>
|
|
1200
|
-
parseFacetOptions.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this
|
|
1201
|
-
parseFacetOptions.filter.describe: (
|
|
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
|
|
1202
1253
|
parseFacetOptions.filter.history: HistoryMode
|
|
1203
1254
|
parseFacetOptions.filter.read: (params: URLSearchParams) => DimensionSelection<T>
|
|
1204
1255
|
parseFacetOptions.filter.write: (value: DimensionSelection<T>) => Record<string, string | null>
|
|
@@ -1215,10 +1266,10 @@ parseLabel (function, @altertable/data-app/contract): (value: unknown, maxLength
|
|
|
1215
1266
|
parseNumberSelection (function, @altertable/data-app/contract): (value: unknown, filter: NumberFilter): NumberSelection
|
|
1216
1267
|
parseNumberSelection.filter.kind: 'numberFilter'
|
|
1217
1268
|
parseNumberSelection.filter.label: string
|
|
1218
|
-
parseNumberSelection.filter.presentation?:
|
|
1269
|
+
parseNumberSelection.filter.presentation?: (FilterPresentation & { group?: 'display' | 'scope' | undefined; }) — Display options (`displayChoice()`) change how results are shown, not which data is included.
|
|
1219
1270
|
parseNumberSelection.filter.urlKeys: readonly string[]
|
|
1220
1271
|
parseNumberSelection.filter.defaultValue: NumberSelection
|
|
1221
|
-
parseNumberSelection.filter.clearValue?: NumberSelection — Unrestricted value, when this
|
|
1272
|
+
parseNumberSelection.filter.clearValue?: NumberSelection — Unrestricted value, when this filter can be cleared.
|
|
1222
1273
|
parseNumberSelection.filter.describe?: ((value: NumberSelection) => string)
|
|
1223
1274
|
parseNumberSelection.filter.history: HistoryMode
|
|
1224
1275
|
parseNumberSelection.filter.read: (params: URLSearchParams) => NumberSelection
|
|
@@ -1228,11 +1279,12 @@ parseNumberSelection.filter.same: (left: NumberSelection, right: NumberSelection
|
|
|
1228
1279
|
parseNumberSelection.filter.min?: number
|
|
1229
1280
|
parseNumberSelection.filter.max?: number
|
|
1230
1281
|
parseTrue (function, @altertable/data-app/contract): (value: unknown): true
|
|
1282
|
+
parseTrue().valueOf: (): boolean — Returns the primitive value of the specified object.
|
|
1231
1283
|
PeriodComparison (type, @altertable/data-app-react)
|
|
1232
1284
|
PeriodComparison.kind: 'previous' [variant 1 of 2]
|
|
1233
1285
|
PeriodComparison.kind: 'period' [variant 2 of 2]
|
|
1234
1286
|
PeriodComparison.period: ReportingPeriod [variant 2 of 2]
|
|
1235
|
-
PeriodSummary (component, @altertable/data-app-react): (props: PeriodSummaryProps) — Read-only period context for the
|
|
1287
|
+
PeriodSummary (component, @altertable/data-app-react): (props: PeriodSummaryProps) — Read-only period context for the control bar, including exact bounds for assistive technology.
|
|
1236
1288
|
PeriodSummary.period: ReportingPeriod
|
|
1237
1289
|
PeriodSummary.comparison?: PeriodComparison
|
|
1238
1290
|
PeriodSummary.className?: string
|
|
@@ -1261,29 +1313,28 @@ PresentStory.headerActions?: ReactNode
|
|
|
1261
1313
|
PresentStory.footer?: ReactNode
|
|
1262
1314
|
PresentStory.…: plus props inherited from React
|
|
1263
1315
|
PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
|
|
1264
|
-
previousDateRange (function, @altertable/data-app/contract): (options: DateRange): DateRange — The immediately preceding, equally long set of calendar days.
|
|
1265
|
-
previousDateRange.options.start: string
|
|
1266
|
-
previousDateRange.options.end: string
|
|
1267
1316
|
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryDefinition>> = { readonly [x: string]: QueryDefinition; }
|
|
1268
1317
|
QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
|
|
1269
1318
|
QueryField.type: keyof QueryValues
|
|
1270
1319
|
QueryField.nullable?: boolean
|
|
1271
|
-
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar
|
|
1272
|
-
QueryParameter.type: '
|
|
1273
|
-
QueryParameter.
|
|
1274
|
-
QueryParameter.
|
|
1275
|
-
QueryParameter.type: '
|
|
1276
|
-
QueryParameter.defaultValue?:
|
|
1277
|
-
QueryParameter.type: '
|
|
1278
|
-
QueryParameter.defaultValue?:
|
|
1279
|
-
QueryParameter.type: '
|
|
1280
|
-
QueryParameter.defaultValue?:
|
|
1281
|
-
QueryParameter.type: '
|
|
1282
|
-
QueryParameter.defaultValue?:
|
|
1283
|
-
QueryParameter.
|
|
1284
|
-
QueryParameter.defaultValue?:
|
|
1285
|
-
QueryParameter.
|
|
1286
|
-
QueryParameter.defaultValue?:
|
|
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]
|
|
1287
1338
|
QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
|
|
1288
1339
|
QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
|
|
1289
1340
|
QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
|
|
@@ -1342,7 +1393,9 @@ RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
|
1342
1393
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|
|
1343
1394
|
RetentionChart.formatValue?: ((value: number) => string) — Formats counts; rates use percentage formatting.
|
|
1344
1395
|
RetentionChart.className?: string
|
|
1396
|
+
RetentionChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
1345
1397
|
RetentionChart.series: readonly RetentionChartSeries[]
|
|
1398
|
+
RetentionChart.interactiveLegend?: boolean — Disable legend hover and focus controls.
|
|
1346
1399
|
RetentionChartPoint (type, @altertable/data-app-react/ui)
|
|
1347
1400
|
RetentionChartPoint.offset: number — Nonnegative integer, unique per series; uneven offsets retain their distance.
|
|
1348
1401
|
RetentionChartPoint.label: string — Must agree across series for the same offset.
|
|
@@ -1356,6 +1409,7 @@ RetentionChartSeries.label: string
|
|
|
1356
1409
|
RetentionChartSeries.cohortSize: number — Finite, nonnegative starting population.
|
|
1357
1410
|
RetentionChartSeries.points: readonly RetentionChartPoint[]
|
|
1358
1411
|
ScatterChart (component, @altertable/data-app-react/ui): (props: ScatterChartProps) — Independent finite X/Y observations on linear axes that include zero. Negative and constant coordinates are supported.
|
|
1412
|
+
ScatterChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
1359
1413
|
ScatterChart.items: readonly ScatterChartItem[]
|
|
1360
1414
|
ScatterChart.xLabel: string
|
|
1361
1415
|
ScatterChart.yLabel: string
|
|
@@ -1391,6 +1445,25 @@ SearchField.inputProps?: Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputEle
|
|
|
1391
1445
|
SearchField.children?: ReactNode
|
|
1392
1446
|
SearchField.…: plus props inherited from React
|
|
1393
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
|
|
1394
1467
|
SearchHit (type, @altertable/data-app-react/ui): <Item>
|
|
1395
1468
|
SearchHit.item: Item
|
|
1396
1469
|
SearchHit.score: number
|
|
@@ -1434,24 +1507,6 @@ SearchTypeahead.children?: ReactNode
|
|
|
1434
1507
|
SearchTypeahead.items: readonly SearchSuggestion[] — Suggestions from the displayed result, in its order. No additional filtering or request.
|
|
1435
1508
|
SearchTypeahead.…: plus props inherited from React
|
|
1436
1509
|
SearchTypeaheadProps (type, @altertable/data-app-react/ui): = props listed as SearchTypeahead.*
|
|
1437
|
-
searchVariable (function, @altertable/data-app-react): (options: Omit<ScalarVariableOptions, 'presentation'>): SearchVariable — Search query state; typing replaces history by default.
|
|
1438
|
-
searchVariable.options.label?: string
|
|
1439
|
-
searchVariable.options.key: string
|
|
1440
|
-
searchVariable.options.defaultValue?: string
|
|
1441
|
-
searchVariable.options.history?: HistoryMode
|
|
1442
|
-
SearchVariable (type, @altertable/data-app-react)
|
|
1443
|
-
SearchVariable.kind: 'search'
|
|
1444
|
-
SearchVariable.label?: string
|
|
1445
|
-
SearchVariable.presentation?: VariablePresentation
|
|
1446
|
-
SearchVariable.urlKeys: readonly string[]
|
|
1447
|
-
SearchVariable.defaultValue: string
|
|
1448
|
-
SearchVariable.clearValue?: string — Unrestricted value, when this variable represents a filter.
|
|
1449
|
-
SearchVariable.describe?: ((value: string) => string)
|
|
1450
|
-
SearchVariable.history: HistoryMode
|
|
1451
|
-
SearchVariable.read: (params: URLSearchParams) => string
|
|
1452
|
-
SearchVariable.write: (value: string) => Record<string, string | null>
|
|
1453
|
-
SearchVariable.valid: (value: string) => boolean
|
|
1454
|
-
SearchVariable.same: (left: string, right: string) => boolean
|
|
1455
1510
|
SectionHeading (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: SectionHeadingProps) — A section title with the shared section-heading appearance.
|
|
1456
1511
|
SectionHeading.children: ReactNode
|
|
1457
1512
|
SectionHeading.level?: 2 | 3 | 4 | 5 | 6 — Document outline level. Defaults to the section level below the page title.
|
|
@@ -1636,6 +1691,7 @@ Tooltip.variant?: 'chart' | 'hint'
|
|
|
1636
1691
|
Tooltip.onOpenChange?: ((open: boolean) => void)
|
|
1637
1692
|
Tooltip.align?: 'center' | 'end' | 'start'
|
|
1638
1693
|
Tooltip.placement?: 'bottom' | 'top'
|
|
1694
|
+
Tooltip.followCursor?: boolean — Set false to keep a chart tooltip at its entry position while hovering one sample.
|
|
1639
1695
|
Tooltip.portalRoot?: RefObject<HTMLElement | null>
|
|
1640
1696
|
Tooltip.…: plus props inherited from React
|
|
1641
1697
|
TooltipProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as Tooltip.*
|
|
@@ -1657,22 +1713,19 @@ UpdatedAt.open?: boolean
|
|
|
1657
1713
|
UpdatedAt.onOpenChange?: ((open: boolean) => void)
|
|
1658
1714
|
UpdatedAt.timeZone?: string
|
|
1659
1715
|
UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
|
|
1660
|
-
|
|
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.
|
|
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.
|
|
1661
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.
|
|
1662
1719
|
useDateFormatting.options.locale?: string
|
|
1663
1720
|
useDateFormatting.options.timeZone?: string
|
|
1664
1721
|
useDetailNavigation (hook, @altertable/data-app-react): (): DetailNavigation — Resolve a detail target from an interaction. The destination validates input before fetching.
|
|
1665
1722
|
useSvgId (hook, @altertable/data-app-react/ui): (): string — Stable React ID for SVG definitions and their URL references; safe with identifier prefixes.
|
|
1666
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.
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
VariablePresentation (type, @altertable/data-app-react)
|
|
1673
|
-
VariablePresentation.group?: 'display' | 'scope' — Scope changes the included data; display changes its presentation. Defaults to scope.
|
|
1674
|
-
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.
|
|
1675
|
-
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]
|
|
1676
1729
|
VisualizationWidget (component, @altertable/data-app-react): <Row, Data, Input>(props: VisualizationWidgetProps<Row, Data, Input>)
|
|
1677
1730
|
VisualizationWidget.skeleton?: SkeletonContent
|
|
1678
1731
|
VisualizationWidget.headingLevel?: 2 | 3 | 4 | 5 | 6 — Document outline level. The widget title keeps the shared widget-heading appearance.
|
|
@@ -1740,4 +1793,5 @@ WidgetStatus.kind: 'updating' [variant 2 of 3]
|
|
|
1740
1793
|
WidgetStatus.message?: string [variants 2, 3 of 3]
|
|
1741
1794
|
WidgetStatus.kind: 'error' [variant 3 of 3]
|
|
1742
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.
|
|
1743
1797
|
```
|