@altertable/data-app-react 0.76.0 → 0.77.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,10 +1,10 @@
1
- import { $t as StoryFinding, At as SearchFieldProps, B as DateTimeRangePreset, Bt as AboutData, C as DataWidget, Ct as DataTableShare, D as DataValue, Dt as SearchTypeahead, E as MetricWidgetProps, Et as SearchSuggestion, Ft as ExplorationActionControl, Gt as Sheet, H as DateTimeRangeVariableOptions, Ht as AboutEmpty, I as DateTimeRangeComparisonRequest, It as ExplorationActionControlProps, J as dateTimeRangeVariable, Jt as DataContext, Kt as SheetProps, L as DateTimeRangeComparisonSelection, Lt as ItemActions, Mt as CsvExport, Nt as CsvTable, O as DataValueProps, Ot as SearchTypeaheadProps, Pt as ExplorationAction, Q as DataAppProvider, Qt as BoundStory, R as DateTimeRangeComparisonVariable, S as TextWidgetProps, St as DataTableSearch, T as MetricWidget$1, Tt as DataTableTimestampProps, Ut as AboutSubject, V as DateTimeRangeVariable, Vt as AboutDataProps, Wt as AboutTab, Xt as GlossaryEntry, Z as useAppVariables, _ as HelpPopoverProps, _t as WidgetStatus, a as DateDisplay, bt as DataTableEmptyRowProps, c as SectionHeadingProps, ct as TableWidgetProps, d as TooltipProvider, dt as SearchHit, en as PresentStory, et as DataAppStyle, f as TooltipProviderProps, ft as SearchItemsOptions, g as HelpPopover, gt as searchItems, h as AppIconProps, ht as matchSearchText, i as useDateFormatting, it as injectDataAppStyles, j as StaticDataAppProps, kt as SearchField, l as Tooltip, m as AppIconName, mt as SearchRange, n as DateTimeRangePickerProps, nt as DataAppStyleToken, o as DateDisplayProps, ot as TableWidget$1, p as AppIcon, pt as SearchMatchValue, q as dateTimeRangePresets, r as ControlLabelPlacement, s as SectionHeading, st as TableWidgetColumn, t as DateTimeRangePicker, tn as PresentStoryProps, tt as DataAppStyleHooks, u as TooltipProps, un as PressButton, ut as SearchAttribute, v as VisualizationWidget$1, vt as DataTable, w as DataWidgetProps, wt as DataTableTimestamp, x as TextWidget$1, xt as DataTableProps, y as VisualizationWidgetProps, yt as DataTableEmptyRow, z as DateTimeRangeComparisonVariableOptions } from "../chunks/DateTimeRangePicker.js";
2
- import { ChoiceOption, ChoiceOption as ChoiceOption$1, DataReading, DimensionSelectionVariable, DimensionValue, MetricReading } from "@altertable/data-app/internal";
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";
2
+ import { ChoiceOption, ChoiceOption as ChoiceOption$1, DataReading, DimensionSelectionFilter, DimensionValue, MetricReading } from "@altertable/data-app/internal";
3
3
  import { ComponentProps, ComponentPropsWithRef, ReactNode, RefAttributes } from "react";
4
4
  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
5
  import { Tab as Tab$1, TabListProps, TabPanel as TabPanel$1, TabPanels, Tabs as Tabs$1 } from "react-aria-components/Tabs";
6
- import { DimensionOption, DimensionSelection, DisclosedQuery, NumberFilter, NumberSelection } from "@altertable/data-app/contract";
7
6
  import { MetricFormat } from "@altertable/data-app/format";
7
+ import { DimensionOption, DimensionSelection, DisclosedQuery, NumberFilter, NumberSelection } from "@altertable/data-app/contract";
8
8
  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
9
  //#region src/ui/keyboard.d.ts
10
10
  type KeyEvent = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'isComposing'>;
