@altertable/data-app-react 0.77.0 → 0.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { DataAppDefinition, QueryDefinitions } from "@altertable/data-app/config";
2
- import { DataReading, DataView, DateTimeRangeComparison, DateTimeRangeFilter, DateTimeRangeFilterOptions, DateTimeRangePreset as DateTimeRangePreset$1, DateTimeRangeSelection, DisplayedSnapshot, FilterCollection, FilterValues, HistoryMode, MetricReading, dateTimeRangeFilter, dateTimeRangePresets } from "@altertable/data-app/internal";
2
+ import { DataReading, DateTimeRangeComparison, DateTimeRangeFilter, DateTimeRangeFilterOptions, DateTimeRangePreset as DateTimeRangePreset$1, DateTimeRangeSelection, DisplayedSnapshot, FilterCollection, FilterValues, HistoryMode, MetricReading, dateTimeRangeFilter, dateTimeRangePresets } from "@altertable/data-app/internal";
3
3
  import { CSSProperties, ComponentPropsWithRef, ComponentType, ReactNode, Ref, RefObject } from "react";
4
4
  import { Button } from "react-aria-components";
5
5
  import { Placement } from "@floating-ui/react";
@@ -175,12 +175,14 @@ type PresentStoryProps = {
175
175
  theme?: ThemeController;
176
176
  headerActions?: ReactNode;
177
177
  footer?: ReactNode;
178
+ /** False renders only the presentation, which `?present=1&step=` opens. */
179
+ trigger?: boolean;
178
180
  } & Omit<ComponentPropsWithRef<'button'>, 'title'>;
179
181
  /**
180
182
  * Uses an already loaded snapshot. Navigation is stored in `?present=1&step=`, and step
181
183
  * inspection uses `?about=`. The presentation owns its modal structure.
182
184
  */
183
- declare function PresentStory({ title, findings, empty, scope, dataContext, theme, headerActions, footer, children, className, onClick, disabled, ref, ...props }: PresentStoryProps): import("react").JSX.Element;
185
+ declare function PresentStory({ title, findings, empty, scope, dataContext, theme, headerActions, footer, trigger: showTrigger, children, className, onClick, disabled, ref, ...props }: PresentStoryProps): import("react").JSX.Element;
184
186
  //#endregion
185
187
  //#region src/ui/story.d.ts
186
188
  /** One consequential, inspectable finding from the displayed result. */
@@ -517,7 +519,6 @@ type TableWidgetProps<Row> = TableWidgetBaseProps<Row> & ({
517
519
  skeletonRows?: number;
518
520
  evidence: WidgetEvidence;
519
521
  });
520
- declare function TableWidget<Row>(props: TableWidgetProps<Row>): import("react").JSX.Element;
521
522
  //#endregion
522
523
  //#region src/styles.d.ts
