@turquoisehealth/pit-viper 2.243.2-dev.0 → 2.243.2-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.
@@ -1,5 +1,4 @@
1
1
  import { MenuOption } from '../../../types';
2
- import { LockedOption } from './types';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
3
  export type PvSortableMenuListProps = {
5
4
  /** The full set of available options to choose from and reorder. */
@@ -14,14 +13,6 @@ export type PvSortableMenuListProps = {
14
13
  * Whether to render placeholder drop zones for unfilled active slots.
15
14
  */
16
15
  showPlaceholders?: boolean;
17
- /**
18
- * Options that cannot be removed or reordered: they render with a lock icon and grayed
19
- * text, stay pinned at the top of the active list, and every mutation (click, drag,
20
- * placeholder drop) re-asserts them. Ids must refer to options that are already active.
21
- * An entry's optional `tooltip` explains WHY it is locked, rendered as an info icon
22
- * (e.g. "Select a single drug to unlock").
23
- */
24
- lockedOptions?: LockedOption[];
25
16
  };
26
17
  type __VLS_Props = PvSortableMenuListProps;
27
18
  type __VLS_PublicProps = {
@@ -35,7 +26,6 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
35
26
  options: MenuOption[];
36
27
  placeholderText: string;
37
28
  showPlaceholders: boolean;
38
- lockedOptions: LockedOption[];
39
29
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
40
30
  containerRef: HTMLDivElement;
41
31
  sortableListRef: HTMLUListElement;
@@ -16,25 +16,6 @@ export declare const getSecondarySeriesKey: (field: string, aggFunc: string | nu
16
16
  * back to AG Charts' automatic scaling rather than building a degenerate axis.
17
17
  */
18
18
  export declare const niceAxisCeiling: (rawMax: number, intervals: number) => number;
19
- /**
20
- * A "nice" fitted axis window: floor and ceiling on multiples of a nice step
21
- * (1 / 2 / 2.5 / 5 x 10^k) spanning exactly `intervals` equal steps, with
22
- * floor <= rawMin and ceiling >= rawMax.
23
- *
24
- * Used for a line chart's primary value axis when it is grid-aligned against a
25
- * secondary axis: lines don't encode value by length from a baseline, so the
26
- * axis can hug the data (e.g. percentages clustered around 100%) instead of
27
- * stretching to zero — and because the window keeps the shared interval count,
28
- * both axes' gridlines still coincide. Data near zero floors to zero naturally.
29
- *
30
- * Returns null for non-finite, negative-min, or degenerate (max <= min) input,
31
- * signalling the caller to fall back to the zero-based window.
32
- */
33
- export declare const niceAxisRange: (rawMin: number, rawMax: number, intervals: number) => {
34
- min: number;
35
- max: number;
36
- step: number;
37
- } | null;
38
19
  export declare const computeNoDataOverlayText: ({ currentRowGroupColumnsLength, shouldShowFocusOverlayText, chartDataEmpty, missingFocusText, yAxisName, yAxisOptionCount, }: {
39
20
  currentRowGroupColumnsLength: number;
40
21
  shouldShowFocusOverlayText: boolean;
@@ -1,5 +1,4 @@
1
1
  import { ChartConfigPanelType, ChartFilter, ChartSeriesAggFuncSelectedEvent } from '../types';
2
- import { LockedOption } from '../../../base/PvSortableList/types';
3
2
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
3
  export interface PvChartOptionsPanelProps {
5
4
  enablePanel: boolean;
@@ -8,13 +7,6 @@ export interface PvChartOptionsPanelProps {
8
7
  useCombinedButton?: boolean;
9
8
  useNestedMenu?: boolean;
10
9
  chartConfigOptions?: ChartConfigPanelType[];
11
- /** Row-group columns pinned in the sortable X Axis list: locked options can't be removed or
12
- * reordered, and an entry's optional `tooltip` explains why (see PvSortableList's
13
- * lockedOptions). */
14
- lockedRowGroupOptions?: LockedOption[];
15
- /** Keep the Metric Overlay picker enabled when a secondary row group splits a non-stacked
16
- * chart into per-group series (see PvDataTableWithChart's metricOverlayWithRowGroups). */
17
- metricOverlayWithRowGroups?: boolean;
18
10
  /** When true, the panel's controls are visible but disabled (view-only). */
19
11
  readOnly?: boolean;
20
12
  /** Column field used for the "% of focus" chart view; its Y-axis option is disabled on line charts. */
@@ -2,7 +2,6 @@ import { Component, CSSProperties } from 'vue';
2
2
  import { AgChartOptions } from 'ag-charts-enterprise';
3
3
  import { AdvancedFilterModel, ColumnVO, FilterModel, ValueFormatterFunc } from 'ag-grid-enterprise';
4
4
  import { Option } from '../../../types';
5
- import { LockedOption } from '../../base/PvSortableList/types';
6
5
  import { ChartTooltipRenderer, PvDataTableProps } from '../../tables/PvDataTable/types';
7
6
  import { FocusData } from '../../tables/PvDataTable/useFocus';
8
7
  export type supportedChartType = "column" | "bar" | "column_stacked" | "bar_stacked" | "line" | "area" | "pie" | "histogram" | "map";
@@ -181,44 +180,6 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
181
180
  * when `multiSelectMetricOverlay` is true; unknown fields are ignored.
182
181
  */
183
182
  initialSecondaryYKeys?: string[];
184
- /**
185
- * Keep Metric Overlays available when a secondary row group splits a non-stacked chart into
186
- * one series per group value (they are normally disabled and cleared there). The overlay
187
- * plots the field's plain per-category value, so it is only meaningful when that value is
188
- * constant within a category — e.g. drug-level benchmarks (WAC/ASP) on a report already
189
- * filtered to a single drug.
190
- */
191
- metricOverlayWithRowGroups?: boolean;
192
- /**
193
- * Row-group columns pinned in the sortable X Axis picker: locked options render with a lock
194
- * icon and grayed text, and cannot be removed or reordered (see PvSortableList's
195
- * `lockedOptions`). Use for charts whose first dimension is structural (e.g. a time axis on
196
- * a trends template). Locked ids are also enforced as active: any locked id missing from the
197
- * current row groups is prepended (in locked order), so a caller can drive a structural
198
- * breakout reactively (e.g. force a per-drug split while multiple drugs are selected). An
199
- * entry's optional `tooltip` explains why it's locked, shown as an info icon on the entry.
200
- */
201
- lockedRowGroupOptions?: LockedOption[];
202
- /**
203
- * Explicit display order for the X Axis picker's options, as colIds. Options listed here
204
- * sort by their position; unlisted options keep their existing relative order after them.
205
- * Lets the picker order diverge from the table's column order (which otherwise drives it).
206
- */
207
- rowGroupOptionOrder?: string[];
208
- /**
209
- * When true and the chart is a line chart grid-aligned against a secondary axis, the primary
210
- * value axis uses a "nice" fitted window (floor near the data minimum) instead of a zero
211
- * baseline, so series clustered far from zero stay readable. Opt-in per consumer: bar charts
212
- * and consumers that don't set it keep the zero-based window.
213
- */
214
- fitPrimaryAxisToLineData?: boolean;
215
- /**
216
- * When true, metric overlays are withheld from the chart (no overlay series, no secondary
217
- * axis) while the picker selections are preserved, so overlays reappear when the flag drops.
218
- * Use when the overlay would be misleading for the current view (e.g. a blended WAC/ASP
219
- * benchmark line across a multi-drug comparison).
220
- */
221
- suppressMetricOverlays?: boolean;
222
183
  /** Filter configuration that adds a dropdown above the chart to slice data by a category column. */
223
184
  chartFilter?: ChartFilter;
224
185
  /** The initial chart type to render. */
@@ -4,6 +4,7 @@ export { default as PvDataWidget } from '../charts/PvDataWidget/PvDataWidget.vue
4
4
  export { default as PvDataTableWithChart } from '../charts/PvDataTableWithChart/PvDataTableWithChart.vue';
5
5
  export { default as PvMapChart } from '../charts/PvMapChart/PvMapChart.vue';
6
6
  export { SCATTER_MARKER_STROKE, PitViperAGChartsMonochromeTheme, PitViperAGChartsMonochromeThemeName, PitViperAGChartsMulticolorTheme, PitViperAGChartsMulticolorThemeName, } from '../charts/themes';
7
+ export { preloadAgCharts } from '../../functions/loadAgCharts';
7
8
  export { default as PvDataTable } from '../tables/PvDataTable/PvDataTable.vue';
8
9
  export { createPvDataTableFilterStore, providePvDataTableFilterStore, usePvDataTableFilterStore, } from '../tables/PvDataTable/useFilterStore';
9
10
  export type { PvDataTableFilterController, PvDataTableFilterModel, PvDataTableFilterStore, } from '../tables/PvDataTable/useFilterStore';