@altertable/data-app 0.69.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +11 -1
- package/CONTRIBUTING.md +59 -26
- package/README.md +22 -26
- package/REFERENCE.md +1900 -0
- package/dist/chunks/index-5a27erdg.js +54 -0
- package/dist/chunks/index-5a27erdg.js.map +10 -0
- package/dist/chunks/{index-2sbp9h2b.js → index-9yxr7nmm.js} +330 -21
- package/dist/chunks/index-9yxr7nmm.js.map +17 -0
- package/dist/chunks/{index-r7b1ftwy.js → index-j5q5n3ra.js} +8 -6
- package/dist/chunks/index-j5q5n3ra.js.map +10 -0
- package/dist/chunks/{index-22d576sn.js → index-q75zm3a7.js} +3 -3
- package/dist/chunks/{index-22d576sn.js.map → index-q75zm3a7.js.map} +3 -3
- package/dist/chunks/{index-kwnqycjt.js → index-vhaec7m5.js} +8 -6
- package/dist/chunks/index-vhaec7m5.js.map +10 -0
- package/dist/chunks/index-zp78caex.js +1047 -0
- package/dist/chunks/index-zp78caex.js.map +19 -0
- package/dist/client/index.js +284 -16
- package/dist/client/index.js.map +7 -3
- package/dist/core/appearance.js +181 -11
- package/dist/core/appearance.js.map +4 -3
- package/dist/core/config.js +3 -3
- package/dist/core/contract.js +13 -15
- package/dist/core/contract.js.map +1 -1
- package/dist/core/format.js +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/internal.js +418 -0
- package/dist/internal.js.map +15 -0
- package/dist/server/index.js +102 -0
- package/dist/server/index.js.map +10 -0
- package/dist/types/client/annotations.d.ts +1 -1
- package/dist/types/client/data-client.d.ts +21 -10
- package/dist/types/client/iframe.d.ts +6 -6
- package/dist/types/client/index.d.ts +3 -4
- package/dist/types/client/location.d.ts +2 -2
- package/dist/types/client/logger.d.ts +1 -1
- package/dist/types/client/navigation.d.ts +1 -1
- package/dist/types/client/transport.d.ts +1 -1
- package/dist/types/core/bridge.d.ts +1 -1
- package/dist/types/core/config.d.ts +20 -17
- package/dist/types/core/contract.d.ts +23 -13
- package/dist/types/core/dimension-source.d.ts +64 -0
- package/dist/types/core/dimension.d.ts +31 -23
- package/dist/types/core/facets.d.ts +13 -0
- package/dist/types/core/filters.d.ts +1 -1
- package/dist/types/core/format.d.ts +1 -2
- package/dist/types/core/keys.d.ts +2 -0
- package/dist/types/core/messages.d.ts +3 -3
- package/dist/types/core/operation-types.d.ts +7 -6
- package/dist/types/core/presentation.d.ts +1 -1
- package/dist/types/core/queries.d.ts +75 -7
- package/dist/types/core/reading.d.ts +1 -1
- package/dist/types/core/variables.d.ts +38 -12
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal.d.ts +22 -0
- package/dist/types/server/index.d.ts +1 -2
- package/docs/app-authoring.md +12 -4
- package/docs/client.md +5 -6
- package/docs/composition.md +84 -0
- package/docs/contract.md +41 -21
- package/docs/data-context.md +5 -3
- package/docs/embed.md +4 -4
- package/docs/formatting-and-appearance.md +1 -1
- package/docs/hosted-apps.md +4 -0
- package/docs/react-embed.md +7 -6
- package/docs/react.md +5 -5
- package/docs/server-bun.md +5 -5
- package/docs/server.md +1 -1
- package/docs/stories-and-export.md +3 -3
- package/docs/styling.md +6 -2
- package/docs/ui.md +18 -7
- package/docs/variables.md +83 -11
- package/docs/views.md +57 -3
- package/docs/widgets.md +97 -4
- package/docs/worker.md +4 -4
- package/examples/starter-data-app/index.tsx +11 -23
- package/examples/starter-local-data-app/AGENTS.md +1 -1
- package/examples/starter-local-data-app/README.md +12 -10
- package/examples/starter-local-data-app/app.ts +7 -1
- package/examples/starter-local-data-app/package.json +3 -1
- package/examples/starter-local-data-app/src/App.tsx +1 -1
- package/examples/starter-local-data-app/src/data-context.ts +1 -1
- package/examples/starter-local-data-app/src/main.tsx +1 -1
- package/examples/starter-local-data-app/src/server.ts +1 -1
- package/examples/starter-local-data-app/tsconfig.json +7 -1
- package/package.json +16 -92
- package/THIRD_PARTY_NOTICES +0 -18
- package/dist/chunks/index-2sbp9h2b.js.map +0 -13
- package/dist/chunks/index-ap60vggk.js +0 -80
- package/dist/chunks/index-ap60vggk.js.map +0 -10
- package/dist/chunks/index-cv36cyna.js +0 -180
- package/dist/chunks/index-cv36cyna.js.map +0 -10
- package/dist/chunks/index-k766wwwr.js +0 -643
- package/dist/chunks/index-k766wwwr.js.map +0 -13
- package/dist/chunks/index-kwnqycjt.js.map +0 -10
- package/dist/chunks/index-m0gbxtgp.js +0 -355
- package/dist/chunks/index-m0gbxtgp.js.map +0 -13
- package/dist/chunks/index-qhzdzca2.js +0 -15869
- package/dist/chunks/index-qhzdzca2.js.map +0 -118
- package/dist/chunks/index-r7b1ftwy.js.map +0 -10
- package/dist/chunks/index-sx488hvs.js +0 -221
- package/dist/chunks/index-sx488hvs.js.map +0 -12
- package/dist/chunks/index-wss3gd3h.js +0 -319
- package/dist/chunks/index-wss3gd3h.js.map +0 -13
- package/dist/chunks/index-zcqxfwdq.js +0 -197
- package/dist/chunks/index-zcqxfwdq.js.map +0 -13
- package/dist/embed/index.js +0 -138
- package/dist/embed/index.js.map +0 -12
- package/dist/local.js +0 -432
- package/dist/local.js.map +0 -14
- package/dist/preview.js +0 -1456
- package/dist/preview.js.map +0 -17
- package/dist/react/embed/index.js +0 -117
- package/dist/react/embed/index.js.map +0 -10
- package/dist/react/index.js +0 -2948
- package/dist/react/index.js.map +0 -26
- package/dist/react/ui/index.js +0 -3142
- package/dist/react/ui/index.js.map +0 -35
- package/dist/server.js +0 -301
- package/dist/server.js.map +0 -13
- package/dist/types/core/time-interval.d.ts +0 -96
- package/dist/types/embed/bootstrap.d.ts +0 -5
- package/dist/types/embed/bridge.d.ts +0 -12
- package/dist/types/embed/host.d.ts +0 -36
- package/dist/types/embed/index.d.ts +0 -14
- package/dist/types/embed/navigation.d.ts +0 -6
- package/dist/types/embed/runtime-html.d.ts +0 -2
- package/dist/types/embed/source.d.ts +0 -16
- package/dist/types/embed/sql.d.ts +0 -4
- package/dist/types/react/annotations/AnnotationBar.d.ts +0 -30
- package/dist/types/react/annotations/AnnotationControls.d.ts +0 -10
- package/dist/types/react/annotations/AnnotationEditor.d.ts +0 -16
- package/dist/types/react/annotations/AnnotationMarkers.d.ts +0 -19
- package/dist/types/react/annotations/AnnotationSelectionLayer.d.ts +0 -12
- package/dist/types/react/annotations/AnnotationTarget.d.ts +0 -9
- package/dist/types/react/annotations/AnnotationTooltip.d.ts +0 -9
- package/dist/types/react/annotations/AnnotationTrigger.d.ts +0 -10
- package/dist/types/react/annotations/annotation-editor-state.d.ts +0 -58
- package/dist/types/react/annotations/annotation-screenshot.d.ts +0 -4
- package/dist/types/react/annotations/annotation-targets.d.ts +0 -34
- package/dist/types/react/annotations/getAnnotationProps.d.ts +0 -17
- package/dist/types/react/annotations/styles.d.ts +0 -3
- package/dist/types/react/annotations/useAnnotationGeometry.d.ts +0 -22
- package/dist/types/react/annotations/useDataAppAnnotations.d.ts +0 -22
- package/dist/types/react/app-context.d.ts +0 -3
- package/dist/types/react/bindings.d.ts +0 -133
- package/dist/types/react/content.d.ts +0 -36
- package/dist/types/react/date-formatting.d.ts +0 -12
- package/dist/types/react/embed/bridge.d.ts +0 -21
- package/dist/types/react/embed/index.d.ts +0 -7
- package/dist/types/react/hooks.d.ts +0 -75
- package/dist/types/react/index.d.ts +0 -75
- package/dist/types/react/injectStyles.d.ts +0 -7
- package/dist/types/react/mount.d.ts +0 -13
- package/dist/types/react/search-suggestions.d.ts +0 -8
- package/dist/types/react/source-owner.d.ts +0 -2
- package/dist/types/react/style-contract.d.ts +0 -88
- package/dist/types/react/style-validation.d.ts +0 -2
- package/dist/types/react/styles.d.ts +0 -8
- package/dist/types/react/ui/AboutData.d.ts +0 -68
- package/dist/types/react/ui/AltertableLogo.d.ts +0 -3
- package/dist/types/react/ui/AppFooter.d.ts +0 -6
- package/dist/types/react/ui/AppHeader.d.ts +0 -10
- package/dist/types/react/ui/AppLayout.d.ts +0 -10
- package/dist/types/react/ui/AppScope.d.ts +0 -7
- package/dist/types/react/ui/AppToolbar.d.ts +0 -30
- package/dist/types/react/ui/AreaChart.d.ts +0 -7
- package/dist/types/react/ui/BarChart.d.ts +0 -6
- package/dist/types/react/ui/Breakdown.d.ts +0 -13
- package/dist/types/react/ui/Button.d.ts +0 -11
- package/dist/types/react/ui/ChartLegend.d.ts +0 -32
- package/dist/types/react/ui/Checkbox.d.ts +0 -21
- package/dist/types/react/ui/CheckboxGroup.d.ts +0 -7
- package/dist/types/react/ui/ChoicePicker.d.ts +0 -39
- package/dist/types/react/ui/Comparison.d.ts +0 -14
- package/dist/types/react/ui/ComposedChart.d.ts +0 -41
- package/dist/types/react/ui/ComposedChartLegend.d.ts +0 -8
- package/dist/types/react/ui/ContentSkeleton.d.ts +0 -7
- package/dist/types/react/ui/DataApp.d.ts +0 -21
- package/dist/types/react/ui/DataAppFrame.d.ts +0 -52
- package/dist/types/react/ui/DataBoundary.d.ts +0 -14
- package/dist/types/react/ui/DataSection.d.ts +0 -14
- package/dist/types/react/ui/DataSectionBoundary.d.ts +0 -30
- package/dist/types/react/ui/DataTable.d.ts +0 -29
- package/dist/types/react/ui/DataValue.d.ts +0 -9
- package/dist/types/react/ui/DataViewToast.d.ts +0 -11
- package/dist/types/react/ui/DataWidget.d.ts +0 -34
- package/dist/types/react/ui/DateDisplay.d.ts +0 -9
- package/dist/types/react/ui/DateRangePicker.d.ts +0 -30
- package/dist/types/react/ui/DateTimeTooltip.d.ts +0 -10
- package/dist/types/react/ui/DimensionPicker.d.ts +0 -13
- package/dist/types/react/ui/EmptyState.d.ts +0 -6
- package/dist/types/react/ui/ExportControl.d.ts +0 -4
- package/dist/types/react/ui/FilterActions.d.ts +0 -10
- package/dist/types/react/ui/FilterBar.d.ts +0 -3
- package/dist/types/react/ui/FunnelChart.d.ts +0 -20
- package/dist/types/react/ui/GettingStarted.d.ts +0 -6
- package/dist/types/react/ui/GlossaryDefinition.d.ts +0 -7
- package/dist/types/react/ui/GlossaryExplanation.d.ts +0 -16
- package/dist/types/react/ui/GradientScroll.d.ts +0 -23
- package/dist/types/react/ui/Grid.d.ts +0 -12
- package/dist/types/react/ui/GridItem.d.ts +0 -7
- package/dist/types/react/ui/HelpPopover.d.ts +0 -21
- package/dist/types/react/ui/IconButton.d.ts +0 -19
- package/dist/types/react/ui/InspectionContext.d.ts +0 -12
- package/dist/types/react/ui/InspectionProvider.d.ts +0 -29
- package/dist/types/react/ui/JourneyChart.d.ts +0 -10
- package/dist/types/react/ui/Kbd.d.ts +0 -7
- package/dist/types/react/ui/LineChart.d.ts +0 -7
- package/dist/types/react/ui/LiveControl.d.ts +0 -10
- package/dist/types/react/ui/Menu.d.ts +0 -12
- package/dist/types/react/ui/MetricWidget.d.ts +0 -49
- package/dist/types/react/ui/NumberField.d.ts +0 -27
- package/dist/types/react/ui/NumberFilterPicker.d.ts +0 -11
- package/dist/types/react/ui/PeriodSummary.d.ts +0 -17
- package/dist/types/react/ui/PickerField.d.ts +0 -15
- package/dist/types/react/ui/PieChart.d.ts +0 -11
- package/dist/types/react/ui/PopoverSurface.d.ts +0 -5
- package/dist/types/react/ui/PresentStory.d.ts +0 -30
- package/dist/types/react/ui/QueryList.d.ts +0 -14
- package/dist/types/react/ui/RadioGroup.d.ts +0 -18
- package/dist/types/react/ui/Ranking.d.ts +0 -13
- package/dist/types/react/ui/RefreshControl.d.ts +0 -9
- package/dist/types/react/ui/RequestHint.d.ts +0 -20
- package/dist/types/react/ui/RetentionChart.d.ts +0 -27
- package/dist/types/react/ui/ScatterChart.d.ts +0 -17
- package/dist/types/react/ui/SearchField.d.ts +0 -23
- package/dist/types/react/ui/SearchInput.d.ts +0 -10
- package/dist/types/react/ui/SearchMatch.d.ts +0 -6
- package/dist/types/react/ui/SearchTypeahead.d.ts +0 -15
- package/dist/types/react/ui/SectionHeading.d.ts +0 -8
- package/dist/types/react/ui/Select.d.ts +0 -18
- package/dist/types/react/ui/SelectionMark.d.ts +0 -5
- package/dist/types/react/ui/Sheet.d.ts +0 -21
- package/dist/types/react/ui/Skeleton.d.ts +0 -8
- package/dist/types/react/ui/Stack.d.ts +0 -7
- package/dist/types/react/ui/StaticDataApp.d.ts +0 -4
- package/dist/types/react/ui/StatusPanel.d.ts +0 -10
- package/dist/types/react/ui/TableWidget.d.ts +0 -67
- package/dist/types/react/ui/Tabs.d.ts +0 -10
- package/dist/types/react/ui/TextContent.d.ts +0 -4
- package/dist/types/react/ui/TextWidget.d.ts +0 -20
- package/dist/types/react/ui/ThemeSelector.d.ts +0 -12
- package/dist/types/react/ui/Toast.d.ts +0 -8
- package/dist/types/react/ui/Tooltip.d.ts +0 -23
- package/dist/types/react/ui/TooltipSurface.d.ts +0 -3
- package/dist/types/react/ui/TrendChart.d.ts +0 -5
- package/dist/types/react/ui/UpdatedAt.d.ts +0 -9
- package/dist/types/react/ui/VariableBar.d.ts +0 -6
- package/dist/types/react/ui/VisualizationWidget.d.ts +0 -43
- package/dist/types/react/ui/WidgetDisclosure.d.ts +0 -6
- package/dist/types/react/ui/WidgetEvidence.d.ts +0 -12
- package/dist/types/react/ui/WidgetViewTabs.d.ts +0 -16
- package/dist/types/react/ui/chart-data.d.ts +0 -34
- package/dist/types/react/ui/chart-date-axis.d.ts +0 -15
- package/dist/types/react/ui/chart-interaction.d.ts +0 -21
- package/dist/types/react/ui/chart-primitives.d.ts +0 -22
- package/dist/types/react/ui/chart-time.d.ts +0 -16
- package/dist/types/react/ui/chartColor.d.ts +0 -2
- package/dist/types/react/ui/classNames.d.ts +0 -1
- package/dist/types/react/ui/csv-export.d.ts +0 -19
- package/dist/types/react/ui/data-context.d.ts +0 -76
- package/dist/types/react/ui/data-identifiers.d.ts +0 -32
- package/dist/types/react/ui/icons.d.ts +0 -47
- package/dist/types/react/ui/index.d.ts +0 -109
- package/dist/types/react/ui/journey-flow.d.ts +0 -49
- package/dist/types/react/ui/keyboard.d.ts +0 -6
- package/dist/types/react/ui/metric-comparison.d.ts +0 -30
- package/dist/types/react/ui/metric.d.ts +0 -11
- package/dist/types/react/ui/presentation.d.ts +0 -25
- package/dist/types/react/ui/search.d.ts +0 -6
- package/dist/types/react/ui/searchItems.d.ts +0 -36
- package/dist/types/react/ui/shortcuts.d.ts +0 -45
- package/dist/types/react/ui/story.d.ts +0 -20
- package/dist/types/react/ui/useAppAppearance.d.ts +0 -3
- package/dist/types/react/ui/useDataAppPresentation.d.ts +0 -3
- package/dist/types/react/ui/useSvgId.d.ts +0 -2
- package/dist/types/react/ui/variables.d.ts +0 -38
- package/dist/types/react/ui/widget-views.d.ts +0 -3
- package/dist/types/react/view-control-bar.d.ts +0 -16
- package/dist/types/react/view-controls.d.ts +0 -20
- package/dist/types/react/view-runtime.d.ts +0 -31
- package/dist/types/react/view.d.ts +0 -78
- package/dist/types/react/widgets.d.ts +0 -79
- package/dist/types/server/local.d.ts +0 -19
- package/dist/types/server/preview/host.d.ts +0 -1
- package/dist/types/server/preview/index.d.ts +0 -16
- package/dist/types/server/reload-channel.d.ts +0 -6
- package/dist/worker.js +0 -106
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
import type { DataView } from '../../core/data-view.js';
|
|
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, 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, ReactNode } from 'react';
|
|
2
|
-
import type { DataReading } from '../../core/reading.js';
|
|
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 '../../core/data-view.js';
|
|
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,34 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
import { type WidgetStatus } from './RequestHint.js';
|
|
3
|
-
import type { EmptyContent, BoundWidgetReading } from './presentation.js';
|
|
4
|
-
import type { WidgetEvidence } from './WidgetEvidence.js';
|
|
5
|
-
type DataWidgetBaseProps = {
|
|
6
|
-
title: ReactNode;
|
|
7
|
-
/** Document outline level. The widget title keeps the shared widget-heading appearance. */
|
|
8
|
-
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
9
|
-
/** Unique stable target for persisted feedback; overrides automatic evidence identity. */
|
|
10
|
-
annotationId?: string;
|
|
11
|
-
/** Result count beside the heading. Derive from the displayed result; zero is visible. */
|
|
12
|
-
count?: number;
|
|
13
|
-
description?: ReactNode;
|
|
14
|
-
evidence?: WidgetEvidence;
|
|
15
|
-
action?: ReactNode;
|
|
16
|
-
/** Reserved feedback slot; retain displayed content while refreshing or after failure. */
|
|
17
|
-
status?: WidgetStatus;
|
|
18
|
-
footer?: ReactNode;
|
|
19
|
-
bodyPadding?: 'inset' | 'flush';
|
|
20
|
-
} & Omit<ComponentPropsWithRef<'section'>, 'about' | 'title' | 'children'>;
|
|
21
|
-
/** Owns loading, empty content, actions, and inspection. Page and sheet mount the same
|
|
22
|
-
* body and footer; hold interactive child state above the widget to share it across mounts.
|
|
23
|
-
* A bound reading requires evidence; its child renderer runs only for nonempty ready data. */
|
|
24
|
-
export type DataWidgetProps<Data = unknown> = DataWidgetBaseProps & ((BoundWidgetReading<Data> & {
|
|
25
|
-
children: (data: Data) => ReactNode;
|
|
26
|
-
}) | {
|
|
27
|
-
reading?: never;
|
|
28
|
-
isEmpty?: never;
|
|
29
|
-
skeleton?: never;
|
|
30
|
-
emptyFallback?: EmptyContent;
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
});
|
|
33
|
-
export declare function DataWidget<Data>(props: DataWidgetProps<Data>): import("react").JSX.Element;
|
|
34
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { type DateFormat } from '../../core/format.js';
|
|
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 '../../core/date-range.js';
|
|
6
|
-
export type { DatePresetId, DateRange } from '../../core/date-range.js';
|
|
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,13 +0,0 @@
|
|
|
1
|
-
import type { ControlLabelPlacement } from './PickerField.js';
|
|
2
|
-
import type { DimensionOption, DimensionSelection, DimensionValue, DimensionVariable } from '../../core/dimension.js';
|
|
3
|
-
/** Adapts the typed dimension contract to the shared ChoicePicker control. */
|
|
4
|
-
export declare function DimensionPicker<T extends DimensionValue>({ filter, labelPlacement, value, onChange, options: suppliedOptions, loading, error, onRetry, }: {
|
|
5
|
-
filter: DimensionVariable<T>;
|
|
6
|
-
labelPlacement?: ControlLabelPlacement;
|
|
7
|
-
value: DimensionSelection<T>;
|
|
8
|
-
onChange: (value: DimensionSelection<T>) => void;
|
|
9
|
-
options?: readonly DimensionOption<T>[];
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
error?: boolean;
|
|
12
|
-
onRetry?: () => void;
|
|
13
|
-
}): 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,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, ReactNode } from 'react';
|
|
2
|
-
import type { DisclosedQuery } from '../../core/contract.js';
|
|
3
|
-
import type { DataContext, 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 {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef, 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, 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, ReactNode, 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 '../../core/data-view.js';
|
|
2
|
-
import type { DisclosedQuery } from '../../core/contract.js';
|
|
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;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type RefObject } from 'react';
|
|
2
|
-
import { type AboutDataProps, type AboutTab } from './AboutData.js';
|
|
3
|
-
type Inspection = {
|
|
4
|
-
key: string;
|
|
5
|
-
id: string;
|
|
6
|
-
props: AboutDataProps;
|
|
7
|
-
trigger: RefObject<HTMLButtonElement | null>;
|
|
8
|
-
};
|
|
9
|
-
type Selection = {
|
|
10
|
-
inspection: Inspection;
|
|
11
|
-
open: boolean;
|
|
12
|
-
tab: AboutTab;
|
|
13
|
-
} | null;
|
|
14
|
-
export declare const InspectionOwner: import("react").Context<{
|
|
15
|
-
subscribe(this: void, listener: () => void): () => void;
|
|
16
|
-
snapshot: () => Selection;
|
|
17
|
-
sync: () => void;
|
|
18
|
-
register(inspection: Inspection): void;
|
|
19
|
-
remove(key: string): void;
|
|
20
|
-
open(inspection: Inspection): void;
|
|
21
|
-
close(key: string): void;
|
|
22
|
-
controlled(inspection: Inspection, open: boolean | undefined): void;
|
|
23
|
-
selectTab(this: void, tab: AboutTab): void;
|
|
24
|
-
} | null>;
|
|
25
|
-
export declare const InspectionVisual: import("react").Context<boolean>;
|
|
26
|
-
export declare function InspectionProvider({ children }: {
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
29
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CountChartProps } from './chart-data.js';
|
|
2
|
-
import { type JourneyChartPath } from './journey-flow.js';
|
|
3
|
-
export type { JourneyChartPath } from './journey-flow.js';
|
|
4
|
-
export type JourneyChartProps = CountChartProps & {
|
|
5
|
-
/** Full paths and their population counts. Branches and outcomes are derived internally. */
|
|
6
|
-
paths: readonly JourneyChartPath[];
|
|
7
|
-
};
|
|
8
|
-
/** Path exploration with two initial steps, expandable prefixes, and three events per depth.
|
|
9
|
-
* Counts and flows use the Step 1 population. Compose inside VisualizationWidget. */
|
|
10
|
-
export declare function JourneyChart({ paths, unit, ariaLabel, className, formatValue, }: JourneyChartProps): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { type Shortcut } from './shortcuts.js';
|
|
3
|
-
export type KbdProps = ComponentPropsWithRef<'kbd'> & {
|
|
4
|
-
shortcut?: Shortcut;
|
|
5
|
-
};
|
|
6
|
-
/** A visible key or shortcut. Keep aria-keyshortcuts on the associated control. */
|
|
7
|
-
export declare function Kbd({ shortcut, children, className, ...props }: KbdProps): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ChartItem, ValueChartProps } from './chart-data.js';
|
|
2
|
-
export type LineChartItem = ChartItem;
|
|
3
|
-
export type LineChartProps = ValueChartProps;
|
|
4
|
-
/** Equally spaced finite samples in supplied order; fill missing periods explicitly.
|
|
5
|
-
* Supports negative values, single points, and horizontal scrolling for long series.
|
|
6
|
-
* Compose inside VisualizationWidget; hover/touch tooltips need no caller state. */
|
|
7
|
-
export declare function LineChart(props: LineChartProps): import("react").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
export type LiveIntervalSeconds = 30 | 60 | 300;
|
|
3
|
-
export type LiveControlProps = {
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
onChange: (enabled: boolean) => void;
|
|
6
|
-
intervalSeconds: LiveIntervalSeconds;
|
|
7
|
-
onIntervalChange: (seconds: LiveIntervalSeconds) => void;
|
|
8
|
-
} & Omit<ComponentPropsWithRef<'button'>, 'children' | 'onClick' | 'onChange'>;
|
|
9
|
-
/** Toggle an app-owned recurring refresh. The app supplies the timer and its cadence. */
|
|
10
|
-
export declare function LiveControl({ enabled, onChange, intervalSeconds, onIntervalChange, className, ...props }: LiveControlProps): import("react").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { MenuTrigger, MenuSection, Popover, Separator, type MenuProps, type MenuItemProps, type MenuTriggerProps } from 'react-aria-components';
|
|
3
|
-
export { MenuTrigger, MenuSection };
|
|
4
|
-
export { PressButton as MenuButton } from './Button.js';
|
|
5
|
-
export type { MenuProps, MenuItemProps, MenuTriggerProps };
|
|
6
|
-
export type MenuPopoverProps = ComponentPropsWithRef<typeof Popover>;
|
|
7
|
-
/** Anchored popup for a Menu; the surrounding MenuTrigger owns focus and dismissal. */
|
|
8
|
-
export declare function MenuPopover({ className, placement, ...props }: MenuPopoverProps): import("react").JSX.Element;
|
|
9
|
-
/** Actions by default; single selection creates radio items, multiple creates checkbox items. */
|
|
10
|
-
export declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): import("react").JSX.Element;
|
|
11
|
-
export declare function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>): import("react").JSX.Element;
|
|
12
|
-
export declare function MenuSeparator({ className, ...props }: ComponentPropsWithRef<typeof Separator>): import("react").JSX.Element;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
import type { WidgetStatus } from './RequestHint.js';
|
|
3
|
-
import type { WidgetEvidence } from './WidgetEvidence.js';
|
|
4
|
-
import { type MetricComparison } from './metric-comparison.js';
|
|
5
|
-
import { type MetricFormat } from '../../core/format.js';
|
|
6
|
-
import type { MetricReading } from '../../core/reading.js';
|
|
7
|
-
import { type MetricDefinition } from './metric.js';
|
|
8
|
-
type MetricWidgetBaseProps = {
|
|
9
|
-
label: string;
|
|
10
|
-
/** Document outline level. The label keeps the shared widget-heading appearance. */
|
|
11
|
-
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
12
|
-
annotationId?: string;
|
|
13
|
-
description?: ReactNode;
|
|
14
|
-
comparison?: MetricComparison;
|
|
15
|
-
evidence?: WidgetEvidence;
|
|
16
|
-
action?: ReactNode;
|
|
17
|
-
status?: WidgetStatus;
|
|
18
|
-
visual?: ReactNode;
|
|
19
|
-
} & Omit<ComponentPropsWithRef<'div'>, 'about' | 'children'>;
|
|
20
|
-
type UnboundMetricWidgetProps = MetricWidgetBaseProps & ({
|
|
21
|
-
loading: true;
|
|
22
|
-
value?: never;
|
|
23
|
-
format?: never;
|
|
24
|
-
content?: never;
|
|
25
|
-
} | ({
|
|
26
|
-
loading?: false;
|
|
27
|
-
} & ({
|
|
28
|
-
value: number;
|
|
29
|
-
format: MetricFormat;
|
|
30
|
-
content?: never;
|
|
31
|
-
} | {
|
|
32
|
-
content: ReactNode;
|
|
33
|
-
value?: never;
|
|
34
|
-
format?: never;
|
|
35
|
-
})));
|
|
36
|
-
/** VisualizationWidget with a formatted metric, optional comparison, and evidence. */
|
|
37
|
-
export type MetricWidgetProps = UnboundMetricWidgetProps | (Omit<MetricWidgetBaseProps, 'label' | 'comparison' | 'evidence'> & {
|
|
38
|
-
metric: MetricDefinition;
|
|
39
|
-
reading: MetricReading;
|
|
40
|
-
label?: never;
|
|
41
|
-
value?: never;
|
|
42
|
-
format?: never;
|
|
43
|
-
content?: never;
|
|
44
|
-
comparison?: never;
|
|
45
|
-
evidence?: never;
|
|
46
|
-
loading?: never;
|
|
47
|
-
});
|
|
48
|
-
export declare function MetricWidget(props: MetricWidgetProps): import("react").JSX.Element;
|
|
49
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { NumberField as AriaNumberField } from 'react-aria-components';
|
|
3
|
-
export type NumberFieldProps = Omit<ComponentPropsWithRef<typeof AriaNumberField>, 'value' | 'onChange' | 'className'> & {
|
|
4
|
-
label: string;
|
|
5
|
-
value: number | null;
|
|
6
|
-
onChange: (value: number | null) => void;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
/** Localized numeric entry. Empty input is null rather than zero. */
|
|
10
|
-
export declare function NumberField({ label, value, onChange, className, ...props }: NumberFieldProps): import("react").JSX.Element;
|
|
11
|
-
export type NumberRange = {
|
|
12
|
-
min?: number;
|
|
13
|
-
max?: number;
|
|
14
|
-
};
|
|
15
|
-
export type NumberRangeFieldProps = {
|
|
16
|
-
label: string;
|
|
17
|
-
value: NumberRange;
|
|
18
|
-
onChange: (value: NumberRange) => void;
|
|
19
|
-
/** Reports whether the current draft interval can be committed. */
|
|
20
|
-
onValidityChange?: (valid: boolean) => void;
|
|
21
|
-
min?: number;
|
|
22
|
-
max?: number;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
className?: string;
|
|
25
|
-
};
|
|
26
|
-
/** Commit valid intervals; retain invalid draft bounds so users can correct them. */
|
|
27
|
-
export declare function NumberRangeField({ label, value, onChange, onValidityChange, min, max, disabled, className, }: NumberRangeFieldProps): import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ControlLabelPlacement } from './PickerField.js';
|
|
2
|
-
import { type NumberFilter, type NumberSelection } from '../../core/filters.js';
|
|
3
|
-
export type NumberFilterPickerProps = {
|
|
4
|
-
filter: NumberFilter;
|
|
5
|
-
labelPlacement?: ControlLabelPlacement;
|
|
6
|
-
value: NumberSelection;
|
|
7
|
-
onChange: (value: NumberSelection) => void;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
};
|
|
10
|
-
/** Edit a numeric predicate in a panel. Apply commits one complete value; dismissing discards the draft. */
|
|
11
|
-
export declare function NumberFilterPicker({ filter, value, onChange, disabled, labelPlacement, }: NumberFilterPickerProps): import("react").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ReportingPeriod } from '../../core/contract.js';
|
|
2
|
-
import { type DateTimeFormatOptions } from '../../core/format.js';
|
|
3
|
-
export type { ReportingPeriod } from '../../core/contract.js';
|
|
4
|
-
export type PeriodComparison = {
|
|
5
|
-
kind: 'previous';
|
|
6
|
-
} | {
|
|
7
|
-
kind: 'period';
|
|
8
|
-
period: ReportingPeriod;
|
|
9
|
-
};
|
|
10
|
-
export type PeriodSummaryProps = {
|
|
11
|
-
period: ReportingPeriod;
|
|
12
|
-
comparison?: PeriodComparison;
|
|
13
|
-
className?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare function reportingPeriodText(period: ReportingPeriod, options?: DateTimeFormatOptions): string;
|
|
16
|
-
/** Read-only period context for the variable bar, including exact bounds for assistive technology. */
|
|
17
|
-
export declare function PeriodSummary({ period, comparison, className, }: PeriodSummaryProps): import("react").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
/** Inline labels sit with the value; above and beside labels have a separate layout slot. */
|
|
3
|
-
export type ControlLabelPlacement = 'inline' | 'above' | 'beside';
|
|
4
|
-
/** Popup triggers retain their accessible names when the visible label moves outside. */
|
|
5
|
-
export declare function PickerField({ label, labelPlacement, children, }: {
|
|
6
|
-
label: string;
|
|
7
|
-
labelPlacement?: ControlLabelPlacement;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
10
|
-
/** Shared label, value, and disclosure layout for selection and predicate controls. */
|
|
11
|
-
export declare function PickerTriggerContent({ label, labelPlacement, value, }: {
|
|
12
|
-
label: string;
|
|
13
|
-
labelPlacement: ControlLabelPlacement;
|
|
14
|
-
value: ReactNode;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ChartItem, ValueChartProps } from './chart-data.js';
|
|
2
|
-
export type PieChartItem = ChartItem;
|
|
3
|
-
export type PieChartProps = ValueChartProps & {
|
|
4
|
-
/** Omit the built-in key when composing a separate ChartLegend. */
|
|
5
|
-
showLegend?: boolean;
|
|
6
|
-
};
|
|
7
|
-
/** Nonnegative, mutually exclusive parts; shares use the sum of supplied items.
|
|
8
|
-
* Include Other to represent the whole. Zero values remain in the legend; all-zero
|
|
9
|
-
* data shows an empty circle. Colors follow item order. Compose inside VisualizationWidget;
|
|
10
|
-
* hover/touch tooltips coordinate slice and legend emphasis without caller state. */
|
|
11
|
-
export declare function PieChart({ items, unit, ariaLabel, showLegend, formatValue, }: PieChartProps): import("react").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from 'react';
|
|
2
|
-
import { Popover } from 'react-aria-components';
|
|
3
|
-
export declare const PopoverContainerContext: import("react").Context<HTMLElement | undefined>;
|
|
4
|
-
/** Shared popup paint; each control owns placement, dimensions, and contents. */
|
|
5
|
-
export declare function PopoverSurface({ className, ...props }: ComponentProps<typeof Popover>): import("react").JSX.Element;
|