@altertable/data-app 0.74.0 → 0.75.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/REFERENCE.md +173 -24
- package/dist/chunks/{contract-BeLPJwlO.js → contract-B3s0ybE2.js} +179 -34
- package/dist/chunks/contract-B3s0ybE2.js.map +1 -0
- package/dist/chunks/{contract-Di8SP74I.js → contract-DcPjfm0R.js} +255 -4
- package/dist/chunks/contract-DcPjfm0R.js.map +1 -0
- package/dist/chunks/{diagnostics-BTZSlNtW.js → diagnostics-DVwQ5PDK.js} +2 -2
- package/dist/chunks/{diagnostics-BTZSlNtW.js.map → diagnostics-DVwQ5PDK.js.map} +1 -1
- package/dist/chunks/format-5hMYUWk3.js +793 -0
- package/dist/chunks/format-5hMYUWk3.js.map +1 -0
- package/dist/chunks/{operation-CSM9UmO3.js → operation-CGuN7Zcb.js} +3 -3
- package/dist/chunks/{operation-CSM9UmO3.js.map → operation-CGuN7Zcb.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 +1 -1
- package/dist/internal.js +8 -7
- 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 +168 -10
- package/dist/types/chunks/date-time-range-value.d.ts +46 -0
- package/dist/types/chunks/index.d.ts +13 -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 +3 -2
- package/dist/types/core/format.d.ts +20 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/internal.d.ts +9 -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 +41 -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 +52 -1
- package/docs/variables.md +61 -0
- package/package.json +3 -2
- 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/AGENTS.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# Build Altertable data apps
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Use [app authoring](docs/app-authoring.md) for SDK mechanics and available starters.
|
|
4
|
+
The calling app brief chooses the use case, content structure,
|
|
5
|
+
and starter; examples demonstrate APIs rather than a required app layout.
|
|
6
|
+
For an existing app, start from its current source. Open another guide only when the
|
|
5
7
|
task needs a pattern that source does not cover. Search [REFERENCE.md](REFERENCE.md) for the exact export or prop.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
## Contribute to this repository
|
|
10
|
+
|
|
11
|
+
Read [Contributing](CONTRIBUTING.md) before changing packages or contributor
|
|
12
|
+
tooling. App authoring guides teach agents how to build apps with the SDK.
|
|
13
|
+
Keep reusable behavior in components, defaults, types, and tests. Add authoring
|
|
14
|
+
documentation only when an app author must make a decision or take an action;
|
|
15
|
+
do not restate patterns already handled by the SDK.
|
package/CONTRIBUTING.md
CHANGED
|
@@ -13,7 +13,8 @@ bash scripts/install-test-browser.sh
|
|
|
13
13
|
for the kind of change being made.
|
|
14
14
|
2. **Change source and consumers.** Keep the public API focused on concrete app
|
|
15
15
|
needs. Preserve package boundaries and explicit exports. Update affected
|
|
16
|
-
callers
|
|
16
|
+
callers when public behavior changes. Update starters and guides only when
|
|
17
|
+
app authoring must change; apply the documentation boundary below.
|
|
17
18
|
3. **Run focused checks.** Build with `bun run build` before consumer tests.
|
|
18
19
|
Select the test file or `-t "workflow name"` matching the change. For example,
|
|
19
20
|
CSV export changes use `bun run test tests/public-api/apps-export.test.ts`.
|
|
@@ -58,14 +59,24 @@ imports, fabricated internal state, and implementation assertions. Prefer
|
|
|
58
59
|
accessible role/name or label queries scoped to the relevant region. Keep browser
|
|
59
60
|
workflows self-contained in `apps-*.test.ts`.
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
When a change requires new app code or an authoring decision, update the relevant
|
|
63
|
+
guide and starter. Keep SDK mechanics and shared component guidance in `docs/`;
|
|
64
|
+
use-case composition belongs to the app brief and selected starter.
|
|
65
|
+
Document current usage with one focused example, `<Component>` and
|
|
66
|
+
`functionName()` notation.
|
|
63
67
|
Show complete enclosing calls and components; use `// ...` for unrelated setup.
|
|
64
68
|
Name the app declaration `dataApp`; keep the API's `app` prop name.
|
|
65
69
|
Leave prop inventories to TypeScript and JSDoc. Generate `REFERENCE.md` with
|
|
66
70
|
`bun run build` and stage it before `bun run check:reference`; improve entries
|
|
67
71
|
through types and JSDoc, never generated output.
|
|
68
72
|
|
|
73
|
+
## Documentation boundary
|
|
74
|
+
|
|
75
|
+
App authoring guides teach agents what to decide, supply, or change in app code.
|
|
76
|
+
Keep automatic behavior and reusable patterns in components, defaults, types,
|
|
77
|
+
and regression tests. Do not document them as authoring steps or end-user
|
|
78
|
+
instructions.
|
|
79
|
+
|
|
69
80
|
## UI platform principles
|
|
70
81
|
|
|
71
82
|
- Express intent through small typed props and simple data structures.
|
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
|
|
@@ -298,6 +302,7 @@ CsvTable.rows: readonly (readonly CsvCell[])[]
|
|
|
298
302
|
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
303
|
DataApp.children: ReactNode
|
|
300
304
|
DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
305
|
+
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
301
306
|
DataApp.toolbarActions?: ReactNode
|
|
302
307
|
DataApp.footerActions?: ReactNode
|
|
303
308
|
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 +310,14 @@ DataApp.showSearch?: boolean — Show declared search controls. Defaults to true
|
|
|
305
310
|
DataApp.showFilters?: boolean — Show declared filter controls, including display options. Defaults to true; hiding preserves their values.
|
|
306
311
|
DataApp.view: DeclaredView<Data, Input, unknown> & { scope(snapshot: DisplayedSnapshot<Data, Input>): string; }
|
|
307
312
|
DataApp.showSearchSuggestions?: boolean — Show supplied datasets’ record suggestions on the first declared search. Defaults to true.
|
|
308
|
-
DataApp.story
|
|
309
|
-
DataApp.datasets
|
|
313
|
+
DataApp.story?: ((snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & { evidence: RegisteredBinding; })[]) — Omit to leave presentation out of the toolbar.
|
|
314
|
+
DataApp.datasets?: readonly [ExportDataset<Data, Input>, ...ExportDataset<Data, Input>[]] — Omit to leave CSV export out of the toolbar.
|
|
310
315
|
DataApp.details?: readonly DetailContent<any, any>[] — Detail destinations available to dataset actions and metric record inspection.
|
|
311
316
|
DataApp (component, @altertable/data-app-react/ui): (props: DataAppProps) — Setup and static screens; fetched data uses the declared-view DataApp.
|
|
312
317
|
DataApp.children: ReactNode
|
|
313
318
|
DataApp.dataContext: DataContext
|
|
314
319
|
DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
320
|
+
DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
315
321
|
DataApp.toolbarActions?: ReactNode
|
|
316
322
|
DataApp.footerActions?: ReactNode
|
|
317
323
|
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 +348,7 @@ DataAppProps (type, @altertable/data-app-react/ui)
|
|
|
342
348
|
DataAppProps.children: ReactNode
|
|
343
349
|
DataAppProps.dataContext: DataContext
|
|
344
350
|
DataAppProps.description?: ReactNode — Override the declared subtitle; null hides it.
|
|
351
|
+
DataAppProps.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
|
|
345
352
|
DataAppProps.toolbarActions?: ReactNode
|
|
346
353
|
DataAppProps.footerActions?: ReactNode
|
|
347
354
|
DataAppProps.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
@@ -504,9 +511,10 @@ DateFormatOptions.missing?: string
|
|
|
504
511
|
DatePresetId (type, @altertable/data-app-react/ui): = 'day' | 'last-14' | 'last-3' | 'last-30' | 'last-7' | 'last-90' | 'previous-month' | 'previous-week' | 'this-month' | 'this-week'
|
|
505
512
|
DateRange (type, @altertable/data-app-react/ui): = props listed as previousDateRange.options.* — ISO calendar dates; the app operation defines timezone and inclusive bounds.
|
|
506
513
|
DateRangeContract (type, @altertable/data-app/contract)
|
|
514
|
+
DateRangeContract.datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange; comparison…
|
|
507
515
|
DateRangeContract.request: (value: unknown, compare?: boolean | undefined) => DateRangeRequest
|
|
508
516
|
DateRangeContract.parseRequest: (value: unknown) => DateRangeRequest
|
|
509
|
-
DateRangeContract.bounds: () => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
517
|
+
DateRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
510
518
|
DateRangeContract.parse: (value: unknown) => DateRange
|
|
511
519
|
DateRangeContract.period: ({ start, end }: DateRange) => ReportingPeriod
|
|
512
520
|
DateRangeContract.comparison: (input: DateRange) => DateRange | null
|
|
@@ -546,7 +554,7 @@ dateRangeVariable (function, @altertable/data-app-react): (options: DateRangeVar
|
|
|
546
554
|
dateRangeVariable.options.label?: string
|
|
547
555
|
dateRangeVariable.options.key: string — URL key for a relative preset; explicit dates use start/end for period, otherwise key-prefixed fields.
|
|
548
556
|
dateRangeVariable.options.defaultValue: DateRangeSelection & { comparison?: undefined; }
|
|
549
|
-
dateRangeVariable.options.contract: {
|
|
557
|
+
dateRangeVariable.options.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
|
|
550
558
|
dateRangeVariable.options.history?: HistoryMode
|
|
551
559
|
dateRangeVariable.options.comparison?: boolean — Opt into a URL-backed comparison with the preceding equal-length range.
|
|
552
560
|
dateRangeVariable.options.presentation?: VariablePresentation
|
|
@@ -576,6 +584,102 @@ DateTimeFormatOptions.locale?: string
|
|
|
576
584
|
DateTimeFormatOptions.missing?: string
|
|
577
585
|
DateTimeFormatOptions.timeZone?: string
|
|
578
586
|
DateTimeFormatOptions.precision?: 'minute' | 'second'
|
|
587
|
+
DateTimeRange (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): = props listed as dateTimeRangeSql.range.*
|
|
588
|
+
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.
|
|
589
|
+
DateTimeRangeComparisonRequest.range: ResolvedDateTimeRange
|
|
590
|
+
DateTimeRangeComparisonRequest.comparison: ResolvedDateTimeRange | null
|
|
591
|
+
DateTimeRangeComparisonRequest.selection: DateTimeRangeComparisonSelection
|
|
592
|
+
DateTimeRangeComparisonRequest.reference: string
|
|
593
|
+
DateTimeRangeComparisonSelection (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
594
|
+
DateTimeRangeComparisonSelection.range: DateTimeRange
|
|
595
|
+
DateTimeRangeComparisonSelection.comparison?: 'previous'
|
|
596
|
+
DateTimeRangeComparisonVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
597
|
+
DateTimeRangeComparisonVariable.kind: 'dateTimeRangeComparison'
|
|
598
|
+
DateTimeRangeComparisonVariable.label?: string
|
|
599
|
+
DateTimeRangeComparisonVariable.presentation?: VariablePresentation
|
|
600
|
+
DateTimeRangeComparisonVariable.urlKeys: readonly string[]
|
|
601
|
+
DateTimeRangeComparisonVariable.defaultValue: DateTimeRangeComparisonSelection
|
|
602
|
+
DateTimeRangeComparisonVariable.clearValue?: DateTimeRangeComparisonSelection — Unrestricted value, when this variable represents a filter.
|
|
603
|
+
DateTimeRangeComparisonVariable.describe?: ((value: DateTimeRangeComparisonSelection) => string)
|
|
604
|
+
DateTimeRangeComparisonVariable.history: HistoryMode
|
|
605
|
+
DateTimeRangeComparisonVariable.read: (params: URLSearchParams) => DateTimeRangeComparisonSelection
|
|
606
|
+
DateTimeRangeComparisonVariable.write: (value: DateTimeRangeComparisonSelection) => Record<string, string | null>
|
|
607
|
+
DateTimeRangeComparisonVariable.valid: (value: DateTimeRangeComparisonSelection) => boolean
|
|
608
|
+
DateTimeRangeComparisonVariable.same: (left: DateTimeRangeComparisonSelection, right: DateTimeRangeComparisonSelection) => boolean
|
|
609
|
+
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…
|
|
610
|
+
DateTimeRangeComparisonVariable.maxRangeDays?: number
|
|
611
|
+
DateTimeRangeComparisonVariable.presets?: readonly DateTimeRangePreset[]
|
|
612
|
+
DateTimeRangeComparisonVariable.input: (selection: DateTimeRangeComparisonSelection, now?: Date | undefined) => DateTimeRangeComparisonRequest
|
|
613
|
+
DateTimeRangeComparisonVariable.parseInput: (value: unknown) => DateTimeRangeComparisonRequest
|
|
614
|
+
DateTimeRangeComparisonVariable.previous: (selection: DateTimeRangeComparisonSelection) => ResolvedDateTimeRange | null
|
|
615
|
+
DateTimeRangeComparisonVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
|
|
616
|
+
DateTimeRangeContract (type, @altertable/data-app/contract): Datetime policy exposed by defineDateRangeContract().datetime. Parsing preserves relative values.
|
|
617
|
+
DateTimeRangeContract.timeZone: string
|
|
618
|
+
DateTimeRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
|
|
619
|
+
DateTimeRangeContract.parse: (value: unknown, now?: Date | undefined) => DateTimeRange — Validate coverage and duration while preserving symbolic relative bounds.
|
|
620
|
+
DateTimeRangeContract.resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange — Resolve to UTC-rebased bounds using reporting-zone wall-clock fields, then validate policy.
|
|
621
|
+
DateTimeRangeContract.comparison: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange | null — Return the preceding equal-length interval, or null when source coverage excludes it.
|
|
622
|
+
DateTimeRangeContract.request: (value: unknown, compare?: boolean | undefined, now?: Date | undefined) => DateTimeRangeRequest — Resolve both periods against one reference instant. Use these bounds for comparison queries.
|
|
623
|
+
DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
|
|
624
|
+
DateTimeRangeParserOptions (type, @altertable/data-app/format)
|
|
625
|
+
DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
|
|
626
|
+
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.
|
|
627
|
+
DateTimeRangePicker.value: DateTimeRange | null
|
|
628
|
+
DateTimeRangePicker.onChange: (value: DateTimeRange, live?: boolean | undefined) => void — Commits a selection; the optional second argument indicates host-owned Live mode.
|
|
629
|
+
DateTimeRangePicker.liveOption?: { dateTimeRange: DateTimeRange; isLive: boolean; } — Adds a Live preset using dateTimeRange; isLive reflects the applied mode. The host owns refresh scheduling.
|
|
630
|
+
DateTimeRangePicker.className?: string
|
|
631
|
+
DateTimeRangePicker.placeholder?: string
|
|
632
|
+
DateTimeRangePicker.label?: string
|
|
633
|
+
DateTimeRangePicker.labelPlacement?: ControlLabelPlacement
|
|
634
|
+
DateTimeRangePicker.maxRangeDays?: number — Client limit for determinate durations; validate timezone-dependent ranges on the backend.
|
|
635
|
+
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.
|
|
636
|
+
DateTimeRangePicker.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
|
|
637
|
+
DateTimeRangePicker.disabled?: boolean
|
|
638
|
+
DateTimeRangePicker.comparison?: { enabled: boolean; range: DateTimeRange | null; onChange: (enabled: boolean) => void; } — Optional controlled comparison with the immediately preceding equal-length interval.
|
|
639
|
+
DateTimeRangePickerProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as DateTimeRangePicker.*
|
|
640
|
+
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.
|
|
641
|
+
DateTimeRangePreset.label: string — Menu label, also shown when this preset matches the selected range.
|
|
642
|
+
DateTimeRangePreset.range: string | DateTimeRange
|
|
643
|
+
DateTimeRangePreset.shortcut?: string — Optional compact badge, for example "15m".
|
|
644
|
+
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.
|
|
645
|
+
dateTimeRangePresets.monitoring: readonly DateTimeRangePreset[]
|
|
646
|
+
dateTimeRangePresets.analytics: readonly DateTimeRangePreset[]
|
|
647
|
+
DateTimeRangeRequest (type, @altertable/data-app/contract): Resolved UTC-rebased bounds for one execution, optionally with the preceding equal-length interval.
|
|
648
|
+
DateTimeRangeRequest.range: ResolvedDateTimeRange
|
|
649
|
+
DateTimeRangeRequest.comparison: ResolvedDateTimeRange | null
|
|
650
|
+
dateTimeRangeSql (function, @altertable/data-app/contract): (range: DateTimeRange, parameter: string): { from: string; to: string; params: Record<string, string>; } — DuckDB timestamp expressions using the query session's timezone for relative anchors. Absolute fields remain UTC-rebased TIMESTAMP values. Start is inclusive, end exclusive.
|
|
651
|
+
dateTimeRangeSql.range.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
652
|
+
dateTimeRangeSql.range.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
653
|
+
dateTimeRangeVariable (function, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): (options: DateTimeRangeComparisonVariableOptions): DateTimeRangeComparisonVariable; (options: DateTimeRangeVariableOptions): DateTimeRangeVariable — One declaration drives the picker, URL state, and operation input. With comparison enabled, use input(defaultValue) for operation checks and variableInput() to validate request snapshots.
|
|
654
|
+
dateTimeRangeVariable.options.key: string
|
|
655
|
+
dateTimeRangeVariable.options.label?: string
|
|
656
|
+
dateTimeRangeVariable.options.defaultValue: string | DateTimeRange — Relative defaults such as "7d" stay relative.
|
|
657
|
+
dateTimeRangeVariable.options.maxRangeDays?: number — Client limit for determinate durations; the backend must validate timezone-dependent ranges.
|
|
658
|
+
dateTimeRangeVariable.options.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
|
|
659
|
+
dateTimeRangeVariable.options.history?: HistoryMode
|
|
660
|
+
dateTimeRangeVariable.options.presentation?: VariablePresentation
|
|
661
|
+
dateTimeRangeVariable.options.allowComparison: true
|
|
662
|
+
dateTimeRangeVariable.options.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
|
|
663
|
+
dateTimeRangeVariable.options.allowComparison?: false — Enable the previous-period reporting workflow. Requires a shared contract.
|
|
664
|
+
dateTimeRangeVariable.options.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
|
|
665
|
+
DateTimeRangeVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
|
|
666
|
+
DateTimeRangeVariable.kind: 'dateTimeRange'
|
|
667
|
+
DateTimeRangeVariable.label?: string
|
|
668
|
+
DateTimeRangeVariable.presentation?: VariablePresentation
|
|
669
|
+
DateTimeRangeVariable.urlKeys: readonly string[]
|
|
670
|
+
DateTimeRangeVariable.defaultValue: DateTimeRange
|
|
671
|
+
DateTimeRangeVariable.clearValue?: DateTimeRange — Unrestricted value, when this variable represents a filter.
|
|
672
|
+
DateTimeRangeVariable.describe?: ((value: DateTimeRange) => string)
|
|
673
|
+
DateTimeRangeVariable.history: HistoryMode
|
|
674
|
+
DateTimeRangeVariable.read: (params: URLSearchParams) => DateTimeRange
|
|
675
|
+
DateTimeRangeVariable.write: (value: DateTimeRange) => Record<string, string | null>
|
|
676
|
+
DateTimeRangeVariable.valid: (value: DateTimeRange) => boolean
|
|
677
|
+
DateTimeRangeVariable.same: (left: DateTimeRange, right: DateTimeRange) => boolean
|
|
678
|
+
DateTimeRangeVariable.parse: (value: unknown) => DateTimeRange
|
|
679
|
+
DateTimeRangeVariable.maxRangeDays?: number
|
|
680
|
+
DateTimeRangeVariable.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
|
|
681
|
+
DateTimeRangeVariable.presets?: readonly DateTimeRangePreset[]
|
|
682
|
+
DateTimeRangeVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
|
|
579
683
|
DateTimeTooltip (component, @altertable/data-app-react): (props: DateTimeTooltipProps) — Exact-time disclosure uses the same reporting zone and locale as other date displays.
|
|
580
684
|
DateTimeTooltip.date: Date
|
|
581
685
|
DateTimeTooltip.timeZone?: string
|
|
@@ -598,12 +702,12 @@ defineDataApp.config.queries: Queries & KnownRecord<Queries> & ('' extends keyof
|
|
|
598
702
|
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
703
|
defineDataIdentifiers.options.tables: Tables
|
|
600
704
|
defineDataIdentifiers.options.columns: Columns
|
|
601
|
-
defineDateRangeContract (function, @altertable/data-app/contract): (options: DateRangeContractOptions): {
|
|
705
|
+
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 the server parser, URL variable, and displayed reporting period.
|
|
602
706
|
defineDateRangeContract.options.minDate?: string
|
|
603
707
|
defineDateRangeContract.options.maxDate?: string | (() => string)
|
|
604
708
|
defineDateRangeContract.options.maxRangeDays: number
|
|
605
709
|
defineDateRangeContract.options.timeZone: string
|
|
606
|
-
defineDateRangeContract.options.completeDays?: boolean
|
|
710
|
+
defineDateRangeContract.options.completeDays?: boolean — Defaults to complete days through yesterday in the reporting timezone. Set false to include today.
|
|
607
711
|
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
712
|
defineOperation.operation.input: (value: unknown) => Input
|
|
609
713
|
defineOperation.operation.checks: readonly [Input, ...Input[]]
|
|
@@ -708,6 +812,12 @@ ExplorationActionControl.indicator?: 'chevron' | 'ellipsis' — Chart labels use
|
|
|
708
812
|
ExplorationActionControl.ref?: Ref<HTMLButtonElement> — Shares this menu trigger with an item's context and keyboard actions.
|
|
709
813
|
ExplorationActionControl.className?: string
|
|
710
814
|
ExplorationActionControlProps (type, @altertable/data-app-react/ui): = props listed as ExplorationActionControl.*
|
|
815
|
+
ExternalLink (component, @altertable/data-app-react): (props: ExternalLinkProps) — Open HTTPS links through the host when embedded, or a native new tab when standalone.
|
|
816
|
+
ExternalLink.href: string
|
|
817
|
+
ExternalLink.children: ReactNode
|
|
818
|
+
ExternalLink.className?: string
|
|
819
|
+
ExternalLink.title?: string
|
|
820
|
+
ExternalLinkProps (type, @altertable/data-app-react): = props listed as ExternalLink.*
|
|
711
821
|
FilterActions (component, @altertable/data-app-react/ui): (props: FilterActionsProps)
|
|
712
822
|
FilterActions.onClear?: (() => void)
|
|
713
823
|
FilterActions.onApply: () => void [variant 1 of 2]
|
|
@@ -734,6 +844,13 @@ formatDateTime.options.locale?: string
|
|
|
734
844
|
formatDateTime.options.missing?: string
|
|
735
845
|
formatDateTime.options.timeZone?: string
|
|
736
846
|
formatDateTime.options.precision?: 'minute' | 'second'
|
|
847
|
+
formatDateTimeBound (function, @altertable/data-app/contract): (value: AbsoluteOrRelativeDateTime | null | undefined, fallback: string): string
|
|
848
|
+
formatDateTimeBound.value.anchor: RelativeAnchor [variant 2 of 2]
|
|
849
|
+
formatDateTimeBound.value.offset: RelativeOffset[] [variant 2 of 2]
|
|
850
|
+
formatDateTimeBound.value.…: plus props inherited from built-in
|
|
851
|
+
formatDateTimeRange (function, @altertable/data-app/contract, @altertable/data-app/format): (value: DateTimeRange): string
|
|
852
|
+
formatDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
853
|
+
formatDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
737
854
|
formatMetric (function, @altertable/data-app/format): (value: number, format: MetricFormat): string
|
|
738
855
|
formatMetric.format.kind: 'count' [variant 1 of 3]
|
|
739
856
|
formatMetric.format.compact?: boolean [variant 1 of 3]
|
|
@@ -905,7 +1022,7 @@ MetricFormat (type, @altertable/data-app/format): = props listed as formatMetric
|
|
|
905
1022
|
MetricReading (type, @altertable/data-app-react/ui)
|
|
906
1023
|
MetricReading.loading: true [variant 1 of 2]
|
|
907
1024
|
MetricReading.loading: false [variant 2 of 2]
|
|
908
|
-
MetricReading.value: MetricValues & { period?: DateRangeRequest | undefined; } [variant 2 of 2]
|
|
1025
|
+
MetricReading.value: MetricValues & { period?: DateRangeRequest | DateTimeRangeRequest | undefined; } [variant 2 of 2]
|
|
909
1026
|
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
1027
|
MetricRecords.render: (source: ViewSource<Data, Input>, navigation?: DetailNavigation | undefined) => { scope: string; content: FunctionComponentElement<{ content: DetailContent<any, any>; input: any; navigation?: DetailNavigation | undefined; }>; } | undefined
|
|
911
1028
|
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.
|
|
@@ -1041,6 +1158,18 @@ parseDateRangeInput.options.minDate?: string
|
|
|
1041
1158
|
parseDateRangeInput.options.maxDate?: string
|
|
1042
1159
|
parseDateRangeInput.options.maxRangeDays: number
|
|
1043
1160
|
parseDateTime (function, @altertable/data-app/format): (value: DateTimeValue): Date | null — Parse only unambiguous instants. String values must include `Z` or an explicit offset.
|
|
1161
|
+
parseDateTimeBound (function, @altertable/data-app/contract): (text: string): AbsoluteOrRelativeDateTime | null — Parse one bound without resolving relative anchors or offsets.
|
|
1162
|
+
parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
|
|
1163
|
+
parseDateTimeRange.options.maxRangeDays?: number
|
|
1164
|
+
parseDateTimeRangeInput (function, @altertable/data-app/format): (input: string, options: DateTimeRangeParserOptions): ParseDateTimeRangeResult
|
|
1165
|
+
parseDateTimeRangeInput.options.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
|
|
1166
|
+
ParseDateTimeRangeResult (type, @altertable/data-app/format)
|
|
1167
|
+
ParseDateTimeRangeResult.ok: true [variant 1 of 2]
|
|
1168
|
+
ParseDateTimeRangeResult.range: DateTimeRange [variant 1 of 2]
|
|
1169
|
+
ParseDateTimeRangeResult.normalizedInput: string
|
|
1170
|
+
ParseDateTimeRangeResult.parser: 'calendar-preset' | 'calendar-range' | 'chrono' | 'relative' | 'unix' [variant 1 of 2]
|
|
1171
|
+
ParseDateTimeRangeResult.ok: false [variant 2 of 2]
|
|
1172
|
+
ParseDateTimeRangeResult.reason: DateTimeRangeParseFailureReason [variant 2 of 2]
|
|
1044
1173
|
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
1174
|
parseDimensionSelection.filter.kind: 'dimension'
|
|
1046
1175
|
parseDimensionSelection.filter.label: string
|
|
@@ -1139,20 +1268,22 @@ QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @alte
|
|
|
1139
1268
|
QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
|
|
1140
1269
|
QueryField.type: keyof QueryValues
|
|
1141
1270
|
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?:
|
|
1271
|
+
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar or datetime-range parameters with optional fallback values.
|
|
1272
|
+
QueryParameter.type: 'dateTimeRange' [variant 1 of 9]
|
|
1273
|
+
QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5 of 9]
|
|
1274
|
+
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.
|
|
1275
|
+
QueryParameter.type: 'boolean' [variants 2, 6 of 9]
|
|
1276
|
+
QueryParameter.defaultValue?: boolean [variant 2 of 9]
|
|
1277
|
+
QueryParameter.type: 'null' [variants 3, 7 of 9]
|
|
1278
|
+
QueryParameter.defaultValue?: null [variants 3, 7 of 9]
|
|
1279
|
+
QueryParameter.type: 'number' [variants 4, 8 of 9]
|
|
1280
|
+
QueryParameter.defaultValue?: number [variant 4 of 9]
|
|
1281
|
+
QueryParameter.type: 'string' [variants 5, 9 of 9]
|
|
1282
|
+
QueryParameter.defaultValue?: string [variant 5 of 9]
|
|
1283
|
+
QueryParameter.nullable: true [variants 6, 7, 8, 9 of 9]
|
|
1284
|
+
QueryParameter.defaultValue?: boolean | null [variant 6 of 9]
|
|
1285
|
+
QueryParameter.defaultValue?: number | null [variant 8 of 9]
|
|
1286
|
+
QueryParameter.defaultValue?: string | null [variant 9 of 9]
|
|
1156
1287
|
QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
|
|
1157
1288
|
QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
|
|
1158
1289
|
QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
|
|
@@ -1183,6 +1314,14 @@ RankingItem.value: number
|
|
|
1183
1314
|
RankingItem.detail?: ReactNode
|
|
1184
1315
|
RankingProps (type, @altertable/data-app-react): = props listed as Ranking.*
|
|
1185
1316
|
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,…
|
|
1317
|
+
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'
|
|
1318
|
+
RelativeDateTime (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format)
|
|
1319
|
+
RelativeDateTime.anchor: RelativeAnchor
|
|
1320
|
+
RelativeDateTime.offset: RelativeOffset[]
|
|
1321
|
+
RelativeOffset (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format)
|
|
1322
|
+
RelativeOffset.amount: number
|
|
1323
|
+
RelativeOffset.unit: RelativeUnit
|
|
1324
|
+
RelativeUnit (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format): = 'DAY' | 'HOUR' | 'MINUTE' | 'MONTH' | 'SECOND' | 'WEEK' | 'YEAR'
|
|
1186
1325
|
ReportingPeriod (type, @altertable/data-app/contract, @altertable/data-app-react)
|
|
1187
1326
|
ReportingPeriod.kind: 'rolling' [variant 1 of 2]
|
|
1188
1327
|
ReportingPeriod.amount: number [variant 1 of 2]
|
|
@@ -1191,6 +1330,13 @@ ReportingPeriod.end: string
|
|
|
1191
1330
|
ReportingPeriod.kind: 'calendar' [variant 2 of 2]
|
|
1192
1331
|
ReportingPeriod.start: string [variant 2 of 2]
|
|
1193
1332
|
ReportingPeriod.timeZone: string [variant 2 of 2]
|
|
1333
|
+
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.
|
|
1334
|
+
resolveDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
1335
|
+
resolveDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
1336
|
+
resolveDateTimeRange.now.…: plus props inherited from built-in
|
|
1337
|
+
ResolvedDateTimeRange (type, @altertable/data-app/contract): Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
|
|
1338
|
+
ResolvedDateTimeRange.from: Date
|
|
1339
|
+
ResolvedDateTimeRange.to: Date
|
|
1194
1340
|
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
1341
|
RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
1196
1342
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|
|
@@ -1332,6 +1478,9 @@ Select.id?: string
|
|
|
1332
1478
|
Select.className?: string
|
|
1333
1479
|
Select.align?: 'end' | 'start' — Align the popup with the selection button. Defaults to start.
|
|
1334
1480
|
SelectProps (type, @altertable/data-app-react/ui): = props listed as Select.*
|
|
1481
|
+
serializeDateTimeRange (function, @altertable/data-app/contract): (value: DateTimeRange): string — Canonical URL/JSON representation. Dates retain their encoded UTC fields.
|
|
1482
|
+
serializeDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
|
|
1483
|
+
serializeDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
|
|
1335
1484
|
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
1485
|
Sheet.open: boolean
|
|
1337
1486
|
Sheet.onOpenChange: (open: boolean) => void
|
|
@@ -1480,7 +1629,7 @@ TextWidgetProps (type, @altertable/data-app-react): <Data, Input, Row> = props l
|
|
|
1480
1629
|
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
1630
|
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' — Appearance configured by app authors.
|
|
1482
1631
|
ThemePreference (type, @altertable/data-app/appearance): = 'system' | Theme
|
|
1483
|
-
Tooltip (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: TooltipProps) —
|
|
1632
|
+
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
1633
|
Tooltip.content: ReactNode
|
|
1485
1634
|
Tooltip.children: ReactNode
|
|
1486
1635
|
Tooltip.variant?: 'chart' | 'hint'
|
|
@@ -1508,7 +1657,7 @@ UpdatedAt.open?: boolean
|
|
|
1508
1657
|
UpdatedAt.onOpenChange?: ((open: boolean) => void)
|
|
1509
1658
|
UpdatedAt.timeZone?: string
|
|
1510
1659
|
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 &
|
|
1660
|
+
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.
|
|
1512
1661
|
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
1662
|
useDateFormatting.options.locale?: string
|
|
1514
1663
|
useDateFormatting.options.timeZone?: string
|
|
@@ -1519,7 +1668,7 @@ VariableBar (component, @altertable/data-app-react/ui): (props: VariableBarProps
|
|
|
1519
1668
|
VariableBar.children: ReactNode
|
|
1520
1669
|
VariableBar.…: plus props inherited from React
|
|
1521
1670
|
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 & { [Key in keyof Variables]: Variables[Key] extends { kind: 'dateRange'; } ? never : Variables[Key]; }): (value: unknown) => Input &
|
|
1671
|
+
variableInput (function, @altertable/data-app/contract): <Input extends object, const Variables extends VariableCollection>(parse: (value: unknown) => Input, variables: Variables & { [Key in keyof Variables]: Variables[Key] extends { kind: 'dateRange'; } ? never : Variables[Key]; }): (value: unknown) => Input & ParsedVariableValues<Variables> — Validate named variable values at the operation boundary. Date inputs belong to the base parser.
|
|
1523
1672
|
VariablePresentation (type, @altertable/data-app-react)
|
|
1524
1673
|
VariablePresentation.group?: 'display' | 'scope' — Scope changes the included data; display changes its presentation. Defaults to scope.
|
|
1525
1674
|
VariablePresentation.control?: 'toolbar' | 'widget' — Widget controls render beside their visualization instead of in the toolbar. Scope filters remain available in the Filters sheet and active summaries.
|