523
524
  interface DataAppStylesOptions {
@@ -542,7 +543,7 @@ type DataAppStyle = CSSProperties & Partial<Record<DataAppStyleToken, string | n
542
543
  type DataAppStyleHooks = { [Name in keyof typeof dataAppStyleHooks]?: (typeof dataAppStyleHooks)[Name][number]; };
543
544
  //#endregion
544
545
  //#region src/mount.d.ts
545
- /** Mount once per document; installs document identity and the shared request provider. */
546
+ /** Mount once per browser document; server imports do not mount. */
546
547
  declare function mountDataApp<const Queries extends QueryDefinitions>({ app, component: Component, root }: {
547
548
  app: DataAppDefinition<Queries>;
548
549
  component: ComponentType;
@@ -571,84 +572,14 @@ declare function useAppFilters<const Collection extends FilterCollection>(defini
571
572
  };
572
573
  };
573
574
  //#endregion
574
- //#region src/ui/DataAppFrame.d.ts
575
- type DataAppBaseProps = {
576
- children: ReactNode;
577
- dataContext: DataContext;
578
- /** Override the declared subtitle; null hides it. */
579
- description?: ReactNode;
580
- /** Show page actions. Defaults to true; does not hide filters or data states. */
581
- showToolbar?: boolean;
582
- toolbarActions?: ReactNode;
583
- footerActions?: ReactNode;
584
- /** Optional source, coverage, or methodology note below the app content.
585
- * Compose prose and inline components; typography and spacing are provided.
586
- * Put data widgets in children and app controls in footerActions. */
587
- footer?: ReactNode;
588
- };
589
- type DataAppControlProps = {
590
- /** Show declared search controls. Defaults to true; hiding preserves their values. */
591
- showSearch?: boolean;
592
- /** Show declared filter controls, including display options. Defaults to true; hiding preserves their values. */
593
- showFilters?: boolean;
594
- };
595
- type StaticDataAppProps = DataAppBaseProps & {
596
- csvExport?: CsvExport;
597
- queries?: DisclosedQuery[];
598
- };
599
- //#endregion
600
- //#region src/ui/DataValue.d.ts
601
- type DataValueProps<Value> = {
602
- reading: DataReading<Value>;
603
- loadingFallback: ReactNode;
604
- children: (value: Value) => ReactNode;
605
- } & Omit<ComponentPropsWithRef<'span'>, 'children'>;
606
- /** Bind inline content to displayed data. Keep static wording outside this span. */
607
- declare function DataValue<Value>({ reading, loadingFallback, children, ...props }: DataValueProps<Value>): import("react").JSX.Element;
608
- //#endregion
609
- //#region src/ui/MetricWidget.d.ts
610
- type MetricWidgetBaseProps = {
611
- label: string;
612
- /** Document outline level. The label keeps the shared widget-heading appearance. */
613
- headingLevel?: 2 | 3 | 4 | 5 | 6;
614
- annotationId?: string;
575
+ //#region src/ui/Notice.d.ts
576
+ type NoticeProps = {
577
+ title: ReactNode;
615
578
  description?: ReactNode;
616
- comparison?: MetricComparison;
617
- evidence?: WidgetEvidence;
618
- records?: InspectionRecords;
619
579
  action?: ReactNode;
620
- status?: WidgetStatus;
621
- visual?: ReactNode;
622
- } & Omit<ComponentPropsWithRef<'div'>, 'about' | 'children'>;
623
- type UnboundMetricWidgetProps = MetricWidgetBaseProps & ({
624
- loading: true;
625
- value?: never;
626
- format?: never;
627
- content?: never;
628
- } | ({
629
- loading?: false;
630
- } & ({
631
- value: number;
632
- format: MetricFormat;
633
- content?: never;
634
- } | {
635
- content: ReactNode;
636
- value?: never;
637
- format?: never;
638
- })));
639
- /** VisualizationWidget with a formatted metric, optional comparison, and evidence. */
640
- type MetricWidgetProps = UnboundMetricWidgetProps | (Omit<MetricWidgetBaseProps, 'label' | 'comparison' | 'evidence'> & {
641
- metric: MetricDefinition;
642
- reading: MetricReading;
643
- label?: never;
644
- value?: never;
645
- format?: never;
646
- content?: never;
647
- comparison?: never;
648
- evidence?: never;
649
- loading?: never;
650
- });
651
- declare function MetricWidget(props: MetricWidgetProps): import("react").JSX.Element;
580
+ } & Omit<ComponentPropsWithRef<'aside'>, 'title' | 'children'>;
581
+ /** Quiet contextual feedback with an optional action. Content wraps before its action on narrow containers. */
582
+ declare function Notice({ title, description, action, className, ...props }: NoticeProps): import("react").JSX.Element;
652
583
  //#endregion
653
584
  //#region src/ui/DataWidget.d.ts
654
585
  type DataWidgetBaseProps = {
@@ -684,64 +615,6 @@ type DataWidgetProps<Data = unknown> = DataWidgetBaseProps & ((BoundWidgetReadin
684
615
  declare function DataWidgetInner<Data>(props: DataWidgetProps<Data>): import("react").JSX.Element;
685
616
  declare const DataWidget: typeof DataWidgetInner;
686
617
  //#endregion
687
- //#region src/ui/TextWidget.d.ts
688
- type TextWidgetBaseProps = Omit<Extract<DataWidgetProps, {
689
- reading?: never;
690
- }>, 'reading' | 'children' | 'isEmpty' | 'empty' | 'skeleton' | 'bodyPadding'>;
691
- /** Narrative sibling of VisualizationWidget, composing DataWidget with TextContent.
692
- * Use TextContent directly for borderless prose. Bind claims and scope to the same displayed reading.
693
- * The renderer handles every ready value, including zero and empty collections. */
694
- type TextWidgetProps<Data = unknown> = TextWidgetBaseProps & ({
695
- reading: DataReading<Data>;
696
- evidence: WidgetEvidence;
697
- children: (data: Data) => ReactNode;
698
- } | {
699
- reading?: never;
700
- children: ReactNode;
701
- });
702
- declare function TextWidget<Data>(props: TextWidgetProps<Data>): import("react").JSX.Element;
703
- //#endregion
704
- //#region src/ui/VisualizationWidget.d.ts
705
- type VisualizationWidgetBaseProps = Pick<DataWidgetProps, 'title' | 'headingLevel' | 'annotationId' | 'description' | 'count' | 'action' | 'evidence' | 'records' | 'status' | 'emptyFallback'> & {
706
- /** Footer controls, such as table pagination. */
707
- footer?: ReactNode;
708
- } & Omit<ComponentPropsWithRef<'section'>, 'about' | 'title' | 'children'>;
709
- type UnboundVisualizationWidgetProps = VisualizationWidgetBaseProps & ({
710
- loading: true;
711
- loadingContent?: ReactNode;
712
- visual?: never;
713
- } | {
714
- loading?: false;
715
- visual: ReactNode;
716
- loadingContent?: never;
717
- });
718
- type VisualizationWidgetView<Data> = {
719
- /** Stable, nonempty identity; unique within this widget. */
720
- id: string;
721
- label: ReactNode;
722
- render: (data: Data) => ReactNode;
723
- };
724
- type BoundVisualizationWidgetBase<Data> = VisualizationWidgetBaseProps & BoundWidgetReading<Data> & {
725
- visual?: never;
726
- loading?: never;
727
- };
728
- /** DataWidget frame for charts, DataTable, metrics, or a custom data display.
729
- * Owns alternate-view selection and shares it with inspection. Built-in charts own
730
- * transient tooltips; lift persistent custom interactions above both mounts.
731
- * For narrative prose use the sibling TextWidget, which composes DataWidget directly. */
732
- type VisualizationWidgetProps<Data = unknown> = UnboundVisualizationWidgetProps | (BoundVisualizationWidgetBase<Data> & {
733
- children: (data: Data) => ReactNode;
734
- views?: never;
735
- }) | (BoundVisualizationWidgetBase<Data> & {
736
- views: readonly VisualizationWidgetView<Data>[];
737
- viewLabel: string;
738
- /** An existing view ID; defaults to the first view. Validated while loading too. */
739
- initialView?: string;
740
- children?: never;
741
- });
742
- /** Compose an unframed visual with the shared heading and inspection. */
743
- declare function VisualizationWidget<Data>(props: VisualizationWidgetProps<Data>): import("react").JSX.Element;
744
- //#endregion
745
618
  //#region src/ui/HelpPopover.d.ts
746
619
  type HelpPopoverTriggerProps = Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'> & DataAppStyleHooks;
747
620
  type HelpPopoverPanelProps = Omit<ComponentPropsWithRef<'section'>, 'children' | 'role'>;
@@ -809,6 +682,7 @@ type AppIconProps = Omit<LucideProps, 'size'> & {
809
682
  name: AppIconName;
810
683
  size?: number | string;
811
684
  };
685
+ /** Defaults to the shared control icon size so icons follow density tokens. */
812
686
  declare function AppIcon({ name, size, strokeWidth, style, ...props }: AppIconProps): import("react").FunctionComponentElement<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
813
687
  //#endregion
814
688
  //#region src/ui/Tooltip.d.ts
@@ -913,5 +787,5 @@ type DateTimeRangePickerProps = {
913
787
  */
914
788
  declare function DateTimeRangePicker({ value, onChange, liveOption, comparison, isDefault, onReset, calendarFooter, className, placeholder, label, labelPlacement, maxRangeDays, policy, presets: configuredPresets, disabled }: DateTimeRangePickerProps): import("react").JSX.Element;
915
789
  //#endregion
916
- export { SearchHit as $, DataAppControlProps as A, GlossaryEntry as At, DataAppProvider as B, AboutEmpty as Bt, DataWidget as C, ExplorationActionControl as Ct, DataValue as D, AuthoringDataContext as Dt, MetricWidgetProps as E, EmptyContent as Et, DateTimeRangePreset$1 as F, PresentStoryProps as Ft, DataAppStylesOptions as G, Button$1 as Gt, DataAppStyle as H, AboutTab as Ht, DateTimeRangeSelection as I, MetricDefinition as It, TableWidget as J, MetricComparison as Jt, injectDataAppStyles as K, ButtonProps as Kt, dateTimeRangeFilter as L, WidgetEvidence as Lt, DateTimeRangeComparison as M, BoundStory as Mt, DateTimeRangeFilter as N, StoryFinding as Nt, DataValueProps as O, DataContext as Ot, DateTimeRangeFilterOptions as P, PresentStory as Pt, SearchAttribute as Q, defineDataIdentifiers as Qt, dateTimeRangePresets as R, AboutData as Rt, TextWidgetProps as S, ExplorationAction as St, MetricWidget as T, ItemActions as Tt, DataAppStyleHooks as U, Sheet as Ut, mountDataApp as V, AboutSubject as Vt, DataAppStyleToken as W, SheetProps as Wt, TableWidgetProps as X, DataIdentifierDefinition as Xt, TableWidgetColumn as Y, ColumnIdentifier as Yt, TableWidgetSearch as Z, TableIdentifier as Zt, HelpPopoverProps as _, SearchField as _t, DateDisplay as a, WidgetStatus as at, VisualizationWidgetView as b, CsvExport as bt, SectionHeadingProps as c, DataTableEmptyRowProps as ct, TooltipProvider as d, DataTableShare as dt, SearchItemsOptions as et, TooltipProviderProps as f, DataTableTimestamp as ft, HelpPopover as g, SearchTypeaheadProps as gt, AppIconProps as h, SearchTypeahead as ht, useDateFormatting as i, searchItems as it, StaticDataAppProps as j, createDataContext as jt, DataAppBaseProps as k, EvidenceDeclaration as kt, Tooltip as l, DataTableProps as lt, AppIconName as m, SearchSuggestion as mt, DateTimeRangePickerProps as n, SearchRange as nt, DateDisplayProps as o, DataTable as ot, AppIcon as p, DataTableTimestampProps as pt, TableDisplayMode as q, PressButton as qt, ControlLabelPlacement as r, matchSearchText as rt, SectionHeading as s, DataTableEmptyRow as st, DateTimeRangePicker as t, SearchMatchValue as tt, TooltipProps as u, DataTableSearch as ut, VisualizationWidget as v, SearchFieldProps as vt, DataWidgetProps as w, ExplorationActionControlProps as wt, TextWidget as x, CsvTable as xt, VisualizationWidgetProps as y, CsvCell as yt, useAppFilters as z, AboutDataProps as zt };
790
+ export { DataTableSearch as $, DataAppProvider as A, AboutEmpty as At, TableWidgetSearch as B, ColumnIdentifier as Bt, DateTimeRangeFilter as C, StoryFinding as Ct, dateTimeRangeFilter as D, WidgetEvidence as Dt, DateTimeRangeSelection as E, MetricDefinition as Et, DataAppStylesOptions as F, SheetProps as Ft, SearchRange as G, SearchHit as H, TableIdentifier as Ht, injectDataAppStyles as I, Button$1 as It, WidgetStatus as J, matchSearchText as K, TableDisplayMode as L, ButtonProps as Lt, DataAppStyle as M, AboutTab as Mt, DataAppStyleHooks as N, InspectionRecords as Nt, dateTimeRangePresets as O, AboutData as Ot, DataAppStyleToken as P, Sheet as Pt, DataTableProps as Q, TableWidgetColumn as R, PressButton as Rt, DateTimeRangeComparison as S, BoundStory as St, DateTimeRangePreset$1 as T, PresentStoryProps as Tt, SearchItemsOptions as U, defineDataIdentifiers as Ut, SearchAttribute as V, DataIdentifierDefinition as Vt, SearchMatchValue as W, DataTableEmptyRow as X, DataTable as Y, DataTableEmptyRowProps as Z, HelpPopoverProps as _, AuthoringDataContext as _t, DateDisplay as a, SearchTypeaheadProps as at, Notice as b, GlossaryEntry as bt, SectionHeadingProps as c, CsvCell as ct, TooltipProvider as d, ExplorationAction as dt, DataTableShare as et, TooltipProviderProps as f, ExplorationActionControl as ft, HelpPopover as g, EmptyContent as gt, AppIconProps as h, BoundWidgetReading as ht, useDateFormatting as i, SearchTypeahead as it, mountDataApp as j, AboutSubject as jt, useAppFilters as k, AboutDataProps as kt, Tooltip as l, CsvExport as lt, AppIconName as m, ItemActions as mt, DateTimeRangePickerProps as n, DataTableTimestampProps as nt, DateDisplayProps as o, SearchField as ot, AppIcon as p, ExplorationActionControlProps as pt, searchItems as q, ControlLabelPlacement as r, SearchSuggestion as rt, SectionHeading as s, SearchFieldProps as st, DateTimeRangePicker as t, DataTableTimestamp as tt, TooltipProps as u, CsvTable as ut, DataWidget as v, DataContext as vt, DateTimeRangeFilterOptions as w, PresentStory as wt, NoticeProps as x, createDataContext as xt, DataWidgetProps as y, EvidenceDeclaration as yt, TableWidgetProps as z, MetricComparison as zt };
917
791
  //# sourceMappingURL=DateTimeRangePicker.d.ts.map
@@ -1,4 +1,4 @@
1
- import { A as DataAppControlProps, At as GlossaryEntry, Dt as AuthoringDataContext, E as MetricWidgetProps$1, Et as EmptyContent, G as DataAppStylesOptions, Gt as Button, H as DataAppStyle, It as MetricDefinition, Jt as MetricComparison, K as injectDataAppStyles, Kt as ButtonProps, Lt as WidgetEvidence, N as DateTimeRangeFilter, Nt as StoryFinding, O as DataValueProps$1, Ot as DataContext, Qt as defineDataIdentifiers, S as TextWidgetProps$1, Tt as ItemActions, U as DataAppStyleHooks, V as mountDataApp, W as DataAppStyleToken, X as TableWidgetProps$1, Xt as DataIdentifierDefinition, Y as TableWidgetColumn, Yt as ColumnIdentifier, Z as TableWidgetSearch, Zt as TableIdentifier, _ as HelpPopoverProps, a as DateDisplay, b as VisualizationWidgetView$1, c as SectionHeadingProps, d as TooltipProvider, f as TooltipProviderProps, i as useDateFormatting, jt as createDataContext, k as DataAppBaseProps, kt as EvidenceDeclaration, l as Tooltip, m as AppIconName, mt as SearchSuggestion, n as DateTimeRangePickerProps, o as DateDisplayProps, q as TableDisplayMode, s as SectionHeading, t as DateTimeRangePicker, u as TooltipProps, xt as CsvTable, y as VisualizationWidgetProps$1, yt as CsvCell } from "./chunks/DateTimeRangePicker.js";
1
+ import { B as TableWidgetSearch, Bt as ColumnIdentifier, C as DateTimeRangeFilter, Ct as StoryFinding, Dt as WidgetEvidence, Et as MetricDefinition, F as DataAppStylesOptions, Ht as TableIdentifier, I as injectDataAppStyles, It as Button, J as WidgetStatus, L as TableDisplayMode, Lt as ButtonProps, M as DataAppStyle, N as DataAppStyleHooks, Nt as InspectionRecords, P as DataAppStyleToken, R as TableWidgetColumn, Ut as defineDataIdentifiers, Vt as DataIdentifierDefinition, _ as HelpPopoverProps, _t as AuthoringDataContext, a as DateDisplay, b as Notice, bt as GlossaryEntry, c as SectionHeadingProps, ct as CsvCell, d as TooltipProvider, f as TooltipProviderProps, gt as EmptyContent, ht as BoundWidgetReading, i as useDateFormatting, j as mountDataApp, l as Tooltip, m as AppIconName, mt as ItemActions, n as DateTimeRangePickerProps, o as DateDisplayProps, rt as SearchSuggestion, s as SectionHeading, t as DateTimeRangePicker, u as TooltipProps, ut as CsvTable, vt as DataContext, x as NoticeProps, xt as createDataContext, y as DataWidgetProps, yt as EvidenceDeclaration, z as TableWidgetProps$1, zt as MetricComparison } from "./chunks/DateTimeRangePicker.js";
2
2
  import { DataClient, InputOf, OutputOf } from "@altertable/data-app/client";
3
3
  import { ChoiceFilter, DataReading, DataView, DisplayedSnapshot, FilterCollection, FilterInput, FilterValues, IsUnion, MetricReading, MetricValues, MetricValues as MetricValues$1 } from "@altertable/data-app/internal";
4
4
  import { ComponentPropsWithRef, ReactNode, Ref, RefObject } from "react";
@@ -80,9 +80,10 @@ type ResolvedViewDefinition<Name extends string, Filters extends FilterCollectio
80
80
  /** The operation's date filter, which sets the reporting period. */
81
81
  dateFilter?: keyof Filters & string;
82
82
  };
83
- /** Omit both for a result that is never empty, such as a total. */
83
+ /** Omit both for rows, or for a result that is never empty, such as a total. */
84
84
  type ViewEmptiness<Data> = {
85
- /** App-owned semantics: measured zero need not mean an empty result. Defaults to never empty. */
85
+ /** App-owned semantics: measured zero need not mean an empty result.
86
+ * @default A result with no rows is empty; any other result never is */
86
87
  isEmpty?: (data: Data) => boolean;
87
88
  /** Inherited by DataSection unless it supplies its own copy. */
88
89
  emptyFallback?: EmptyContent;
@@ -208,7 +209,8 @@ type SourceReading<Source, Value> = Source extends {
208
209
  loading: false;
209
210
  value: Value;
210
211
  };
211
- /** Keys supply IDs; accessors supply raw CSV values. Formats affect display only. */
212
+ /** Keys supply IDs; accessors supply raw CSV values. Formats affect display only.
213
+ * A column named after a row field reads that field; set `value` for computed columns. */
212
214
  type DatasetColumn<Row> = {
213
215
  label?: string;
214
216
  } & ({
@@ -228,10 +230,41 @@ type DatasetColumn<Row> = {
228
230
  kind: 'date';
229
231
  }>;
230
232
  });
233
+ /** A column that reads the row field named by its key. */
234
+ type DatasetFieldColumn<Row> = {
235
+ label?: string;
236
+ value?: never;
237
+ format?: ((row: Row) => ReactNode) | MetricFormat | DateFormat;
238
+ };
239
+ /** The field values a format can display. */
240
+ type FormattedField<Format> = Format extends {
241
+ kind: 'date';
242
+ } ? string | null | undefined : Format extends {
243
+ kind: 'dateTime';
244
+ } ? string | number | null | undefined : Format extends MetricFormat ? number | null | undefined : CsvCell;
245
+ /** Checks columns without `value`: the key must name a row field its format can display.
246
+ * A failed check asks for the explicit accessor. TypeScript cannot run this check when
247
+ * the same dataset declares inline accessors; a misnamed column then shows missing values. */
248
+ type DatasetColumns<Row, Columns> = string extends keyof Columns ? unknown : { [Key in keyof Columns]: Columns[Key] extends {
249
+ value: object;
250
+ } ? unknown : FormattedField<Columns[Key] extends {
251
+ format: infer Format;
252
+ } ? Format : undefined> extends (infer Field) ? Key extends keyof Row ? [Row[Key]] extends [Field] ? unknown : {
253
+ value: (row: Row) => Field;
254
+ } : {
255
+ value: (row: Row) => Field;
256
+ } : never; };
257
+ /** The rows of an operation that returns them directly. */
258
+ type DatasetRows<Data> = Data extends readonly (infer Row)[] ? Row : never;
259
+ /** `select` is required unless the operation returns the rows themselves. */
260
+ type DatasetSelect<Data, Input, Row> = Data extends readonly unknown[] ? unknown : {
261
+ select: (data: Data, input: Input) => readonly Row[];
262
+ };
231
263
  type DatasetDefinition<Data, Input, Row, Evidence = WidgetEvidence> = {
232
264
  name: string;
233
- select: (data: Data, input: Input) => readonly Row[];
234
- columns: Record<string, DatasetColumn<NoInfer<Row>>>;
265
+ /** Rows to bind. Omit when the operation returns the rows themselves. */
266
+ select?: (data: Data, input: Input) => readonly Row[];
267
+ columns: Record<string, DatasetColumn<NoInfer<Row>> | DatasetFieldColumn<NoInfer<Row>>>;
235
268
  rowKey: (row: NoInfer<Row>) => string | number;
236
269
  evidence: Evidence;
237
270
  emptyFallback?: EmptyContent;
@@ -327,6 +360,11 @@ declare class MetricRecords<Data, Input, DetailData, DetailInput> {
327
360
  //#endregion
328
361
  //#region src/hooks.d.ts
329
362
  type NonEmptyColumns<Columns extends object> = keyof Columns extends never ? never : Columns;
363
+ /** A view's dataset: rows default to the operation's result, and a column named
364
+ * after a row field reads it. Evidence references are checked against the view's context. */
365
+ type BoundDatasetDefinition<Data, Input, Row, Columns extends Record<string, object>, Context extends AuthoringDataContext> = DatasetDefinition<Data, Input, Row, Parameters<Context['evidence']>[0]> & DatasetSelect<Data, Input, Row> & {
366
+ columns: Columns & NonEmptyColumns<Columns> & DatasetColumns<NoInfer<Row>, NoInfer<Columns>>;
367
+ };
330
368
  /** The filters an operation declares; `{}` when it reads none. */
331
369
  type FiltersOf<Operation> = Operation extends {
332
370
  filters: infer Filters extends FilterCollection;
@@ -348,9 +386,7 @@ type BoundView<Name extends string, Filters extends FilterCollection, Data, Cont
348
386
  }> & {
349
387
  filter(): FilterTarget<FilterPatch<Filters>>;
350
388
  breakdown<Key extends DisplayChoiceName<Filters>>(key: Key): Filters[Key] extends ChoiceFilter<infer Value> ? BreakdownTarget<Value> : never;
351
- dataset<Row, const Columns extends Record<string, object> = Record<string, object>>(definition: DatasetDefinition<Data, FilterInput<Filters>, Row, Parameters<Context['evidence']>[0]> & {
352
- columns: Columns & NonEmptyColumns<Columns>;
353
- }): Dataset<Data, FilterInput<Filters>, Row>;
389
+ dataset<Row = DatasetRows<Data>, const Columns extends Record<string, object> = Record<string, object>>(definition: BoundDatasetDefinition<Data, FilterInput<Filters>, Row, Columns, Context>): Dataset<Data, FilterInput<Filters>, Row>;
354
390
  metric(definition: Parameters<Context['metric']>[0], select: (data: Data, input: FilterInput<Filters>) => HasPeriod<Filters> extends true ? MetricValues$1 : {
355
391
  current: number;
356
392
  previous?: never;
@@ -359,9 +395,7 @@ type BoundView<Name extends string, Filters extends FilterCollection, Data, Cont
359
395
  content(render: (state: DataContentState<Data, FilterInput<Filters>>) => ReactNode): ViewContent<Data, FilterInput<Filters>>;
360
396
  };
361
397
  type BoundDetailView<Data, Input, Context extends AuthoringDataContext, Own = Input> = DetailView<Data, Input, Own> & {
362
- dataset<Row, const Columns extends Record<string, object> = Record<string, object>>(definition: DatasetDefinition<Data, Input, Row, Parameters<Context['evidence']>[0]> & {
363
- columns: Columns & NonEmptyColumns<Columns>;
364
- }): Dataset<Data, Input, Row>;
398
+ dataset<Row = DatasetRows<Data>, const Columns extends Record<string, object> = Record<string, object>>(definition: BoundDatasetDefinition<Data, Input, Row, Columns, Context>): Dataset<Data, Input, Row>;
365
399
  metric(definition: Parameters<Context['metric']>[0], select: (data: Data, input: Input) => {
366
400
  current: number;
367
401
  previous?: never;
@@ -380,6 +414,31 @@ export declare function createDataHooks<Operations extends DataOperations>(clien
380
414
  }) => BoundDetailView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Context, DetailOwnInput<Operations[Name]>>;
381
415
  };
382
416
  //#endregion
417
+ //#region src/ui/DataAppFrame.d.ts
418
+ type DataAppBaseProps = {
419
+ children: ReactNode;
420
+ dataContext: DataContext;
421
+ /** Override the declared subtitle; null hides it. */
422
+ description?: ReactNode;
423
+ /** Show page actions. Defaults to true; does not hide filters or data states.
424
+ * Embedded surfaces have no toolbar: the host runs page actions through its bridge. */
425
+ showToolbar?: boolean;
426
+ /** Standalone toolbar controls; embedded surfaces omit them. */
427
+ toolbarActions?: ReactNode;
428
+ /** Standalone footer controls; embedded surfaces omit them. */
429
+ footerActions?: ReactNode;
430
+ /** Optional source, coverage, or methodology note below the app content.
431
+ * Compose prose and inline components; typography and spacing are provided.
432
+ * Put data widgets in children and app controls in footerActions. */
433
+ footer?: ReactNode;
434
+ };
435
+ type DataAppControlProps = {
436
+ /** Show declared search controls. Defaults to true; hiding preserves their values. */
437
+ showSearch?: boolean;
438
+ /** Show declared filter controls, including display options. Defaults to true; hiding preserves their values. */
439
+ showFilters?: boolean;
440
+ };
441
+ //#endregion
383
442
  //#region src/ui/DataApp.d.ts
384
443
  /** A declared data or time view that `<DataApp>` can run and describe. */
385
444
  type DataAppView<Data, Input> = DeclaredView<Data, Input> & {
@@ -396,6 +455,14 @@ type ExportOf<View> = View extends {
396
455
  type StoryFindings = readonly (Omit<StoryFinding, 'evidence'> & {
397
456
  evidence: RegisteredBinding;
398
457
  })[];
458
+ /** A setup or static screen: the page shell without a view, filters, story, or export. */
459
+ type DataAppScreenProps = DataAppBaseProps & {
460
+ view?: never;
461
+ summaryViews?: never;
462
+ story?: never;
463
+ datasets?: never;
464
+ details?: never;
465
+ };
399
466
  type DataAppProps<Data, Input = unknown, SummaryViews extends readonly AnyView[] = []> = Omit<DataAppBaseProps, 'dataContext'> & DataAppControlProps & {
400
467
  /** The headline view. `<DataApp>` renders the controls for every filter its
401
468
  * client's operations read and owns their URL state. */
@@ -413,8 +480,10 @@ type DataAppProps<Data, Input = unknown, SummaryViews extends readonly AnyView[]
413
480
  /** Detail destinations available to dataset actions and metric record inspection. */
414
481
  details?: readonly DetailContent<any, any>[];
415
482
  };
483
+ /** Renders a setup or static screen from its `dataContext` and children. */
484
+ export declare function DataApp(props: DataAppScreenProps): ReactNode;
416
485
  /** Executes the primary view and its summary views, and owns controls, inspection, exports, and stories. */
417
- export declare function DataApp<Data, Input, const SummaryViews extends readonly AnyView[] = []>(props: DataAppProps<Data, Input, SummaryViews>): import("react").JSX.Element;
486
+ export declare function DataApp<Data, Input, const SummaryViews extends readonly AnyView[] = []>(props: DataAppProps<Data, Input, SummaryViews>): ReactNode;
418
487
  //#endregion
419
488
  //#region src/ui/Stack.d.ts
420
489
  type StackProps = {
@@ -450,6 +519,111 @@ type TextContentProps = ComponentPropsWithRef<'div'>;
450
519
  /** Prose typography for page introductions, widget bodies, and inspection content. */
451
520
  export declare function TextContent({ className, ...props }: TextContentProps): import("react").JSX.Element;
452
521
  //#endregion
522
+ //#region src/ui/DataValue.d.ts
523
+ type DataValueProps$1<Value> = {
524
+ reading: DataReading<Value>;
525
+ loadingFallback: ReactNode;
526
+ children: (value: Value) => ReactNode;
527
+ } & Omit<ComponentPropsWithRef<'span'>, 'children'>;
528
+ //#endregion
529
+ //#region src/ui/MetricWidget.d.ts
530
+ type MetricWidgetBaseProps = {
531
+ label: string;
532
+ /** Document outline level. The label keeps the shared widget-heading appearance. */
533
+ headingLevel?: 2 | 3 | 4 | 5 | 6;
534
+ annotationId?: string;
535
+ description?: ReactNode;
536
+ comparison?: MetricComparison;
537
+ evidence?: WidgetEvidence;
538
+ records?: InspectionRecords;
539
+ action?: ReactNode;
540
+ status?: WidgetStatus;
541
+ visual?: ReactNode;
542
+ } & Omit<ComponentPropsWithRef<'div'>, 'about' | 'children'>;
543
+ type UnboundMetricWidgetProps = MetricWidgetBaseProps & ({
544
+ loading: true;
545
+ value?: never;
546
+ format?: never;
547
+ content?: never;
548
+ } | ({
549
+ loading?: false;
550
+ } & ({
551
+ value: number;
552
+ format: MetricFormat;
553
+ content?: never;
554
+ } | {
555
+ content: ReactNode;
556
+ value?: never;
557
+ format?: never;
558
+ })));
559
+ /** VisualizationWidget with a formatted metric, optional comparison, and evidence. */
560
+ type MetricWidgetProps$1 = UnboundMetricWidgetProps | (Omit<MetricWidgetBaseProps, 'label' | 'comparison' | 'evidence'> & {
561
+ metric: MetricDefinition;
562
+ reading: MetricReading;
563
+ label?: never;
564
+ value?: never;
565
+ format?: never;
566
+ content?: never;
567
+ comparison?: never;
568
+ evidence?: never;
569
+ loading?: never;
570
+ });
571
+ //#endregion
572
+ //#region src/ui/TextWidget.d.ts
573
+ type TextWidgetBaseProps = Omit<Extract<DataWidgetProps, {
574
+ reading?: never;
575
+ }>, 'reading' | 'children' | 'isEmpty' | 'empty' | 'skeleton' | 'bodyPadding'>;
576
+ /** Narrative sibling of VisualizationWidget, composing DataWidget with TextContent.
577
+ * Use TextContent directly for borderless prose. Bind claims and scope to the same displayed reading.
578
+ * The renderer handles every ready value, including zero and empty collections. */
579
+ type TextWidgetProps$1<Data = unknown> = TextWidgetBaseProps & ({
580
+ reading: DataReading<Data>;
581
+ evidence: WidgetEvidence;
582
+ children: (data: Data) => ReactNode;
583
+ } | {
584
+ reading?: never;
585
+ children: ReactNode;
586
+ });
587
+ //#endregion
588
+ //#region src/ui/VisualizationWidget.d.ts
589
+ type VisualizationWidgetBaseProps = Pick<DataWidgetProps, 'title' | 'headingLevel' | 'annotationId' | 'description' | 'count' | 'action' | 'evidence' | 'records' | 'status' | 'emptyFallback'> & {
590
+ /** Footer controls, such as table pagination. */
591
+ footer?: ReactNode;
592
+ } & Omit<ComponentPropsWithRef<'section'>, 'about' | 'title' | 'children'>;
593
+ type UnboundVisualizationWidgetProps = VisualizationWidgetBaseProps & ({
594
+ loading: true;
595
+ loadingContent?: ReactNode;
596
+ visual?: never;
597
+ } | {
598
+ loading?: false;
599
+ visual: ReactNode;
600
+ loadingContent?: never;
601
+ });
602
+ type VisualizationWidgetView$1<Data> = {
603
+ /** Stable, nonempty identity; unique within this widget. */
604
+ id: string;
605
+ label: ReactNode;
606
+ render: (data: Data) => ReactNode;
607
+ };
608
+ type BoundVisualizationWidgetBase<Data> = VisualizationWidgetBaseProps & BoundWidgetReading<Data> & {
609
+ visual?: never;
610
+ loading?: never;
611
+ };
612
+ /** DataWidget frame for charts, DataTable, metrics, or a custom data display.
613
+ * Owns alternate-view selection and shares it with inspection. Built-in charts own
614
+ * transient tooltips; lift persistent custom interactions above both mounts.
615
+ * For narrative prose use the sibling TextWidget, which composes DataWidget directly. */
616
+ type VisualizationWidgetProps$1<Data = unknown> = UnboundVisualizationWidgetProps | (BoundVisualizationWidgetBase<Data> & {
617
+ children: (data: Data) => ReactNode;
618
+ views?: never;
619
+ }) | (BoundVisualizationWidgetBase<Data> & {
620
+ views: readonly VisualizationWidgetView$1<Data>[];
621
+ viewLabel: string;
622
+ /** An existing view ID; defaults to the first view. Validated while loading too. */
623
+ initialView?: string;
624
+ children?: never;
625
+ });
626
+ //#endregion
453
627
  //#region src/widgets.d.ts
454
628
  type MetricWidgetProps<Data = unknown, Input = unknown> = Omit<Extract<MetricWidgetProps$1, {
455
629
  metric: MetricDefinition;
@@ -744,5 +918,5 @@ export declare function AnnotationBar({ ref, annotations, active, theme, disable
744
918
  /** Install only the outer-frame annotation controls; leave host page typography and layout intact. */
745
919
  export declare function injectDataAppAnnotationStyles(options?: DataAppStylesOptions): HTMLStyleElement;
746
920
  //#endregion
747
- export { type ActionBuilder, type AnnotationBarHandle, type AnnotationBarProps, type AnnotationTargetProps, type BreakdownItem, type BreakdownProps, Button, type ButtonProps, type ColumnIdentifier, type ComparisonProps, type CsvCell, type DataAppProps, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataAppStylesOptions, type DataAppView, type DataContext, type DataIdentifierDefinition, type DataSectionProps, type DataValueProps, type Dataset, type DatasetColumn, type DatasetDeclaration as DatasetDefinition, type DatasetSuggestionOptions, DateDisplay, type DateDisplayProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DateTimeTooltipProps, type DetailAction, type DetailViewDefinition, type EmptyStateProps, type ExternalLinkProps, type GlossaryEntry, type GridItemProps, type GridProps, type IconButtonProps, type MetricDefinition, type MetricRecords, type MetricValues, type MetricWidgetProps, type PeriodComparison, type PeriodSummaryProps, type RankingItem, type RankingProps, type ReportingPeriod, SectionHeading, type SectionHeadingProps, type SkeletonProps, type StackProps, type TableIdentifier, type TableWidgetProps, type TableWidgetSearch, type TextContentProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type UpdatedAtProps, type ViewSource, type VisualizationWidgetProps, type VisualizationWidgetView, type WidgetEvidence, createDataContext, defineDataIdentifiers, injectDataAppStyles, mountDataApp, useDateFormatting };
921
+ export { type ActionBuilder, type AnnotationBarHandle, type AnnotationBarProps, type AnnotationTargetProps, type BreakdownItem, type BreakdownProps, Button, type ButtonProps, type ColumnIdentifier, type ComparisonProps, type CsvCell, type DataAppProps, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataAppStylesOptions, type DataAppView, type DataContext, type DataIdentifierDefinition, type DataSectionProps, type DataValueProps, type Dataset, type DatasetColumn, type DatasetDeclaration as DatasetDefinition, type DatasetSuggestionOptions, DateDisplay, type DateDisplayProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DateTimeTooltipProps, type DetailAction, type DetailViewDefinition, type EmptyStateProps, type ExternalLinkProps, type GlossaryEntry, type GridItemProps, type GridProps, type IconButtonProps, type MetricDefinition, type MetricRecords, type MetricValues, type MetricWidgetProps, Notice, type NoticeProps, type PeriodComparison, type PeriodSummaryProps, type RankingItem, type RankingProps, type ReportingPeriod, SectionHeading, type SectionHeadingProps, type SkeletonProps, type StackProps, type TableIdentifier, type TableWidgetProps, type TableWidgetSearch, type TextContentProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type UpdatedAtProps, type ViewSource, type VisualizationWidgetProps, type VisualizationWidgetView, type WidgetEvidence, createDataContext, defineDataIdentifiers, injectDataAppStyles, mountDataApp, useDateFormatting };
748
922
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,11 @@
1
- import { $ as SearchHit, At as GlossaryEntry, B as DataAppProvider, Bt as AboutEmpty, C as DataWidget, Ct as ExplorationActionControl, D as DataValue, E as MetricWidgetProps, F as DateTimeRangePreset, Ft as PresentStoryProps, H as DataAppStyle, Ht as AboutTab, I as DateTimeRangeSelection, J as TableWidget$1, K as injectDataAppStyles, L as dateTimeRangeFilter, M as DateTimeRangeComparison, Mt as BoundStory, N as DateTimeRangeFilter, Nt as StoryFinding, O as DataValueProps, Ot as DataContext, P as DateTimeRangeFilterOptions, Pt as PresentStory, Q as SearchAttribute, R as dateTimeRangePresets, Rt as AboutData, S as TextWidgetProps, St as ExplorationAction, T as MetricWidget$1, Tt as ItemActions, U as DataAppStyleHooks, Ut as Sheet, Vt as AboutSubject, W as DataAppStyleToken, Wt as SheetProps, X as TableWidgetProps, Y as TableWidgetColumn, _ as HelpPopoverProps, _t as SearchField, a as DateDisplay, at as WidgetStatus, bt as CsvExport, c as SectionHeadingProps, ct as DataTableEmptyRowProps, d as TooltipProvider, dt as DataTableShare, et as SearchItemsOptions, f as TooltipProviderProps, ft as DataTableTimestamp, g as HelpPopover, gt as SearchTypeaheadProps, h as AppIconProps, ht as SearchTypeahead, i as useDateFormatting, it as searchItems, j as StaticDataAppProps, l as Tooltip, lt as DataTableProps, m as AppIconName, mt as SearchSuggestion, n as DateTimeRangePickerProps, nt as SearchRange, o as DateDisplayProps, ot as DataTable, p as AppIcon, pt as DataTableTimestampProps, qt as PressButton, r as ControlLabelPlacement, rt as matchSearchText, s as SectionHeading, st as DataTableEmptyRow, t as DateTimeRangePicker, tt as SearchMatchValue, u as TooltipProps, ut as DataTableSearch, v as VisualizationWidget$1, vt as SearchFieldProps, w as DataWidgetProps, wt as ExplorationActionControlProps, x as TextWidget$1, xt as CsvTable, y as VisualizationWidgetProps, z as useAppFilters, zt as AboutDataProps } from "../chunks/DateTimeRangePicker.js";
1
+ import { $ as DataTableSearch, A as DataAppProvider, At as AboutEmpty, C as DateTimeRangeFilter, Ct as StoryFinding, D as dateTimeRangeFilter, E as DateTimeRangeSelection, Ft as SheetProps, G as SearchRange, H as SearchHit, I as injectDataAppStyles, J as WidgetStatus, K as matchSearchText, M as DataAppStyle, Mt as AboutTab, N as DataAppStyleHooks, O as dateTimeRangePresets, Ot as AboutData, P as DataAppStyleToken, Pt as Sheet, Q as DataTableProps, R as TableWidgetColumn, Rt as PressButton, S as DateTimeRangeComparison, St as BoundStory, T as DateTimeRangePreset, Tt as PresentStoryProps, U as SearchItemsOptions, V as SearchAttribute, W as SearchMatchValue, X as DataTableEmptyRow, Y as DataTable, Z as DataTableEmptyRowProps, _ as HelpPopoverProps, a as DateDisplay, at as SearchTypeaheadProps, b as Notice, bt as GlossaryEntry, c as SectionHeadingProps, d as TooltipProvider, dt as ExplorationAction, et as DataTableShare, f as TooltipProviderProps, ft as ExplorationActionControl, g as HelpPopover, h as AppIconProps, i as useDateFormatting, it as SearchTypeahead, jt as AboutSubject, k as useAppFilters, kt as AboutDataProps, l as Tooltip, lt as CsvExport, m as AppIconName, mt as ItemActions, n as DateTimeRangePickerProps, nt as DataTableTimestampProps, o as DateDisplayProps, ot as SearchField, p as AppIcon, pt as ExplorationActionControlProps, q as searchItems, r as ControlLabelPlacement, rt as SearchSuggestion, s as SectionHeading, st as SearchFieldProps, t as DateTimeRangePicker, tt as DataTableTimestamp, u as TooltipProps, ut as CsvTable, v as DataWidget, vt as DataContext, w as DateTimeRangeFilterOptions, wt as PresentStory, x as NoticeProps, y as DataWidgetProps } from "../chunks/DateTimeRangePicker.js";
2
+ import { DataClient } from "@altertable/data-app/client";
2
3
  import { ChoiceOption, ChoiceOption as ChoiceOption$1, DataReading, DimensionSelectionFilter, DimensionValue, MetricReading } from "@altertable/data-app/internal";
3
4
  import { ComponentProps, ComponentPropsWithRef, ReactNode, RefAttributes } from "react";
4
5
  import { MenuItemProps, MenuProps, MenuSection, MenuTrigger, MenuTriggerProps, NumberField as NumberField$1, Popover, Radio as Radio$1, RadioGroup as RadioGroup$1, Separator } from "react-aria-components";
5
6
  import { Tab as Tab$1, TabListProps, TabPanel as TabPanel$1, TabPanels, Tabs as Tabs$1 } from "react-aria-components/Tabs";
6
7
  import { MetricFormat } from "@altertable/data-app/format";
7
- import { DimensionOption, DimensionSelection, DisclosedQuery, NumberFilter, NumberSelection } from "@altertable/data-app/contract";
8
+ import { ConnectionOperation, DimensionOption, DimensionSelection, DisclosedQuery, NumberFilter, NumberSelection } from "@altertable/data-app/contract";
8
9
  import { AreaProps, BarProps, Brush, CartesianGrid, ComposedChart as ComposedChart$1, DefaultTooltipContent, DotProps, ErrorBar, Label as Label$1, LabelList, Legend, LineProps, ReferenceArea, ReferenceDot, ReferenceLine, Scatter, Tooltip as Tooltip$1, XAxis, YAxis, ZAxis } from "recharts";
9
10
  //#region src/ui/keyboard.d.ts
10
11
  type KeyEvent = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'isComposing'>;
@@ -15,9 +16,12 @@ export declare function isPlainKeyEvent(event: KeyEvent, { allowShift }?: {
15
16
  //#endregion
16
17
  //#region src/ui/GettingStarted.d.ts
17
18
  /** Query-backed connection state and next steps for a newly created app. Mount within
18
- * `DataAppProvider` and register `connection: connectionCheck(app.queries)` on the server. */
19
- export declare function GettingStarted({ dataContext }: {
19
+ * `DataAppProvider` and supply the app's registered connection operation. */
20
+ export declare function GettingStarted({ dataContext, client }: {
20
21
  dataContext: DataContext;
22
+ client: DataClient<{
23
+ connection: ConnectionOperation;
24
+ }>;
21
25
  }): import("react").JSX.Element;
22
26
  //#endregion
23
27
  //#region src/ui/DimensionPicker.d.ts
@@ -164,11 +168,6 @@ type CheckboxProps = {
164
168
  });
165
169
  export declare function Checkbox({ label, description, checked, value, onChange, disabled, className }: CheckboxProps): import("react").JSX.Element;
166
170
  //#endregion
167
- //#region src/ui/StaticDataApp.d.ts
168
- type DataAppProps = StaticDataAppProps;
169
- /** Setup and static screens; fetched data uses the declared-view DataApp. */
170
- export declare function DataApp({ csvExport, ...props }: DataAppProps): import("react").JSX.Element;
171
- //#endregion
172
171
  //#region src/ui/use-chart-cursor-group.d.ts
173
172
  declare const groupBrand: unique symbol;
174
173
  /** Opaque shared-cursor handle. Create with useChartCursorGroup and pass through chart cursorGroup props. */
@@ -285,10 +284,17 @@ type BarChartItem = ChartItem & {
285
284
  /** Milliseconds since the Unix epoch. Enables adaptive time ticks when no item actions are supplied. */
286
285
  time?: number;
287
286
  };
288
- type BarChartProps<Row extends BarChartItem = BarChartItem> = CartesianChartProps<Row>;
287
+ type BarChartProps<Row extends BarChartItem = BarChartItem> = CartesianChartProps<Row> & {
288
+ /** Show a vertical value scale beside the bars. */
289
+ showYAxis?: boolean;
290
+ /** Automatically reveal the last items after updates. Disable for ranked categories. */
291
+ scrollToEnd?: boolean;
292
+ /** Formats the vertical axis and, unless overridden, inspected values. */
293
+ valueFormat?: MetricFormat;
294
+ };
289
295
  /** Nonnegative category values. Compose inside VisualizationWidget for a titled panel.
290
296
  * Owns hover/touch tooltips; no selection state or keyboard navigation. */
291
- export declare function BarChart<Row extends BarChartItem>({ items, unit, ariaLabel, formatValue, itemActions, cursorGroup, horizontalGrid }: BarChartProps<Row>): import("react").JSX.Element;
297
+ export declare function BarChart<Row extends BarChartItem>({ items, unit, ariaLabel, formatValue: authoredFormatValue, itemActions, cursorGroup, horizontalGrid, showYAxis, scrollToEnd, valueFormat }: BarChartProps<Row>): import("react").JSX.Element;
292
298
  //#endregion
293
299
  //#region src/ui/Select.d.ts
294
300
  type SelectProps = {
@@ -401,7 +407,8 @@ export declare function NumberFilterPicker({ filter, value, onChange, disabled,
401
407
  /**
402
408
  * Infers temporal input from ISO dates, zoned ISO timestamps, and Date values.
403
409
  * Use scale="utc" for epoch milliseconds or type="category" for date-like categories.
404
- * Explicit tick formatters and tick lists retain authored axis behavior.
410
+ * Explicit tick formatters and tick lists retain authored axis behavior while
411
+ * date-like values still receive readable tooltip labels.
405
412
  */
406
413
  declare function ChartXAxis<Row = unknown, Value = string | number | Date>(props: ComponentProps<typeof XAxis<Row, Value>>): import("react").JSX.Element;
407
414
  //#endregion
@@ -410,7 +417,6 @@ declare function ChartXAxis<Row = unknown, Value = string | number | Date>(props
410
417
  declare function ChartDot({ active, stroke, fill, r, ...props }: DotProps & {
411
418
  active?: boolean;
412
419
  }): import("react").JSX.Element;
413
- /** Shared series defaults; native props override every authored choice. */
414
420
  declare function ChartBar<Row = unknown, Value = number | null>(props: BarProps<Row, Value>): import("react").JSX.Element;
415
421
  /** Sample dots are opt-in with dot=true.
416
422
  * activeDot independently controls the hovered point. Native dot props and renderers remain available. */
@@ -452,7 +458,7 @@ type ComposedChartProps<Row = unknown> = HorizontalGridProps & Omit<ComponentPro
452
458
  * for stacks. Preserve missing measures as null and choose connectNulls deliberately.
453
459
  * Use public chart tokens for series colors. Dataset bindings own
454
460
  * loading, empty results, evidence, and CSV; this primitive owns only the plot. */
455
- declare function ComposedChartRoot<Row>({ data, ariaLabel, valueFormat, cursorGroup, horizontalGrid, children, width, height, responsive, layout, className, ...props }: ComposedChartProps<Row>): import("react").JSX.Element;
461
+ declare function ComposedChartRoot<Row>(props: ComposedChartProps<Row>): import("react").JSX.Element;
456
462
  /** Shared themed series and controls; other children retain native Recharts defaults. */
457
463
  export declare const ComposedChart: typeof ComposedChartRoot & {
458
464
  Dot: typeof ChartDot;
@@ -592,12 +598,5 @@ export declare function JourneyChart({ paths, unit, ariaLabel, className, format
592
598
  /** Stable React ID for SVG definitions and their URL references; safe with identifier prefixes. */
593
599
  export declare function useSvgId(): string;
594
600
  //#endregion
595
- //#region src/ui/index.d.ts
596
- export declare const TextWidget: typeof TextWidget$1;
597
- /** Compose an unframed visual with the shared heading and inspection. */
598
- export declare const VisualizationWidget: typeof VisualizationWidget$1;
599
- export declare const TableWidget: typeof TableWidget$1;
600
- export declare const MetricWidget: typeof MetricWidget$1;
601
- //#endregion
602
- export { AboutData, type AboutDataProps, type AboutEmpty, type AboutSubject, type AboutTab, AppIcon, type AppIconName, type AppIconProps, type AreaChartItem, type AreaChartProps, type BarChartItem, type BarChartProps, type BoundStory, type ChartCursorGroup, type ChartLegendItemProps, type ChartLegendLabelProps, type ChartLegendMarkerKind, type ChartLegendMarkerProps, type ChartLegendProps, type CheckboxGroupProps, type CheckboxProps, type ChoiceOption, type ChoicePickerProps, type ComposedChartLegendProps, type ComposedChartProps, type ControlBarProps, type CsvExport, type CsvTable, type DataAppProps, DataAppProvider, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataReading, DataTable, DataTableEmptyRow, type DataTableEmptyRowProps, type DataTableProps, type DataTableSearch, DataTableShare, DataTableTimestamp, type DataTableTimestampProps, DataValue, type DataValueProps, DataWidget, type DataWidgetProps, DateDisplay, type DateDisplayProps, type DateTimeRangeComparison, type DateTimeRangeFilter, type DateTimeRangeFilterOptions, DateTimeRangePicker, type DateTimeRangePickerProps, type DateTimeRangePreset, type DateTimeRangeSelection, type ExplorationAction, ExplorationActionControl, type ExplorationActionControlProps, type FilterActionsProps, type FilterBarProps, type FunnelChartProps, type FunnelChartSeries, type FunnelChartStep, type GlossaryDefinitionProps, type GlossaryExplanationProps, type GradientScrollProps, HelpPopover, type HelpPopoverProps, type ItemActions, type JourneyChartPath, type JourneyChartProps, type LineChartItem, type LineChartProps, type LiveControlProps, type LiveIntervalSeconds, PressButton as MenuButton, type MenuItemProps, type MenuPopoverProps, type MenuProps, MenuSection, MenuTrigger, type MenuTriggerProps, type MetricReading, type MetricWidgetProps, type NumberFieldProps, type NumberFilterPickerProps, type NumberRange, type NumberRangeFieldProps, type PieChartItem, type PieChartProps, PresentStory, type PresentStoryProps, type RadioGroupProps, type RadioProps, type RetentionChartPoint, type RetentionChartProps, type RetentionChartSeries, type ScatterChartItem, type ScatterChartProps, type SearchAttribute, SearchField, type SearchFieldProps, type SearchHit, type SearchItemsOptions, type SearchMatchProps, type SearchMatchValue, type SearchRange, type SearchSuggestion, SearchTypeahead, type SearchTypeaheadProps, SectionHeading, type SectionHeadingProps, type SegmentedControlProps, type SelectProps, Sheet, type SheetProps, type ShimmerTextProps, type StoryFinding, TabPanels, type TableWidgetColumn, type TableWidgetProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type VisualizationWidgetProps, type WidgetStatus, dateTimeRangeFilter, dateTimeRangePresets, injectDataAppStyles, matchSearchText, searchItems, useAppFilters, useDateFormatting };
601
+ export { AboutData, type AboutDataProps, type AboutEmpty, type AboutSubject, type AboutTab, AppIcon, type AppIconName, type AppIconProps, type AreaChartItem, type AreaChartProps, type BarChartItem, type BarChartProps, type BoundStory, type ChartCursorGroup, type ChartLegendItemProps, type ChartLegendLabelProps, type ChartLegendMarkerKind, type ChartLegendMarkerProps, type ChartLegendProps, type CheckboxGroupProps, type CheckboxProps, type ChoiceOption, type ChoicePickerProps, type ComposedChartLegendProps, type ComposedChartProps, type ControlBarProps, type CsvExport, type CsvTable, DataAppProvider, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataReading, DataTable, DataTableEmptyRow, type DataTableEmptyRowProps, type DataTableProps, type DataTableSearch, DataTableShare, DataTableTimestamp, type DataTableTimestampProps, DataWidget, type DataWidgetProps, DateDisplay, type DateDisplayProps, type DateTimeRangeComparison, type DateTimeRangeFilter, type DateTimeRangeFilterOptions, DateTimeRangePicker, type DateTimeRangePickerProps, type DateTimeRangePreset, type DateTimeRangeSelection, type ExplorationAction, ExplorationActionControl, type ExplorationActionControlProps, type FilterActionsProps, type FilterBarProps, type FunnelChartProps, type FunnelChartSeries, type FunnelChartStep, type GlossaryDefinitionProps, type GlossaryExplanationProps, type GradientScrollProps, HelpPopover, type HelpPopoverProps, type ItemActions, type JourneyChartPath, type JourneyChartProps, type LineChartItem, type LineChartProps, type LiveControlProps, type LiveIntervalSeconds, PressButton as MenuButton, type MenuItemProps, type MenuPopoverProps, type MenuProps, MenuSection, MenuTrigger, type MenuTriggerProps, type MetricReading, Notice, type NoticeProps, type NumberFieldProps, type NumberFilterPickerProps, type NumberRange, type NumberRangeFieldProps, type PieChartItem, type PieChartProps, PresentStory, type PresentStoryProps, type RadioGroupProps, type RadioProps, type RetentionChartPoint, type RetentionChartProps, type RetentionChartSeries, type ScatterChartItem, type ScatterChartProps, type SearchAttribute, SearchField, type SearchFieldProps, type SearchHit, type SearchItemsOptions, type SearchMatchProps, type SearchMatchValue, type SearchRange, type SearchSuggestion, SearchTypeahead, type SearchTypeaheadProps, SectionHeading, type SectionHeadingProps, type SegmentedControlProps, type SelectProps, Sheet, type SheetProps, type ShimmerTextProps, type StoryFinding, TabPanels, type TableWidgetColumn, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type WidgetStatus, dateTimeRangeFilter, dateTimeRangePresets, injectDataAppStyles, matchSearchText, searchItems, useAppFilters, useDateFormatting };
603
602
  //# sourceMappingURL=index.d.ts.map