@altertable/data-app 0.74.0 → 0.76.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 +11 -3
- package/CONTRIBUTING.md +14 -3
- package/README.md +56 -9
- package/REFERENCE.md +194 -99
- package/dist/chunks/{contract-BeLPJwlO.js → contract-DsyRYgN_.js} +176 -108
- package/dist/chunks/contract-DsyRYgN_.js.map +1 -0
- package/dist/chunks/{contract-Di8SP74I.js → contract-kNFYPHRK.js} +255 -4
- package/dist/chunks/contract-kNFYPHRK.js.map +1 -0
- package/dist/chunks/date-time-range-value-TE8KCsfV.js +648 -0
- package/dist/chunks/date-time-range-value-TE8KCsfV.js.map +1 -0
- package/dist/chunks/{diagnostics-BTZSlNtW.js → diagnostics-DhCqGklq.js} +2 -2
- package/dist/chunks/{diagnostics-BTZSlNtW.js.map → diagnostics-DhCqGklq.js.map} +1 -1
- package/dist/chunks/{operation-CSM9UmO3.js → operation-7tiT4cpJ.js} +3 -3
- package/dist/chunks/{operation-CSM9UmO3.js.map → operation-7tiT4cpJ.js.map} +1 -1
- package/dist/client/index.js +51 -5
- package/dist/client/index.js.map +1 -1
- package/dist/core/config.js +4 -3
- package/dist/core/config.js.map +1 -1
- package/dist/core/contract.js +4 -3
- package/dist/core/format.js +149 -1
- package/dist/core/format.js.map +1 -0
- package/dist/internal.js +6 -189
- package/dist/internal.js.map +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.js.map +1 -1
- package/dist/types/chunks/contract.d.ts +133 -264
- package/dist/types/chunks/contract2.d.ts +207 -0
- package/dist/types/chunks/date-time-range-value.d.ts +20 -0
- package/dist/types/chunks/date-time-range.d.ts +29 -0
- package/dist/types/chunks/index.d.ts +14 -2
- package/dist/types/client/index.d.ts +3 -3
- package/dist/types/core/config.d.ts +6 -4
- package/dist/types/core/contract.d.ts +5 -2
- package/dist/types/core/format.d.ts +21 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/internal.d.ts +11 -4
- package/dist/types/server/index.d.ts +2 -2
- package/docs/app-authoring.md +46 -14
- package/docs/composition.md +4 -23
- package/docs/contract.md +42 -9
- package/docs/diagnostics.md +37 -0
- package/docs/embed.md +38 -0
- package/docs/hosted-apps.md +7 -4
- package/docs/local-data-apps.md +17 -2
- package/docs/react.md +6 -3
- package/docs/stories-and-export.md +14 -5
- package/docs/ui-quality.md +3 -2
- package/docs/ui.md +53 -2
- package/docs/variables.md +80 -8
- package/package.json +17 -5
- package/dist/chunks/contract-BeLPJwlO.js.map +0 -1
- package/dist/chunks/contract-Di8SP74I.js.map +0 -1
- package/dist/chunks/format-BdFlv_xa.js +0 -148
- package/dist/chunks/format-BdFlv_xa.js.map +0 -1
package/REFERENCE.md
CHANGED
|
@@ -52,6 +52,10 @@ AboutSubject.references?: { kind: 'ids'; glossaryIds?: readonly string[] | undef
|
|
|
52
52
|
AboutSubject.queries?: DisclosedQuery[]
|
|
53
53
|
AboutSubject.records?: InspectionRecords
|
|
54
54
|
AboutTab (type, @altertable/data-app-react/ui): = 'glossary' | 'queries' | 'records'
|
|
55
|
+
AbsoluteOrRelativeDateTime (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): Frontend-compatible range values. Absolute dates encode wall-clock fields as UTC, not instants converted from a reporting timezone. The backend interprets that zone.
|
|
56
|
+
AbsoluteOrRelativeDateTime.anchor: RelativeAnchor [variant 2 of 2]
|
|
57
|
+
AbsoluteOrRelativeDateTime.offset: RelativeOffset[] [variant 2 of 2]
|
|
58
|
+
AbsoluteOrRelativeDateTime.…: plus props inherited from built-in
|
|
55
59
|
AnnotationTarget (component, @altertable/data-app-react): (props: AnnotationTargetProps) — A stable feedback target for app-owned content outside the built-in widgets.
|
|
56
60
|
AnnotationTarget.annotationId: string
|
|
57
61
|
AnnotationTarget.label: string
|
|
@@ -104,10 +108,13 @@ AreaChart.itemActions?: ItemActions<Row> — Actions available for each displaye
|
|
|
104
108
|
AreaChart.unit: string
|
|
105
109
|
AreaChart.ariaLabel: string
|
|
106
110
|
AreaChart.formatValue?: ((value: number) => string)
|
|
111
|
+
AreaChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
112
|
+
AreaChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
107
113
|
AreaChartItem (type, @altertable/data-app-react/ui)
|
|
108
114
|
AreaChartItem.id: string
|
|
109
115
|
AreaChartItem.label: string
|
|
110
116
|
AreaChartItem.value: number
|
|
117
|
+
AreaChartItem.time?: number — Optional timestamp in epoch milliseconds for cursor linking. Omit for category samples.
|
|
111
118
|
AreaChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as AreaChart.*
|
|
112
119
|
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.
|
|
113
120
|
BarChart.items: readonly Row[] — Ordered samples; the chart validates IDs and values when rendering.
|
|
@@ -115,10 +122,13 @@ BarChart.itemActions?: ItemActions<Row> — Actions available for each displayed
|
|
|
115
122
|
BarChart.unit: string
|
|
116
123
|
BarChart.ariaLabel: string
|
|
117
124
|
BarChart.formatValue?: ((value: number) => string)
|
|
125
|
+
BarChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
126
|
+
BarChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
118
127
|
BarChartItem (type, @altertable/data-app-react/ui)
|
|
119
128
|
BarChartItem.id: string
|
|
120
129
|
BarChartItem.label: string
|
|
121
130
|
BarChartItem.value: number
|
|
131
|
+
BarChartItem.time?: number — Milliseconds since the Unix epoch. Enables adaptive time ticks when no item actions are supplied.
|
|
122
132
|
BarChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as BarChart.*
|
|
123
133
|
booleanFilter (function, @altertable/data-app/contract): (options: FilterOptions<BooleanSelection>): BooleanFilter — Boolean predicate with a distinct unrestricted state.
|
|
124
134
|
booleanFilter.options.key: string
|
|
@@ -148,6 +158,7 @@ Button.size?: 'compact' | 'default' | 'icon' | 'icon-compact'
|
|
|
148
158
|
Button.…: plus props inherited from React
|
|
149
159
|
ButtonProps (type, @altertable/data-app-react): = props listed as Button.*
|
|
150
160
|
chartColor (function, @altertable/data-app-react): (id: string): string
|
|
161
|
+
ChartCursorGroup (type, @altertable/data-app-react/ui): Opaque shared-cursor handle. Create with useChartCursorGroup and pass through chart cursorGroup props.
|
|
151
162
|
ChartLegend (component, @altertable/data-app-react/ui): (props: ChartLegendProps)
|
|
152
163
|
ChartLegend.children: ReactNode
|
|
153
164
|
ChartLegend.layout?: 'horizontal' | 'single-row' | 'vertical' — Single-row fits up to four cells before expansion, adapting to available width.
|
|
@@ -240,9 +251,11 @@ Comparison.favorableDirection?: 'down' | 'up' [variant 2 of 2]
|
|
|
240
251
|
Comparison.label: string [variant 2 of 2]
|
|
241
252
|
ComparisonProps (type, @altertable/data-app-react): = props listed as Comparison.*
|
|
242
253
|
ComposedChart (component, @altertable/data-app-react/ui): <Row>(props: ComposedChartProps<Row>) — Shared themed series and controls; other children retain native Recharts defaults.
|
|
254
|
+
ComposedChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
243
255
|
ComposedChart.data: readonly Row[] — Displayed rows; series and axes select fields with Recharts dataKey props.
|
|
244
256
|
ComposedChart.ariaLabel: string — Describes the measures and scope for assistive technology.
|
|
245
257
|
ComposedChart.valueFormat?: MetricFormat — Shared measure semantics: compact numeric axes and precise tooltips. For mixed units, use explicit axis tickFormatter and series/tooltip formatters.
|
|
258
|
+
ComposedChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle, using the temporal X axis.
|
|
246
259
|
ComposedChart.…: plus props inherited from recharts
|
|
247
260
|
ComposedChart.Dot: (props: DotProps & { active?: boolean; })
|
|
248
261
|
ComposedChart.Area: <Row = unknown, Value = number | null>(props: AreaProps<Row, Value>)
|
|
@@ -298,6 +311,7 @@ CsvTable.rows: readonly (readonly CsvCell[])[]
|
|
|
298
311
|
DataApp (component, @altertable/data-app-react): <Data, Input>(props: DataAppProps<Data, Input>) — Executes the primary view and owns its controls, inspection, exports, and stories.
|
|
299
312
|
DataApp.children: ReactNode
|
|
300
313
|
DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
314
|
+
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
301
315
|
DataApp.toolbarActions?: ReactNode
|
|
302
316
|
DataApp.footerActions?: ReactNode
|
|
303
317
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
@@ -305,13 +319,14 @@ DataApp.showSearch?: boolean — Show declared search controls. Defaults to true
|
|
|
305
319
|
DataApp.showFilters?: boolean — Show declared filter controls, including display options. Defaults to true; hiding preserves their values.
|
|
306
320
|
DataApp.view: DeclaredView<Data, Input, unknown> & { scope(snapshot: DisplayedSnapshot<Data, Input>): string; }
|
|
307
321
|
DataApp.showSearchSuggestions?: boolean — Show supplied datasets’ record suggestions on the first declared search. Defaults to true.
|
|
308
|
-
DataApp.story
|
|
309
|
-
DataApp.datasets
|
|
322
|
+
DataApp.story?: ((snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & { evidence: RegisteredBinding; })[]) — Omit to leave presentation out of the toolbar.
|
|
323
|
+
DataApp.datasets?: readonly [ExportDataset<Data, Input>, ...ExportDataset<Data, Input>[]] — Omit to leave CSV export out of the toolbar.
|
|
310
324
|
DataApp.details?: readonly DetailContent<any, any>[] — Detail destinations available to dataset actions and metric record inspection.
|
|
311
325
|
DataApp (component, @altertable/data-app-react/ui): (props: DataAppProps) — Setup and static screens; fetched data uses the declared-view DataApp.
|
|
312
326
|
DataApp.children: ReactNode
|
|
313
327
|
DataApp.dataContext: DataContext
|
|
314
328
|
DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
329
|
+
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
315
330
|
DataApp.toolbarActions?: ReactNode
|
|
316
331
|
DataApp.footerActions?: ReactNode
|
|
317
332
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
@@ -342,6 +357,7 @@ DataAppProps (type, @altertable/data-app-react/ui)
|
|
|
342
357
|
DataAppProps.children: ReactNode
|
|
343
358
|
DataAppProps.dataContext: DataContext
|
|
344
359
|
DataAppProps.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
360
|
+
DataAppProps.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
345
361
|
DataAppProps.toolbarActions?: ReactNode
|
|
346
362
|
DataAppProps.footerActions?: ReactNode
|
|
347
363
|
DataAppProps.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
@@ -351,7 +367,7 @@ DataAppProvider (component, @altertable/data-app-react/ui): <const Queries exten
|
|
|
351
367
|
DataAppProvider.app: DataAppDefinition<Queries>
|
|
352
368
|
DataAppProvider.children: ReactNode
|
|
353
369
|
DataAppStyle (type, @altertable/data-app-react, @altertable/data-app-react/ui): React style properties with checked public Altertable custom properties.
|
|
354
|
-
DataAppStyle.{--atbl-accent, --atbl-
|
|
370
|
+
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
|
|
355
371
|
DataAppStyle.…: plus props inherited from csstype
|
|
356
372
|
DataAppStyleHooks (type, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
357
373
|
DataAppStyleHooks.data-atbl-focus?: 'group' | 'inset' | 'ring'
|
|
@@ -359,7 +375,7 @@ DataAppStyleHooks.data-atbl-control?: 'action' | 'default' | 'help' | 'text'
|
|
|
359
375
|
DataAppStylesOptions (type, @altertable/data-app-react)
|
|
360
376
|
DataAppStylesOptions.document?: Document — Defaults to the current browser document.
|
|
361
377
|
DataAppStylesOptions.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
362
|
-
DataAppStyleToken (type, @altertable/data-app-react, @altertable/data-app-react/ui): = '--atbl-accent' | '--atbl-accent
|
|
378
|
+
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'
|
|
363
379
|
DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
|
|
364
380
|
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Browser operations and named-operation delivery are mutually exclusive.
|
|
365
381
|
DataContext (type, @altertable/data-app-react)
|
|
@@ -501,81 +517,114 @@ DateFormat.precision?: 'minute' | 'second' [variant 2 of 2]
|
|
|
501
517
|
DateFormatOptions (type, @altertable/data-app/format): Formatting for calendar dates and instants without implicit time-zone parsing.
|
|
502
518
|
DateFormatOptions.locale?: string
|
|
503
519
|
DateFormatOptions.missing?: string
|
|
504
|
-
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'
|
|
505
|
-
DateRange (type, @altertable/data-app-react/ui): = props listed as previousDateRange.options.* — ISO calendar dates; the app operation defines timezone and inclusive bounds.
|
|
506
520
|
DateRangeContract (type, @altertable/data-app/contract)
|
|
507
|
-
DateRangeContract.
|
|
508
|
-
DateRangeContract.
|
|
509
|
-
DateRangeContract.bounds: () => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
510
|
-
DateRangeContract.parse: (value: unknown) => DateRange
|
|
511
|
-
DateRangeContract.period: ({ start, end }: DateRange) => ReportingPeriod
|
|
512
|
-
DateRangeContract.comparison: (input: DateRange) => DateRange | null
|
|
513
|
-
DateRangeContract.describeInput: (input: DateRange) => string
|
|
514
|
-
DateRangeContract.view: { period: ({ start, end }: DateRange) => ReportingPeriod; describeInput: (input: DateRange) => string; }
|
|
521
|
+
DateRangeContract.datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange; comparison…
|
|
522
|
+
DateRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
515
523
|
DateRangeContractOptions (type, @altertable/data-app/contract): = props listed as defineDateRangeContract.options.*
|
|
516
|
-
DateRangeInput (type, @altertable/data-app/contract): = props listed as previousDateRange.options.* — ISO calendar dates; the app operation defines timezone and inclusive bounds.
|
|
517
|
-
DateRangePicker (component, @altertable/data-app-react/ui): (props: DateRangePickerProps) — The app owns URL state; `dateRangeControl` binds a date variable to this picker.
|
|
518
|
-
DateRangePicker.label?: string
|
|
519
|
-
DateRangePicker.labelPlacement?: 'above' | 'beside'
|
|
520
|
-
DateRangePicker.value: DateRange | null
|
|
521
|
-
DateRangePicker.onChange: (range: DateRange | null) => void
|
|
522
|
-
DateRangePicker.minDate?: string
|
|
523
|
-
DateRangePicker.maxDate?: string
|
|
524
|
-
DateRangePicker.maxRangeDays?: number
|
|
525
|
-
DateRangePicker.timeZone?: string
|
|
526
|
-
DateRangePicker.resetValue?: DateRange — Used to display the reset affordance. The app variable owns the URL and reset meaning.
|
|
527
|
-
DateRangePicker.isDefault?: boolean
|
|
528
|
-
DateRangePicker.onReset?: (() => void)
|
|
529
|
-
DateRangePicker.onPresetChange?: ((id: DatePresetId) => void)
|
|
530
|
-
DateRangePicker.selectedPresetId?: DatePresetId | null
|
|
531
|
-
DateRangePicker.calendarFooter?: ReactNode
|
|
532
|
-
DateRangePicker.comparison?: { enabled: boolean; range: DateRange | null; onChange: (enabled: boolean) => void; }
|
|
533
|
-
DateRangePicker.…: plus props inherited from @react-types/shared, React, react-aria-components, react-stately
|
|
534
|
-
DateRangePickerProps (type, @altertable/data-app-react/ui): = props listed as DateRangePicker.*
|
|
535
|
-
DateRangeRequest (type, @altertable/data-app/contract)
|
|
536
|
-
DateRangeRequest.range: DateRange
|
|
537
|
-
DateRangeRequest.comparison: DateRange | null
|
|
538
|
-
DateRangeSelection (type, @altertable/data-app-react)
|
|
539
|
-
DateRangeSelection.kind: 'preset' [variant 1 of 2]
|
|
540
|
-
DateRangeSelection.id: DatePresetId [variant 1 of 2]
|
|
541
|
-
DateRangeSelection.comparison?: 'previous'
|
|
542
|
-
DateRangeSelection.kind: 'dates' [variant 2 of 2]
|
|
543
|
-
DateRangeSelection.start: string [variant 2 of 2]
|
|
544
|
-
DateRangeSelection.end: string [variant 2 of 2]
|
|
545
|
-
dateRangeVariable (function, @altertable/data-app-react): (options: DateRangeVariableOptions): DateRangeVariable — A date variable keeps relative presets relative and validates exact dates against source coverage.
|
|
546
|
-
dateRangeVariable.options.label?: string
|
|
547
|
-
dateRangeVariable.options.key: string — URL key for a relative preset; explicit dates use start/end for period, otherwise key-prefixed fields.
|
|
548
|
-
dateRangeVariable.options.defaultValue: DateRangeSelection & { comparison?: undefined; }
|
|
549
|
-
dateRangeVariable.options.contract: { request: (value: unknown, compare?: boolean | undefined) => DateRangeRequest; parseRequest: (value: unknown) => DateRangeRequest; bounds: () => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; ... 4 more ...; view: { ...; }; }
|
|
550
|
-
dateRangeVariable.options.history?: HistoryMode
|
|
551
|
-
dateRangeVariable.options.comparison?: boolean — Opt into a URL-backed comparison with the preceding equal-length range.
|
|
552
|
-
dateRangeVariable.options.presentation?: VariablePresentation
|
|
553
|
-
DateRangeVariable (type, @altertable/data-app-react)
|
|
554
|
-
DateRangeVariable.kind: 'dateRange'
|
|
555
|
-
DateRangeVariable.label?: string
|
|
556
|
-
DateRangeVariable.presentation?: VariablePresentation
|
|
557
|
-
DateRangeVariable.urlKeys: readonly string[]
|
|
558
|
-
DateRangeVariable.defaultValue: DateRangeSelection
|
|
559
|
-
DateRangeVariable.clearValue?: DateRangeSelection — Unrestricted value, when this variable represents a filter.
|
|
560
|
-
DateRangeVariable.describe?: ((value: DateRangeSelection) => string)
|
|
561
|
-
DateRangeVariable.history: HistoryMode
|
|
562
|
-
DateRangeVariable.read: (params: URLSearchParams) => DateRangeSelection
|
|
563
|
-
DateRangeVariable.write: (value: DateRangeSelection) => Record<string, string | null>
|
|
564
|
-
DateRangeVariable.valid: (value: DateRangeSelection) => boolean
|
|
565
|
-
DateRangeVariable.same: (left: DateRangeSelection, right: DateRangeSelection) => boolean
|
|
566
|
-
DateRangeVariable.supportsComparison: boolean
|
|
567
|
-
DateRangeVariable.input: (selection: DateRangeSelection) => DateRangeRequest
|
|
568
|
-
DateRangeVariable.describeInput: (input: DateRangeRequest) => string
|
|
569
|
-
DateRangeVariable.bounds: () => { minDate?: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
570
|
-
DateRangeVariable.resolve: (selection: DateRangeSelection) => DateRange
|
|
571
|
-
DateRangeVariable.previous: (selection: DateRangeSelection) => DateRange | null
|
|
572
|
-
DateRangeVariable.comparisonRange: (selection: DateRangeSelection) => DateRange | null
|
|
573
|
-
DateRangeVariableOptions (type, @altertable/data-app-react): = props listed as dateRangeVariable.options.*
|
|
574
524
|
DateTimeFormatOptions (type, @altertable/data-app/format)
|
|
575
525
|
DateTimeFormatOptions.locale?: string
|
|
576
526
|
DateTimeFormatOptions.missing?: string
|
|
577
527
|
DateTimeFormatOptions.timeZone?: string
|
|
578
528
|
DateTimeFormatOptions.precision?: 'minute' | 'second'
|
|
529
|
+
DateTimeRange (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): = props listed as dateTimeRangeSql.range.*
|
|
530
|
+
DateTimeRangeComparisonRequest (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): An execution snapshot with the relative selection retained for URL and displayed-scope matching.
|
|
531
|
+
DateTimeRangeComparisonRequest.range: ResolvedDateTimeRange
|
|
532
|
+
DateTimeRangeComparisonRequest.comparison: ResolvedDateTimeRange | null
|
|
533
|
+
DateTimeRangeComparisonRequest.selection: DateTimeRangeComparisonSelection
|
|
534
|
+
DateTimeRangeComparisonRequest.reference: string
|
|
535
|
+
DateTimeRangeComparisonSelection (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
536
|
+
DateTimeRangeComparisonSelection.range: DateTimeRange
|
|
537
|
+
DateTimeRangeComparisonSelection.comparison?: 'previous'
|
|
538
|
+
DateTimeRangeComparisonVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
539
|
+
DateTimeRangeComparisonVariable.kind: 'dateTimeRangeComparison'
|
|
540
|
+
DateTimeRangeComparisonVariable.label?: string
|
|
541
|
+
DateTimeRangeComparisonVariable.presentation?: VariablePresentation
|
|
542
|
+
DateTimeRangeComparisonVariable.urlKeys: readonly string[]
|
|
543
|
+
DateTimeRangeComparisonVariable.defaultValue: DateTimeRangeComparisonSelection
|
|
544
|
+
DateTimeRangeComparisonVariable.clearValue?: DateTimeRangeComparisonSelection — Unrestricted value, when this variable represents a filter.
|
|
545
|
+
DateTimeRangeComparisonVariable.describe?: ((value: DateTimeRangeComparisonSelection) => string)
|
|
546
|
+
DateTimeRangeComparisonVariable.history: HistoryMode
|
|
547
|
+
DateTimeRangeComparisonVariable.read: (params: URLSearchParams) => DateTimeRangeComparisonSelection
|
|
548
|
+
DateTimeRangeComparisonVariable.write: (value: DateTimeRangeComparisonSelection) => Record<string, string | null>
|
|
549
|
+
DateTimeRangeComparisonVariable.valid: (value: DateTimeRangeComparisonSelection) => boolean
|
|
550
|
+
DateTimeRangeComparisonVariable.same: (left: DateTimeRangeComparisonSelection, right: DateTimeRangeComparisonSelection) => boolean
|
|
551
|
+
DateTimeRangeComparisonVariable.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
|
|
552
|
+
DateTimeRangeComparisonVariable.maxRangeDays?: number
|
|
553
|
+
DateTimeRangeComparisonVariable.presets?: readonly DateTimeRangePreset[]
|
|
554
|
+
DateTimeRangeComparisonVariable.input: (selection: DateTimeRangeComparisonSelection, now?: Date | undefined) => DateTimeRangeComparisonRequest
|
|
555
|
+
DateTimeRangeComparisonVariable.parseInput: (value: unknown) => DateTimeRangeComparisonRequest
|
|
556
|
+
DateTimeRangeComparisonVariable.previous: (selection: DateTimeRangeComparisonSelection) => ResolvedDateTimeRange | null
|
|
557
|
+
DateTimeRangeComparisonVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
|
|
558
|
+
DateTimeRangeContract (type, @altertable/data-app/contract): Datetime policy exposed by defineDateRangeContract().datetime. Parsing preserves relative values.
|
|
559
|
+
DateTimeRangeContract.timeZone: string
|
|
560
|
+
DateTimeRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
561
|
+
DateTimeRangeContract.parse: (value: unknown, now?: Date | undefined) => DateTimeRange — Validate coverage and duration while preserving symbolic relative bounds.
|
|
562
|
+
DateTimeRangeContract.resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange — Resolve to UTC-rebased bounds using reporting-zone wall-clock fields, then validate policy.
|
|
563
|
+
DateTimeRangeContract.comparison: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange | null — Return the preceding equal-length interval, or null when source coverage excludes it.
|
|
564
|
+
DateTimeRangeContract.request: (value: unknown, compare?: boolean | undefined, now?: Date | undefined) => DateTimeRangeRequest — Resolve both periods against one reference instant. Use these bounds for comparison queries.
|
|
565
|
+
DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
|
|
566
|
+
DateTimeRangeParserOptions (type, @altertable/data-app/format)
|
|
567
|
+
DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
|
|
568
|
+
DateTimeRangePicker (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: DateTimeRangePickerProps) — A datetime picker with presets, natural-language input, and a calendar. Presets apply immediately; Enter or calendar Apply commits edits; dismissal discards them.
|
|
569
|
+
DateTimeRangePicker.value: DateTimeRange | null
|
|
570
|
+
DateTimeRangePicker.onChange: (value: DateTimeRange, live?: boolean | undefined) => void — Commits a selection; the optional second argument indicates host-owned Live mode.
|
|
571
|
+
DateTimeRangePicker.liveOption?: { dateTimeRange: DateTimeRange; isLive: boolean; } — Adds a Live preset using dateTimeRange; isLive reflects the applied mode. The host owns refresh scheduling.
|
|
572
|
+
DateTimeRangePicker.className?: string
|
|
573
|
+
DateTimeRangePicker.placeholder?: string
|
|
574
|
+
DateTimeRangePicker.label?: string
|
|
575
|
+
DateTimeRangePicker.labelPlacement?: ControlLabelPlacement
|
|
576
|
+
DateTimeRangePicker.maxRangeDays?: number — Client limit for determinate durations; validate timezone-dependent ranges on the backend.
|
|
577
|
+
DateTimeRangePicker.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting policy; generated controls inherit it from their variable.
|
|
578
|
+
DateTimeRangePicker.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
|
|
579
|
+
DateTimeRangePicker.disabled?: boolean
|
|
580
|
+
DateTimeRangePicker.isDefault?: boolean
|
|
581
|
+
DateTimeRangePicker.onReset?: (() => void)
|
|
582
|
+
DateTimeRangePicker.calendarFooter?: ReactNode
|
|
583
|
+
DateTimeRangePicker.comparison?: { enabled: boolean; range: DateTimeRange | null; onChange: (enabled: boolean) => void; } — Optional controlled comparison with the immediately preceding equal-length interval.
|
|
584
|
+
DateTimeRangePickerProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as DateTimeRangePicker.*
|
|
585
|
+
DateTimeRangePreset (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): A picker suggestion. Text ranges use the same natural-language parser as typed input.
|
|
586
|
+
DateTimeRangePreset.label: string — Menu label, also shown when this preset matches the selected range.
|
|
587
|
+
DateTimeRangePreset.range: string | DateTimeRange
|
|
588
|
+
DateTimeRangePreset.shortcut?: string — Optional compact badge, for example "15m".
|
|
589
|
+
dateTimeRangePresets (const, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): Monitoring offers minute/hour windows; analytics offers longer periods and to-date windows. Spread either menu to add custom presets.
|
|
590
|
+
dateTimeRangePresets.monitoring: readonly DateTimeRangePreset[]
|
|
591
|
+
dateTimeRangePresets.analytics: readonly DateTimeRangePreset[]
|
|
592
|
+
DateTimeRangeRequest (type, @altertable/data-app/contract): Resolved UTC-rebased bounds for one execution, optionally with the preceding equal-length interval.
|
|
593
|
+
DateTimeRangeRequest.range: ResolvedDateTimeRange
|
|
594
|
+
DateTimeRangeRequest.comparison: ResolvedDateTimeRange | null
|
|
595
|
+
dateTimeRangeSql (function, @altertable/data-app/contract): (range: DateTimeRange, parameter: string): { from: string; to: string; params: Record<string, string>; } — DuckDB timestamp expressions using the query session's timezone for relative anchors. Absolute fields remain UTC-rebased TIMESTAMP values. Start is inclusive, end exclusive.
|
|
596
|
+
dateTimeRangeSql.range.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
597
|
+
dateTimeRangeSql.range.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
598
|
+
dateTimeRangeVariable (function, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): (options: DateTimeRangeComparisonVariableOptions): DateTimeRangeComparisonVariable; (options: DateTimeRangeVariableOptions): DateTimeRangeVariable — One declaration drives the picker, URL state, and operation input. With comparison enabled, use input(defaultValue) for operation checks and variableInput() to validate request snapshots.
|
|
599
|
+
dateTimeRangeVariable.options.key: string
|
|
600
|
+
dateTimeRangeVariable.options.label?: string
|
|
601
|
+
dateTimeRangeVariable.options.defaultValue: string | DateTimeRange — Relative defaults such as "7d" stay relative.
|
|
602
|
+
dateTimeRangeVariable.options.maxRangeDays?: number — Client limit for determinate durations; the backend must validate timezone-dependent ranges.
|
|
603
|
+
dateTimeRangeVariable.options.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
|
|
604
|
+
dateTimeRangeVariable.options.history?: HistoryMode
|
|
605
|
+
dateTimeRangeVariable.options.presentation?: VariablePresentation
|
|
606
|
+
dateTimeRangeVariable.options.allowComparison: true
|
|
607
|
+
dateTimeRangeVariable.options.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
|
|
608
|
+
dateTimeRangeVariable.options.allowComparison?: false — Enable the previous-period reporting workflow. Requires a shared contract.
|
|
609
|
+
dateTimeRangeVariable.options.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
|
|
610
|
+
DateTimeRangeVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
611
|
+
DateTimeRangeVariable.kind: 'dateTimeRange'
|
|
612
|
+
DateTimeRangeVariable.label?: string
|
|
613
|
+
DateTimeRangeVariable.presentation?: VariablePresentation
|
|
614
|
+
DateTimeRangeVariable.urlKeys: readonly string[]
|
|
615
|
+
DateTimeRangeVariable.defaultValue: DateTimeRange
|
|
616
|
+
DateTimeRangeVariable.clearValue?: DateTimeRange — Unrestricted value, when this variable represents a filter.
|
|
617
|
+
DateTimeRangeVariable.describe?: ((value: DateTimeRange) => string)
|
|
618
|
+
DateTimeRangeVariable.history: HistoryMode
|
|
619
|
+
DateTimeRangeVariable.read: (params: URLSearchParams) => DateTimeRange
|
|
620
|
+
DateTimeRangeVariable.write: (value: DateTimeRange) => Record<string, string | null>
|
|
621
|
+
DateTimeRangeVariable.valid: (value: DateTimeRange) => boolean
|
|
622
|
+
DateTimeRangeVariable.same: (left: DateTimeRange, right: DateTimeRange) => boolean
|
|
623
|
+
DateTimeRangeVariable.parse: (value: unknown) => DateTimeRange
|
|
624
|
+
DateTimeRangeVariable.maxRangeDays?: number
|
|
625
|
+
DateTimeRangeVariable.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
|
|
626
|
+
DateTimeRangeVariable.presets?: readonly DateTimeRangePreset[]
|
|
627
|
+
DateTimeRangeVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
|
|
579
628
|
DateTimeTooltip (component, @altertable/data-app-react): (props: DateTimeTooltipProps) — Exact-time disclosure uses the same reporting zone and locale as other date displays.
|
|
580
629
|
DateTimeTooltip.date: Date
|
|
581
630
|
DateTimeTooltip.timeZone?: string
|
|
@@ -598,12 +647,12 @@ defineDataApp.config.queries: Queries & KnownRecord<Queries> & ('' extends keyof
|
|
|
598
647
|
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.
|
|
599
648
|
defineDataIdentifiers.options.tables: Tables
|
|
600
649
|
defineDataIdentifiers.options.columns: Columns
|
|
601
|
-
defineDateRangeContract (function, @altertable/data-app/contract): (options: DateRangeContractOptions): {
|
|
650
|
+
defineDateRangeContract (function, @altertable/data-app/contract): (options: DateRangeContractOptions): { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date… — One source policy for datetime picker validation and operation requests.
|
|
602
651
|
defineDateRangeContract.options.minDate?: string
|
|
603
652
|
defineDateRangeContract.options.maxDate?: string | (() => string)
|
|
604
653
|
defineDateRangeContract.options.maxRangeDays: number
|
|
605
654
|
defineDateRangeContract.options.timeZone: string
|
|
606
|
-
defineDateRangeContract.options.completeDays?: boolean
|
|
655
|
+
defineDateRangeContract.options.completeDays?: boolean — Defaults to complete days through yesterday in the reporting timezone. Set false to include today.
|
|
607
656
|
defineOperation (function, @altertable/data-app/contract): <Input, Output, const Queries extends QueryDefinitions>(operation: OperationDefinition<Input, Output, Queries> & { queries: CheckedQueries<Queries>; }): Omit<DataOperation<Input, Output>, 'queryNames'> & { queryNames: { readonly [Name in keyof Queries & string]: Name; }; }
|
|
608
657
|
defineOperation.operation.input: (value: unknown) => Input
|
|
609
658
|
defineOperation.operation.checks: readonly [Input, ...Input[]]
|
|
@@ -708,6 +757,12 @@ ExplorationActionControl.indicator?: 'chevron' | 'ellipsis' — Chart labels use
|
|
|
708
757
|
ExplorationActionControl.ref?: Ref<HTMLButtonElement> — Shares this menu trigger with an item's context and keyboard actions.
|
|
709
758
|
ExplorationActionControl.className?: string
|
|
710
759
|
ExplorationActionControlProps (type, @altertable/data-app-react/ui): = props listed as ExplorationActionControl.*
|
|
760
|
+
ExternalLink (component, @altertable/data-app-react): (props: ExternalLinkProps) — Open HTTPS links through the host when embedded, or a native new tab when standalone.
|
|
761
|
+
ExternalLink.href: string
|
|
762
|
+
ExternalLink.children: ReactNode
|
|
763
|
+
ExternalLink.className?: string
|
|
764
|
+
ExternalLink.title?: string
|
|
765
|
+
ExternalLinkProps (type, @altertable/data-app-react): = props listed as ExternalLink.*
|
|
711
766
|
FilterActions (component, @altertable/data-app-react/ui): (props: FilterActionsProps)
|
|
712
767
|
FilterActions.onClear?: (() => void)
|
|
713
768
|
FilterActions.onApply: () => void [variant 1 of 2]
|
|
@@ -734,6 +789,13 @@ formatDateTime.options.locale?: string
|
|
|
734
789
|
formatDateTime.options.missing?: string
|
|
735
790
|
formatDateTime.options.timeZone?: string
|
|
736
791
|
formatDateTime.options.precision?: 'minute' | 'second'
|
|
792
|
+
formatDateTimeBound (function, @altertable/data-app/contract): (value: AbsoluteOrRelativeDateTime | null | undefined, fallback: string): string
|
|
793
|
+
formatDateTimeBound.value.anchor: RelativeAnchor [variant 2 of 2]
|
|
794
|
+
formatDateTimeBound.value.offset: RelativeOffset[] [variant 2 of 2]
|
|
795
|
+
formatDateTimeBound.value.…: plus props inherited from built-in
|
|
796
|
+
formatDateTimeRange (function, @altertable/data-app/contract, @altertable/data-app/format): (value: DateTimeRange): string
|
|
797
|
+
formatDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
798
|
+
formatDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
737
799
|
formatMetric (function, @altertable/data-app/format): (value: number, format: MetricFormat): string
|
|
738
800
|
formatMetric.format.kind: 'count' [variant 1 of 3]
|
|
739
801
|
formatMetric.format.compact?: boolean [variant 1 of 3]
|
|
@@ -760,6 +822,7 @@ FunnelChart.ariaLabel: string — Accessible measure and scope description.
|
|
|
760
822
|
FunnelChart.unit: string — Population unit, such as users or sessions.
|
|
761
823
|
FunnelChart.formatValue?: ((value: number) => string) — Formats counts; rates use percentage formatting.
|
|
762
824
|
FunnelChart.className?: string
|
|
825
|
+
FunnelChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
763
826
|
FunnelChart.steps: readonly FunnelChartStep[]
|
|
764
827
|
FunnelChart.series: readonly FunnelChartSeries[]
|
|
765
828
|
FunnelChartProps (type, @altertable/data-app-react/ui): = props listed as FunnelChart.*
|
|
@@ -859,10 +922,13 @@ LineChart.itemActions?: ItemActions<Row> — Actions available for each displaye
|
|
|
859
922
|
LineChart.unit: string
|
|
860
923
|
LineChart.ariaLabel: string
|
|
861
924
|
LineChart.formatValue?: ((value: number) => string)
|
|
925
|
+
LineChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
926
|
+
LineChart.cursorGroup?: ChartCursorGroup — Share mouse-hover timestamps with charts receiving the same handle. Matches each item's time exactly.
|
|
862
927
|
LineChartItem (type, @altertable/data-app-react/ui)
|
|
863
928
|
LineChartItem.id: string
|
|
864
929
|
LineChartItem.label: string
|
|
865
930
|
LineChartItem.value: number
|
|
931
|
+
LineChartItem.time?: number — Optional timestamp in epoch milliseconds for cursor linking. Omit for category samples.
|
|
866
932
|
LineChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as LineChart.*
|
|
867
933
|
LiveControl (component, @altertable/data-app-react/ui): (props: LiveControlProps) — Toggle an app-owned recurring refresh. The app supplies the timer and its cadence.
|
|
868
934
|
LiveControl.enabled: boolean
|
|
@@ -905,7 +971,7 @@ MetricFormat (type, @altertable/data-app/format): = props listed as formatMetric
|
|
|
905
971
|
MetricReading (type, @altertable/data-app-react/ui)
|
|
906
972
|
MetricReading.loading: true [variant 1 of 2]
|
|
907
973
|
MetricReading.loading: false [variant 2 of 2]
|
|
908
|
-
MetricReading.value: MetricValues & { period?:
|
|
974
|
+
MetricReading.value: MetricValues & { period?: DateTimeRangeRequest | undefined; } [variant 2 of 2]
|
|
909
975
|
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.
|
|
910
976
|
MetricRecords.render: (source: ViewSource<Data, Input>, navigation?: DetailNavigation | undefined) => { scope: string; content: FunctionComponentElement<{ content: DetailContent<any, any>; input: any; navigation?: DetailNavigation | undefined; }>; } | undefined
|
|
911
977
|
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.
|
|
@@ -1036,11 +1102,19 @@ parseBooleanSelection.filter.write: (value: BooleanSelection) => Record<string,
|
|
|
1036
1102
|
parseBooleanSelection.filter.valid: (value: BooleanSelection) => boolean
|
|
1037
1103
|
parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelection) => boolean
|
|
1038
1104
|
parseCount (function, @altertable/data-app/contract): (value: unknown): number — Accepts numeric strings from DuckDB; rejects negative, fractional, and unsafe integers.
|
|
1039
|
-
parseDateRangeInput (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateRange — Validate calendar dates and a bounded inclusive range on the server.
|
|
1040
|
-
parseDateRangeInput.options.minDate?: string
|
|
1041
|
-
parseDateRangeInput.options.maxDate?: string
|
|
1042
|
-
parseDateRangeInput.options.maxRangeDays: number
|
|
1043
1105
|
parseDateTime (function, @altertable/data-app/format): (value: DateTimeValue): Date | null — Parse only unambiguous instants. String values must include `Z` or an explicit offset.
|
|
1106
|
+
parseDateTimeBound (function, @altertable/data-app/contract): (text: string): AbsoluteOrRelativeDateTime | null — Parse one bound without resolving relative anchors or offsets.
|
|
1107
|
+
parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
|
|
1108
|
+
parseDateTimeRange.options.maxRangeDays?: number
|
|
1109
|
+
parseDateTimeRangeInput (function, @altertable/data-app/format): (input: string, options: DateTimeRangeParserOptions): ParseDateTimeRangeResult
|
|
1110
|
+
parseDateTimeRangeInput.options.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
|
|
1111
|
+
ParseDateTimeRangeResult (type, @altertable/data-app/format)
|
|
1112
|
+
ParseDateTimeRangeResult.ok: true [variant 1 of 2]
|
|
1113
|
+
ParseDateTimeRangeResult.range: DateTimeRange [variant 1 of 2]
|
|
1114
|
+
ParseDateTimeRangeResult.normalizedInput: string
|
|
1115
|
+
ParseDateTimeRangeResult.parser: 'calendar-preset' | 'calendar-range' | 'chrono' | 'relative' | 'unix' [variant 1 of 2]
|
|
1116
|
+
ParseDateTimeRangeResult.ok: false [variant 2 of 2]
|
|
1117
|
+
ParseDateTimeRangeResult.reason: DateTimeRangeParseFailureReason [variant 2 of 2]
|
|
1044
1118
|
parseDimensionSelection (function, @altertable/data-app/contract): <T extends DimensionValue>(value: unknown, filter: DimensionSelectionVariable<T>): DimensionSelection<T> — Server-side parser; call from the operation input parser before building SQL.
|
|
1045
1119
|
parseDimensionSelection.filter.kind: 'dimension'
|
|
1046
1120
|
parseDimensionSelection.filter.label: string
|
|
@@ -1132,27 +1206,26 @@ PresentStory.headerActions?: ReactNode
|
|
|
1132
1206
|
PresentStory.footer?: ReactNode
|
|
1133
1207
|
PresentStory.…: plus props inherited from React
|
|
1134
1208
|
PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
|
|
1135
|
-
previousDateRange (function, @altertable/data-app/contract): (options: DateRange): DateRange — The immediately preceding, equally long set of calendar days.
|
|
1136
|
-
previousDateRange.options.start: string
|
|
1137
|
-
previousDateRange.options.end: string
|
|
1138
1209
|
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryDefinition>> = { readonly [x: string]: QueryDefinition; }
|
|
1139
1210
|
QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
|
|
1140
1211
|
QueryField.type: keyof QueryValues
|
|
1141
1212
|
QueryField.nullable?: boolean
|
|
1142
|
-
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar parameters with optional fallback values.
|
|
1143
|
-
QueryParameter.type: '
|
|
1144
|
-
QueryParameter.nullable?: false [variants 1, 2, 3, 4 of
|
|
1145
|
-
QueryParameter.defaultValue?:
|
|
1146
|
-
QueryParameter.type: '
|
|
1147
|
-
QueryParameter.defaultValue?:
|
|
1148
|
-
QueryParameter.type: '
|
|
1149
|
-
QueryParameter.defaultValue?:
|
|
1150
|
-
QueryParameter.type: '
|
|
1151
|
-
QueryParameter.defaultValue?:
|
|
1152
|
-
QueryParameter.
|
|
1153
|
-
QueryParameter.defaultValue?:
|
|
1154
|
-
QueryParameter.
|
|
1155
|
-
QueryParameter.defaultValue?:
|
|
1213
|
+
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar or datetime-range parameters with optional fallback values.
|
|
1214
|
+
QueryParameter.type: 'dateTimeRange' [variant 1 of 9]
|
|
1215
|
+
QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5 of 9]
|
|
1216
|
+
QueryParameter.defaultValue?: { from?: string | AbsoluteOrRelativeDateTime | null | undefined; to?: string | AbsoluteOrRelativeDateTime | null | undefined; } [variant 1 of 9] — Absolute defaults may use canonical UTC ISO strings (including milliseconds) for static manifests. Snapshots hydrate them into Dates.
|
|
1217
|
+
QueryParameter.type: 'boolean' [variants 2, 6 of 9]
|
|
1218
|
+
QueryParameter.defaultValue?: boolean [variant 2 of 9]
|
|
1219
|
+
QueryParameter.type: 'null' [variants 3, 7 of 9]
|
|
1220
|
+
QueryParameter.defaultValue?: null [variants 3, 7 of 9]
|
|
1221
|
+
QueryParameter.type: 'number' [variants 4, 8 of 9]
|
|
1222
|
+
QueryParameter.defaultValue?: number [variant 4 of 9]
|
|
1223
|
+
QueryParameter.type: 'string' [variants 5, 9 of 9]
|
|
1224
|
+
QueryParameter.defaultValue?: string [variant 5 of 9]
|
|
1225
|
+
QueryParameter.nullable: true [variants 6, 7, 8, 9 of 9]
|
|
1226
|
+
QueryParameter.defaultValue?: boolean | null [variant 6 of 9]
|
|
1227
|
+
QueryParameter.defaultValue?: number | null [variant 8 of 9]
|
|
1228
|
+
QueryParameter.defaultValue?: string | null [variant 9 of 9]
|
|
1156
1229
|
QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
|
|
1157
1230
|
QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
|
|
1158
1231
|
QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
|
|
@@ -1183,6 +1256,14 @@ RankingItem.value: number
|
|
|
1183
1256
|
RankingItem.detail?: ReactNode
|
|
1184
1257
|
RankingProps (type, @altertable/data-app-react): = props listed as Ranking.*
|
|
1185
1258
|
RegisteredQuery (type, @altertable/data-app/contract): <Queries> = <Name extends keyof Queries & string, const Params extends object = {}, const Limit extends number = number>(name: Name & (true extends IsUnion<NoInfer<Name>, NoInfer<Name>> ? [ParameterNames<Queries, Name>] extends [...] ? unknown : never : unknown), params?: ExactQueryParameters<...> | undefined,…
|
|
1259
|
+
RelativeAnchor (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format): = 'RELATIVE_ANCHOR_NOW' | 'RELATIVE_ANCHOR_START_OF_MONTH' | 'RELATIVE_ANCHOR_START_OF_TODAY' | 'RELATIVE_ANCHOR_START_OF_TOMORROW' | 'RELATIVE_ANCHOR_START_OF_WEEK' | 'RELATIVE_ANCHOR_START_OF_YEAR' | 'RELATIVE_ANCHOR_START_OF_YESTERDAY'
|
|
1260
|
+
RelativeDateTime (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format)
|
|
1261
|
+
RelativeDateTime.anchor: RelativeAnchor
|
|
1262
|
+
RelativeDateTime.offset: RelativeOffset[]
|
|
1263
|
+
RelativeOffset (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format)
|
|
1264
|
+
RelativeOffset.amount: number
|
|
1265
|
+
RelativeOffset.unit: RelativeUnit
|
|
1266
|
+
RelativeUnit (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format): = 'DAY' | 'HOUR' | 'MINUTE' | 'MONTH' | 'SECOND' | 'WEEK' | 'YEAR'
|
|
1186
1267
|
ReportingPeriod (type, @altertable/data-app/contract, @altertable/data-app-react)
|
|
1187
1268
|
ReportingPeriod.kind: 'rolling' [variant 1 of 2]
|
|
1188
1269
|
ReportingPeriod.amount: number [variant 1 of 2]
|
|
@@ -1191,11 +1272,19 @@ ReportingPeriod.end: string
|
|
|
1191
1272
|
ReportingPeriod.kind: 'calendar' [variant 2 of 2]
|
|
1192
1273
|
ReportingPeriod.start: string [variant 2 of 2]
|
|
1193
1274
|
ReportingPeriod.timeZone: string [variant 2 of 2]
|
|
1275
|
+
resolveDateTimeRange (function, @altertable/data-app/contract): (value: DateTimeRange, now: Date): { from: Date | null; to: Date; } — UTC preview only. Backend execution owns reporting-timezone interpretation. Null start is unbounded; null end is now.
|
|
1276
|
+
resolveDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
1277
|
+
resolveDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
1278
|
+
resolveDateTimeRange.now.…: plus props inherited from built-in
|
|
1279
|
+
ResolvedDateTimeRange (type, @altertable/data-app/contract): Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
|
|
1280
|
+
ResolvedDateTimeRange.from: Date
|
|
1281
|
+
ResolvedDateTimeRange.to: Date
|
|
1194
1282
|
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.
|
|
1195
1283
|
RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
1196
1284
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|
|
1197
1285
|
RetentionChart.formatValue?: ((value: number) => string) — Formats counts; rates use percentage formatting.
|
|
1198
1286
|
RetentionChart.className?: string
|
|
1287
|
+
RetentionChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
1199
1288
|
RetentionChart.series: readonly RetentionChartSeries[]
|
|
1200
1289
|
RetentionChartPoint (type, @altertable/data-app-react/ui)
|
|
1201
1290
|
RetentionChartPoint.offset: number — Nonnegative integer, unique per series; uneven offsets retain their distance.
|
|
@@ -1210,6 +1299,7 @@ RetentionChartSeries.label: string
|
|
|
1210
1299
|
RetentionChartSeries.cohortSize: number — Finite, nonnegative starting population.
|
|
1211
1300
|
RetentionChartSeries.points: readonly RetentionChartPoint[]
|
|
1212
1301
|
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.
|
|
1302
|
+
ScatterChart.horizontalGrid?: boolean — Draw horizontal grid lines behind the plotted values.
|
|
1213
1303
|
ScatterChart.items: readonly ScatterChartItem[]
|
|
1214
1304
|
ScatterChart.xLabel: string
|
|
1215
1305
|
ScatterChart.yLabel: string
|
|
@@ -1332,6 +1422,9 @@ Select.id?: string
|
|
|
1332
1422
|
Select.className?: string
|
|
1333
1423
|
Select.align?: 'end' | 'start' — Align the popup with the selection button. Defaults to start.
|
|
1334
1424
|
SelectProps (type, @altertable/data-app-react/ui): = props listed as Select.*
|
|
1425
|
+
serializeDateTimeRange (function, @altertable/data-app/contract): (value: DateTimeRange): string — Canonical URL/JSON representation. Dates retain their encoded UTC fields.
|
|
1426
|
+
serializeDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
1427
|
+
serializeDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
1335
1428
|
Sheet (component, @altertable/data-app-react/ui): (props: SheetProps) — Uses the native dialog top layer and focus trap. Closing keeps the modal mounted until its exit transition completes.
|
|
1336
1429
|
Sheet.open: boolean
|
|
1337
1430
|
Sheet.onOpenChange: (open: boolean) => void
|
|
@@ -1480,13 +1573,14 @@ TextWidgetProps (type, @altertable/data-app-react): <Data, Input, Row> = props l
|
|
|
1480
1573
|
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.
|
|
1481
1574
|
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' — Appearance configured by app authors.
|
|
1482
1575
|
ThemePreference (type, @altertable/data-app/appearance): = 'system' | Theme
|
|
1483
|
-
Tooltip (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: TooltipProps) —
|
|
1576
|
+
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.
|
|
1484
1577
|
Tooltip.content: ReactNode
|
|
1485
1578
|
Tooltip.children: ReactNode
|
|
1486
1579
|
Tooltip.variant?: 'chart' | 'hint'
|
|
1487
1580
|
Tooltip.onOpenChange?: ((open: boolean) => void)
|
|
1488
1581
|
Tooltip.align?: 'center' | 'end' | 'start'
|
|
1489
1582
|
Tooltip.placement?: 'bottom' | 'top'
|
|
1583
|
+
Tooltip.followCursor?: boolean — Set false to keep a chart tooltip at its entry position while hovering one sample.
|
|
1490
1584
|
Tooltip.portalRoot?: RefObject<HTMLElement | null>
|
|
1491
1585
|
Tooltip.…: plus props inherited from React
|
|
1492
1586
|
TooltipProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as Tooltip.*
|
|
@@ -1508,7 +1602,8 @@ UpdatedAt.open?: boolean
|
|
|
1508
1602
|
UpdatedAt.onOpenChange?: ((open: boolean) => void)
|
|
1509
1603
|
UpdatedAt.timeZone?: string
|
|
1510
1604
|
UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
|
|
1511
|
-
useAppVariables (hook, @altertable/data-app-react/ui): <const Variables extends VariableCollection>(definitions: Variables): { values: AppVariableValues<Variables>; set: <Key extends keyof Variables & string>(name: Key, value: AppVariableValues<Variables>[Key]) => void; ... 4 more ...; bind: <Key extends keyof Variables &
|
|
1605
|
+
useAppVariables (hook, @altertable/data-app-react/ui): <const Variables extends VariableCollection>(definitions: Variables): { values: AppVariableValues<Variables>; calendarRevision: number; set: <Key extends keyof Variables & string>(name: Key, value: AppVariableValues<Variables>[Key]) => void; ... 4 more ...; bind: <Key extends keyof Variables & stri… — URL is the source of truth for app variables; one update can change dependent values atomically.
|
|
1606
|
+
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.
|
|
1512
1607
|
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.
|
|
1513
1608
|
useDateFormatting.options.locale?: string
|
|
1514
1609
|
useDateFormatting.options.timeZone?: string
|
|
@@ -1519,7 +1614,7 @@ VariableBar (component, @altertable/data-app-react/ui): (props: VariableBarProps
|
|
|
1519
1614
|
VariableBar.children: ReactNode
|
|
1520
1615
|
VariableBar.…: plus props inherited from React
|
|
1521
1616
|
VariableBarProps (type, @altertable/data-app-react/ui): = props listed as VariableBar.*
|
|
1522
|
-
variableInput (function, @altertable/data-app/contract): <Input extends object, const Variables extends VariableCollection>(parse: (value: unknown) => Input, variables: Variables
|
|
1617
|
+
variableInput (function, @altertable/data-app/contract): <Input extends object, const Variables extends VariableCollection>(parse: (value: unknown) => Input, variables: Variables): (value: unknown) => Input & ParsedVariableValues<Variables> — Validate named variable values at the operation boundary.
|
|
1523
1618
|
VariablePresentation (type, @altertable/data-app-react)
|
|
1524
1619
|
VariablePresentation.group?: 'display' | 'scope' — Scope changes the included data; display changes its presentation. Defaults to scope.
|
|
1525
1620
|
VariablePresentation.control?: 'toolbar' | 'widget' — Widget controls render beside their visualization instead of in the toolbar. Scope filters remain available in the Filters sheet and active summaries.
|