@altertable/data-app-react 0.74.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { $ as TableWidgetColumn, $t as defineDataIdentifiers, A as AppVariableValues, At as EmptyContent, B as dateRangeVariable, Bt as DataContext, C as MetricWidgetProps$1, Ct as CsvCell, D as DataAppControlProps, E as DataAppBaseProps, F as DateRangeVariableOptions, G as mountDataApp, Gt as StoryFinding, H as searchVariable, Ht as GlossaryEntry, I as MultiChoiceVariable, J as DataAppStyleToken, Jt as MetricDefinition, K as DataAppStyle, L as SearchVariable, M as ChoiceVariable, N as DateRangeSelection, P as DateRangeVariable, Qt as TableIdentifier, R as VariablePresentation, T as DataValueProps$1, Tt as CsvTable, Ut as createDataContext, V as multiChoiceVariable, Vt as EvidenceDeclaration, X as injectDataAppStyles, Xt as ColumnIdentifier, Y as DataAppStylesOptions, Yt as MetricComparison, Z as TableDisplayMode, Zt as DataIdentifierDefinition, _ as VisualizationWidgetView$1, a as SectionHeadingProps, c as TooltipProvider, d as AppIconName, en as Button, et as TableWidgetProps$1, g as VisualizationWidgetProps$1, i as SectionHeading, j as ChoiceOption, jt as WidgetEvidence, k as AppVariable, kt as ItemActions, l as TooltipProviderProps, m as HelpPopoverProps, n as DateDisplay, o as Tooltip, q as DataAppStyleHooks, r as DateDisplayProps, s as TooltipProps, t as useDateFormatting, tn as ButtonProps, tt as TableWidgetSearch, vt as SearchSuggestion, y as TextWidgetProps$1, z as choiceVariable, zt as AuthoringDataContext } from "./chunks/date-formatting.js";
1
+ import { $ as multiChoiceVariable, $t as EvidenceDeclaration, A as DataAppControlProps, At as SearchSuggestion, B as DateTimeRangeComparisonSelection, E as MetricWidgetProps$1, F as ChoiceVariable, Ft as CsvCell, G as DateTimeRangeVariableOptions, H as DateTimeRangeComparisonVariableOptions, Ht as EmptyContent, I as DateRangeSelection, J as VariablePresentation, K as MultiChoiceVariable, L as DateRangeVariable, Lt as CsvTable, M as AppVariable, N as AppVariableValues, O as DataValueProps$1, P as ChoiceOption, Q as dateTimeRangeVariable, Qt as DataContext, R as DateRangeVariableOptions, S as TextWidgetProps$1, U as DateTimeRangePreset, Ut as WidgetEvidence, V as DateTimeRangeComparisonVariable, Vt as ItemActions, W as DateTimeRangeVariable, X as dateRangeVariable, Y as choiceVariable, Z as dateTimeRangePresets, Zt as AuthoringDataContext, _ as HelpPopoverProps, a as DateDisplay, at as DataAppStyleHooks, b as VisualizationWidgetView$1, c as SectionHeadingProps, cn as ColumnIdentifier, ct as injectDataAppStyles, d as TooltipProvider, dn as defineDataIdentifiers, dt as TableWidgetColumn, en as GlossaryEntry, et as searchVariable, f as TooltipProviderProps, fn as Button, ft as TableWidgetProps$1, i as useDateFormatting, it as DataAppStyle, k as DataAppBaseProps, l as Tooltip, ln as DataIdentifierDefinition, lt as TableDisplayMode, m as AppIconName, n as DateTimeRangePickerProps, o as DateDisplayProps, on as MetricDefinition, ot as DataAppStyleToken, pn as ButtonProps, pt as TableWidgetSearch, q as SearchVariable, rn as StoryFinding, rt as mountDataApp, s as SectionHeading, sn as MetricComparison, st as DataAppStylesOptions, t as DateTimeRangePicker, tn as createDataContext, u as TooltipProps, un as TableIdentifier, y as VisualizationWidgetProps$1, z as DateTimeRangeComparisonRequest } from "./chunks/DateTimeRangePicker.js";
2
2
  import { DataClient, InputOf, OutputOf } from "@altertable/data-app/client";
3
3
  import { AppVariableValues as AppVariableValues$1, CheckedFacetContexts, CheckedVariableDeclarations, ChoiceVariable as ChoiceVariable$1, DataReading, DataView, DateRangeVariable as DateRangeVariable$1, DimensionFilterSettings, DimensionValue, DisplayedSnapshot, FacetVariable, IsUnion, MetricReading, MetricValues, MetricValues as MetricValues$1, VariableCollection } from "@altertable/data-app/internal";
4
4
  import { ComponentPropsWithRef, ReactNode, Ref, RefObject } from "react";
5
+ import { DataAppAnnotationDraft, DataOperations, DateRangeRequest, DateTimeRangeComparisonRequest as DateTimeRangeComparisonRequest$1, DateTimeRangeComparisonVariable as DateTimeRangeComparisonVariable$1, DimensionOption, DisclosedQuery, ReportingPeriod, ReportingPeriod as ReportingPeriod$1 } from "@altertable/data-app/contract";
5
6
  import { DateFormat, MetricFormat } from "@altertable/data-app/format";
