@altertable/data-app-react 0.77.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/chunks/{SectionHeading-Bz5RIXit.js → SectionHeading-BKvi7HVv.js} +250 -103
- package/dist/chunks/SectionHeading-BKvi7HVv.js.map +1 -0
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/types/chunks/DateTimeRangePicker.d.ts +19 -4
- package/dist/types/index.d.ts +2 -2
- package/dist/types/ui/index.d.ts +20 -9
- package/dist/ui/index.js +449 -152
- package/dist/ui/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunks/SectionHeading-Bz5RIXit.js.map +0 -1
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as NoticeProps, At as DataContext, B as dateTimeRangePresets, Bt as AboutData, C as DataWidget, Ct as CsvTable, D as DataValue, Dt as ItemActions, E as MetricWidgetProps, Et as ExplorationActionControlProps, F as DateTimeRangeFilter, Ft as StoryFinding, G as DataAppStyleHooks, Gt as Sheet, H as DataAppProvider, Ht as AboutEmpty, I as DateTimeRangeFilterOptions, It as PresentStory, J as injectDataAppStyles, K as DataAppStyleToken, Kt as SheetProps, L as DateTimeRangePreset, Lt as PresentStoryProps, Mt as GlossaryEntry, N as StaticDataAppProps, O as DataValueProps, P as DateTimeRangeComparison, Pt as BoundStory, Q as TableWidgetProps, R as DateTimeRangeSelection, S as TextWidgetProps, St as CsvExport, T as MetricWidget$1, Tt as ExplorationActionControl, Ut as AboutSubject, V as useAppFilters, Vt as AboutDataProps, W as DataAppStyle, Wt as AboutTab, X as TableWidget$1, Yt as PressButton, Z as TableWidgetColumn, _ as HelpPopoverProps, _t as SearchTypeahead, a as DateDisplay, at as matchSearchText, bt as SearchFieldProps, c as SectionHeadingProps, ct as DataTable, d as TooltipProvider, dt as DataTableProps, et as SearchAttribute, f as TooltipProviderProps, ft as DataTableSearch, g as HelpPopover, gt as SearchSuggestion, h as AppIconProps, ht as DataTableTimestampProps, i as useDateFormatting, it as SearchRange, k as Notice, l as Tooltip, lt as DataTableEmptyRow, m as AppIconName, mt as DataTableTimestamp, n as DateTimeRangePickerProps, nt as SearchItemsOptions, o as DateDisplayProps, ot as searchItems, p as AppIcon, pt as DataTableShare, r as ControlLabelPlacement, rt as SearchMatchValue, s as SectionHeading, st as WidgetStatus, t as DateTimeRangePicker, tt as SearchHit, u as TooltipProps, ut as DataTableEmptyRowProps, v as VisualizationWidget$1, vt as SearchTypeaheadProps, w as DataWidgetProps, wt as ExplorationAction, x as TextWidget$1, y as VisualizationWidgetProps, yt as SearchField, z as dateTimeRangeFilter } 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
|
|
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
|
|
@@ -285,10 +289,17 @@ type BarChartItem = ChartItem & {
|
|
|
285
289
|
/** Milliseconds since the Unix epoch. Enables adaptive time ticks when no item actions are supplied. */
|
|
286
290
|
time?: number;
|
|
287
291
|
};
|
|
288
|
-
type BarChartProps<Row extends BarChartItem = BarChartItem> = CartesianChartProps<Row
|
|
292
|
+
type BarChartProps<Row extends BarChartItem = BarChartItem> = CartesianChartProps<Row> & {
|
|
293
|
+
/** Show a vertical value scale beside the bars. */
|
|
294
|
+
showYAxis?: boolean;
|
|
295
|
+
/** Automatically reveal the last items after updates. Disable for ranked categories. */
|
|
296
|
+
scrollToEnd?: boolean;
|
|
297
|
+
/** Formats the vertical axis and, unless overridden, inspected values. */
|
|
298
|
+
valueFormat?: MetricFormat;
|
|
299
|
+
};
|
|
289
300
|
/** Nonnegative category values. Compose inside VisualizationWidget for a titled panel.
|
|
290
301
|
* 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;
|
|
302
|
+
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
303
|
//#endregion
|
|
293
304
|
//#region src/ui/Select.d.ts
|
|
294
305
|
type SelectProps = {
|
|
@@ -401,7 +412,8 @@ export declare function NumberFilterPicker({ filter, value, onChange, disabled,
|
|
|
401
412
|
/**
|
|
402
413
|
* Infers temporal input from ISO dates, zoned ISO timestamps, and Date values.
|
|
403
414
|
* Use scale="utc" for epoch milliseconds or type="category" for date-like categories.
|
|
404
|
-
* Explicit tick formatters and tick lists retain authored axis behavior
|
|
415
|
+
* Explicit tick formatters and tick lists retain authored axis behavior while
|
|
416
|
+
* date-like values still receive readable tooltip labels.
|
|
405
417
|
*/
|
|
406
418
|
declare function ChartXAxis<Row = unknown, Value = string | number | Date>(props: ComponentProps<typeof XAxis<Row, Value>>): import("react").JSX.Element;
|
|
407
419
|
//#endregion
|
|
@@ -410,7 +422,6 @@ declare function ChartXAxis<Row = unknown, Value = string | number | Date>(props
|
|
|
410
422
|
declare function ChartDot({ active, stroke, fill, r, ...props }: DotProps & {
|
|
411
423
|
active?: boolean;
|
|
412
424
|
}): import("react").JSX.Element;
|
|
413
|
-
/** Shared series defaults; native props override every authored choice. */
|
|
414
425
|
declare function ChartBar<Row = unknown, Value = number | null>(props: BarProps<Row, Value>): import("react").JSX.Element;
|
|
415
426
|
/** Sample dots are opt-in with dot=true.
|
|
416
427
|
* activeDot independently controls the hovered point. Native dot props and renderers remain available. */
|
|
@@ -599,5 +610,5 @@ export declare const VisualizationWidget: typeof VisualizationWidget$1;
|
|
|
599
610
|
export declare const TableWidget: typeof TableWidget$1;
|
|
600
611
|
export declare const MetricWidget: typeof MetricWidget$1;
|
|
601
612
|
//#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 };
|
|
613
|
+
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, 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, type TableWidgetProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type VisualizationWidgetProps, type WidgetStatus, dateTimeRangeFilter, dateTimeRangePresets, injectDataAppStyles, matchSearchText, searchItems, useAppFilters, useDateFormatting };
|
|
603
614
|
//# sourceMappingURL=index.d.ts.map
|