@turquoisehealth/pit-viper 2.219.0 → 2.219.1-dev.1

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.
@@ -2,7 +2,7 @@ import { BannerOrientations, BannerVariants } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  export interface PvBannerProps {
4
4
  /** Primary text displayed in the banner */
5
- label: string;
5
+ label?: string;
6
6
  /** Secondary descriptive text displayed below the label */
7
7
  description?: string;
8
8
  /** Icon name to display alongside the banner content */
@@ -19,7 +19,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
19
19
  readonly "onTable-overlay-change"?: ((selectedIds: string[]) => any) | undefined;
20
20
  readonly "onChart-state-changed"?: ((event: ChartStateChangedEvent) => any) | undefined;
21
21
  readonly "onChart-collapsed"?: ((collapsed: boolean) => any) | undefined;
22
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onHandle-settings-icon" | "onColumn-moved" | "onColumn-resized" | "onColumn-row-group-changed" | "onColumn-value-changed" | "onGrid-ready" | "onFilter-changed" | "onSort-changed" | "onFilter-opened" | "onFirst-data-rendered" | "onFocus-update" | "onTable-overlay-change" | "onChart-state-changed" | "onChart-collapsed"> & PvDataTableWithChartProps<T> & Partial<{}>> & PublicProps;
22
+ readonly "onActive-overlay-group-ids-change"?: ((ids: string[]) => any) | undefined;
23
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onHandle-settings-icon" | "onColumn-moved" | "onColumn-resized" | "onColumn-row-group-changed" | "onColumn-value-changed" | "onGrid-ready" | "onFilter-changed" | "onSort-changed" | "onFilter-opened" | "onFirst-data-rendered" | "onFocus-update" | "onTable-overlay-change" | "onChart-state-changed" | "onChart-collapsed" | "onActive-overlay-group-ids-change"> & PvDataTableWithChartProps<T> & Partial<{}>> & PublicProps;
23
24
  expose(exposed: ShallowUnwrapRef<{
24
25
  getChartImageDataURL: (dimensions?: {
25
26
  width?: number;
@@ -56,6 +57,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
56
57
  (e: "focus-update", event: FocusUpdateEvent): void;
57
58
  (e: "chart-collapsed", collapsed: boolean): void;
58
59
  (e: "table-overlay-change", selectedIds: string[]): void;
60
+ (e: "active-overlay-group-ids-change", ids: string[]): void;
59
61
  };
60
62
  }>) => VNode & {
61
63
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -205,6 +205,14 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
205
205
  * options panel.
206
206
  */
207
207
  crosslineOverlayGroups?: CrosslineOverlayGroup[];
208
+ /**
209
+ * Seeds which `crosslineOverlayGroups` are toggled on when the chart first renders, overriding
210
+ * each group's own `visible` flag. Pass a consumer-persisted selection (e.g. from a saved
211
+ * report) to restore it across navigation/reload; omit to fall back to `visible: true` groups.
212
+ * Emits `active-overlay-group-ids-change` whenever the active selection changes (including
213
+ * automatic activation of a newly-enabled group), so the consumer can persist it.
214
+ */
215
+ initialActiveOverlayGroupIds?: string[];
208
216
  }
209
217
  export interface ChartSeriesAggFuncSelectedEvent {
210
218
  aggFunc: string;
@@ -19,6 +19,11 @@ interface UseBenchmarkOverlaysOptions {
19
19
  }[] | undefined>;
20
20
  pvChartRef: Ref<InstanceType<typeof PvChart> | null>;
21
21
  formatValue: (value: number) => string | number;
22
+ /**
23
+ * Seeds the active set on first render, overriding each group's own `visible` flag. Use this to
24
+ * restore a consumer-persisted toggle selection (e.g. from a saved report).
25
+ */
26
+ initialActiveOverlayGroupIds?: ComputedRef<string[] | undefined>;
22
27
  }
23
28
  export declare function useBenchmarkOverlays(options: UseBenchmarkOverlaysOptions): {
24
29
  activeCrosslineOverlayGroups: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
@@ -99,6 +99,10 @@ export interface ColDefContextProps<T> extends Omit<PvFilterPanelColDefContext,
99
99
  * If true, will hide this column from category or y-axis options in charting
100
100
  */
101
101
  hideFromCharting?: boolean;
102
+ /**
103
+ * Optional Tooltip text shown via an info icon next to the header label.
104
+ */
105
+ headerTooltip?: string;
102
106
  /**
103
107
  * If true, non-group cells with a value receive clickable cursor and hover styling, plus a default tooltip.
104
108
  * This does not attach click handling or replace an existing tooltip.