@@ -23,7 +23,7 @@ export declare function GettingStarted({ dataContext }: {
23
23
  //#region src/ui/DimensionPicker.d.ts
24
24
  /** Adapts the typed dimension contract to the shared ChoicePicker control. */
25
25
  export declare function DimensionPicker<T extends DimensionValue>({ filter, labelPlacement, value, onChange, options: suppliedOptions, loading, error, onRetry }: {
26
- filter: DimensionSelectionVariable<T>;
26
+ filter: DimensionSelectionFilter<T>;
27
27
  labelPlacement?: ControlLabelPlacement;
28
28
  value: DimensionSelection<T>;
29
29
  onChange: (value: DimensionSelection<T>) => void;
@@ -167,7 +167,7 @@ export declare function Checkbox({ label, description, checked, value, onChange,
167
167
  //#region src/ui/StaticDataApp.d.ts
168
168
  type DataAppProps = StaticDataAppProps;
169
169
  /** Setup and static screens; fetched data uses the declared-view DataApp. */
170
- export declare function DataApp(props: DataAppProps): import("react").JSX.Element;
170
+ export declare function DataApp({ csvExport, ...props }: DataAppProps): import("react").JSX.Element;
171
171
  //#endregion
172
172
  //#region src/ui/use-chart-cursor-group.d.ts
173
173
  declare const groupBrand: unique symbol;
@@ -367,12 +367,12 @@ export declare function NumberRangeField({ label, value, onChange, onValidityCha
367
367
  type FilterBarProps = ComponentPropsWithRef<'div'>;
368
368
  export declare function FilterBar({ className, role, 'aria-label': label, ...props }: FilterBarProps): import("react").JSX.Element;
369
369
  //#endregion
370
- //#region src/ui/VariableBar.d.ts
371
- type VariableBarProps = {
370
+ //#region src/ui/ControlBar.d.ts
371
+ type ControlBarProps = {
372
372
  children: ReactNode;
373
373
  } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
374
374
  /** User-controlled inputs below the page header. */
375
- export declare function VariableBar({ children, className, role, 'aria-label': ariaLabel, ...props }: VariableBarProps): import("react").JSX.Element;
375
+ export declare function ControlBar({ children, className, role, 'aria-label': ariaLabel, ...props }: ControlBarProps): import("react").JSX.Element;
376
376
  //#endregion
377
377
  //#region src/ui/FilterActions.d.ts
378
378
  type FilterActionsProps = {
@@ -426,11 +426,12 @@ declare function ChartTooltip(props: ComponentProps<typeof Tooltip$1>): import("
426
426
  //#region src/ui/ComposedChartLegend.d.ts
427
427
  type ComposedChartLegendProps = ComponentProps<typeof Legend> & {
428
428
  maxVisibleItems?: number;
429
+ /** Enable hover emphasis and click to focus one or more series. */
430
+ interactive?: boolean;
429
431
  };
430
432
  /** Opt in inside ComposedChart to derive the shared legend from its displayed series.
431
- * Give native series unique IDs when they share a data key.
432
433
  * Native positioning, sorting, formatters, callbacks, and custom content remain available. */
433
- declare function ComposedChartLegend({ maxVisibleItems, ...props }: ComposedChartLegendProps): import("react").JSX.Element;
434
+ declare function ComposedChartLegend({ maxVisibleItems, interactive, ...props }: ComposedChartLegendProps): import("react").JSX.Element;
434
435
  //#endregion
435
436
  //#region src/ui/ComposedChart.d.ts
436
437
  type ComposedChartProps<Row = unknown> = HorizontalGridProps & Omit<ComponentProps<typeof ComposedChart$1<Row>>, 'data' | 'title'> & {
@@ -451,7 +452,7 @@ type ComposedChartProps<Row = unknown> = HorizontalGridProps & Omit<ComponentPro
451
452
  * for stacks. Preserve missing measures as null and choose connectNulls deliberately.
452
453
  * Use public chart tokens for series colors. Dataset bindings own
453
454
  * loading, empty results, evidence, and CSV; this primitive owns only the plot. */
454
- declare function ComposedChartRoot<Row>({ data, ariaLabel, valueFormat, cursorGroup, horizontalGrid, children, width, height, responsive, className, ...props }: ComposedChartProps<Row>): import("react").JSX.Element;
455
+ declare function ComposedChartRoot<Row>({ data, ariaLabel, valueFormat, cursorGroup, horizontalGrid, children, width, height, responsive, layout, className, ...props }: ComposedChartProps<Row>): import("react").JSX.Element;
455
456
  /** Shared themed series and controls; other children retain native Recharts defaults. */
456
457
  export declare const ComposedChart: typeof ComposedChartRoot & {
457
458
  Dot: typeof ChartDot;
@@ -523,10 +524,12 @@ type FunnelChartSeries = {
523
524
  type FunnelChartProps = CountChartProps & HorizontalGridProps & {
524
525
  steps: readonly FunnelChartStep[];
525
526
  series: readonly FunnelChartSeries[];
527
+ /** Disable legend hover and focus controls. */
528
+ interactiveLegend?: boolean;
526
529
  };
527
530
  /** Conversion columns with previous-step drop-off, normalized to each series' first step.
528
531
  * Owns series highlighting and portion-specific inspection; compose inside VisualizationWidget. */
529
- export declare function FunnelChart({ steps, series, unit, ariaLabel, className, formatValue, horizontalGrid }: FunnelChartProps): import("react").JSX.Element;
532
+ export declare function FunnelChart({ steps, series, unit, ariaLabel, className, formatValue, horizontalGrid, interactiveLegend }: FunnelChartProps): import("react").JSX.Element;
530
533
  //#endregion
531
534
  //#region src/ui/RetentionChart.d.ts
532
535
  type RetentionChartPoint = {
@@ -551,10 +554,12 @@ type RetentionChartSeries = {
551
554
  };
552
555
  type RetentionChartProps = CountChartProps & HorizontalGridProps & {
553
556
  series: readonly RetentionChartSeries[];
557
+ /** Disable legend hover and focus controls. */
558
+ interactiveLegend?: boolean;
554
559
  };
555
560
  /** Query-defined retention curves with count inspection and dotted incomplete periods.
556
561
  * Rates are not recomputed from counts. Compose inside VisualizationWidget. */
557
- export declare function RetentionChart({ series, unit, ariaLabel, className, formatValue, horizontalGrid }: RetentionChartProps): import("react").JSX.Element;
562
+ export declare function RetentionChart({ series, unit, ariaLabel, className, formatValue, horizontalGrid, interactiveLegend }: RetentionChartProps): import("react").JSX.Element;
558
563
  //#endregion
559
564
  //#region src/ui/journey-flow.d.ts
560
565
  /** Aggregated route; repeated events remain distinct by depth and prefix. */
@@ -594,5 +599,5 @@ export declare const VisualizationWidget: typeof VisualizationWidget$1;
594
599
  export declare const TableWidget: typeof TableWidget$1;
595
600
  export declare const MetricWidget: typeof MetricWidget$1;
596
601
  //#endregion
597
- 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 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 DateTimeRangeComparisonRequest, type DateTimeRangeComparisonSelection, type DateTimeRangeComparisonVariable, type DateTimeRangeComparisonVariableOptions, DateTimeRangePicker, type DateTimeRangePickerProps, type DateTimeRangePreset, type DateTimeRangeVariable, type DateTimeRangeVariableOptions, 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 VariableBarProps, type VisualizationWidgetProps, type WidgetStatus, dateTimeRangePresets, dateTimeRangeVariable, injectDataAppStyles, matchSearchText, searchItems, useAppVariables, useDateFormatting };
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 };
598
603
  //# sourceMappingURL=index.d.ts.map