@turquoisehealth/pit-viper 2.171.1-dev.0 → 2.172.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.
@@ -23,5 +23,6 @@ export interface ChartTypeConfig {
23
23
  isHorizontal?: boolean;
24
24
  rowGroupLimit: number;
25
25
  supportsFocusView: boolean;
26
+ storeBeforeChange: boolean;
26
27
  }
27
28
  export declare function getChartTypeConfig(id: string): ChartTypeConfig;
@@ -39,6 +39,16 @@ export interface VerticalLineOverlay {
39
39
  /** The line color as a hex code. */
40
40
  color?: string;
41
41
  }
42
+ export interface CrosslineOverlayGroup {
43
+ /** Unique identifier for this overlay group. */
44
+ id: string;
45
+ /** Display label shown in the options panel toggle. */
46
+ label: string;
47
+ /** The crosslines belonging to this group. */
48
+ overlays: VerticalLineOverlay[];
49
+ /** If true, this group is toggled on when the chart first renders. */
50
+ enabled?: boolean;
51
+ }
42
52
  export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
43
53
  allFieldsAreFocusable?: boolean;
44
54
  enabledChartTypes?: supportedChartType[];
@@ -74,9 +84,15 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
74
84
  agGridWrapper: CSSProperties;
75
85
  };
76
86
  /**
77
- * Vertical line overlays to display on the chart with optional tooltips
87
+ * NOTE: This prop is deprecated in favor of the below crosslineOverlayGroups.
78
88
  */
79
89
  verticalLineOverlays?: VerticalLineOverlay[];
90
+ /**
91
+ * Grouped crossline overlay definitions. Each group contains a set of
92
+ * crosslines that can be independently toggled on/off in the chart
93
+ * options panel.
94
+ */
95
+ crosslineOverlayGroups?: CrosslineOverlayGroup[];
80
96
  }
81
97
  export interface OptionWithFormatterAndDataType extends Option {
82
98
  formatter?: ValueFormatterFunc | string;
@@ -0,0 +1,24 @@
1
+ import { ColDef } from 'ag-grid-community';
2
+ import { ICellRendererParams } from 'ag-grid-enterprise';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ colDef: ColDef | null | undefined;
6
+ cellParams: ICellRendererParams;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -2,7 +2,7 @@ import { InjectionKey, Ref, ShallowRef } from 'vue';
2
2
  import { Column, GridApi, SortModelItem, ColDef } from 'ag-grid-community';
3
3
  import { MenuOption } from '../../types';
4
4
  import { createFilterStore } from './PvDataTable/useFilterStore';
5
- import { OptionWithFormatterAndDataType } from '../charts/PvDataTableWithChart/types';
5
+ import { OptionWithFormatterAndDataType, CrosslineOverlayGroup } from '../charts/PvDataTableWithChart/types';
6
6
  import { createFocusStore } from './PvDataTable/useFocus';
7
7
  export declare const FilterStoreKey: InjectionKey<ReturnType<typeof createFilterStore>>;
8
8
  export declare const FocusStoreKey: InjectionKey<ReturnType<typeof createFocusStore>>;
@@ -54,3 +54,7 @@ export type AvailableSecondarySeriesKey = Ref<OptionWithFormatterAndDataType[]>;
54
54
  export declare const AvailableSecondarySeriesKey: InjectionKey<AvailableSecondarySeriesKey>;
55
55
  export type EnableAdvancedFilterState = Ref<boolean>;
56
56
  export declare const EnableAdvancedFilterKey: InjectionKey<EnableAdvancedFilterState>;
57
+ export type ActiveCrosslineOverlayGroupsState = Ref<Set<string>>;
58
+ export declare const ActiveCrosslineOverlayGroupsKey: InjectionKey<ActiveCrosslineOverlayGroupsState>;
59
+ export type AvailableCrosslineOverlayGroupsState = Ref<CrosslineOverlayGroup[]>;
60
+ export declare const AvailableCrosslineOverlayGroupsKey: InjectionKey<AvailableCrosslineOverlayGroupsState>;