@altertable/data-app-react 0.71.0 → 0.73.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 -6
- package/dist/chunks/SectionHeading-CVenpddF.js +7813 -0
- package/dist/chunks/SectionHeading-CVenpddF.js.map +1 -0
- package/dist/index.js +1004 -2847
- package/dist/index.js.map +1 -23
- package/dist/types/chunks/date-formatting.d.ts +863 -0
- package/dist/types/index.d.ts +745 -78
- package/dist/types/ui/index.d.ts +572 -111
- package/dist/ui/index.js +2779 -3403
- package/dist/ui/index.js.map +1 -36
- package/package.json +7 -6
- package/dist/chunks/index-1nbjx0se.js +0 -17022
- package/dist/chunks/index-1nbjx0se.js.map +0 -120
- package/dist/types/actions.d.ts +0 -53
- package/dist/types/annotations/AnnotationBar.d.ts +0 -30
- package/dist/types/annotations/AnnotationControls.d.ts +0 -10
- package/dist/types/annotations/AnnotationEditor.d.ts +0 -16
- package/dist/types/annotations/AnnotationMarkers.d.ts +0 -19
- package/dist/types/annotations/AnnotationSelectionLayer.d.ts +0 -12
- package/dist/types/annotations/AnnotationTarget.d.ts +0 -9
- package/dist/types/annotations/AnnotationTooltip.d.ts +0 -9
- package/dist/types/annotations/AnnotationTrigger.d.ts +0 -10
- package/dist/types/annotations/annotation-editor-state.d.ts +0 -58
- package/dist/types/annotations/annotation-screenshot.d.ts +0 -4
- package/dist/types/annotations/annotation-targets.d.ts +0 -34
- package/dist/types/annotations/getAnnotationProps.d.ts +0 -17
- package/dist/types/annotations/styles.d.ts +0 -3
- package/dist/types/annotations/useAnnotationGeometry.d.ts +0 -22
- package/dist/types/annotations/useDataAppAnnotations.d.ts +0 -22
- package/dist/types/app-context.d.ts +0 -3
- package/dist/types/bindings.d.ts +0 -169
- package/dist/types/content.d.ts +0 -36
- package/dist/types/date-formatting.d.ts +0 -12
- package/dist/types/details.d.ts +0 -46
- package/dist/types/exploration.d.ts +0 -44
- package/dist/types/hooks.d.ts +0 -114
- package/dist/types/injectStyles.d.ts +0 -7
- package/dist/types/mount.d.ts +0 -13
- package/dist/types/search-suggestions.d.ts +0 -8
- package/dist/types/source-owner.d.ts +0 -2
- package/dist/types/style-contract.d.ts +0 -88
- package/dist/types/style-validation.d.ts +0 -2
- package/dist/types/styles.d.ts +0 -8
- package/dist/types/ui/AboutData.d.ts +0 -73
- package/dist/types/ui/AltertableLogo.d.ts +0 -3
- package/dist/types/ui/AppFooter.d.ts +0 -6
- package/dist/types/ui/AppHeader.d.ts +0 -10
- package/dist/types/ui/AppLayout.d.ts +0 -10
- package/dist/types/ui/AppScope.d.ts +0 -7
- package/dist/types/ui/AppToolbar.d.ts +0 -30
- package/dist/types/ui/AreaChart.d.ts +0 -7
- package/dist/types/ui/BarChart.d.ts +0 -6
- package/dist/types/ui/Breakdown.d.ts +0 -13
- package/dist/types/ui/Button.d.ts +0 -12
- package/dist/types/ui/ChartLegend.d.ts +0 -32
- package/dist/types/ui/Checkbox.d.ts +0 -21
- package/dist/types/ui/CheckboxGroup.d.ts +0 -7
- package/dist/types/ui/ChoicePicker.d.ts +0 -39
- package/dist/types/ui/Comparison.d.ts +0 -14
- package/dist/types/ui/ComposedChart.d.ts +0 -41
- package/dist/types/ui/ComposedChartLegend.d.ts +0 -9
- package/dist/types/ui/ContentSkeleton.d.ts +0 -7
- package/dist/types/ui/DataApp.d.ts +0 -24
- package/dist/types/ui/DataAppFrame.d.ts +0 -52
- package/dist/types/ui/DataBoundary.d.ts +0 -14
- package/dist/types/ui/DataSection.d.ts +0 -14
- package/dist/types/ui/DataSectionBoundary.d.ts +0 -30
- package/dist/types/ui/DataTable.d.ts +0 -29
- package/dist/types/ui/DataValue.d.ts +0 -9
- package/dist/types/ui/DataViewToast.d.ts +0 -11
- package/dist/types/ui/DataWidget.d.ts +0 -37
- package/dist/types/ui/DateDisplay.d.ts +0 -9
- package/dist/types/ui/DateRangePicker.d.ts +0 -30
- package/dist/types/ui/DateTimeTooltip.d.ts +0 -10
- package/dist/types/ui/DimensionPicker.d.ts +0 -14
- package/dist/types/ui/EmptyState.d.ts +0 -6
- package/dist/types/ui/ExplorationActionControl.d.ts +0 -60
- package/dist/types/ui/ExportControl.d.ts +0 -4
- package/dist/types/ui/FilterActions.d.ts +0 -10
- package/dist/types/ui/FilterBar.d.ts +0 -3
- package/dist/types/ui/FunnelChart.d.ts +0 -20
- package/dist/types/ui/GettingStarted.d.ts +0 -6
- package/dist/types/ui/GlossaryDefinition.d.ts +0 -7
- package/dist/types/ui/GlossaryExplanation.d.ts +0 -16
- package/dist/types/ui/GradientScroll.d.ts +0 -23
- package/dist/types/ui/Grid.d.ts +0 -12
- package/dist/types/ui/GridItem.d.ts +0 -7
- package/dist/types/ui/HelpPopover.d.ts +0 -21
- package/dist/types/ui/IconButton.d.ts +0 -19
- package/dist/types/ui/InspectionContext.d.ts +0 -12
- package/dist/types/ui/InspectionProvider.d.ts +0 -29
- package/dist/types/ui/JourneyChart.d.ts +0 -10
- package/dist/types/ui/Kbd.d.ts +0 -7
- package/dist/types/ui/LineChart.d.ts +0 -7
- package/dist/types/ui/LiveControl.d.ts +0 -10
- package/dist/types/ui/Menu.d.ts +0 -13
- package/dist/types/ui/MetricWidget.d.ts +0 -51
- package/dist/types/ui/NumberField.d.ts +0 -27
- package/dist/types/ui/NumberFilterPicker.d.ts +0 -11
- package/dist/types/ui/PeriodSummary.d.ts +0 -17
- package/dist/types/ui/PickerField.d.ts +0 -23
- package/dist/types/ui/PieChart.d.ts +0 -11
- package/dist/types/ui/PopoverSurface.d.ts +0 -5
- package/dist/types/ui/PresentStory.d.ts +0 -30
- package/dist/types/ui/QueryList.d.ts +0 -14
- package/dist/types/ui/RadioGroup.d.ts +0 -18
- package/dist/types/ui/Ranking.d.ts +0 -13
- package/dist/types/ui/RefreshControl.d.ts +0 -9
- package/dist/types/ui/RequestHint.d.ts +0 -20
- package/dist/types/ui/RetentionChart.d.ts +0 -27
- package/dist/types/ui/ScatterChart.d.ts +0 -17
- package/dist/types/ui/SearchField.d.ts +0 -23
- package/dist/types/ui/SearchInput.d.ts +0 -10
- package/dist/types/ui/SearchMatch.d.ts +0 -6
- package/dist/types/ui/SearchTypeahead.d.ts +0 -15
- package/dist/types/ui/SectionHeading.d.ts +0 -8
- package/dist/types/ui/Select.d.ts +0 -22
- package/dist/types/ui/SelectionMark.d.ts +0 -5
- package/dist/types/ui/Sheet.d.ts +0 -21
- package/dist/types/ui/Skeleton.d.ts +0 -8
- package/dist/types/ui/Stack.d.ts +0 -7
- package/dist/types/ui/StaticDataApp.d.ts +0 -4
- package/dist/types/ui/StatusPanel.d.ts +0 -10
- package/dist/types/ui/TableWidget.d.ts +0 -67
- package/dist/types/ui/Tabs.d.ts +0 -10
- package/dist/types/ui/TextContent.d.ts +0 -4
- package/dist/types/ui/TextWidget.d.ts +0 -20
- package/dist/types/ui/ThemeSelector.d.ts +0 -12
- package/dist/types/ui/Toast.d.ts +0 -8
- package/dist/types/ui/Tooltip.d.ts +0 -23
- package/dist/types/ui/TooltipSurface.d.ts +0 -3
- package/dist/types/ui/TrendChart.d.ts +0 -5
- package/dist/types/ui/UpdatedAt.d.ts +0 -9
- package/dist/types/ui/VariableBar.d.ts +0 -6
- package/dist/types/ui/VisualizationWidget.d.ts +0 -43
- package/dist/types/ui/WidgetDisclosure.d.ts +0 -6
- package/dist/types/ui/WidgetEvidence.d.ts +0 -12
- package/dist/types/ui/WidgetViewTabs.d.ts +0 -16
- package/dist/types/ui/chart-data.d.ts +0 -36
- package/dist/types/ui/chart-date-axis.d.ts +0 -15
- package/dist/types/ui/chart-interaction.d.ts +0 -27
- package/dist/types/ui/chart-primitives.d.ts +0 -22
- package/dist/types/ui/chart-time.d.ts +0 -19
- package/dist/types/ui/chartColor.d.ts +0 -2
- package/dist/types/ui/classNames.d.ts +0 -1
- package/dist/types/ui/csv-export.d.ts +0 -19
- package/dist/types/ui/data-context.d.ts +0 -76
- package/dist/types/ui/data-identifiers.d.ts +0 -32
- package/dist/types/ui/icons.d.ts +0 -49
- package/dist/types/ui/journey-flow.d.ts +0 -49
- package/dist/types/ui/keyboard.d.ts +0 -6
- package/dist/types/ui/metric-comparison.d.ts +0 -30
- package/dist/types/ui/metric.d.ts +0 -11
- package/dist/types/ui/presentation.d.ts +0 -25
- package/dist/types/ui/search.d.ts +0 -6
- package/dist/types/ui/searchItems.d.ts +0 -36
- package/dist/types/ui/shortcuts.d.ts +0 -45
- package/dist/types/ui/story.d.ts +0 -20
- package/dist/types/ui/time-interval.d.ts +0 -96
- package/dist/types/ui/use-chart-scroll-to-end.d.ts +0 -2
- package/dist/types/ui/useAppAppearance.d.ts +0 -3
- package/dist/types/ui/useDataAppPresentation.d.ts +0 -3
- package/dist/types/ui/useSvgId.d.ts +0 -2
- package/dist/types/ui/variables.d.ts +0 -36
- package/dist/types/ui/widget-views.d.ts +0 -3
- package/dist/types/view-control-bar.d.ts +0 -18
- package/dist/types/view-controls.d.ts +0 -20
- package/dist/types/view-runtime.d.ts +0 -34
- package/dist/types/view.d.ts +0 -87
- package/dist/types/widgets.d.ts +0 -90
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from 'react';
|
|
2
|
-
import { ComposedChartLegend as Legend } from './ComposedChartLegend.js';
|
|
3
|
-
import { ComposedChart as RechartsComposedChart, ZAxis, ReferenceLine, ReferenceArea, ReferenceDot, Brush, Label, LabelList, ErrorBar } from 'recharts';
|
|
4
|
-
import { ChartBar as Bar, ChartDot as Dot, ChartLine as Line, ChartArea as Area, ChartScatter as Scatter, ChartXAxis as XAxis, ChartYAxis as YAxis, ChartGrid as CartesianGrid, ChartTooltip as Tooltip } from './chart-primitives.js';
|
|
5
|
-
export type ComposedChartProps<Row = unknown> = Omit<ComponentProps<typeof RechartsComposedChart<Row>>, 'data' | 'title'> & {
|
|
6
|
-
/** Displayed rows; series and axes select fields with Recharts dataKey props. */
|
|
7
|
-
data: readonly Row[];
|
|
8
|
-
/** Describes the measures and scope for assistive technology. */
|
|
9
|
-
ariaLabel: string;
|
|
10
|
-
};
|
|
11
|
-
/** Compose Cartesian series inside VisualizationWidget. Defaults to responsive
|
|
12
|
-
* full width and 300px height. Children retain native Recharts props and behavior,
|
|
13
|
-
* including stacking, numeric/time axes, missing values, tooltips, and keyboard
|
|
14
|
-
* navigation. Match yAxisId on axes and series for different units; use stackId
|
|
15
|
-
* for stacks. Preserve missing measures as null and choose connectNulls deliberately.
|
|
16
|
-
* Use public chart tokens for series colors. Dataset bindings own
|
|
17
|
-
* loading, empty results, evidence, and CSV; this primitive owns only the plot. */
|
|
18
|
-
declare function ComposedChartRoot<Row>({ data, ariaLabel, width, height, responsive, className, ...props }: ComposedChartProps<Row>): import("react").JSX.Element;
|
|
19
|
-
/** Shared themed series and controls; other children retain native Recharts defaults. */
|
|
20
|
-
export declare const ComposedChart: typeof ComposedChartRoot & {
|
|
21
|
-
Dot: typeof Dot;
|
|
22
|
-
Area: typeof Area;
|
|
23
|
-
Bar: typeof Bar;
|
|
24
|
-
Line: typeof Line;
|
|
25
|
-
Scatter: typeof Scatter;
|
|
26
|
-
XAxis: typeof XAxis;
|
|
27
|
-
YAxis: typeof YAxis;
|
|
28
|
-
ZAxis: typeof ZAxis;
|
|
29
|
-
CartesianGrid: typeof CartesianGrid;
|
|
30
|
-
Tooltip: typeof Tooltip;
|
|
31
|
-
Legend: typeof Legend;
|
|
32
|
-
ReferenceLine: typeof ReferenceLine;
|
|
33
|
-
ReferenceArea: typeof ReferenceArea;
|
|
34
|
-
ReferenceDot: typeof ReferenceDot;
|
|
35
|
-
Brush: typeof Brush;
|
|
36
|
-
Cell: import("react").FunctionComponent<import("recharts").CellProps>;
|
|
37
|
-
Label: typeof Label;
|
|
38
|
-
LabelList: typeof LabelList;
|
|
39
|
-
ErrorBar: typeof ErrorBar;
|
|
40
|
-
};
|
|
41
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from 'react';
|
|
2
|
-
import { Legend } from 'recharts';
|
|
3
|
-
export type ComposedChartLegendProps = ComponentProps<typeof Legend> & {
|
|
4
|
-
maxVisibleItems?: number;
|
|
5
|
-
};
|
|
6
|
-
/** Opt in inside ComposedChart to derive the shared legend from its displayed series.
|
|
7
|
-
* Give native series unique IDs when they share a data key.
|
|
8
|
-
* Native positioning, sorting, formatters, callbacks, and custom content remain available. */
|
|
9
|
-
export declare function ComposedChartLegend({ maxVisibleItems, ...props }: ComposedChartLegendProps): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { type SkeletonContent } from './presentation.js';
|
|
3
|
-
export type ContentSkeletonProps = SkeletonContent & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
4
|
-
/** A metric, panel, or ranking placeholder to compose in the same layout as live content. */
|
|
5
|
-
export declare function ContentSkeleton({ variant, rows, className, ...props }: ContentSkeletonProps): import("react").JSX.Element;
|
|
6
|
-
/** Placeholder for a widget body; static headings stay outside it. */
|
|
7
|
-
export declare function ContentSkeletonBody({ variant, rows }: SkeletonContent): import("react").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type ExportDataset, type RegisteredBinding } from '../bindings.js';
|
|
2
|
-
import type { DisplayedSnapshot } from '@altertable/data-app/internal';
|
|
3
|
-
import type { StoryFinding } from './story.js';
|
|
4
|
-
import { type DataAppBaseProps, type DataAppControlProps } from './DataAppFrame.js';
|
|
5
|
-
import { type DeclaredView } from '../view-runtime.js';
|
|
6
|
-
import { type DetailContent } from '../details.js';
|
|
7
|
-
export type DataAppProps<Data, Input = unknown> = Omit<DataAppBaseProps, 'dataContext'> & DataAppControlProps & {
|
|
8
|
-
view: DeclaredView<Data, Input> & {
|
|
9
|
-
scope(snapshot: DisplayedSnapshot<Data, Input>): string;
|
|
10
|
-
};
|
|
11
|
-
/** Show supplied datasets’ record suggestions on the first declared search. Defaults to true. */
|
|
12
|
-
showSearchSuggestions?: boolean;
|
|
13
|
-
story: (snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & {
|
|
14
|
-
evidence: RegisteredBinding;
|
|
15
|
-
})[];
|
|
16
|
-
datasets: readonly [
|
|
17
|
-
ExportDataset<Data, Input>,
|
|
18
|
-
...ExportDataset<Data, Input>[]
|
|
19
|
-
];
|
|
20
|
-
/** Detail destinations available to dataset actions and metric record inspection. */
|
|
21
|
-
details?: readonly DetailContent<any, any>[];
|
|
22
|
-
};
|
|
23
|
-
/** Executes the primary view and owns its controls, inspection, exports, and stories. */
|
|
24
|
-
export declare function DataApp<Data, Input>(props: DataAppProps<Data, Input>): import("react").JSX.Element;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type DisclosedQuery } from '@altertable/data-app/contract';
|
|
3
|
-
import { type CsvExport } from './csv-export.js';
|
|
4
|
-
import { type DisplayedSnapshot } from '@altertable/data-app/internal';
|
|
5
|
-
import { type DataContext } from './data-context.js';
|
|
6
|
-
import { type BoundStory } from './story.js';
|
|
7
|
-
import { type SectionResult } from './DataSectionBoundary.js';
|
|
8
|
-
export type DataAppBaseProps = {
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
dataContext: DataContext;
|
|
11
|
-
/** Override the declared subtitle; null hides it. */
|
|
12
|
-
description?: ReactNode;
|
|
13
|
-
toolbarActions?: ReactNode;
|
|
14
|
-
footerActions?: ReactNode;
|
|
15
|
-
/** Optional source, coverage, or methodology note below the app content.
|
|
16
|
-
* Compose prose and inline components; typography and spacing are provided.
|
|
17
|
-
* Put data widgets in children and app controls in footerActions. */
|
|
18
|
-
footer?: ReactNode;
|
|
19
|
-
};
|
|
20
|
-
export type DataAppRequest<Data, Input> = SectionResult<Data, Input> & {
|
|
21
|
-
queries?: DisclosedQuery[];
|
|
22
|
-
/** Actual request activity, including retries with retained data. */
|
|
23
|
-
refreshing?: boolean;
|
|
24
|
-
cancel?: () => unknown;
|
|
25
|
-
searchControls?: ReactNode;
|
|
26
|
-
filterControls?: ReactNode;
|
|
27
|
-
};
|
|
28
|
-
export type DataAppControlProps = {
|
|
29
|
-
/** Show declared search controls. Defaults to true; hiding preserves their values. */
|
|
30
|
-
showSearch?: boolean;
|
|
31
|
-
/** Show declared filter controls, including display options. Defaults to true; hiding preserves their values. */
|
|
32
|
-
showFilters?: boolean;
|
|
33
|
-
};
|
|
34
|
-
export type StaticDataAppProps = DataAppBaseProps & {
|
|
35
|
-
csvExport?: CsvExport;
|
|
36
|
-
queries?: DisclosedQuery[];
|
|
37
|
-
};
|
|
38
|
-
export type DataAppProps<Data = unknown, Input = unknown> = (DataAppBaseProps & DataAppControlProps & {
|
|
39
|
-
request: DataAppRequest<Data, Input>;
|
|
40
|
-
/** Findings are always derived from the result currently visible to the user. */
|
|
41
|
-
story: BoundStory<Data, Input>;
|
|
42
|
-
/** Export every distinct dataset in the displayed result. */
|
|
43
|
-
csvExport: (snapshot: DisplayedSnapshot<Data, Input>) => CsvExport;
|
|
44
|
-
queries?: never;
|
|
45
|
-
}) | (StaticDataAppProps & {
|
|
46
|
-
request?: never;
|
|
47
|
-
story?: never;
|
|
48
|
-
});
|
|
49
|
-
/** Owns the page title, header, gutter, and width; body content uses section headings.
|
|
50
|
-
* The primary request binds the toolbar, controls, refresh, and inspection.
|
|
51
|
-
* Children always render; compose DataSection boundaries around independently loading content. */
|
|
52
|
-
export declare function DataAppFrame<Data, Input>(props: DataAppProps<Data, Input>): import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
import { type DataView } from '@altertable/data-app/internal';
|
|
3
|
-
export type DataBoundaryProps<T, Input = unknown> = {
|
|
4
|
-
view: DataView<T, Input>;
|
|
5
|
-
loadingFallback: ReactNode;
|
|
6
|
-
emptyFallback: ReactNode;
|
|
7
|
-
error: (error: Error) => ReactNode;
|
|
8
|
-
staleError?: (error: Error) => ReactNode;
|
|
9
|
-
notice?: 'inline' | 'none';
|
|
10
|
-
children: (data: T, displayedInput: Input) => ReactNode;
|
|
11
|
-
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
12
|
-
/** Render one request state at a time. Prior content remains readable during an update.
|
|
13
|
-
* Feedback ownership is supplied by the containing section. */
|
|
14
|
-
export declare function DataBoundary<T, Input>({ view, loadingFallback, emptyFallback, error, staleError, notice, children, className, ...props }: DataBoundaryProps<T, Input>): import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ViewContent } from '../content.js';
|
|
2
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
3
|
-
import { type EmptyContent } from './presentation.js';
|
|
4
|
-
export type DataSectionProps<Data, Input = unknown> = {
|
|
5
|
-
content: ViewContent<Data, Input>;
|
|
6
|
-
emptyFallback?: EmptyContent;
|
|
7
|
-
error?: {
|
|
8
|
-
title: ReactNode;
|
|
9
|
-
description?: ReactNode;
|
|
10
|
-
onRetry?: () => void;
|
|
11
|
-
};
|
|
12
|
-
label?: string;
|
|
13
|
-
} & Omit<ComponentPropsWithRef<'div'>, 'children' | 'content'>;
|
|
14
|
-
export declare function DataSection<Data, Input>({ content, ...presentation }: DataSectionProps<Data, Input>): import("react").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
import { type DataView } from '@altertable/data-app/internal';
|
|
3
|
-
import { type EmptyContent } from './presentation.js';
|
|
4
|
-
export type SectionResult<Data, Input> = {
|
|
5
|
-
view: DataView<Data, Input>;
|
|
6
|
-
refetch: () => unknown;
|
|
7
|
-
};
|
|
8
|
-
export type DataSectionProps<Data, Input = unknown> = {
|
|
9
|
-
children: (data: Data, displayedInput: Input) => ReactNode;
|
|
10
|
-
/** Placeholder layout for an initial request; use the ready view's grid without copied values. */
|
|
11
|
-
loadingFallback: ReactNode;
|
|
12
|
-
error?: {
|
|
13
|
-
title: ReactNode;
|
|
14
|
-
description?: ReactNode;
|
|
15
|
-
onRetry?: () => void;
|
|
16
|
-
};
|
|
17
|
-
label?: string;
|
|
18
|
-
notice?: 'none' | 'inline';
|
|
19
|
-
} & ({
|
|
20
|
-
result: SectionResult<Data, Input> & {
|
|
21
|
-
emptyFallback: EmptyContent;
|
|
22
|
-
};
|
|
23
|
-
emptyFallback?: EmptyContent;
|
|
24
|
-
} | {
|
|
25
|
-
result: SectionResult<Data, Input>;
|
|
26
|
-
emptyFallback: EmptyContent;
|
|
27
|
-
}) & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
28
|
-
/** One request boundary for any number of cards. `DataBoundary` exposes the lower-level
|
|
29
|
-
* view-state slots internally. The primary DataApp request uses page-level feedback. */
|
|
30
|
-
export declare function DataSectionBoundary<Data, Input>({ result, children, emptyFallback, loadingFallback, error, label, notice: feedback, ...props }: DataSectionProps<Data, Input>): import("react").JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
import { type EmptyContent } from './presentation.js';
|
|
3
|
-
import { type SearchFieldProps } from './SearchField.js';
|
|
4
|
-
export type DataTableSearch = Pick<SearchFieldProps, 'label' | 'placeholder' | 'value' | 'onChange' | 'resetValue' | 'inputProps'> & {
|
|
5
|
-
/** Number of available records before filtering or a display limit. */
|
|
6
|
-
itemCount: number;
|
|
7
|
-
};
|
|
8
|
-
export type DataTableProps = ComponentPropsWithRef<'table'> & {
|
|
9
|
-
searchable?: DataTableSearch;
|
|
10
|
-
};
|
|
11
|
-
/** Scrollable native table. Mark quantitative th/td cells with data-type="number";
|
|
12
|
-
* the runtime aligns them to the end and uses tabular digits. */
|
|
13
|
-
export declare function DataTable({ className, ref, searchable, ...props }: DataTableProps): import("react").JSX.Element;
|
|
14
|
-
/** Accepts a fraction of the stated whole, using `formatPercent` semantics. */
|
|
15
|
-
export declare function DataTableShare({ value }: {
|
|
16
|
-
value: number;
|
|
17
|
-
}): import("react").JSX.Element;
|
|
18
|
-
export type DataTableEmptyRowProps = EmptyContent & {
|
|
19
|
-
colSpan: number;
|
|
20
|
-
};
|
|
21
|
-
export declare function DataTableEmptyRow({ colSpan, title, description, action, }: DataTableEmptyRowProps): import("react").JSX.Element;
|
|
22
|
-
export type DataTableTimestampProps = {
|
|
23
|
-
value: string | Date | number;
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
timeZone?: string;
|
|
26
|
-
locale?: string;
|
|
27
|
-
precision?: 'minute' | 'second';
|
|
28
|
-
};
|
|
29
|
-
export declare function DataTableTimestamp({ value, children, timeZone, locale, precision, }: DataTableTimestampProps): import("react").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
import { type DataReading } from '@altertable/data-app/internal';
|
|
3
|
-
export type DataValueProps<Value> = {
|
|
4
|
-
reading: DataReading<Value>;
|
|
5
|
-
loadingFallback: ReactNode;
|
|
6
|
-
children: (value: Value) => ReactNode;
|
|
7
|
-
} & Omit<ComponentPropsWithRef<'span'>, 'children'>;
|
|
8
|
-
/** Bind inline content to displayed data. Keep static wording outside this span. */
|
|
9
|
-
export declare function DataValue<Value>({ reading, loadingFallback, children, ...props }: DataValueProps<Value>): import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type DataView } from '@altertable/data-app/internal';
|
|
3
|
-
export type DataViewToastProps<Data, Input> = {
|
|
4
|
-
view: DataView<Data, Input>;
|
|
5
|
-
message?: ReactNode;
|
|
6
|
-
notice?: ReactNode;
|
|
7
|
-
onRetry?: () => void;
|
|
8
|
-
};
|
|
9
|
-
/** One page-level refresh status. Updating waits briefly; a failed refresh waits
|
|
10
|
-
* long enough to avoid interrupting the displayed result before showing retry. */
|
|
11
|
-
export declare function DataViewToast<Data, Input>({ view, message, notice, onRetry, }: DataViewToastProps<Data, Input>): import("react").JSX.Element | null;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { InspectionRecords } from './AboutData.js';
|
|
2
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
3
|
-
import { type WidgetStatus } from './RequestHint.js';
|
|
4
|
-
import type { EmptyContent, BoundWidgetReading } from './presentation.js';
|
|
5
|
-
import type { WidgetEvidence } from './WidgetEvidence.js';
|
|
6
|
-
type DataWidgetBaseProps = {
|
|
7
|
-
title: ReactNode;
|
|
8
|
-
/** Document outline level. The widget title keeps the shared widget-heading appearance. */
|
|
9
|
-
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
10
|
-
/** Unique stable target for persisted feedback; overrides automatic evidence identity. */
|
|
11
|
-
annotationId?: string;
|
|
12
|
-
/** Result count beside the heading. Derive from the displayed result; zero is visible. */
|
|
13
|
-
count?: number;
|
|
14
|
-
description?: ReactNode;
|
|
15
|
-
evidence?: WidgetEvidence;
|
|
16
|
-
/** Lazy detail records rendered as the first inspection tab. */
|
|
17
|
-
records?: InspectionRecords;
|
|
18
|
-
action?: ReactNode;
|
|
19
|
-
/** Reserved feedback slot; retain displayed content while refreshing or after failure. */
|
|
20
|
-
status?: WidgetStatus;
|
|
21
|
-
footer?: ReactNode;
|
|
22
|
-
bodyPadding?: 'inset' | 'flush';
|
|
23
|
-
} & Omit<ComponentPropsWithRef<'section'>, 'about' | 'title' | 'children'>;
|
|
24
|
-
/** Owns loading, empty content, actions, and inspection. Page and sheet mount the same
|
|
25
|
-
* body and footer; hold interactive child state above the widget to share it across mounts.
|
|
26
|
-
* A bound reading requires evidence; its child renderer runs only for nonempty ready data. */
|
|
27
|
-
export type DataWidgetProps<Data = unknown> = DataWidgetBaseProps & ((BoundWidgetReading<Data> & {
|
|
28
|
-
children: (data: Data) => ReactNode;
|
|
29
|
-
}) | {
|
|
30
|
-
reading?: never;
|
|
31
|
-
isEmpty?: never;
|
|
32
|
-
skeleton?: never;
|
|
33
|
-
emptyFallback?: EmptyContent;
|
|
34
|
-
children: ReactNode;
|
|
35
|
-
});
|
|
36
|
-
export declare function DataWidget<Data>(props: DataWidgetProps<Data>): import("react").JSX.Element;
|
|
37
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { type DateFormat } from '@altertable/data-app/format';
|
|
3
|
-
export type DateDisplayProps = {
|
|
4
|
-
value: string | Date | number | null | undefined;
|
|
5
|
-
/** Calendar dates stay dates; instants require a Date, epoch milliseconds, or an offset-bearing ISO string. */
|
|
6
|
-
format?: DateFormat;
|
|
7
|
-
} & Omit<ComponentPropsWithRef<'time'>, 'children' | 'dateTime'>;
|
|
8
|
-
/** Readable dates with exact-time disclosure for instants; invalid or ambiguous values render as missing. */
|
|
9
|
-
export declare function DateDisplay({ value, format, className, ...props }: DateDisplayProps): import("react").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type ControlLabelPlacement } from './PickerField.js';
|
|
2
|
-
import { type ComponentProps, type ReactNode } from 'react';
|
|
3
|
-
import { type CalendarDate } from '@internationalized/date';
|
|
4
|
-
import { DateRangePicker as AriaDateRangePicker } from 'react-aria-components';
|
|
5
|
-
import { type DatePresetId, type DateRange } from '@altertable/data-app/internal';
|
|
6
|
-
export { type DatePresetId, type DateRange, } from '@altertable/data-app/internal';
|
|
7
|
-
export type DateRangePickerProps = {
|
|
8
|
-
label?: string;
|
|
9
|
-
labelPlacement?: Exclude<ControlLabelPlacement, 'inline'>;
|
|
10
|
-
value: DateRange | null;
|
|
11
|
-
onChange: (range: DateRange | null) => void;
|
|
12
|
-
minDate?: string;
|
|
13
|
-
maxDate?: string;
|
|
14
|
-
maxRangeDays?: number;
|
|
15
|
-
timeZone?: string;
|
|
16
|
-
/** Used to display the reset affordance. The app variable owns the URL and reset meaning. */
|
|
17
|
-
resetValue?: DateRange;
|
|
18
|
-
isDefault?: boolean;
|
|
19
|
-
onReset?: () => void;
|
|
20
|
-
onPresetChange?: (id: DatePresetId) => void;
|
|
21
|
-
selectedPresetId?: DatePresetId | null;
|
|
22
|
-
calendarFooter?: ReactNode;
|
|
23
|
-
comparison?: {
|
|
24
|
-
enabled: boolean;
|
|
25
|
-
range: DateRange | null;
|
|
26
|
-
onChange: (enabled: boolean) => void;
|
|
27
|
-
};
|
|
28
|
-
} & Omit<ComponentProps<typeof AriaDateRangePicker<CalendarDate>>, 'children' | 'value' | 'onChange' | 'minValue' | 'maxValue' | 'isOpen' | 'onOpenChange' | 'defaultValue' | 'defaultOpen'>;
|
|
29
|
-
/** The app owns URL state; `dateRangeControl` binds a date variable to this picker. */
|
|
30
|
-
export declare function DateRangePicker({ label, labelPlacement, value, onChange, minDate, maxDate, maxRangeDays, timeZone, resetValue, isDefault, onReset, onPresetChange, selectedPresetId, calendarFooter, comparison, className, ...props }: DateRangePickerProps): import("react").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type HelpPopoverProps } from './HelpPopover.js';
|
|
3
|
-
export type DateTimeTooltipProps = {
|
|
4
|
-
date: Date;
|
|
5
|
-
timeZone?: string;
|
|
6
|
-
locale?: string;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
} & Omit<HelpPopoverProps, 'trigger' | 'triggerLabel' | 'label' | 'children'>;
|
|
9
|
-
/** Exact-time disclosure uses the same reporting zone and locale as other date displays. */
|
|
10
|
-
export declare function DateTimeTooltip({ date, timeZone, locale, children, panelProps, ...props }: DateTimeTooltipProps): import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ControlLabelPlacement } from './PickerField.js';
|
|
2
|
-
import type { DimensionOption, DimensionSelection } from '@altertable/data-app/contract';
|
|
3
|
-
import type { DimensionValue, DimensionSelectionVariable } from '@altertable/data-app/internal';
|
|
4
|
-
/** Adapts the typed dimension contract to the shared ChoicePicker control. */
|
|
5
|
-
export declare function DimensionPicker<T extends DimensionValue>({ filter, labelPlacement, value, onChange, options: suppliedOptions, loading, error, onRetry, }: {
|
|
6
|
-
filter: DimensionSelectionVariable<T>;
|
|
7
|
-
labelPlacement?: ControlLabelPlacement;
|
|
8
|
-
value: DimensionSelection<T>;
|
|
9
|
-
onChange: (value: DimensionSelection<T>) => void;
|
|
10
|
-
options?: readonly DimensionOption<T>[];
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
onRetry?: () => void;
|
|
14
|
-
}): import("react").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type EmptyContent } from './presentation.js';
|
|
2
|
-
export type EmptyStateProps = EmptyContent & {
|
|
3
|
-
variant?: 'visual' | 'table';
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function EmptyState({ title, description, action, variant, className, }: EmptyStateProps): import("react").JSX.Element;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { type ComponentRef, type RefObject, type Ref, type KeyboardEvent } from 'react';
|
|
2
|
-
/** A resolved action available for one displayed exploration item. */
|
|
3
|
-
export type ExplorationAction = {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
onSelect: (trigger?: HTMLElement | SVGElement) => void;
|
|
7
|
-
/** Keep this action directly available when other actions require a menu. */
|
|
8
|
-
primary?: boolean;
|
|
9
|
-
/** Keep utility actions separate from exploration destinations. */
|
|
10
|
-
group?: 'clipboard';
|
|
11
|
-
};
|
|
12
|
-
/** Resolves the actions available for a displayed domain row. */
|
|
13
|
-
export type ItemActions<Row> = (row: Row) => readonly ExplorationAction[];
|
|
14
|
-
export type ExplorationActionControlProps = {
|
|
15
|
-
actions: readonly ExplorationAction[];
|
|
16
|
-
/** Identifies the item whose actions the control exposes. */
|
|
17
|
-
ariaLabel: string;
|
|
18
|
-
/** Use when another item-level hit target already exposes the primary action. */
|
|
19
|
-
hidePrimary?: boolean;
|
|
20
|
-
/** Own a context menu without adding a second visible or keyboard trigger. */
|
|
21
|
-
contextOnly?: boolean;
|
|
22
|
-
/** Chart labels use a chevron; other action menus use an ellipsis. */
|
|
23
|
-
indicator?: 'ellipsis' | 'chevron';
|
|
24
|
-
/** Shares this menu trigger with an item's context and keyboard actions. */
|
|
25
|
-
ref?: Ref<HTMLButtonElement>;
|
|
26
|
-
className?: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Presents exploration actions consistently: a sole action is direct, an explicit
|
|
30
|
-
* primary action stays direct, and all available choices remain in the menu.
|
|
31
|
-
*/
|
|
32
|
-
export declare function ExplorationActionControl({ actions, ariaLabel, className, hidePrimary, contextOnly, indicator, ref, }: ExplorationActionControlProps): import("react").JSX.Element | null;
|
|
33
|
-
/** Menu content for an item-level trigger composed by a chart or custom control. */
|
|
34
|
-
export declare function ExplorationActionMenu({ actions, ariaLabel, triggerRef, placement, }: Pick<ExplorationActionControlProps, 'actions' | 'ariaLabel'> & {
|
|
35
|
-
triggerRef?: RefObject<ComponentRef<'button'> | null>;
|
|
36
|
-
placement?: 'bottom' | 'bottom start' | 'bottom end';
|
|
37
|
-
}): import("react").JSX.Element;
|
|
38
|
-
/** Adds clipboard utilities derived only from the displayed chart item. */
|
|
39
|
-
export declare function useChartActions(): {
|
|
40
|
-
actions(declared: readonly ExplorationAction[], label: string, summary: string): readonly ExplorationAction[];
|
|
41
|
-
feedback: import("react").JSX.Element | null;
|
|
42
|
-
};
|
|
43
|
-
export declare function openExplorationMenu(trigger: RefObject<HTMLButtonElement | null>, event: {
|
|
44
|
-
preventDefault: () => void;
|
|
45
|
-
currentTarget?: EventTarget | null;
|
|
46
|
-
}, point?: {
|
|
47
|
-
x: number;
|
|
48
|
-
y: number;
|
|
49
|
-
}): void;
|
|
50
|
-
/** Reuse the item's menu for pointer and keyboard context requests. */
|
|
51
|
-
export declare function explorationMenuEvents(trigger: RefObject<HTMLButtonElement | null>): {
|
|
52
|
-
onContextMenu: (event: {
|
|
53
|
-
preventDefault: () => void;
|
|
54
|
-
clientX: number;
|
|
55
|
-
clientY: number;
|
|
56
|
-
}) => void;
|
|
57
|
-
onKeyDown(event: KeyboardEvent<Element>): void;
|
|
58
|
-
};
|
|
59
|
-
/** The direct action for an item, when the action declaration supplies one. */
|
|
60
|
-
export declare function getPrimaryExplorationAction(actions: readonly ExplorationAction[]): ExplorationAction | undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type FilterActionsProps = {
|
|
2
|
-
onClear?: () => void;
|
|
3
|
-
} & ({
|
|
4
|
-
onApply: () => void;
|
|
5
|
-
onCancel: () => void;
|
|
6
|
-
} | {
|
|
7
|
-
onApply?: never;
|
|
8
|
-
onCancel?: never;
|
|
9
|
-
});
|
|
10
|
-
export declare function FilterActions({ onClear, onApply, onCancel, }: FilterActionsProps): import("react").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type CountChartProps } from './chart-data.js';
|
|
2
|
-
/** Ordered step with a unique, nonblank ID. */
|
|
3
|
-
export type FunnelChartStep = {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
};
|
|
7
|
-
export type FunnelChartSeries = {
|
|
8
|
-
/** Unique, nonblank population ID. */
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
/** Finite, nonnegative counts aligned with steps and nonincreasing. */
|
|
12
|
-
values: readonly number[];
|
|
13
|
-
};
|
|
14
|
-
export type FunnelChartProps = CountChartProps & {
|
|
15
|
-
steps: readonly FunnelChartStep[];
|
|
16
|
-
series: readonly FunnelChartSeries[];
|
|
17
|
-
};
|
|
18
|
-
/** Conversion columns with previous-step drop-off, normalized to each series' first step.
|
|
19
|
-
* Owns series highlighting and portion-specific inspection; compose inside VisualizationWidget. */
|
|
20
|
-
export declare function FunnelChart({ steps, series, unit, ariaLabel, className, formatValue, }: FunnelChartProps): import("react").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DataContext } from './data-context.js';
|
|
2
|
-
/** Query-backed connection state and next steps for a newly created app. Mount within
|
|
3
|
-
* `DataAppProvider` and register `connection: connectionCheck(app.queries)` on the server. */
|
|
4
|
-
export declare function GettingStarted({ dataContext }: {
|
|
5
|
-
dataContext: DataContext;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type GlossaryEntry } from './data-context.js';
|
|
3
|
-
export type GlossaryDefinitionProps = {
|
|
4
|
-
entry: GlossaryEntry;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
export declare function GlossaryDefinition({ entry, children, }: GlossaryDefinitionProps): import("react").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
import { type DisclosedQuery } from '@altertable/data-app/contract';
|
|
3
|
-
import { type DataContext, type GlossaryEntry } from './data-context.js';
|
|
4
|
-
import { type AboutEmpty } from './AboutData.js';
|
|
5
|
-
export type GlossaryExplanationProps = {
|
|
6
|
-
entry: GlossaryEntry;
|
|
7
|
-
empty?: AboutEmpty;
|
|
8
|
-
title?: ReactNode;
|
|
9
|
-
description?: ReactNode;
|
|
10
|
-
visual?: ReactNode;
|
|
11
|
-
queries?: DisclosedQuery[];
|
|
12
|
-
dataContext?: DataContext;
|
|
13
|
-
} & Omit<ComponentPropsWithRef<'button'>, 'children' | 'title'>;
|
|
14
|
-
/** Opens the inspect sheet for one glossary term. Prefer a card's evidence slot
|
|
15
|
-
* when the surface already has a title, description, and visual. */
|
|
16
|
-
export declare function GlossaryExplanation({ entry, empty, title, description, visual, queries, dataContext, className, ...props }: GlossaryExplanationProps): import("react").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
-
export type GradientScrollProps = ComponentPropsWithRef<'div'> & {
|
|
3
|
-
axis?: 'vertical' | 'horizontal';
|
|
4
|
-
/** Disable the start fade when sticky controls share the scrollport. */
|
|
5
|
-
fadeStart?: boolean;
|
|
6
|
-
};
|
|
7
|
-
type ScrollMetrics = Pick<HTMLElement, 'scrollTop' | 'scrollHeight' | 'clientHeight' | 'scrollLeft' | 'scrollWidth' | 'clientWidth'>;
|
|
8
|
-
/** The visible edges that still have content beyond them. */
|
|
9
|
-
export declare function scrollFadeEdges(metrics: ScrollMetrics, axis: 'vertical' | 'horizontal'): {
|
|
10
|
-
start: boolean;
|
|
11
|
-
end: boolean;
|
|
12
|
-
};
|
|
13
|
-
/** Track overflow on the element that owns scrolling. */
|
|
14
|
-
export declare function useScrollFade(axis: 'vertical' | 'horizontal'): {
|
|
15
|
-
ref: import("react").Dispatch<import("react").SetStateAction<HTMLDivElement | null>>;
|
|
16
|
-
edges: {
|
|
17
|
-
start: boolean;
|
|
18
|
-
end: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
/** Fades only scrollable edges; content, size, and scroll changes update the mask. */
|
|
22
|
-
export declare function GradientScroll({ axis, fadeStart, className, children, ref, ...props }: GradientScrollProps): import("react").JSX.Element;
|
|
23
|
-
export {};
|
package/dist/types/ui/Grid.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
export type GridProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/** Maximum columns; cards wrap sooner when the container cannot fit their minimum width. */
|
|
5
|
-
columns?: 1 | 2 | 3 | 4;
|
|
6
|
-
minItemWidth?: 'compact' | 'regular' | 'wide';
|
|
7
|
-
gap?: 'sm' | 'md' | 'lg';
|
|
8
|
-
/** `stretch` gives widgets in each row the same height. */
|
|
9
|
-
align?: 'stretch' | 'start';
|
|
10
|
-
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
11
|
-
/** Responsive layout for peer cards and panels. Cards keep their content height by default. */
|
|
12
|
-
export declare function Grid({ children, columns, minItemWidth, gap, align, className, ...props }: GridProps): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
export type GridItemProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/** Maximum tracks occupied; collapses to one when the grid container is narrow. */
|
|
5
|
-
span?: 1 | 2;
|
|
6
|
-
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
7
|
-
export declare function GridItem({ children, span, className, ...props }: GridItemProps): import("react").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode, type RefObject } from 'react';
|
|
2
|
-
import { type Placement } from '@floating-ui/react';
|
|
3
|
-
import { type DataAppStyleHooks } from '../style-contract.js';
|
|
4
|
-
export type HelpPopoverTriggerProps = Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'> & DataAppStyleHooks;
|
|
5
|
-
export type HelpPopoverPanelProps = Omit<ComponentPropsWithRef<'section'>, 'children' | 'role'>;
|
|
6
|
-
export type HelpPopoverProps = {
|
|
7
|
-
trigger: ReactNode;
|
|
8
|
-
triggerLabel: string;
|
|
9
|
-
label: string;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
placement?: Placement;
|
|
12
|
-
portalRoot?: RefObject<HTMLElement | null>;
|
|
13
|
-
triggerProps?: HelpPopoverTriggerProps;
|
|
14
|
-
panelProps?: HelpPopoverPanelProps;
|
|
15
|
-
open?: boolean;
|
|
16
|
-
onOpenChange?: (open: boolean) => void;
|
|
17
|
-
};
|
|
18
|
-
/** A supplemental explanation that opens on click, Enter, or a deliberate mouse hover. Tabbing
|
|
19
|
-
* past the trigger does not open it, and a click keeps a hover-opened panel in place.
|
|
20
|
-
* triggerProps and panelProps target its two surfaces. */
|
|
21
|
-
export declare function HelpPopover({ trigger, triggerLabel, label, children, portalRoot, triggerProps, panelProps, placement, open: openProp, onOpenChange, }: HelpPopoverProps): import("react").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode, type RefObject } from 'react';
|
|
2
|
-
import { type ButtonProps } from './Button.js';
|
|
3
|
-
import { type AppIconName } from './icons.js';
|
|
4
|
-
import { type Shortcut } from './shortcuts.js';
|
|
5
|
-
export type IconButtonProps = Omit<ComponentPropsWithRef<'button'>, 'children' | 'aria-label'> & {
|
|
6
|
-
icon: AppIconName;
|
|
7
|
-
label: string;
|
|
8
|
-
variant?: ButtonProps['variant'];
|
|
9
|
-
shortcut?: Shortcut | {
|
|
10
|
-
label: string;
|
|
11
|
-
aria: string;
|
|
12
|
-
};
|
|
13
|
-
tooltip?: ReactNode;
|
|
14
|
-
portalRoot?: RefObject<HTMLElement | null>;
|
|
15
|
-
tooltipPlacement?: 'top' | 'bottom';
|
|
16
|
-
tooltipAlign?: 'start' | 'center' | 'end';
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
};
|
|
19
|
-
export declare function IconButton({ icon, label, variant, shortcut, tooltip, portalRoot, tooltipPlacement, tooltipAlign, children, type, ...props }: IconButtonProps): import("react").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type DataView } from '@altertable/data-app/internal';
|
|
2
|
-
import { type DisclosedQuery } from '@altertable/data-app/contract';
|
|
3
|
-
import { type AboutEmpty } from './AboutData.js';
|
|
4
|
-
import { type DataContext } from './data-context.js';
|
|
5
|
-
export type InspectionDefaults = {
|
|
6
|
-
dataContext: DataContext;
|
|
7
|
-
primaryView?: DataView<unknown, unknown>;
|
|
8
|
-
empty?: AboutEmpty;
|
|
9
|
-
queries?: DisclosedQuery[];
|
|
10
|
-
};
|
|
11
|
-
export declare const InspectionContext: import("react").Context<InspectionDefaults | null>;
|
|
12
|
-
export declare function useInspectionDefaults(): InspectionDefaults | null;
|