@altertable/data-app 0.77.0 → 0.79.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/AGENTS.md +3 -0
- package/CONTRIBUTING.md +5 -1
- package/REFERENCE.md +70 -180
- package/dist/chunks/contract-BTG-BUwW.js +1589 -0
- package/dist/chunks/contract-BTG-BUwW.js.map +1 -0
- package/dist/chunks/data-client-C4Pay-UE.js +122 -0
- package/dist/chunks/data-client-C4Pay-UE.js.map +1 -0
- package/dist/chunks/{date-time-range-value-CnlTr1U1.js → date-time-range-value-D-XfqVTT.js} +21 -24
- package/dist/chunks/date-time-range-value-D-XfqVTT.js.map +1 -0
- package/dist/chunks/{diagnostics-Dyj-rUsY.js → diagnostics-BwpM9wGn.js} +240 -63
- package/dist/chunks/diagnostics-BwpM9wGn.js.map +1 -0
- package/dist/chunks/record-Cr4Uk1K3.js +9 -0
- package/dist/chunks/record-Cr4Uk1K3.js.map +1 -0
- package/dist/client/index.js +4 -101
- package/dist/client/index.js.map +1 -1
- package/dist/core/appearance.js +3 -5
- package/dist/core/appearance.js.map +1 -1
- package/dist/core/config.js +12 -3
- package/dist/core/config.js.map +1 -1
- package/dist/core/contract.js +3 -4
- package/dist/core/format.js +1 -1
- package/dist/internal.js +63 -11
- package/dist/internal.js.map +1 -1
- package/dist/types/chunks/contract.d.ts +260 -20
- package/dist/types/chunks/data-client.d.ts +46 -0
- package/dist/types/chunks/date-time-range-value.d.ts +28 -2
- package/dist/types/chunks/index.d.ts +65 -80
- package/dist/types/client/index.d.ts +4 -3
- package/dist/types/core/config.d.ts +13 -4
- package/dist/types/core/contract.d.ts +3 -5
- package/dist/types/core/format.d.ts +1 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/internal.d.ts +25 -6
- package/docs/app-authoring.md +160 -72
- package/docs/client.md +14 -53
- package/docs/contract.md +47 -26
- package/docs/data-context.md +11 -11
- package/docs/diagnostics.md +16 -23
- package/docs/embed.md +60 -25
- package/docs/filters.md +39 -65
- package/docs/formatting-and-appearance.md +2 -5
- package/docs/hosted-apps.md +11 -11
- package/docs/layout.md +21 -0
- package/docs/local-data-apps.md +10 -7
- package/docs/react-embed.md +44 -2
- package/docs/react.md +2 -5
- package/docs/server-bun.md +8 -5
- package/docs/stories-and-export.md +5 -6
- package/docs/styling.md +2 -1
- package/docs/ui.md +37 -10
- package/docs/views.md +18 -19
- package/docs/widgets.md +10 -11
- package/docs/worker.md +1 -1
- package/package.json +1 -5
- package/dist/chunks/contract-BQsFReRp.js +0 -780
- package/dist/chunks/contract-BQsFReRp.js.map +0 -1
- package/dist/chunks/contract-VhY9V9wd.js +0 -806
- package/dist/chunks/contract-VhY9V9wd.js.map +0 -1
- package/dist/chunks/date-time-range-value-CnlTr1U1.js.map +0 -1
- package/dist/chunks/diagnostics-Dyj-rUsY.js.map +0 -1
- package/dist/chunks/operation-BVRM-A5Y.js +0 -134
- package/dist/chunks/operation-BVRM-A5Y.js.map +0 -1
- package/dist/chunks/request-body-H1qPmmTN.js +0 -50
- package/dist/chunks/request-body-H1qPmmTN.js.map +0 -1
- package/dist/server/index.js +0 -90
- package/dist/server/index.js.map +0 -1
- package/dist/types/chunks/contract2.d.ts +0 -221
- package/dist/types/chunks/date-time-range.d.ts +0 -29
- package/dist/types/server/index.d.ts +0 -17
- package/docs/server.md +0 -41
package/AGENTS.md
CHANGED
|
@@ -10,6 +10,9 @@ task needs a pattern that source does not cover. Search [REFERENCE.md](REFERENCE
|
|
|
10
10
|
|
|
11
11
|
Read [Contributing](CONTRIBUTING.md) before changing packages or contributor
|
|
12
12
|
tooling. App authoring guides teach agents how to build apps with the SDK.
|
|
13
|
+
For every breaking SDK change, include the migration in the same PR.
|
|
14
|
+
Follow [SDK migrations](https://github.com/altertable-ai/data-app/blob/main/.github/RELEASING.md#sdk-migrations).
|
|
15
|
+
|
|
13
16
|
Keep reusable behavior in components, defaults, types, and tests. Add authoring
|
|
14
17
|
documentation only when an app author must make a decision or take an action;
|
|
15
18
|
do not restate patterns already handled by the SDK.
|
package/CONTRIBUTING.md
CHANGED
|
@@ -7,6 +7,9 @@ bun install --frozen-lockfile
|
|
|
7
7
|
bash scripts/install-test-browser.sh
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
Docker must be running for the SQL-backed business-evidence browser tests. They
|
|
11
|
+
start an isolated Altertable mock using the same pinned image as the gallery.
|
|
12
|
+
|
|
10
13
|
## Workflow
|
|
11
14
|
|
|
12
15
|
1. **Locate the owner.** Use the code map below. Read additional guidance only
|
|
@@ -132,7 +135,8 @@ a nonzero status; rerun the command to reconnect.
|
|
|
132
135
|
## Preview UI changes
|
|
133
136
|
|
|
134
137
|
For SDK UI work, `bun run dev:gallery` starts the example gallery at
|
|
135
|
-
`http://127.0.0.1:27418/gallery`, `/playground`,
|
|
138
|
+
`http://127.0.0.1:27418/gallery`, `/playground`, the `/cost-dashboard` example, and a
|
|
139
|
+
Docker-backed mock API.
|
|
136
140
|
Package and fixture edits reload. Restart after changing `dev/server.ts`; add
|
|
137
141
|
`?delay=2000` to inspect loading states.
|
|
138
142
|
|
package/REFERENCE.md
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
# Data app API reference
|
|
2
2
|
|
|
3
|
-
Search an export to find its import paths, signature, and props:
|
|
3
|
+
Search an export or method to find its import paths, signature, and props:
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
rg '
|
|
6
|
+
rg '(^|\.)LineChart\b' REFERENCE.md
|
|
7
|
+
rg '(^|\.)defineView\b' REFERENCE.md
|
|
7
8
|
```
|
|
8
9
|
|
|
9
10
|
Each export and field has its own line. `?` marks optional fields;
|
|
10
11
|
`[variant 2 of 3]` identifies union-specific fields.
|
|
11
12
|
`= props listed as Name.*` points to a component's prop definitions.
|
|
13
|
+
Methods are listed under the function that returns them, such as
|
|
14
|
+
`createDataHooks().defineView().dataset`.
|
|
12
15
|
|
|
13
16
|
```text
|
|
14
17
|
AboutData (component, @altertable/data-app-react/ui): (props: AboutDataProps)
|
|
@@ -98,7 +101,7 @@ AppFilter.read: (params: URLSearchParams) => Value
|
|
|
98
101
|
AppFilter.write: (value: Value) => Record<string, string | null>
|
|
99
102
|
AppFilter.valid: (value: Value) => boolean
|
|
100
103
|
AppFilter.same: (left: Value, right: Value) => boolean
|
|
101
|
-
AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>>
|
|
104
|
+
AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>> — Defaults to the shared control icon size so icons follow density tokens.
|
|
102
105
|
AppIcon.options.name: 'annotate' | 'breakdown' | 'calendar' | 'cancel' | 'check' | 'clearFilters' | 'clock' | 'close' | 'copy' | 'darkTheme' | 'disclosure' | 'displayOptions' | 'error' | 'explore' | ... 22 more ... | 'wrap'
|
|
103
106
|
AppIcon.options.size?: string | number
|
|
104
107
|
AppIcon.options.…: plus props inherited from lucide-react, React
|
|
@@ -126,6 +129,9 @@ BarChart.ariaLabel: string
|
|
|
126
129
|
BarChart.formatValue?: ((value: number) => string)
|
|
127
130
|
BarChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
128
131
|
BarChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
132
|
+
BarChart.showYAxis?: boolean — Show a vertical value scale beside the bars.
|
|
133
|
+
BarChart.scrollToEnd?: boolean — Automatically reveal the last items after updates. Disable for ranked categories.
|
|
134
|
+
BarChart.valueFormat?: MetricFormat — Formats the vertical axis and, unless overridden, inspected values.
|
|
129
135
|
BarChartItem (type, @altertable/data-app-react/ui)
|
|
130
136
|
BarChartItem.id: string
|
|
131
137
|
BarChartItem.label: string
|
|
@@ -296,20 +302,9 @@ ControlBar (component, @altertable/data-app-react/ui): (props: ControlBarProps)
|
|
|
296
302
|
ControlBar.children: ReactNode
|
|
297
303
|
ControlBar.…: plus props inherited from React
|
|
298
304
|
ControlBarProps (type, @altertable/data-app-react/ui): = props listed as ControlBar.*
|
|
299
|
-
createDataClient (function, @altertable/data-app/client): <Operations extends DataOperations>(
|
|
300
|
-
createDataClient.options.
|
|
301
|
-
createDataClient.options.
|
|
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.
|
|
305
|
+
createDataClient (function, @altertable/data-app/client): <Operations extends DataOperations>(options: DataClientOptions<Operations>): DataClient<Operations> — Create a browser operation client.
|
|
306
|
+
createDataClient.options.operations: Operations
|
|
307
|
+
createDataClient.options.lakehouse?: Lakehouse
|
|
313
308
|
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.
|
|
314
309
|
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
310
|
createDataHooks.client.filters: Readonly<Record<string, FilterCollection>> — Each operation's filters; views derive their inputs and controls from them.
|
|
@@ -318,11 +313,11 @@ createDataHooks().defineView: <Name extends ViewOperationName<Operations>, const
|
|
|
318
313
|
createDataHooks().defineView.definition.operation: Name & (true extends IsUnion<NoInfer<Name>> ? never : unknown)
|
|
319
314
|
createDataHooks().defineView.definition.dataContext: DataContext & Context
|
|
320
315
|
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.
|
|
316
|
+
createDataHooks().defineView.definition.isEmpty?: ((data: OutputOf<Operations[Name]>) => boolean) — App-owned semantics: measured zero need not mean an empty result. Default: A result with no rows is empty; any other result never is.
|
|
322
317
|
createDataHooks().defineView.definition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
|
|
323
318
|
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
319
|
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
|
|
320
|
+
createDataHooks().defineView().dataset: <Row = DatasetRows<Data>, const Columns extends Record<string, object> = Record<string, object>>(definition: BoundDatasetDefinition<Data, FilterInput<Filters>, Row, Columns, Context>): Dataset<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>, Row>
|
|
326
321
|
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
322
|
createDataHooks().defineView().scope: (snapshot: DisplayedSnapshot<Data, FilterInput<Filters>>): string
|
|
328
323
|
createDataHooks().defineView().content: (render: (state: DataContentState<Data, FilterInput<Filters>>) => ReactNode): ViewContent<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>>
|
|
@@ -331,13 +326,13 @@ createDataHooks().defineDetailView.definition.id: string
|
|
|
331
326
|
createDataHooks().defineDetailView.definition.title: ReactNode
|
|
332
327
|
createDataHooks().defineDetailView.definition.parseInput: (input: unknown) => InputOf<Operations[Name]> — Validates untrusted navigation input before a detail operation can run.
|
|
333
328
|
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.
|
|
329
|
+
createDataHooks().defineDetailView.definition.isEmpty?: ((data: OutputOf<Operations[Name]>) => boolean) — App-owned semantics: measured zero need not mean an empty result. Default: A result with no rows is empty; any other result never is.
|
|
335
330
|
createDataHooks().defineDetailView.definition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
|
|
336
331
|
createDataHooks().defineDetailView.definition.operation: Name
|
|
337
332
|
createDataHooks().defineDetailView.definition.dataContext: Context
|
|
338
333
|
createDataHooks().defineDetailView().useResult: (input: Input): ViewResult<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>
|
|
339
334
|
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
|
|
335
|
+
createDataHooks().defineDetailView().dataset: <Row = DatasetRows<Data>, const Columns extends Record<string, object> = Record<string, object>>(definition: BoundDatasetDefinition<Data, Input, Row, Columns, Context>): Dataset<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Row>
|
|
341
336
|
createDataHooks().defineDetailView().metric: (definition: Parameters<Context['metric']>[0], select: (data: Data, input: Input) => { current: number; previous?: never; }): Metric<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>
|
|
342
337
|
CsvCell (type, @altertable/data-app-react): = string | number | boolean | null | undefined
|
|
343
338
|
CsvExport (type, @altertable/data-app-react/ui): All distinct datasets in the displayed result; filename names the download.
|
|
@@ -347,31 +342,22 @@ CsvTable (type, @altertable/data-app-react/ui): One named dataset with ordered c
|
|
|
347
342
|
CsvTable.name: string
|
|
348
343
|
CsvTable.columns: readonly string[]
|
|
349
344
|
CsvTable.rows: readonly (readonly CsvCell[])[]
|
|
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.
|
|
351
|
-
DataApp.children: ReactNode
|
|
352
|
-
DataApp.
|
|
353
|
-
DataApp.
|
|
354
|
-
DataApp.
|
|
355
|
-
DataApp.
|
|
356
|
-
DataApp.
|
|
357
|
-
DataApp.
|
|
358
|
-
DataApp.
|
|
359
|
-
DataApp.
|
|
360
|
-
DataApp.
|
|
361
|
-
DataApp.
|
|
362
|
-
DataApp.
|
|
363
|
-
DataApp.
|
|
364
|
-
DataApp.
|
|
365
|
-
DataApp
|
|
366
|
-
DataApp.children: ReactNode
|
|
367
|
-
DataApp.dataContext: DataContext
|
|
368
|
-
DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
369
|
-
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
370
|
-
DataApp.toolbarActions?: ReactNode
|
|
371
|
-
DataApp.footerActions?: ReactNode
|
|
372
|
-
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
373
|
-
DataApp.csvExport?: CsvExport
|
|
374
|
-
DataApp.queries?: DisclosedQuery[]
|
|
345
|
+
DataApp (component, @altertable/data-app-react): (props: DataAppScreenProps); <Data, Input, const SummaryViews extends readonly AnyView[] = [ ]>(props: DataAppProps<Data, Input, SummaryViews>) — Renders a setup or static screen from its `dataContext` and children. Executes the primary view and its summary views, and owns controls, inspection, exports, and stories.
|
|
346
|
+
DataApp.props.children: ReactNode
|
|
347
|
+
DataApp.props.dataContext: DataContext
|
|
348
|
+
DataApp.props.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
349
|
+
DataApp.props.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states. Embedded surfaces have no toolbar: the host runs page actions through its bridge.
|
|
350
|
+
DataApp.props.toolbarActions?: ReactNode — Standalone toolbar controls; embedded surfaces omit them.
|
|
351
|
+
DataApp.props.footerActions?: ReactNode — Standalone footer controls; embedded surfaces omit them.
|
|
352
|
+
DataApp.props.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
353
|
+
DataApp.props.showSearch?: boolean — Show declared search controls. Defaults to true; hiding preserves their values.
|
|
354
|
+
DataApp.props.showFilters?: boolean — Show declared filter controls, including display options. Defaults to true; hiding preserves their values.
|
|
355
|
+
DataApp.props.view: DataAppView<Data, Input> — The headline view. `<DataApp>` renders the controls for every filter its client's operations read and owns their URL state.
|
|
356
|
+
DataApp.props.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.
|
|
357
|
+
DataApp.props.showSearchSuggestions?: boolean — Show supplied datasets’ record suggestions on the first declared search. Defaults to true.
|
|
358
|
+
DataApp.props.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.
|
|
359
|
+
DataApp.props.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.
|
|
360
|
+
DataApp.props.details?: readonly DetailContent<any, any>[] — Detail destinations available to dataset actions and metric record inspection.
|
|
375
361
|
DataAppConfig (type, @altertable/data-app, @altertable/data-app/config): <Queries>
|
|
376
362
|
DataAppConfig.title: string
|
|
377
363
|
DataAppConfig.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
@@ -386,24 +372,18 @@ DataAppDefinition.description: string — Explain what the app helps readers exp
|
|
|
386
372
|
DataAppDefinition.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
387
373
|
DataAppDefinition.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
388
374
|
DataAppDefinition.queries: QuerySnapshot<Queries>
|
|
375
|
+
DataAppDefinition.queryNames: { readonly [Name in keyof Queries & string]: Name; } — Every registered query name, keyed by itself. Pass it to `createDataContext()`, then cite the queries behind each glossary entry.
|
|
389
376
|
DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionFilter<...>
|
|
390
377
|
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
378
|
DataAppDefinition.defineOperation: <const Filters extends FilterCollection = {}, Output = unknown>(operation: FilterOperationDefinition<Filters, Output, Queries>): DefinedOperation<FilterInput<Filters>, Output, Queries, Filters>
|
|
379
|
+
DataAppDefinition.defineOperations: <const Operations extends DataOperations>(operations: Operations) => DataAppOperationRegistry<Operations> — Bind a named registry to these queries and derive its client and filters.
|
|
392
380
|
DataAppError (class, @altertable/data-app/client)
|
|
393
381
|
DataAppError.code: string
|
|
394
382
|
DataAppError.requestId?: string
|
|
395
383
|
DataAppError.…: plus props inherited from built-in
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
DataAppProps
|
|
399
|
-
DataAppProps.dataContext: DataContext
|
|
400
|
-
DataAppProps.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
401
|
-
DataAppProps.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
402
|
-
DataAppProps.toolbarActions?: ReactNode
|
|
403
|
-
DataAppProps.footerActions?: ReactNode
|
|
404
|
-
DataAppProps.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
405
|
-
DataAppProps.csvExport?: CsvExport
|
|
406
|
-
DataAppProps.queries?: DisclosedQuery[]
|
|
384
|
+
DataAppOperationRegistry (type, @altertable/data-app, @altertable/data-app/config): <Operations>
|
|
385
|
+
DataAppOperationRegistry.createDataClient: () => DataClient<Operations> — Run operations in the browser using its installed query bridge.
|
|
386
|
+
DataAppProps (type, @altertable/data-app-react): <Data, Input, SummaryViews> = props listed as DataApp.props.*
|
|
407
387
|
DataAppProvider (component, @altertable/data-app-react/ui): <const Queries extends QueryDefinitions>(props: {…}) — Provide one app identity and shared requests to a custom React root.
|
|
408
388
|
DataAppProvider.app: DataAppDefinition<Queries>
|
|
409
389
|
DataAppProvider.children: ReactNode
|
|
@@ -420,7 +400,7 @@ DataAppStyleToken (type, @altertable/data-app-react, @altertable/data-app-react/
|
|
|
420
400
|
DataAppView (type, @altertable/data-app-react): <Data, Input> — A declared data or time view that `<DataApp>` can run and describe.
|
|
421
401
|
DataAppView.scope: (snapshot: DisplayedSnapshot<Data, Input>) => string
|
|
422
402
|
DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
|
|
423
|
-
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* —
|
|
403
|
+
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Execute declared operations in the browser against registered query IDs.
|
|
424
404
|
DataContext (type, @altertable/data-app-react)
|
|
425
405
|
DataContext.description: ReactNode
|
|
426
406
|
DataContext.glossary: Record<string, GlossaryEntry>
|
|
@@ -434,7 +414,7 @@ DataIdentifierDefinition.name: string
|
|
|
434
414
|
DataIdentifierDefinition.kind: 'table' [variant 2 of 2]
|
|
435
415
|
DataIdentifierDefinition.catalog: string [variant 2 of 2]
|
|
436
416
|
DataIdentifierDefinition.schema: string [variant 2 of 2]
|
|
437
|
-
DataOperation (type, @altertable/data-app/contract): <Input, Output> — The input parser runs in the
|
|
417
|
+
DataOperation (type, @altertable/data-app/contract): <Input, Output> — The input parser runs in the browser. Browser validation does not replace backend authorization or query limits.
|
|
438
418
|
DataOperation.filters?: Readonly<FilterCollection> — The app filters the operation reads; its input has one field per filter.
|
|
439
419
|
DataOperation.input: (value: unknown) => Input
|
|
440
420
|
DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
|
|
@@ -466,7 +446,7 @@ Dataset.readSearchSuggestions: (source: ViewSource<Data, Input>) => DataReading<
|
|
|
466
446
|
Dataset.read: <Source extends ViewSource<Data, Input>>(source: Source) => SourceReading<Source, readonly Row[]>
|
|
467
447
|
Dataset.assertSource: (source: object) => void
|
|
468
448
|
Dataset.name: string
|
|
469
|
-
DatasetColumn (type, @altertable/data-app-react): <Row> — Keys supply IDs; accessors supply raw CSV values. Formats affect display only.
|
|
449
|
+
DatasetColumn (type, @altertable/data-app-react): <Row> — Keys supply IDs; accessors supply raw CSV values. Formats affect display only. A column named after a row field reads that field; set `value` for computed columns.
|
|
470
450
|
DatasetColumn.label?: string
|
|
471
451
|
DatasetColumn.value: (row: Row) => CsvCell [variant 1 of 4]
|
|
472
452
|
DatasetColumn.format?: ((row: Row) => ReactNode) [variant 1 of 4]
|
|
@@ -478,8 +458,8 @@ DatasetColumn.value: (row: Row) => string | null | undefined [variant 4 of 4]
|
|
|
478
458
|
DatasetColumn.format: { kind: 'date'; } & DateFormatOptions [variant 4 of 4]
|
|
479
459
|
DatasetDefinition (type, @altertable/data-app-react): <Data, Input, Row> — Authoring references are registered by the owning view.
|
|
480
460
|
DatasetDefinition.name: string
|
|
481
|
-
DatasetDefinition.select
|
|
482
|
-
DatasetDefinition.columns: Record<string, DatasetColumn<NoInfer<Row>>>
|
|
461
|
+
DatasetDefinition.select?: ((data: Data, input: Input) => readonly Row[]) — Rows to bind. Omit when the operation returns the rows themselves.
|
|
462
|
+
DatasetDefinition.columns: Record<string, DatasetFieldColumn<NoInfer<Row>> | DatasetColumn<NoInfer<Row>>>
|
|
483
463
|
DatasetDefinition.rowKey: (row: NoInfer<Row>) => string | number
|
|
484
464
|
DatasetDefinition.evidence: EvidenceDeclaration
|
|
485
465
|
DatasetDefinition.emptyFallback?: EmptyContent
|
|
@@ -525,13 +505,7 @@ DataValue.children?: ((values: MetricValues) => ReactNode) [variant 2 of 3]
|
|
|
525
505
|
DataValue.dataset: Dataset<Data, Input, Row> [variant 3 of 3]
|
|
526
506
|
DataValue.children: (rows: readonly Row[]) => ReactNode [variant 3 of 3]
|
|
527
507
|
DataValue.…: plus props inherited from React
|
|
528
|
-
DataValue (component, @altertable/data-app-react/ui): <Value>(props: DataValueProps<Value>) — Bind inline content to displayed data. Keep static wording outside this span.
|
|
529
|
-
DataValue.reading: DataReading<Value>
|
|
530
|
-
DataValue.loadingFallback: ReactNode
|
|
531
|
-
DataValue.children: (value: Value) => ReactNode
|
|
532
|
-
DataValue.…: plus props inherited from React
|
|
533
508
|
DataValueProps (type, @altertable/data-app-react): <Data, Input, Row> = props listed as DataValue.*
|
|
534
|
-
DataValueProps (type, @altertable/data-app-react/ui): <Value> = props listed as DataValue.*
|
|
535
509
|
DataWidget (component, @altertable/data-app-react/ui): <Data>(props: DataWidgetProps<Data>)
|
|
536
510
|
DataWidget.title: ReactNode
|
|
537
511
|
DataWidget.headingLevel?: 2 | 3 | 4 | 5 | 6 — Document outline level. The widget title keeps the shared widget-heading appearance.
|
|
@@ -575,7 +549,7 @@ DateTimeFormatOptions.timeZone?: string
|
|
|
575
549
|
DateTimeFormatOptions.precision?: 'minute' | 'second'
|
|
576
550
|
DateTimeRange (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): = props listed as dateTimeRangeSql.range.*
|
|
577
551
|
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
|
|
552
|
+
dateTimeRangeFilter (function, @altertable/data-app/contract, @altertable/data-app-react/ui): <Comparison extends DateTimeRangeComparison | undefined = undefined>(options: DateTimeRangeFilterOptions<Comparison>): DateTimeRangeFilter<undefined extends Comparison ? false : true> — One declaration drives the picker, URL state, and the input of operations that list it. Operations receive resolved bounds and the original selection: `from` inclusive, `to` exclusive.
|
|
579
553
|
dateTimeRangeFilter.options.key: string
|
|
580
554
|
dateTimeRangeFilter.options.label?: string
|
|
581
555
|
dateTimeRangeFilter.options.defaultValue: string | DateTimeRange — Range text such as "7d" stays relative; `{ from, to }` is absolute.
|
|
@@ -609,9 +583,7 @@ DateTimeRangeFilter.request: (selection: DateTimeRangeSelection, now?: Date | un
|
|
|
609
583
|
DateTimeRangeFilter.parseInput: (value: unknown) => DateTimeRangeInput — Validate untrusted input against coverage and return what the operation receives.
|
|
610
584
|
DateTimeRangeFilter.previous: (selection: DateTimeRangeSelection) => ResolvedDateTimeRange | null
|
|
611
585
|
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
|
|
586
|
+
DateTimeRangeInput (type, @altertable/data-app/contract): = props listed as queryDateTimeRangeParams.input.* — What an operation receives for a date filter: resolved bounds, `from` inclusive and `to` exclusive, and the same window one selected length earlier while the comparison is on.
|
|
615
587
|
DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
|
|
616
588
|
DateTimeRangeParserOptions (type, @altertable/data-app/format)
|
|
617
589
|
DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
|
|
@@ -686,7 +658,7 @@ defineOperation (function, @altertable/data-app/contract): <Input, Output, const
|
|
|
686
658
|
defineOperation.operation.filters?: CheckedOperationFilters<Filters> — Filters the operation reads beside its own input; they are parsed for it.
|
|
687
659
|
defineOperation.operation.input: (value: unknown) => Input — Parses the operation's own fields, without the filters.
|
|
688
660
|
defineOperation.operation.checks: readonly [Input, ...Input[]] — Representative valid own inputs; each must pass `input`.
|
|
689
|
-
defineOperation.operation.policy:
|
|
661
|
+
defineOperation.operation.policy: OperationPolicy
|
|
690
662
|
defineOperation.operation.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
|
|
691
663
|
defineOperation.operation.queries: CheckedQueries<Queries>
|
|
692
664
|
defineOperation.operation.filters?: CheckedOperationFilters<Filters> — The filters `run` reads. Omit for an operation without inputs.
|
|
@@ -710,7 +682,7 @@ DetailViewDefinition.id: string
|
|
|
710
682
|
DetailViewDefinition.title: ReactNode
|
|
711
683
|
DetailViewDefinition.parseInput: (input: unknown) => Input — Validates untrusted navigation input before a detail operation can run.
|
|
712
684
|
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.
|
|
685
|
+
DetailViewDefinition.isEmpty?: ((data: Data) => boolean) — App-owned semantics: measured zero need not mean an empty result. Default: A result with no rows is empty; any other result never is.
|
|
714
686
|
DetailViewDefinition.emptyFallback?: EmptyContent — Inherited by DataSection unless it supplies its own copy.
|
|
715
687
|
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.
|
|
716
688
|
dimensionFilter.config.key: string
|
|
@@ -860,7 +832,7 @@ FilterCollection (type, @altertable/data-app/contract): = { [x: string]: SearchF
|
|
|
860
832
|
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
833
|
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
834
|
FilterOperationDefinition.filters?: CheckedOperationFilters<Filters> — The filters `run` reads. Omit for an operation without inputs.
|
|
863
|
-
FilterOperationDefinition.policy:
|
|
835
|
+
FilterOperationDefinition.policy: OperationPolicy
|
|
864
836
|
FilterOperationDefinition.run: OperationRun<FilterInput<Filters>, Output, Queries>
|
|
865
837
|
FilterPresentation (type, @altertable/data-app/contract): Where a filter's or display option's control renders.
|
|
866
838
|
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.
|
|
@@ -928,8 +900,9 @@ FunnelChartSeries.values: readonly number[] — Finite, nonnegative counts align
|
|
|
928
900
|
FunnelChartStep (type, @altertable/data-app-react/ui): Ordered step with a unique, nonblank ID.
|
|
929
901
|
FunnelChartStep.id: string
|
|
930
902
|
FunnelChartStep.label: string
|
|
931
|
-
GettingStarted (component, @altertable/data-app-react/ui): (props: {…}) — Query-backed connection state and next steps for a newly created app. Mount within `DataAppProvider` and
|
|
903
|
+
GettingStarted (component, @altertable/data-app-react/ui): (props: {…}) — Query-backed connection state and next steps for a newly created app. Mount within `DataAppProvider` and supply the app's registered connection operation.
|
|
932
904
|
GettingStarted.dataContext: DataContext
|
|
905
|
+
GettingStarted.client: DataClient<{ connection: ConnectionOperation; }>
|
|
933
906
|
GlossaryDefinition (component, @altertable/data-app-react/ui): (props: GlossaryDefinitionProps)
|
|
934
907
|
GlossaryDefinition.entry: GlossaryEntry
|
|
935
908
|
GlossaryDefinition.children?: ReactNode
|
|
@@ -998,12 +971,11 @@ InputOperationDefinition (type, @altertable/data-app/contract): <Input, Output,
|
|
|
998
971
|
InputOperationDefinition.filters?: CheckedOperationFilters<Filters> — Filters the operation reads beside its own input; they are parsed for it.
|
|
999
972
|
InputOperationDefinition.input: (value: unknown) => Input — Parses the operation's own fields, without the filters.
|
|
1000
973
|
InputOperationDefinition.checks: readonly [Input, ...Input[]] — Representative valid own inputs; each must pass `input`.
|
|
1001
|
-
InputOperationDefinition.policy:
|
|
974
|
+
InputOperationDefinition.policy: OperationPolicy
|
|
1002
975
|
InputOperationDefinition.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
|
|
1003
976
|
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.
|
|
1004
977
|
isPlainKeyEvent.event.…: plus props inherited from built-in
|
|
1005
978
|
isPlainKeyEvent.options.allowShift?: boolean
|
|
1006
|
-
isPlainKeyEvent().valueOf: (): boolean — Returns the primitive value of the specified object.
|
|
1007
979
|
ItemActions (type, @altertable/data-app-react/ui): <Row> = (row: Row) => readonly ExplorationAction[] — Resolves the actions available for a displayed domain row.
|
|
1008
980
|
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.
|
|
1009
981
|
JourneyChart.ariaLabel: string — Accessible measure and scope description.
|
|
@@ -1091,28 +1063,8 @@ MetricWidget.source: ViewSource<NoInfer<Data>, NoInfer<Input>>
|
|
|
1091
1063
|
MetricWidget.records?: MetricRecords<Data, Input, any, any>
|
|
1092
1064
|
MetricWidget.actions?: ExplorationActions<void, NoInfer<Input>>
|
|
1093
1065
|
MetricWidget.…: plus props inherited from React
|
|
1094
|
-
MetricWidget (component, @altertable/data-app-react/ui): (props: MetricWidgetProps)
|
|
1095
|
-
MetricWidget.headingLevel?: 2 | 3 | 4 | 5 | 6 — Document outline level. The label keeps the shared widget-heading appearance.
|
|
1096
|
-
MetricWidget.annotationId?: string
|
|
1097
|
-
MetricWidget.description?: ReactNode
|
|
1098
|
-
MetricWidget.records?: InspectionRecords
|
|
1099
|
-
MetricWidget.action?: ReactNode
|
|
1100
|
-
MetricWidget.status?: WidgetStatus
|
|
1101
|
-
MetricWidget.visual?: ReactNode
|
|
1102
|
-
MetricWidget.metric: MetricDefinition [variant 1 of 4]
|
|
1103
|
-
MetricWidget.reading: MetricReading [variant 1 of 4]
|
|
1104
|
-
MetricWidget.label: string [variants 2, 3, 4 of 4]
|
|
1105
|
-
MetricWidget.comparison?: MetricComparison [variants 2, 3, 4 of 4]
|
|
1106
|
-
MetricWidget.evidence?: WidgetEvidence [variants 2, 3, 4 of 4]
|
|
1107
|
-
MetricWidget.loading: true [variant 2 of 4]
|
|
1108
|
-
MetricWidget.loading?: false [variants 3, 4 of 4]
|
|
1109
|
-
MetricWidget.value: number [variant 3 of 4]
|
|
1110
|
-
MetricWidget.format: MetricFormat [variant 3 of 4]
|
|
1111
|
-
MetricWidget.content: string | (string & Iterable<ReactNode>) | (string & Promise<AwaitedReactNode>) | (string & ReactElement<unknown, string | JSXElementConstructor<any>>) | (string & ReactPortal) | undefined [variant 4 of 4]
|
|
1112
|
-
MetricWidget.…: plus props inherited from React
|
|
1113
1066
|
MetricWidgetProps (type, @altertable/data-app-react): <Data, Input> = props listed as MetricWidget.*
|
|
1114
|
-
|
|
1115
|
-
mountDataApp (function, @altertable/data-app-react): <const Queries extends QueryDefinitions>(options: {…}): void — Mount once per document; installs document identity and the shared request provider.
|
|
1067
|
+
mountDataApp (function, @altertable/data-app-react): <const Queries extends QueryDefinitions>(options: {…}): void — Mount once per browser document; server imports do not mount.
|
|
1116
1068
|
mountDataApp.options.app: DataAppDefinition<Queries>
|
|
1117
1069
|
mountDataApp.options.component: ComponentType
|
|
1118
1070
|
mountDataApp.options.root?: HTMLElement | null
|
|
@@ -1139,6 +1091,12 @@ MultiChoiceFilter.valid: (value: readonly string[]) => boolean
|
|
|
1139
1091
|
MultiChoiceFilter.same: (left: readonly string[], right: readonly string[]) => boolean
|
|
1140
1092
|
MultiChoiceFilter.options: readonly ChoiceOption[]
|
|
1141
1093
|
MultiChoiceFilter.maxSelected: number
|
|
1094
|
+
Notice (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: NoticeProps) — Quiet contextual feedback with an optional action. Content wraps before its action on narrow containers.
|
|
1095
|
+
Notice.title: ReactNode
|
|
1096
|
+
Notice.description?: ReactNode
|
|
1097
|
+
Notice.action?: ReactNode
|
|
1098
|
+
Notice.…: plus props inherited from React
|
|
1099
|
+
NoticeProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as Notice.*
|
|
1142
1100
|
NumberField (component, @altertable/data-app-react/ui): (props: NumberFieldProps) — Localized numeric entry. Empty input is null rather than zero.
|
|
1143
1101
|
NumberField.label: string
|
|
1144
1102
|
NumberField.value: number | null
|
|
@@ -1200,13 +1158,6 @@ parseBooleanSelection.filter.write: (value: BooleanSelection) => Record<string,
|
|
|
1200
1158
|
parseBooleanSelection.filter.valid: (value: BooleanSelection) => boolean
|
|
1201
1159
|
parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelection) => boolean
|
|
1202
1160
|
parseCount (function, @altertable/data-app/contract): (value: unknown): number — Accepts numeric strings from DuckDB; rejects negative, fractional, and unsafe integers.
|
|
1203
|
-
parseCount().toString: (radix: number): string — Returns a string representation of an object.
|
|
1204
|
-
parseCount().toFixed: (fractionDigits: number): string — Returns a string representing a number in fixed-point notation.
|
|
1205
|
-
parseCount().toExponential: (fractionDigits: number): string — Returns a string containing a number represented in exponential notation.
|
|
1206
|
-
parseCount().toPrecision: (precision: number): string — Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
|
|
1207
|
-
parseCount().valueOf: (): number — Returns the primitive value of the specified object.
|
|
1208
|
-
parseCount().toLocaleString: (locales: string | string[], options: Intl.NumberFormatOptions): string; (locales: Intl.LocalesArgument, options: Intl.NumberFormatOptions): string — Converts a number to a string by using the current or specified locale.
|
|
1209
|
-
parseCount().toLocaleString.options.…: plus props inherited from built-in
|
|
1210
1161
|
parseDateTime (function, @altertable/data-app/format): (value: DateTimeValue): Date | null — Parse only unambiguous instants. String values must include `Z` or an explicit offset.
|
|
1211
1162
|
parseDateTimeBound (function, @altertable/data-app/contract): (text: string): AbsoluteOrRelativeDateTime | null — Parse one bound without resolving relative anchors or offsets.
|
|
1212
1163
|
parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
|
|
@@ -1279,7 +1230,6 @@ parseNumberSelection.filter.same: (left: NumberSelection, right: NumberSelection
|
|
|
1279
1230
|
parseNumberSelection.filter.min?: number
|
|
1280
1231
|
parseNumberSelection.filter.max?: number
|
|
1281
1232
|
parseTrue (function, @altertable/data-app/contract): (value: unknown): true
|
|
1282
|
-
parseTrue().valueOf: (): boolean — Returns the primitive value of the specified object.
|
|
1283
1233
|
PeriodComparison (type, @altertable/data-app-react)
|
|
1284
1234
|
PeriodComparison.kind: 'previous' [variant 1 of 2]
|
|
1285
1235
|
PeriodComparison.kind: 'period' [variant 2 of 2]
|
|
@@ -1311,14 +1261,21 @@ PresentStory.dataContext: DataContext
|
|
|
1311
1261
|
PresentStory.theme?: ThemeController
|
|
1312
1262
|
PresentStory.headerActions?: ReactNode
|
|
1313
1263
|
PresentStory.footer?: ReactNode
|
|
1264
|
+
PresentStory.trigger?: boolean — False renders only the presentation, which `?present=1&step=` opens.
|
|
1314
1265
|
PresentStory.…: plus props inherited from React
|
|
1315
1266
|
PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
|
|
1267
|
+
queryDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(filter: Pick<DateTimeRangeFilter, 'request'>, input: DateTimeRangeInput, prefix: Prefix, now: Date): { current: Record<`${Prefix}_from` | `${Prefix}_to`, string>; comparison: Record<`${Prefix}_from` | `${Prefix}_to`, string> | null; combined: Record<`${Prefix}_from` |… — Bind one date selection immediately before dispatching a query. Both periods share one clock.
|
|
1268
|
+
queryDateTimeRangeParams.filter.request: (selection: DateTimeRangeSelection, now?: Date | undefined) => DateTimeRangeRequest — Resolve a selection against one reference time.
|
|
1269
|
+
queryDateTimeRangeParams.input.range: ResolvedDateTimeRange
|
|
1270
|
+
queryDateTimeRangeParams.input.comparison: ResolvedDateTimeRange | null
|
|
1271
|
+
queryDateTimeRangeParams.input.selection?: DateTimeRangeSelection — Original selection, retained so relative bounds can be resolved when a query runs.
|
|
1272
|
+
queryDateTimeRangeParams.now.…: plus props inherited from built-in
|
|
1316
1273
|
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryDefinition>> = { readonly [x: string]: QueryDefinition; }
|
|
1317
1274
|
QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
|
|
1318
1275
|
QueryField.type: keyof QueryValues
|
|
1319
1276
|
QueryField.nullable?: boolean
|
|
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
|
|
1277
|
+
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar, datetime-range, or dimension parameters with optional fallback values. Structured values bind as JSON; statements use DuckDB SQL to read their fields.
|
|
1278
|
+
QueryParameter.type: 'dimension' [variant 1 of 10] — A dimension filter's `DimensionSelection`, bound as validated JSON.
|
|
1322
1279
|
QueryParameter.valueType: 'number' | 'string' [variant 1 of 10]
|
|
1323
1280
|
QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5, 6 of 10]
|
|
1324
1281
|
QueryParameter.type: 'dateTimeRange' [variant 2 of 10]
|
|
@@ -1385,9 +1342,10 @@ resolveDateTimeRange (function, @altertable/data-app/contract): (value: DateTime
|
|
|
1385
1342
|
resolveDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
1386
1343
|
resolveDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
1387
1344
|
resolveDateTimeRange.now.…: plus props inherited from built-in
|
|
1388
|
-
ResolvedDateTimeRange (type, @altertable/data-app/contract): Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
|
|
1389
|
-
ResolvedDateTimeRange
|
|
1390
|
-
|
|
1345
|
+
ResolvedDateTimeRange (type, @altertable/data-app/contract): = props listed as resolvedDateTimeRangeParams.range.* — Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
|
|
1346
|
+
resolvedDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(range: ResolvedDateTimeRange, prefix: Prefix): Record<`${Prefix}_from` | `${Prefix}_to`, string> — Bind a resolved filter range as timestamp strings for literal DuckDB SQL. Dates carry reporting-zone wall-clock fields in UTC; omit `Z` for TIMESTAMP casts.
|
|
1347
|
+
resolvedDateTimeRangeParams.range.from: Date
|
|
1348
|
+
resolvedDateTimeRangeParams.range.to: Date
|
|
1391
1349
|
RetentionChart (component, @altertable/data-app-react/ui): (props: RetentionChartProps) — Query-defined retention curves with count inspection and dotted incomplete periods. Rates are not recomputed from counts. Compose inside VisualizationWidget.
|
|
1392
1350
|
RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
1393
1351
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|
|
@@ -1595,36 +1553,12 @@ TableWidget.title?: ReactNode
|
|
|
1595
1553
|
TableWidget.actions?: ExplorationActions<NoInfer<Row>, NoInfer<Input>>
|
|
1596
1554
|
TableWidget.pagination?: false | { pageSize: number; } [variant 2 of 2] — Local pagination after search: 10 rows by default, false shows all supplied rows. pageSize must be a positive integer. Counts refer only to supplied rows.
|
|
1597
1555
|
TableWidget.…: plus props inherited from React
|
|
1598
|
-
TableWidget (component, @altertable/data-app-react/ui): <Row>(props: TableWidgetProps<Row>)
|
|
1599
|
-
TableWidget.title: ReactNode
|
|
1600
|
-
TableWidget.headingLevel?: 2 | 3 | 4 | 5 | 6
|
|
1601
|
-
TableWidget.annotationId?: string
|
|
1602
|
-
TableWidget.showCount?: boolean — Show the matching supplied-row count before pagination or limits. Defaults to true.
|
|
1603
|
-
TableWidget.count?: number — Override the derived count, for example with a server total. Hidden when showCount is false or loading.
|
|
1604
|
-
TableWidget.onClearFilters?: (() => void) — Clear only filters affecting this dataset. Supply only while those filters are active; enables empty-result recovery.
|
|
1605
|
-
TableWidget.description?: ReactNode
|
|
1606
|
-
TableWidget.columns: readonly [TableWidgetColumn<Row>, ...TableWidgetColumn<Row>[]]
|
|
1607
|
-
TableWidget.rowKey: (row: Row) => string | number — Unique, nonempty row identity. Numeric keys must be finite; 1 and "1" collide.
|
|
1608
|
-
TableWidget.status?: WidgetStatus
|
|
1609
|
-
TableWidget.action?: ReactNode
|
|
1610
|
-
TableWidget.evidence?: WidgetEvidence [variants 1, 3 of 4]
|
|
1611
|
-
TableWidget.search?: TableWidgetSearch<Row>
|
|
1612
|
-
TableWidget.emptyFallback: EmptyContent — Valid result with no rows; the header remains visible.
|
|
1613
|
-
TableWidget.noMatchesFallback?: EmptyContent — No local search matches or explicitly filtered results. Defaults to “No matching results” with recovery guidance.
|
|
1614
|
-
TableWidget.limit: number [variants 1, 2 of 4] — Positive integer preview cap after search; disables pagination.
|
|
1615
|
-
TableWidget.rows: readonly Row[] [variants 1, 3 of 4]
|
|
1616
|
-
TableWidget.evidence: (WidgetEvidence | undefined) & WidgetEvidence [variants 2, 4 of 4]
|
|
1617
|
-
TableWidget.reading: DataReading<readonly Row[]> [variants 2, 4 of 4]
|
|
1618
|
-
TableWidget.skeletonRows?: number [variants 2, 4 of 4]
|
|
1619
|
-
TableWidget.pagination?: false | { pageSize: number; } [variants 3, 4 of 4] — Local pagination after search: 10 rows by default, false shows all supplied rows. pageSize must be a positive integer. Counts refer only to supplied rows.
|
|
1620
|
-
TableWidget.…: plus props inherited from React
|
|
1621
1556
|
TableWidgetColumn (type, @altertable/data-app-react/ui): <Row>
|
|
1622
1557
|
TableWidgetColumn.id: string — Stable, nonempty identity; unique within this table.
|
|
1623
1558
|
TableWidgetColumn.header: ReactNode
|
|
1624
1559
|
TableWidgetColumn.type?: 'datetime' | 'number'
|
|
1625
1560
|
TableWidgetColumn.cell: (row: Row, hit?: SearchHit<Row> | undefined) => ReactNode — Render this column's value for one row. The table owns its cell element and semantics.
|
|
1626
1561
|
TableWidgetProps (type, @altertable/data-app-react): <Row, Data, Input> = props listed as TableWidget.*
|
|
1627
|
-
TableWidgetProps (type, @altertable/data-app-react/ui): <Row> = props listed as TableWidget.* — Composes VisualizationWidget with DataTable, search, and local pagination. Columns own header and body semantics; the first column is the row header.
|
|
1628
1562
|
TableWidgetSearch (type, @altertable/data-app-react): <Row>
|
|
1629
1563
|
TableWidgetSearch.label: string
|
|
1630
1564
|
TableWidgetSearch.value: string
|
|
@@ -1663,25 +1597,7 @@ TextWidget.title?: ReactNode
|
|
|
1663
1597
|
TextWidget.dataset: Dataset<Data, Input, Row> [variant 2 of 2]
|
|
1664
1598
|
TextWidget.children: (rows: readonly Row[]) => ReactNode [variant 2 of 2]
|
|
1665
1599
|
TextWidget.…: plus props inherited from React
|
|
1666
|
-
TextWidget (component, @altertable/data-app-react/ui): <Data>(props: TextWidgetProps<Data>)
|
|
1667
|
-
TextWidget.title: ReactNode
|
|
1668
|
-
TextWidget.headingLevel?: 2 | 3 | 4 | 5 | 6 — Document outline level. The widget title keeps the shared widget-heading appearance.
|
|
1669
|
-
TextWidget.annotationId?: string — Unique stable target for persisted feedback; overrides automatic evidence identity.
|
|
1670
|
-
TextWidget.count?: number — Result count beside the heading. Derive from the displayed result; zero is visible.
|
|
1671
|
-
TextWidget.description?: ReactNode
|
|
1672
|
-
TextWidget.evidence: (WidgetEvidence | undefined) & WidgetEvidence [variant 1 of 2]
|
|
1673
|
-
TextWidget.records?: InspectionRecords — Lazy detail records rendered as the first inspection tab.
|
|
1674
|
-
TextWidget.action?: ReactNode
|
|
1675
|
-
TextWidget.status?: WidgetStatus — Reserved feedback slot; retain displayed content while refreshing or after failure.
|
|
1676
|
-
TextWidget.footer?: ReactNode
|
|
1677
|
-
TextWidget.emptyFallback?: EmptyContent
|
|
1678
|
-
TextWidget.reading: DataReading<Data> [variant 1 of 2]
|
|
1679
|
-
TextWidget.children: (data: Data) => ReactNode [variant 1 of 2]
|
|
1680
|
-
TextWidget.evidence?: WidgetEvidence [variant 2 of 2]
|
|
1681
|
-
TextWidget.children: ReactNode [variant 2 of 2]
|
|
1682
|
-
TextWidget.…: plus props inherited from React
|
|
1683
1600
|
TextWidgetProps (type, @altertable/data-app-react): <Data, Input, Row> = props listed as TextWidget.*
|
|
1684
|
-
TextWidgetProps (type, @altertable/data-app-react/ui): <Data> = props listed as TextWidget.* — Narrative sibling of VisualizationWidget, composing DataWidget with TextContent. Use TextContent directly for borderless prose. Bind claims and scope to the same displayed reading.
|
|
1685
1601
|
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' — Appearance configured by app authors.
|
|
1686
1602
|
ThemePreference (type, @altertable/data-app/appearance): = 'system' | Theme
|
|
1687
1603
|
Tooltip (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: TooltipProps) — Supplemental, non-interactive description for one already labeled control. Supply a single child that forwards aria-describedby to its focusable DOM element.
|
|
@@ -1746,33 +1662,7 @@ VisualizationWidget.views: readonly VisualizationWidgetView<Row>[] [variant 2 of
|
|
|
1746
1662
|
VisualizationWidget.viewLabel: string [variant 2 of 2]
|
|
1747
1663
|
VisualizationWidget.initialView?: string [variant 2 of 2]
|
|
1748
1664
|
VisualizationWidget.…: plus props inherited from React
|
|
1749
|
-
VisualizationWidget (component, @altertable/data-app-react/ui): <Data>(props: VisualizationWidgetProps<Data>) — Compose an unframed visual with the shared heading and inspection.
|
|
1750
|
-
VisualizationWidget.title: ReactNode
|
|
1751
|
-
VisualizationWidget.headingLevel?: 2 | 3 | 4 | 5 | 6 — Document outline level. The widget title keeps the shared widget-heading appearance.
|
|
1752
|
-
VisualizationWidget.annotationId?: string — Unique stable target for persisted feedback; overrides automatic evidence identity.
|
|
1753
|
-
VisualizationWidget.count?: number — Result count beside the heading. Derive from the displayed result; zero is visible.
|
|
1754
|
-
VisualizationWidget.description?: ReactNode
|
|
1755
|
-
VisualizationWidget.evidence?: (Omit<AboutSubject, 'description' | 'id' | 'references' | 'title' | 'visual' | 'visualKind'> & { id: string; } & { glossaryIds: [string, ...string[]]; queryNames?: string[] | undefined; }) | (Omit<...> & ... 1 more ... & { ...; }) | (Omit<...> & ... 2 more ... & { ...; }) | (Omit<...> & ... 2 more… [variants 1, 2 of 4]
|
|
1756
|
-
VisualizationWidget.records?: InspectionRecords — Lazy detail records rendered as the first inspection tab.
|
|
1757
|
-
VisualizationWidget.action?: ReactNode
|
|
1758
|
-
VisualizationWidget.status?: WidgetStatus — Reserved feedback slot; retain displayed content while refreshing or after failure.
|
|
1759
|
-
VisualizationWidget.emptyFallback?: EmptyContent
|
|
1760
|
-
VisualizationWidget.footer?: ReactNode — Footer controls, such as table pagination.
|
|
1761
|
-
VisualizationWidget.loading: true [variant 1 of 4]
|
|
1762
|
-
VisualizationWidget.loadingContent?: ReactNode [variant 1 of 4]
|
|
1763
|
-
VisualizationWidget.loading?: false [variant 2 of 4]
|
|
1764
|
-
VisualizationWidget.visual: ReactNode [variant 2 of 4]
|
|
1765
|
-
VisualizationWidget.evidence: ((Omit<AboutSubject, 'description' | 'id' | 'references' | 'title' | 'visual' | 'visualKind'> & { id: string; } & { glossaryIds: [string, ...string[]]; queryNames?: string[] | undefined; }) | (Omit<...> & ... 1 more ... & { ...; }) | (Omit<...> & ... 2 more ... & { ...; }) | (Omit<...> & ... 2 more… [variants 3, 4 of 4]
|
|
1766
|
-
VisualizationWidget.reading: DataReading<Data> [variants 3, 4 of 4]
|
|
1767
|
-
VisualizationWidget.isEmpty: (data: Data) => boolean [variants 3, 4 of 4]
|
|
1768
|
-
VisualizationWidget.skeleton?: SkeletonContent [variants 3, 4 of 4]
|
|
1769
|
-
VisualizationWidget.children: (data: Data) => ReactNode [variant 3 of 4]
|
|
1770
|
-
VisualizationWidget.views: readonly VisualizationWidgetView<Data>[] [variant 4 of 4]
|
|
1771
|
-
VisualizationWidget.viewLabel: string [variant 4 of 4]
|
|
1772
|
-
VisualizationWidget.initialView?: string [variant 4 of 4] — An existing view ID; defaults to the first view. Validated while loading too.
|
|
1773
|
-
VisualizationWidget.…: plus props inherited from React
|
|
1774
1665
|
VisualizationWidgetProps (type, @altertable/data-app-react): <Row, Data, Input> = props listed as VisualizationWidget.*
|
|
1775
|
-
VisualizationWidgetProps (type, @altertable/data-app-react/ui): <Data> = props listed as VisualizationWidget.* — DataWidget frame for charts, DataTable, metrics, or a custom data display. Owns alternate-view selection and shares it with inspection.
|
|
1776
1666
|
VisualizationWidgetView (type, @altertable/data-app-react): <Row>
|
|
1777
1667
|
VisualizationWidgetView.id: string — Stable, nonempty identity; unique within this widget.
|
|
1778
1668
|
VisualizationWidgetView.label: ReactNode
|