@altertable/data-app 0.77.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +3 -0
- package/REFERENCE.md +45 -37
- package/dist/chunks/contract-gu1rDsV0.js +1588 -0
- package/dist/chunks/contract-gu1rDsV0.js.map +1 -0
- package/dist/chunks/data-client-BMdL73Ab.js +122 -0
- package/dist/chunks/data-client-BMdL73Ab.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-CX9SsU79.js} +240 -63
- package/dist/chunks/diagnostics-CX9SsU79.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 +11 -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 +254 -19
- 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 +10 -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 +13 -9
- package/docs/client.md +14 -53
- package/docs/contract.md +35 -15
- package/docs/data-context.md +5 -2
- package/docs/diagnostics.md +16 -23
- package/docs/embed.md +60 -25
- package/docs/filters.md +33 -57
- package/docs/hosted-apps.md +9 -9
- package/docs/layout.md +21 -0
- package/docs/local-data-apps.md +5 -6
- package/docs/react-embed.md +44 -2
- package/docs/react.md +1 -2
- package/docs/server-bun.md +8 -5
- package/docs/stories-and-export.md +4 -4
- package/docs/styling.md +2 -1
- package/docs/ui.md +12 -3
- package/docs/views.md +12 -11
- package/docs/widgets.md +3 -3
- 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/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
|
package/REFERENCE.md
CHANGED
|
@@ -98,7 +98,7 @@ AppFilter.read: (params: URLSearchParams) => Value
|
|
|
98
98
|
AppFilter.write: (value: Value) => Record<string, string | null>
|
|
99
99
|
AppFilter.valid: (value: Value) => boolean
|
|
100
100
|
AppFilter.same: (left: Value, right: Value) => boolean
|
|
101
|
-
AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>>
|
|
101
|
+
AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>> — Defaults to the shared control icon size so icons follow density tokens.
|
|
102
102
|
AppIcon.options.name: 'annotate' | 'breakdown' | 'calendar' | 'cancel' | 'check' | 'clearFilters' | 'clock' | 'close' | 'copy' | 'darkTheme' | 'disclosure' | 'displayOptions' | 'error' | 'explore' | ... 22 more ... | 'wrap'
|
|
103
103
|
AppIcon.options.size?: string | number
|
|
104
104
|
AppIcon.options.…: plus props inherited from lucide-react, React
|
|
@@ -126,6 +126,9 @@ BarChart.ariaLabel: string
|
|
|
126
126
|
BarChart.formatValue?: ((value: number) => string)
|
|
127
127
|
BarChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
128
128
|
BarChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
129
|
+
BarChart.showYAxis?: boolean — Show a vertical value scale beside the bars.
|
|
130
|
+
BarChart.scrollToEnd?: boolean — Automatically reveal the last items after updates. Disable for ranked categories.
|
|
131
|
+
BarChart.valueFormat?: MetricFormat — Formats the vertical axis and, unless overridden, inspected values.
|
|
129
132
|
BarChartItem (type, @altertable/data-app-react/ui)
|
|
130
133
|
BarChartItem.id: string
|
|
131
134
|
BarChartItem.label: string
|
|
@@ -296,20 +299,9 @@ ControlBar (component, @altertable/data-app-react/ui): (props: ControlBarProps)
|
|
|
296
299
|
ControlBar.children: ReactNode
|
|
297
300
|
ControlBar.…: plus props inherited from React
|
|
298
301
|
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.
|
|
302
|
+
createDataClient (function, @altertable/data-app/client): <Operations extends DataOperations>(options: DataClientOptions<Operations>): DataClient<Operations> — Create a browser operation client.
|
|
303
|
+
createDataClient.options.operations: Operations
|
|
304
|
+
createDataClient.options.lakehouse?: Lakehouse
|
|
313
305
|
createDataContext (function, @altertable/data-app-react): <const Names extends Record<string, string>>(queryNames: Names): <const Context extends Omit<DataContext, 'glossary'> & { glossary: Record<string, Omit<GlossaryEntry, 'queryNames'> & { queryNames?: Names[keyof Names][]; }>; }>(context: Context) => Context & { ...; } — Bind glossary query references and card evidence to the same registry.
|
|
314
306
|
createDataHooks (function, @altertable/data-app-react): <Operations extends DataOperations>(client: DataClient<Operations>): { defineView: <Name extends ViewOperationName<Operations>, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: { operation: Name; dataContext: DataContext; describeInput?: ((input: FilterInput<...>) => s… — Bind declared operations to URL filters, displayed readings, and request feedback. The client's operations declare their filters; `<DataApp>` renders their controls.
|
|
315
307
|
createDataHooks.client.filters: Readonly<Record<string, FilterCollection>> — Each operation's filters; views derive their inputs and controls from them.
|
|
@@ -350,9 +342,9 @@ CsvTable.rows: readonly (readonly CsvCell[])[]
|
|
|
350
342
|
DataApp (component, @altertable/data-app-react): <Data, Input, const SummaryViews extends readonly AnyView[] = [ ]>(props: DataAppProps<Data, Input, SummaryViews>) — Executes the primary view and its summary views, and owns controls, inspection, exports, and stories.
|
|
351
343
|
DataApp.children: ReactNode
|
|
352
344
|
DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
353
|
-
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
354
|
-
DataApp.toolbarActions?: ReactNode
|
|
355
|
-
DataApp.footerActions?: ReactNode
|
|
345
|
+
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states. Embedded surfaces have no toolbar: the host runs page actions through its bridge.
|
|
346
|
+
DataApp.toolbarActions?: ReactNode — Standalone toolbar controls; embedded surfaces omit them.
|
|
347
|
+
DataApp.footerActions?: ReactNode — Standalone footer controls; embedded surfaces omit them.
|
|
356
348
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
357
349
|
DataApp.showSearch?: boolean — Show declared search controls. Defaults to true; hiding preserves their values.
|
|
358
350
|
DataApp.showFilters?: boolean — Show declared filter controls, including display options. Defaults to true; hiding preserves their values.
|
|
@@ -366,9 +358,9 @@ DataApp (component, @altertable/data-app-react/ui): (props: DataAppProps) — Se
|
|
|
366
358
|
DataApp.children: ReactNode
|
|
367
359
|
DataApp.dataContext: DataContext
|
|
368
360
|
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
|
|
361
|
+
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states. Embedded surfaces have no toolbar: the host runs page actions through its bridge.
|
|
362
|
+
DataApp.toolbarActions?: ReactNode — Standalone toolbar controls; embedded surfaces omit them.
|
|
363
|
+
DataApp.footerActions?: ReactNode — Standalone footer controls; embedded surfaces omit them.
|
|
372
364
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
373
365
|
DataApp.csvExport?: CsvExport
|
|
374
366
|
DataApp.queries?: DisclosedQuery[]
|
|
@@ -389,18 +381,21 @@ DataAppDefinition.queries: QuerySnapshot<Queries>
|
|
|
389
381
|
DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionFilter<...>
|
|
390
382
|
DataAppDefinition.defineOperation: <Input, Output, const Filters extends FilterCollection = {}>(operation: InputOperationDefinition<Input, Output, Queries, Filters>): DefinedOperation<WithFilterInput<Filters, Input>, Output, Queries, keyof Filters extends never ? undefined : Filters> — Parse a destination's own input, such as a record id, and list valid `checks`. Declare `filters` too when it reads the displayed scope.
|
|
391
383
|
DataAppDefinition.defineOperation: <const Filters extends FilterCollection = {}, Output = unknown>(operation: FilterOperationDefinition<Filters, Output, Queries>): DefinedOperation<FilterInput<Filters>, Output, Queries, Filters>
|
|
384
|
+
DataAppDefinition.defineOperations: <const Operations extends DataOperations>(operations: Operations) => DataAppOperationRegistry<Operations> — Bind a named registry to these queries and derive its client and filters.
|
|
392
385
|
DataAppError (class, @altertable/data-app/client)
|
|
393
386
|
DataAppError.code: string
|
|
394
387
|
DataAppError.requestId?: string
|
|
395
388
|
DataAppError.…: plus props inherited from built-in
|
|
389
|
+
DataAppOperationRegistry (type, @altertable/data-app, @altertable/data-app/config): <Operations>
|
|
390
|
+
DataAppOperationRegistry.createDataClient: () => DataClient<Operations> — Run operations in the browser using its installed query bridge.
|
|
396
391
|
DataAppProps (type, @altertable/data-app-react): <Data, Input, SummaryViews> = props listed as DataApp.*
|
|
397
392
|
DataAppProps (type, @altertable/data-app-react/ui)
|
|
398
393
|
DataAppProps.children: ReactNode
|
|
399
394
|
DataAppProps.dataContext: DataContext
|
|
400
395
|
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
|
|
396
|
+
DataAppProps.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states. Embedded surfaces have no toolbar: the host runs page actions through its bridge.
|
|
397
|
+
DataAppProps.toolbarActions?: ReactNode — Standalone toolbar controls; embedded surfaces omit them.
|
|
398
|
+
DataAppProps.footerActions?: ReactNode — Standalone footer controls; embedded surfaces omit them.
|
|
404
399
|
DataAppProps.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
405
400
|
DataAppProps.csvExport?: CsvExport
|
|
406
401
|
DataAppProps.queries?: DisclosedQuery[]
|
|
@@ -420,7 +415,7 @@ DataAppStyleToken (type, @altertable/data-app-react, @altertable/data-app-react/
|
|
|
420
415
|
DataAppView (type, @altertable/data-app-react): <Data, Input> — A declared data or time view that `<DataApp>` can run and describe.
|
|
421
416
|
DataAppView.scope: (snapshot: DisplayedSnapshot<Data, Input>) => string
|
|
422
417
|
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.* —
|
|
418
|
+
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Execute declared operations in the browser against registered query IDs.
|
|
424
419
|
DataContext (type, @altertable/data-app-react)
|
|
425
420
|
DataContext.description: ReactNode
|
|
426
421
|
DataContext.glossary: Record<string, GlossaryEntry>
|
|
@@ -434,7 +429,7 @@ DataIdentifierDefinition.name: string
|
|
|
434
429
|
DataIdentifierDefinition.kind: 'table' [variant 2 of 2]
|
|
435
430
|
DataIdentifierDefinition.catalog: string [variant 2 of 2]
|
|
436
431
|
DataIdentifierDefinition.schema: string [variant 2 of 2]
|
|
437
|
-
DataOperation (type, @altertable/data-app/contract): <Input, Output> — The input parser runs in the
|
|
432
|
+
DataOperation (type, @altertable/data-app/contract): <Input, Output> — The input parser runs in the browser. Browser validation does not replace backend authorization or query limits.
|
|
438
433
|
DataOperation.filters?: Readonly<FilterCollection> — The app filters the operation reads; its input has one field per filter.
|
|
439
434
|
DataOperation.input: (value: unknown) => Input
|
|
440
435
|
DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
|
|
@@ -575,7 +570,7 @@ DateTimeFormatOptions.timeZone?: string
|
|
|
575
570
|
DateTimeFormatOptions.precision?: 'minute' | 'second'
|
|
576
571
|
DateTimeRange (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): = props listed as dateTimeRangeSql.range.*
|
|
577
572
|
DateTimeRangeComparison (type, @altertable/data-app/contract, @altertable/data-app-react/ui): = 'off' | 'on' — Offer the previous-period comparison, with its toggle starting off or on.
|
|
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
|
|
573
|
+
dateTimeRangeFilter (function, @altertable/data-app/contract, @altertable/data-app-react/ui): <Comparison extends DateTimeRangeComparison | undefined = undefined>(options: DateTimeRangeFilterOptions<Comparison>): DateTimeRangeFilter<undefined extends Comparison ? false : true> — One declaration drives the picker, URL state, and the input of operations that list it. Operations receive resolved bounds and the original selection: `from` inclusive, `to` exclusive.
|
|
579
574
|
dateTimeRangeFilter.options.key: string
|
|
580
575
|
dateTimeRangeFilter.options.label?: string
|
|
581
576
|
dateTimeRangeFilter.options.defaultValue: string | DateTimeRange — Range text such as "7d" stays relative; `{ from, to }` is absolute.
|
|
@@ -609,9 +604,7 @@ DateTimeRangeFilter.request: (selection: DateTimeRangeSelection, now?: Date | un
|
|
|
609
604
|
DateTimeRangeFilter.parseInput: (value: unknown) => DateTimeRangeInput — Validate untrusted input against coverage and return what the operation receives.
|
|
610
605
|
DateTimeRangeFilter.previous: (selection: DateTimeRangeSelection) => ResolvedDateTimeRange | null
|
|
611
606
|
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
|
|
607
|
+
DateTimeRangeInput (type, @altertable/data-app/contract): = props listed as queryDateTimeRangeParams.input.* — What an operation receives for a date filter: resolved bounds, `from` inclusive and `to` exclusive, and the same window one selected length earlier while the comparison is on.
|
|
615
608
|
DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
|
|
616
609
|
DateTimeRangeParserOptions (type, @altertable/data-app/format)
|
|
617
610
|
DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
|
|
@@ -928,8 +921,9 @@ FunnelChartSeries.values: readonly number[] — Finite, nonnegative counts align
|
|
|
928
921
|
FunnelChartStep (type, @altertable/data-app-react/ui): Ordered step with a unique, nonblank ID.
|
|
929
922
|
FunnelChartStep.id: string
|
|
930
923
|
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
|
|
924
|
+
GettingStarted (component, @altertable/data-app-react/ui): (props: {…}) — Query-backed connection state and next steps for a newly created app. Mount within `DataAppProvider` and supply the app's registered connection operation.
|
|
932
925
|
GettingStarted.dataContext: DataContext
|
|
926
|
+
GettingStarted.client: DataClient<{ connection: ConnectionOperation; }>
|
|
933
927
|
GlossaryDefinition (component, @altertable/data-app-react/ui): (props: GlossaryDefinitionProps)
|
|
934
928
|
GlossaryDefinition.entry: GlossaryEntry
|
|
935
929
|
GlossaryDefinition.children?: ReactNode
|
|
@@ -1112,7 +1106,7 @@ MetricWidget.content: string | (string & Iterable<ReactNode>) | (string & Promis
|
|
|
1112
1106
|
MetricWidget.…: plus props inherited from React
|
|
1113
1107
|
MetricWidgetProps (type, @altertable/data-app-react): <Data, Input> = props listed as MetricWidget.*
|
|
1114
1108
|
MetricWidgetProps (type, @altertable/data-app-react/ui): = props listed as MetricWidget.* — VisualizationWidget with a formatted metric, optional comparison, and evidence.
|
|
1115
|
-
mountDataApp (function, @altertable/data-app-react): <const Queries extends QueryDefinitions>(options: {…}): void — Mount once per document;
|
|
1109
|
+
mountDataApp (function, @altertable/data-app-react): <const Queries extends QueryDefinitions>(options: {…}): void — Mount once per browser document; server imports do not mount.
|
|
1116
1110
|
mountDataApp.options.app: DataAppDefinition<Queries>
|
|
1117
1111
|
mountDataApp.options.component: ComponentType
|
|
1118
1112
|
mountDataApp.options.root?: HTMLElement | null
|
|
@@ -1139,6 +1133,12 @@ MultiChoiceFilter.valid: (value: readonly string[]) => boolean
|
|
|
1139
1133
|
MultiChoiceFilter.same: (left: readonly string[], right: readonly string[]) => boolean
|
|
1140
1134
|
MultiChoiceFilter.options: readonly ChoiceOption[]
|
|
1141
1135
|
MultiChoiceFilter.maxSelected: number
|
|
1136
|
+
Notice (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: NoticeProps) — Quiet contextual feedback with an optional action. Content wraps before its action on narrow containers.
|
|
1137
|
+
Notice.title: ReactNode
|
|
1138
|
+
Notice.description?: ReactNode
|
|
1139
|
+
Notice.action?: ReactNode
|
|
1140
|
+
Notice.…: plus props inherited from React
|
|
1141
|
+
NoticeProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as Notice.*
|
|
1142
1142
|
NumberField (component, @altertable/data-app-react/ui): (props: NumberFieldProps) — Localized numeric entry. Empty input is null rather than zero.
|
|
1143
1143
|
NumberField.label: string
|
|
1144
1144
|
NumberField.value: number | null
|
|
@@ -1311,14 +1311,21 @@ PresentStory.dataContext: DataContext
|
|
|
1311
1311
|
PresentStory.theme?: ThemeController
|
|
1312
1312
|
PresentStory.headerActions?: ReactNode
|
|
1313
1313
|
PresentStory.footer?: ReactNode
|
|
1314
|
+
PresentStory.trigger?: boolean — False renders only the presentation, which `?present=1&step=` opens.
|
|
1314
1315
|
PresentStory.…: plus props inherited from React
|
|
1315
1316
|
PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
|
|
1317
|
+
queryDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(filter: Pick<DateTimeRangeFilter, 'request'>, input: DateTimeRangeInput, prefix: Prefix, now: Date): { current: Record<`${Prefix}_from` | `${Prefix}_to`, string>; comparison: Record<`${Prefix}_from` | `${Prefix}_to`, string> | null; combined: Record<`${Prefix}_from` |… — Bind one date selection immediately before dispatching a query. Both periods share one clock.
|
|
1318
|
+
queryDateTimeRangeParams.filter.request: (selection: DateTimeRangeSelection, now?: Date | undefined) => DateTimeRangeRequest — Resolve a selection against one reference time.
|
|
1319
|
+
queryDateTimeRangeParams.input.range: ResolvedDateTimeRange
|
|
1320
|
+
queryDateTimeRangeParams.input.comparison: ResolvedDateTimeRange | null
|
|
1321
|
+
queryDateTimeRangeParams.input.selection?: DateTimeRangeSelection — Original selection, retained so relative bounds can be resolved when a query runs.
|
|
1322
|
+
queryDateTimeRangeParams.now.…: plus props inherited from built-in
|
|
1316
1323
|
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryDefinition>> = { readonly [x: string]: QueryDefinition; }
|
|
1317
1324
|
QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
|
|
1318
1325
|
QueryField.type: keyof QueryValues
|
|
1319
1326
|
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
|
|
1327
|
+
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar, datetime-range, or dimension parameters with optional fallback values. Structured values bind as JSON; statements use DuckDB SQL to read their fields.
|
|
1328
|
+
QueryParameter.type: 'dimension' [variant 1 of 10] — A dimension filter's `DimensionSelection`, bound as validated JSON.
|
|
1322
1329
|
QueryParameter.valueType: 'number' | 'string' [variant 1 of 10]
|
|
1323
1330
|
QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5, 6 of 10]
|
|
1324
1331
|
QueryParameter.type: 'dateTimeRange' [variant 2 of 10]
|
|
@@ -1385,9 +1392,10 @@ resolveDateTimeRange (function, @altertable/data-app/contract): (value: DateTime
|
|
|
1385
1392
|
resolveDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
1386
1393
|
resolveDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
1387
1394
|
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
|
-
|
|
1395
|
+
ResolvedDateTimeRange (type, @altertable/data-app/contract): = props listed as resolvedDateTimeRangeParams.range.* — Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
|
|
1396
|
+
resolvedDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(range: ResolvedDateTimeRange, prefix: Prefix): Record<`${Prefix}_from` | `${Prefix}_to`, string> — Bind a resolved filter range as timestamp strings for literal DuckDB SQL. Dates carry reporting-zone wall-clock fields in UTC; omit `Z` for TIMESTAMP casts.
|
|
1397
|
+
resolvedDateTimeRangeParams.range.from: Date
|
|
1398
|
+
resolvedDateTimeRangeParams.range.to: Date
|
|
1391
1399
|
RetentionChart (component, @altertable/data-app-react/ui): (props: RetentionChartProps) — Query-defined retention curves with count inspection and dotted incomplete periods. Rates are not recomputed from counts. Compose inside VisualizationWidget.
|
|
1392
1400
|
RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
1393
1401
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|