6
- import { DataAppAnnotationDraft, DataOperations, DateRangeRequest, DimensionOption, DisclosedQuery, ReportingPeriod, ReportingPeriod as ReportingPeriod$1 } from "@altertable/data-app/contract";
7
7
  import { Theme } from "@altertable/data-app/appearance";
8
8
  //#region src/view-runtime.d.ts
9
9
  type ViewResult<Data, Input> = {
@@ -61,19 +61,19 @@ type DetailNavigation = {
61
61
  export declare function useDetailNavigation(): DetailNavigation;
62
62
  //#endregion
63
63
  //#region src/view.d.ts
64
- type ResolvedVariable<Variable> = Variable extends DateRangeVariable$1 ? DateRangeRequest : AppVariableValues$1<{
64
+ type ResolvedVariable<Variable> = Variable extends DateTimeRangeComparisonVariable$1 ? DateTimeRangeComparisonRequest$1 : Variable extends DateRangeVariable$1 ? DateRangeRequest : AppVariableValues$1<{
65
65
  value: Variable;
66
66
  }>['value'];
67
67
  type ResolvedVariables<Variables extends VariableCollection> = { [Key in keyof Variables]: ResolvedVariable<Variables[Key]> | (string extends keyof Variables ? undefined : never); };
68
- type DateVariableKey<Variables extends VariableCollection> = { [Key in keyof Variables]: Variables[Key] extends DateRangeVariable$1 ? Key : never; }[keyof Variables] & string;
68
+ type DateVariableKey<Variables extends VariableCollection> = { [Key in keyof Variables]: Variables[Key] extends DateRangeVariable$1 | DateTimeRangeComparisonVariable$1 ? Key : never; }[keyof Variables] & string;
69
+ /** Extract the selected range and comparison unchanged, including from nested inputs. */
69
70
  type ViewDate<Variables extends VariableCollection, Input> = {
70
71
  variable: DateVariableKey<Variables>;
71
- /** Extract the selected range and comparison unchanged, including from nested inputs. */
72
- input: (input: Input) => DateRangeRequest;
72
+ input: (input: Input) => DateRangeRequest | DateTimeRangeComparisonRequest$1;
73
73
  };
74
74
  /** Read variable values from a custom operation input; omitted keys use top-level fields. */
75
75
  type ViewBindings<Variables extends VariableCollection, Input> = Partial<{ [Key in keyof Variables]: (input: Input) => ResolvedVariables<Variables>[Key]; }>;
76
- type RequiredFilterBindingKeys<Variables extends VariableCollection, Input> = { [Key in keyof Variables]: Variables[Key]['kind'] extends 'dateRange' ? never : Variables[Key]['kind'] extends 'choice' ? [Input] extends [Record<Key, unknown>] ? ResolvedVariables<Variables>[Key] extends Input[Key] ? never : Key : Key : Extract<Variables[Key]['presentation'], {
76
+ type RequiredFilterBindingKeys<Variables extends VariableCollection, Input> = { [Key in keyof Variables]: Variables[Key]['kind'] extends 'dateRange' | 'dateTimeRangeComparison' ? never : Variables[Key]['kind'] extends 'choice' ? [Input] extends [Record<Key, unknown>] ? ResolvedVariables<Variables>[Key] extends Input[Key] ? never : Key : Key : Extract<Variables[Key]['presentation'], {
77
77
  group: 'display';
78
78
  }> extends never ? [Input] extends [Record<Key, ResolvedVariables<Variables>[Key]>] ? [ResolvedVariables<Variables>[Key]] extends [Input[Key]] ? never : Key : Key : never; }[keyof Variables];
79
79
  /** Derive compatible top-level filter bindings; require readers for other input shapes. */
@@ -266,9 +266,9 @@ declare class Dataset<Data, Input, Row> extends ExportDataset<Data, Input> {
266
266
  declare class Metric<Data, Input> extends RegisteredBinding {
267
267
  #private;
268
268
  readonly definition: MetricDefinition;
269
- constructor(definition: MetricDefinition, select: (data: Data, input: Input) => MetricValues$1, date?: (input: Input) => DateRangeRequest, owner?: object);
269
+ constructor(definition: MetricDefinition, select: (data: Data, input: Input) => MetricValues$1, date?: (input: Input) => DateRangeRequest | DateTimeRangeComparisonRequest$1, owner?: object);
270
270
  read: <Source extends ViewSource<Data, Input>>(source: Source) => SourceReading<Source, MetricValues$1 & {
271
- period?: DateRangeRequest;
271
+ period?: DateRangeRequest | DateTimeRangeComparisonRequest$1;
272
272
  }>;
273
273
  records<DetailData, DetailInput>(options: {
274
274
  target: DetailView<DetailData, DetailInput>;
@@ -324,6 +324,34 @@ declare class ViewContent<Data, Input> {
324
324
  }
325
325
  //#endregion
326
326
  //#region src/hooks.d.ts
327
+ type CalendarTimeViewDefinition<Operations extends DataOperations, Name extends keyof Operations & string, Additional extends VariableCollection, Context extends AuthoringDataContext> = {
328
+ operation: Name & (true extends IsUnion<NoInfer<Name>> ? never : unknown);
329
+ dataContext: Context;
330
+ time: Omit<DateRangeVariableOptions, 'key'>;
331
+ variables?: Additional & CheckedVariableDeclarations<NoInfer<Additional>> & {
332
+ period?: never;
333
+ } & Omit<CheckedFacetContexts<TimeVariables<NoInfer<Additional>>>, 'period'> & Omit<CheckedFacetSources<Operations, TimeVariables<NoInfer<Additional>>>, 'period'>;
334
+ isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
335
+ emptyFallback: EmptyContent;
336
+ } & TimeInputMapping<NoInfer<Additional>, InputOf<Operations[Name]>> & ViewBindingOptions<TimeVariables<NoInfer<Additional>>, InputOf<Operations[Name]>, RequiredPeriodBinding<InputOf<Operations[Name]>>>;
337
+ type DateTimeViewDefinition<Operations extends DataOperations, Name extends keyof Operations & string, Additional extends VariableCollection, Context extends AuthoringDataContext, Period extends DateTimeRangeVariable | DateTimeRangeComparisonVariable = DateTimeRangeVariable> = Omit<DataViewDefinition<Name, {
338
+ period: Period;
339
+ } & NoInfer<Additional>, InputOf<Operations[Name]>, OutputOf<Operations[Name]>>, 'variables' | 'describeInput' | 'date'> & {
340
+ operation: Name & (true extends IsUnion<NoInfer<Name>> ? never : unknown);
341
+ dataContext: Context;
342
+ time: Period;
343
+ variables?: Additional & CheckedVariableDeclarations<NoInfer<Additional>> & {
344
+ period?: never;
345
+ } & Omit<CheckedFacetContexts<{
346
+ period: Period;
347
+ } & NoInfer<Additional>>, 'period'> & Omit<CheckedFacetSources<Operations, {
348
+ period: Period;
349
+ } & NoInfer<Additional>>, 'period'>;
350
+ } & ViewBindingOptions<{
351
+ period: Period;
352
+ } & NoInfer<Additional>, InputOf<Operations[Name]>, Period extends DateTimeRangeComparisonVariable ? InputOf<Operations[Name]> extends {
353
+ period: DateTimeRangeComparisonRequest;
354
+ } ? never : 'period' : never>;
327
355
  type TimeVariables<Additional extends VariableCollection> = {
328
356
  period: ReturnType<typeof dateRangeVariable>;
329
357
  } & Additional;
@@ -394,18 +422,15 @@ export declare function createDataHooks<Operations extends DataOperations>(clien
394
422
  operation: Name;
395
423
  dataContext: Context;
396
424
  }) => BoundDetailView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Context>;
397
- defineTimeView: <Name extends keyof Operations & string, const Additional extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: {
398
- operation: Name & (true extends IsUnion<NoInfer<Name>> ? never : unknown);
399
- dataContext: Context;
400
- time: Omit<DateRangeVariableOptions, 'key'>;
401
- variables?: Additional & CheckedVariableDeclarations<NoInfer<Additional>> & {
402
- period?: never;
403
- } & Omit<CheckedFacetContexts<TimeVariables<NoInfer<Additional>>>, 'period'> & Omit<CheckedFacetSources<Operations, TimeVariables<NoInfer<Additional>>>, 'period'>;
404
- isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
405
- emptyFallback: EmptyContent;
406
- } & TimeInputMapping<NoInfer<Additional>, InputOf<Operations[Name]>> & ViewBindingOptions<TimeVariables<NoInfer<Additional>>, InputOf<Operations[Name]>, RequiredPeriodBinding<InputOf<Operations[Name]>>>) => BoundDataView<Name, {
407
- period: DateRangeVariable;
408
- } & Additional, InputOf<Operations[Name]>, OutputOf<Operations[Name]>, Context, true>;
425
+ defineTimeView: {
426
+ <Name extends keyof Operations & string, const Additional extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: DateTimeViewDefinition<Operations, Name, Additional, Context, DateTimeRangeComparisonVariable>): BoundDataView<Name, {
427
+ period: DateTimeRangeComparisonVariable;
428
+ } & Additional, InputOf<Operations[Name]>, OutputOf<Operations[Name]>, Context, true>;
429
+ <Name extends keyof Operations & string, const Additional extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: DateTimeViewDefinition<Operations, Name, Additional, Context>): BoundDataView<Name, {
430
+ period: DateTimeRangeVariable;
431
+ } & Additional, InputOf<Operations[Name]>, OutputOf<Operations[Name]>, Context, false>;
432
+ <Name extends keyof Operations & string, const Additional extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: CalendarTimeViewDefinition<Operations, Name, Additional, Context>): BoundDataView<Name, TimeVariables<Additional>, InputOf<Operations[Name]>, OutputOf<Operations[Name]>, Context, true>;
433
+ };
409
434
  defineFacetFilter: {
410
435
  <const Context extends VariableCollection, const Name extends FacetOperationName<Operations, string>>(config: FacetConfig<Operations, string, Context, Name>): FacetVariable<string, Readonly<Context>, Name, InputOf<Operations[Name]>>;
411
436
  <const Context extends VariableCollection, const Name extends FacetOperationName<Operations, number>>(config: FacetConfig<Operations, number, Context, Name>): FacetVariable<number, Readonly<Context>, Name, InputOf<Operations[Name]>>;
@@ -419,10 +444,12 @@ type DataAppProps<Data, Input = unknown> = Omit<DataAppBaseProps, 'dataContext'>
419
444
  };
420
445
  /** Show supplied datasets’ record suggestions on the first declared search. Defaults to true. */
421
446
  showSearchSuggestions?: boolean;
422
- story: (snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & {
447
+ /** Omit to leave presentation out of the toolbar. */
448
+ story?: (snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & {
423
449
  evidence: RegisteredBinding;
424
450
  })[];
425
- datasets: readonly [ExportDataset<Data, Input>, ...ExportDataset<Data, Input>[]];
451
+ /** Omit to leave CSV export out of the toolbar. */
452
+ datasets?: readonly [ExportDataset<Data, Input>, ...ExportDataset<Data, Input>[]];
426
453
  /** Detail destinations available to dataset actions and metric record inspection. */
427
454
  details?: readonly DetailContent<any, any>[];
428
455
  };
@@ -688,6 +715,16 @@ type AnnotationTargetProps = ComponentPropsWithRef<'div'> & {
688
715
  /** A stable feedback target for app-owned content outside the built-in widgets. */
689
716
  export declare function AnnotationTarget({ annotationId, label, evidence, ...props }: AnnotationTargetProps): import("react").JSX.Element;
690
717
  //#endregion
718
+ //#region src/ui/ExternalLink.d.ts
719
+ type ExternalLinkProps = {
720
+ href: string;
721
+ children: ReactNode;
722
+ className?: string;
723
+ title?: string;
724
+ };
725
+ /** Open HTTPS links through the host when embedded, or a native new tab when standalone. */
726
+ export declare function ExternalLink({ href, children, className, title }: ExternalLinkProps): import("react").JSX.Element;
727
+ //#endregion
691
728
  //#region src/annotations/useDataAppAnnotations.d.ts
692
729
  /** Bind annotation delivery to this app's current iframe bridge. The host owns storage and submission. */
693
730
  export declare function useDataAppAnnotations(): {
@@ -745,5 +782,5 @@ export declare function AnnotationBar({ ref, annotations, active, theme, disable
745
782
  /** Install only the outer-frame annotation controls; leave host page typography and layout intact. */
746
783
  export declare function injectDataAppAnnotationStyles(options?: DataAppStylesOptions): HTMLStyleElement;
747
784
  //#endregion
748
- export { type AnnotationBarHandle, type AnnotationBarProps, type AnnotationTargetProps, type AppVariable, type AppVariableValues, type BreakdownItem, type BreakdownProps, Button, type ButtonProps, type ChoiceOption, type ChoiceVariable, type ColumnIdentifier, type ComparisonProps, type CsvCell, type DataAppProps, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataAppStylesOptions, type DataContext, type DataIdentifierDefinition, type DataSectionProps, type DataValueProps, type DatasetColumn, type DatasetDeclaration as DatasetDefinition, type DatasetSuggestionOptions, DateDisplay, type DateDisplayProps, type DateRangeSelection, type DateRangeVariable, type DateRangeVariableOptions, type DateTimeTooltipProps, type DetailViewDefinition, type EmptyStateProps, type GlossaryEntry, type GridItemProps, type GridProps, type IconButtonProps, type MetricDefinition, type MetricRecords, type MetricValues, type MetricWidgetProps, type MultiChoiceVariable, type PeriodComparison, type PeriodSummaryProps, type RankingItem, type RankingProps, type ReportingPeriod, type SearchVariable, SectionHeading, type SectionHeadingProps, type SkeletonProps, type StackProps, type TableIdentifier, type TableWidgetProps, type TableWidgetSearch, type TextContentProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type UpdatedAtProps, type VariablePresentation, type VisualizationWidgetProps, type VisualizationWidgetView, type WidgetEvidence, choiceVariable, createDataContext, dateRangeVariable, defineDataIdentifiers, injectDataAppStyles, mountDataApp, multiChoiceVariable, searchVariable, useDateFormatting };
785
+ export { type AnnotationBarHandle, type AnnotationBarProps, type AnnotationTargetProps, type AppVariable, type AppVariableValues, type BreakdownItem, type BreakdownProps, Button, type ButtonProps, type ChoiceOption, type ChoiceVariable, type ColumnIdentifier, type ComparisonProps, type CsvCell, type DataAppProps, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataAppStylesOptions, type DataContext, type DataIdentifierDefinition, type DataSectionProps, type DataValueProps, type DatasetColumn, type DatasetDeclaration as DatasetDefinition, type DatasetSuggestionOptions, DateDisplay, type DateDisplayProps, type DateRangeSelection, type DateRangeVariable, type DateRangeVariableOptions, type DateTimeRangeComparisonRequest, type DateTimeRangeComparisonSelection, type DateTimeRangeComparisonVariable, type DateTimeRangeComparisonVariableOptions, DateTimeRangePicker, type DateTimeRangePickerProps, type DateTimeRangePreset, type DateTimeRangeVariable, type DateTimeRangeVariableOptions, type DateTimeTooltipProps, type DetailViewDefinition, type EmptyStateProps, type ExternalLinkProps, type GlossaryEntry, type GridItemProps, type GridProps, type IconButtonProps, type MetricDefinition, type MetricRecords, type MetricValues, type MetricWidgetProps, type MultiChoiceVariable, type PeriodComparison, type PeriodSummaryProps, type RankingItem, type RankingProps, type ReportingPeriod, type SearchVariable, SectionHeading, type SectionHeadingProps, type SkeletonProps, type StackProps, type TableIdentifier, type TableWidgetProps, type TableWidgetSearch, type TextContentProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type UpdatedAtProps, type VariablePresentation, type VisualizationWidgetProps, type VisualizationWidgetView, type WidgetEvidence, choiceVariable, createDataContext, dateRangeVariable, dateTimeRangePresets, dateTimeRangeVariable, defineDataIdentifiers, injectDataAppStyles, mountDataApp, multiChoiceVariable, searchVariable, useDateFormatting };
749
786
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,11 @@
1
- import { $ as TableWidgetColumn, Bt as DataContext, C as MetricWidgetProps, Dt as ExplorationActionControl, Et as ExplorationAction, Ft as AboutSubject, Gt as StoryFinding, Ht as GlossaryEntry, It as AboutTab, J as DataAppStyleToken, K as DataAppStyle, Kt as PresentStory, Lt as Sheet, Mt as AboutData, Nt as AboutDataProps, O as StaticDataAppProps, Ot as ExplorationActionControlProps, Pt as AboutEmpty, Q as TableWidget$1, Rt as SheetProps, S as MetricWidget$1, St as SearchFieldProps, T as DataValueProps, Tt as CsvTable, U as useAppVariables, W as DataAppProvider, Wt as BoundStory, X as injectDataAppStyles, _t as DataTableTimestampProps, a as SectionHeadingProps, at as SearchMatchValue, b as DataWidget, bt as SearchTypeaheadProps, c as TooltipProvider, ct as searchItems, d as AppIconName, dt as DataTableEmptyRow, et as TableWidgetProps, f as AppIconProps, ft as DataTableEmptyRowProps, g as VisualizationWidgetProps, gt as DataTableTimestamp, h as VisualizationWidget$1, ht as DataTableShare, i as SectionHeading, it as SearchItemsOptions, kt as ItemActions, l as TooltipProviderProps, lt as WidgetStatus, m as HelpPopoverProps, mt as DataTableSearch, n as DateDisplay, nn as PressButton, nt as SearchAttribute, o as Tooltip, ot as SearchRange, p as HelpPopover, pt as DataTableProps, q as DataAppStyleHooks, qt as PresentStoryProps, r as DateDisplayProps, rt as SearchHit, s as TooltipProps, st as matchSearchText, t as useDateFormatting, u as AppIcon, ut as DataTable, v as TextWidget$1, vt as SearchSuggestion, w as DataValue, wt as CsvExport, x as DataWidgetProps, xt as SearchField, y as TextWidgetProps, yt as SearchTypeahead } from "../chunks/date-formatting.js";
1
+ import { At as SearchSuggestion, B as DateTimeRangeComparisonSelection, Bt as ExplorationActionControlProps, C as DataWidget, Ct as DataTableEmptyRow, D as DataValue, Dt as DataTableShare, E as MetricWidgetProps, Et as DataTableSearch, G as DateTimeRangeVariableOptions, Gt as AboutDataProps, H as DateTimeRangeComparisonVariableOptions, It as CsvExport, Jt as AboutTab, Kt as AboutEmpty, Lt as CsvTable, Mt as SearchTypeaheadProps, Nt as SearchField, O as DataValueProps, Ot as DataTableTimestamp, Pt as SearchFieldProps, Q as dateTimeRangeVariable, Qt as DataContext, Rt as ExplorationAction, S as TextWidgetProps, St as DataTable, T as MetricWidget$1, Tt as DataTableProps, U as DateTimeRangePreset, V as DateTimeRangeComparisonVariable, Vt as ItemActions, W as DateTimeRangeVariable, Wt as AboutData, Xt as SheetProps, Yt as Sheet, Z as dateTimeRangePresets, _ as HelpPopoverProps, _t as SearchMatchValue, a as DateDisplay, an as PresentStoryProps, at as DataAppStyleHooks, bt as searchItems, c as SectionHeadingProps, ct as injectDataAppStyles, d as TooltipProvider, dt as TableWidgetColumn, en as GlossaryEntry, f as TooltipProviderProps, ft as TableWidgetProps, g as HelpPopover, gt as SearchItemsOptions, h as AppIconProps, ht as SearchHit, i as useDateFormatting, in as PresentStory, it as DataAppStyle, j as StaticDataAppProps, jt as SearchTypeahead, kt as DataTableTimestampProps, l as Tooltip, m as AppIconName, mn as PressButton, mt as SearchAttribute, n as DateTimeRangePickerProps, nn as BoundStory, nt as DataAppProvider, o as DateDisplayProps, ot as DataAppStyleToken, p as AppIcon, qt as AboutSubject, r as ControlLabelPlacement, rn as StoryFinding, s as SectionHeading, t as DateTimeRangePicker, tt as useAppVariables, u as TooltipProps, ut as TableWidget$1, v as VisualizationWidget$1, vt as SearchRange, w as DataWidgetProps, wt as DataTableEmptyRowProps, x as TextWidget$1, xt as WidgetStatus, y as VisualizationWidgetProps, yt as matchSearchText, z as DateTimeRangeComparisonRequest, zt as ExplorationActionControl } from "../chunks/DateTimeRangePicker.js";
2
2
  import { ChoiceOption, ChoiceOption as ChoiceOption$1, DataReading, DatePresetId, DatePresetId as DatePresetId$1, DateRange, DateRange as DateRange$1, DimensionSelectionVariable, DimensionValue, MetricReading } from "@altertable/data-app/internal";
3
3
  import { ComponentProps, ComponentPropsWithRef, ReactNode, RefAttributes } from "react";
4
4
  import { DateRangePicker as DateRangePicker$1, MenuItemProps, MenuProps, MenuSection, MenuTrigger, MenuTriggerProps, NumberField as NumberField$1, Popover, Radio as Radio$1, RadioGroup as RadioGroup$1, Separator } from "react-aria-components";
5
5
  import { Tab as Tab$1, TabListProps, TabPanel as TabPanel$1, TabPanels, Tabs as Tabs$1 } from "react-aria-components/Tabs";
6
+ import { DimensionOption, DimensionSelection, DisclosedQuery, NumberFilter, NumberSelection } from "@altertable/data-app/contract";
6
7
  import { MetricFormat } from "@altertable/data-app/format";
7
8
  import { CalendarDate } from "@internationalized/date";
8
- import { DimensionOption, DimensionSelection, DisclosedQuery, NumberFilter, NumberSelection } from "@altertable/data-app/contract";
9
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";
10
10
  //#region src/ui/keyboard.d.ts
11
11
  type KeyEvent = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'isComposing'>;
@@ -21,10 +21,6 @@ export declare function GettingStarted({ dataContext }: {
21
21
  dataContext: DataContext;
22
22
  }): import("react").JSX.Element;
23
23
  //#endregion
24
- //#region src/ui/PickerField.d.ts
25
- /** Inline labels sit with the value; above and beside labels have a separate layout slot. */
26
- type ControlLabelPlacement = 'inline' | 'above' | 'beside';
27
- //#endregion
28
24
  //#region src/ui/DimensionPicker.d.ts
29
25
  /** Adapts the typed dimension contract to the shared ChoicePicker control. */
30
26
  export declare function DimensionPicker<T extends DimensionValue>({ filter, labelPlacement, value, onChange, options: suppliedOptions, loading, error, onRetry }: {
@@ -587,5 +583,5 @@ export declare const VisualizationWidget: typeof VisualizationWidget$1;
587
583
  export declare const TableWidget: typeof TableWidget$1;
588
584
  export declare const MetricWidget: typeof MetricWidget$1;
589
585
  //#endregion
590
- 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 ChartLegendItemProps, type ChartLegendLabelProps, type ChartLegendMarkerKind, type ChartLegendMarkerProps, type ChartLegendProps, type CheckboxGroupProps, type CheckboxProps, type ChoiceOption, type ChoicePickerProps, type ComposedChartLegendProps, type ComposedChartProps, type CsvExport, type CsvTable, type DataAppProps, DataAppProvider, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataReading, DataTable, DataTableEmptyRow, type DataTableEmptyRowProps, type DataTableProps, type DataTableSearch, DataTableShare, DataTableTimestamp, type DataTableTimestampProps, DataValue, type DataValueProps, DataWidget, type DataWidgetProps, DateDisplay, type DateDisplayProps, type DatePresetId, type DateRange, type DateRangePickerProps, type ExplorationAction, ExplorationActionControl, type ExplorationActionControlProps, type FilterActionsProps, type FilterBarProps, type FunnelChartProps, type FunnelChartSeries, type FunnelChartStep, type GlossaryDefinitionProps, type GlossaryExplanationProps, type GradientScrollProps, HelpPopover, type HelpPopoverProps, type ItemActions, type JourneyChartPath, type JourneyChartProps, type LineChartItem, type LineChartProps, type LiveControlProps, type LiveIntervalSeconds, PressButton as MenuButton, type MenuItemProps, type MenuPopoverProps, type MenuProps, MenuSection, MenuTrigger, type MenuTriggerProps, type MetricReading, type MetricWidgetProps, type NumberFieldProps, type NumberFilterPickerProps, type NumberRange, type NumberRangeFieldProps, type PieChartItem, type PieChartProps, PresentStory, type PresentStoryProps, type RadioGroupProps, type RadioProps, type RetentionChartPoint, type RetentionChartProps, type RetentionChartSeries, type ScatterChartItem, type ScatterChartProps, type SearchAttribute, SearchField, type SearchFieldProps, type SearchHit, type SearchItemsOptions, type SearchMatchProps, type SearchMatchValue, type SearchRange, type SearchSuggestion, SearchTypeahead, type SearchTypeaheadProps, SectionHeading, type SectionHeadingProps, type SegmentedControlProps, type SelectProps, Sheet, type SheetProps, type ShimmerTextProps, type StoryFinding, TabPanels, type TableWidgetColumn, type TableWidgetProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type VariableBarProps, type VisualizationWidgetProps, type WidgetStatus, injectDataAppStyles, matchSearchText, searchItems, useAppVariables, useDateFormatting };
586
+ 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 ChartLegendItemProps, type ChartLegendLabelProps, type ChartLegendMarkerKind, type ChartLegendMarkerProps, type ChartLegendProps, type CheckboxGroupProps, type CheckboxProps, type ChoiceOption, type ChoicePickerProps, type ComposedChartLegendProps, type ComposedChartProps, type CsvExport, type CsvTable, type DataAppProps, DataAppProvider, type DataAppStyle, type DataAppStyleHooks, type DataAppStyleToken, type DataReading, DataTable, DataTableEmptyRow, type DataTableEmptyRowProps, type DataTableProps, type DataTableSearch, DataTableShare, DataTableTimestamp, type DataTableTimestampProps, DataValue, type DataValueProps, DataWidget, type DataWidgetProps, DateDisplay, type DateDisplayProps, type DatePresetId, type DateRange, type DateRangePickerProps, type DateTimeRangeComparisonRequest, type DateTimeRangeComparisonSelection, type DateTimeRangeComparisonVariable, type DateTimeRangeComparisonVariableOptions, DateTimeRangePicker, type DateTimeRangePickerProps, type DateTimeRangePreset, type DateTimeRangeVariable, type DateTimeRangeVariableOptions, type ExplorationAction, ExplorationActionControl, type ExplorationActionControlProps, type FilterActionsProps, type FilterBarProps, type FunnelChartProps, type FunnelChartSeries, type FunnelChartStep, type GlossaryDefinitionProps, type GlossaryExplanationProps, type GradientScrollProps, HelpPopover, type HelpPopoverProps, type ItemActions, type JourneyChartPath, type JourneyChartProps, type LineChartItem, type LineChartProps, type LiveControlProps, type LiveIntervalSeconds, PressButton as MenuButton, type MenuItemProps, type MenuPopoverProps, type MenuProps, MenuSection, MenuTrigger, type MenuTriggerProps, type MetricReading, type MetricWidgetProps, type NumberFieldProps, type NumberFilterPickerProps, type NumberRange, type NumberRangeFieldProps, type PieChartItem, type PieChartProps, PresentStory, type PresentStoryProps, type RadioGroupProps, type RadioProps, type RetentionChartPoint, type RetentionChartProps, type RetentionChartSeries, type ScatterChartItem, type ScatterChartProps, type SearchAttribute, SearchField, type SearchFieldProps, type SearchHit, type SearchItemsOptions, type SearchMatchProps, type SearchMatchValue, type SearchRange, type SearchSuggestion, SearchTypeahead, type SearchTypeaheadProps, SectionHeading, type SectionHeadingProps, type SegmentedControlProps, type SelectProps, Sheet, type SheetProps, type ShimmerTextProps, type StoryFinding, TabPanels, type TableWidgetColumn, type TableWidgetProps, type TextWidgetProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type VariableBarProps, type VisualizationWidgetProps, type WidgetStatus, dateTimeRangePresets, dateTimeRangeVariable, injectDataAppStyles, matchSearchText, searchItems, useAppVariables, useDateFormatting };
591
587
  //# sourceMappingURL=index.d.ts.map
package/dist/ui/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as FilterBar, $t as PressButton, A as LiveControl, B as isPlainKeyEvent, Bt as useViewTab, E as DataAppFrame, F as MenuSeparator, Ft as Tab, G as FilterActions, Gt as TooltipSurface, Ht as GradientScroll, I as MenuTrigger, It as TabList, J as NumberFilterPicker, K as SearchTypeahead, Lt as TabPanel, M as MenuItem, Mt as DataAppProvider, N as MenuPopover, Ot as ShimmerText, P as MenuSection, Pt as AboutData, Q as Select, Qt as Button$1, Rt as TabPanels, S as withWidgetBoundary, St as HelpPopover, T as DataValue, U as useDeclaredResult, Ut as Tooltip, V as createDataHooks, Vt as Sheet, W as VariableBar, Wt as TooltipProvider, X as NumberRangeField, Xt as AppIcon, Y as NumberField, Z as DimensionPicker, _ as explorationMenuEvents, a as TextWidget$1, at as SearchMatch, b as useChartActions, bt as DateDisplay, c as DataTableEmptyRow, ct as searchItems, d as MetricWidget$1, en as classNames, et as DateRangePicker, f as VisualizationWidget$1, g as ExplorationActionMenu, h as ExplorationActionControl, in as injectDataAppStyles, j as Menu, k as PresentStory, l as DataTableShare, n as createDataContext, nn as useDateFormatting, nt as CheckboxGroupContext, o as TableWidget$1, pt as useAppVariables, q as SearchField, r as chartBarFill, rt as ChoicePicker, s as DataTable, st as matchSearchText, t as SectionHeading, tt as Checkbox, u as DataTableTimestamp, v as getPrimaryExplorationAction, x as DataWidget, y as openExplorationMenu, zt as Tabs } from "../chunks/SectionHeading-DYRGGLUr.js";
1
+ import { $ as DateTimeRangePicker, $t as AppIcon, A as LiveControl, B as isPlainKeyEvent, Bt as TabPanel, Ct as DateDisplay, E as DataAppFrame, F as MenuSeparator, Ft as DataAppProvider, G as FilterActions, Gt as GradientScroll, Ht as Tabs, I as MenuTrigger, J as NumberFilterPicker, Jt as TooltipSurface, K as SearchTypeahead, Kt as Tooltip, Lt as AboutData, M as MenuItem, N as MenuPopover, P as MenuSection, Q as FilterBar, Rt as Tab, S as withWidgetBoundary, T as DataValue, Tt as HelpPopover, U as useDeclaredResult, Ut as useViewTab, V as createDataHooks, Vt as TabPanels, W as VariableBar, Wt as Sheet, X as NumberRangeField, Y as NumberField, Z as DimensionPicker, _ as explorationMenuEvents, a as TextWidget$1, an as useDateFormatting, b as useChartActions, c as DataTableEmptyRow, ct as matchSearchText, d as MetricWidget$1, et as Select, f as VisualizationWidget$1, ft as dateTimeRangePresets, g as ExplorationActionMenu, gt as useAppVariables, h as ExplorationActionControl, it as ChoicePicker, j as Menu, jt as ShimmerText, k as PresentStory, l as DataTableShare, lt as searchItems, n as createDataContext, nn as PressButton, nt as Checkbox, o as TableWidget$1, ot as SearchMatch, pt as dateTimeRangeVariable, q as SearchField, qt as TooltipProvider, r as chartBarFill, rn as classNames, rt as CheckboxGroupContext, s as DataTable, sn as injectDataAppStyles, t as SectionHeading, tn as Button$1, tt as DateRangePicker, u as DataTableTimestamp, v as getPrimaryExplorationAction, x as DataWidget, y as openExplorationMenu, zt as TabList } from "../chunks/SectionHeading-CLvnHe1C.js";
2
2
  import { createDataClient } from "@altertable/data-app/client";
3
3
  import { KEY_SEPARATOR, invariant, validateChoiceOptions } from "@altertable/data-app/internal";
4
4
  import { Children, Fragment, createContext, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
@@ -1911,7 +1911,10 @@ function BarChart({ items, unit, ariaLabel, formatValue = formatNumber, itemActi
1911
1911
  else menuTriggers.current.delete(item.id);
1912
1912
  },
1913
1913
  "aria-label": `${item.label}: Actions`,
1914
- children: [item.label, /* @__PURE__ */ jsx(AppIcon, {
1914
+ children: [/* @__PURE__ */ jsx("span", {
1915
+ title: item.label,
1916
+ children: item.label
1917
+ }), /* @__PURE__ */ jsx(AppIcon, {
1915
1918
  name: "disclosure",
1916
1919
  size: 12
1917
1920
  })]
@@ -1922,7 +1925,10 @@ function BarChart({ items, unit, ariaLabel, formatValue = formatNumber, itemActi
1922
1925
  placement: "bottom"
1923
1926
  })] }) : /* @__PURE__ */ jsx("span", {
1924
1927
  className: "altertable-selectable-bars-label",
1925
- children: item.label
1928
+ children: /* @__PURE__ */ jsx("span", {
1929
+ title: item.label,
1930
+ children: item.label
1931
+ })
1926
1932
  })
1927
1933
  })]
1928
1934
  }) }, item.id);
@@ -2965,6 +2971,6 @@ const VisualizationWidget = withWidgetBoundary(VisualizationWidget$1);
2965
2971
  const TableWidget = withWidgetBoundary(TableWidget$1);
2966
2972
  const MetricWidget = withWidgetBoundary(MetricWidget$1);
2967
2973
  //#endregion
2968
- export { AboutData, AppIcon, AreaChart, BarChart, ChartLegend, Checkbox, CheckboxGroup, ChoicePicker, ComposedChart, DataApp, DataAppProvider, DataTable, DataTableEmptyRow, DataTableShare, DataTableTimestamp, DataValue, DataWidget, DateDisplay, DateRangePicker, DimensionPicker, ExplorationActionControl, FilterActions, FilterBar, FunnelChart, GettingStarted, GlossaryDefinition, GlossaryExplanation, GradientScroll, HelpPopover, JourneyChart, LineChart, LiveControl, Menu, PressButton as MenuButton, MenuItem, MenuPopover, MenuSection, MenuSeparator, MenuTrigger, MetricWidget, NumberField, NumberFilterPicker, NumberRangeField, PieChart, PresentStory, Radio, RadioGroup, RetentionChart, ScatterChart, SearchField, SearchMatch, SearchTypeahead, SectionHeading, SegmentedControl, Select, Sheet, ShimmerText, Tab, TabList, TabPanel, TabPanels, TableWidget, Tabs, TextWidget, Tooltip, TooltipProvider, VariableBar, VisualizationWidget, injectDataAppStyles, isPlainKeyEvent, matchSearchText, searchItems, useAppVariables, useDateFormatting, useSvgId, useViewTab };
2974
+ export { AboutData, AppIcon, AreaChart, BarChart, ChartLegend, Checkbox, CheckboxGroup, ChoicePicker, ComposedChart, DataApp, DataAppProvider, DataTable, DataTableEmptyRow, DataTableShare, DataTableTimestamp, DataValue, DataWidget, DateDisplay, DateRangePicker, DateTimeRangePicker, DimensionPicker, ExplorationActionControl, FilterActions, FilterBar, FunnelChart, GettingStarted, GlossaryDefinition, GlossaryExplanation, GradientScroll, HelpPopover, JourneyChart, LineChart, LiveControl, Menu, PressButton as MenuButton, MenuItem, MenuPopover, MenuSection, MenuSeparator, MenuTrigger, MetricWidget, NumberField, NumberFilterPicker, NumberRangeField, PieChart, PresentStory, Radio, RadioGroup, RetentionChart, ScatterChart, SearchField, SearchMatch, SearchTypeahead, SectionHeading, SegmentedControl, Select, Sheet, ShimmerText, Tab, TabList, TabPanel, TabPanels, TableWidget, Tabs, TextWidget, Tooltip, TooltipProvider, VariableBar, VisualizationWidget, dateTimeRangePresets, dateTimeRangeVariable, injectDataAppStyles, isPlainKeyEvent, matchSearchText, searchItems, useAppVariables, useDateFormatting, useSvgId, useViewTab };
2969
2975
 
2970
2976
  //# sourceMappingURL=index.js.map