@turquoisehealth/pit-viper 2.240.3-dev.0 → 2.241.1-dev.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.
Files changed (23) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +19 -0
  2. package/_site/assets/css/pit-viper-consumer.css +15 -0
  3. package/_site/assets/css/pit-viper-v2-scoped.css +13 -0
  4. package/_site/assets/css/pit-viper-v2.css +19 -0
  5. package/_site/assets/css/pit-viper.css +15 -0
  6. package/package.json +1 -1
  7. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  8. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  10. package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
  11. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
  12. package/pv-components/dist/vue/base/pv-components-base.mjs +691 -687
  13. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  14. package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
  15. package/pv-components/dist/vue/visualizations/components/base/PvSortableList/PvSortableList.vue.d.ts +6 -0
  16. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +19 -0
  17. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue.d.ts +3 -0
  18. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +28 -0
  19. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1452 -1374
  20. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  21. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +483 -479
  22. package/pv-components/dist/web/pv-components.iife.js +13 -13
  23. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -73,7 +73,9 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
73
73
  } & PvSelectButtonProps<T>) & Partial<{}>> & PublicProps;
74
74
  expose(exposed: ShallowUnwrapRef<{}>): void;
75
75
  attrs: any;
76
- slots: {};
76
+ slots: {
77
+ footer?(_: {}): any;
78
+ };
77
79
  emit: {
78
80
  (e: "dropdown-open"): void;
79
81
  (e: "dropdown-closed"): void;
@@ -19,6 +19,12 @@ export type PvSortableMenuListProps = {
19
19
  * re-asserts them. Ids must refer to options that are already active.
20
20
  */
21
21
  lockedOptionIds?: string[];
22
+ /**
23
+ * Optional per-option explanation for WHY an option is locked, keyed by option id. A locked
24
+ * option with an entry renders an info icon whose tooltip shows the text (e.g. "Select a
25
+ * single drug to unlock"). Ignored for options that aren't locked.
26
+ */
27
+ lockedOptionTooltips?: Record<string, string>;
22
28
  };
23
29
  type __VLS_Props = PvSortableMenuListProps;
24
30
  type __VLS_PublicProps = {
@@ -16,6 +16,25 @@ 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;
19
38
  export declare const computeNoDataOverlayText: ({ currentRowGroupColumnsLength, shouldShowFocusOverlayText, chartDataEmpty, missingFocusText, displayGroupByName, yAxisName, yAxisOptionCount, }: {
20
39
  currentRowGroupColumnsLength: number;
21
40
  shouldShowFocusOverlayText: boolean;
@@ -10,6 +10,9 @@ export interface PvChartOptionsPanelProps {
10
10
  /** Row-group colIds that are pinned in the sortable X Axis list: locked options can't be
11
11
  * removed or reordered (see PvSortableList's lockedOptionIds). */
12
12
  lockedRowGroupColIds?: string[];
13
+ /** Per-colId explanation for why an X Axis option is locked, shown as an info tooltip on the
14
+ * locked list entry (see PvSortableList's lockedOptionTooltips). */
15
+ lockedRowGroupTooltips?: Record<string, string>;
13
16
  /** Keep the Metric Overlay picker enabled when a secondary row group splits a non-stacked
14
17
  * chart into per-group series (see PvDataTableWithChart's metricOverlayWithRowGroups). */
15
18
  metricOverlayWithRowGroups?: boolean;
@@ -192,8 +192,36 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
192
192
  * Row-group colIds pinned in the sortable X Axis picker: locked options render with a lock
193
193
  * icon and cannot be removed or reordered (see PvSortableList's `lockedOptionIds`). Use for
194
194
  * charts whose first dimension is structural (e.g. a time axis on a trends template).
195
+ * Locked ids are also enforced as active: any locked id missing from the current row groups
196
+ * is prepended (in locked order), so a caller can drive a structural breakout reactively
197
+ * (e.g. force a per-drug split while multiple drugs are selected).
195
198
  */
196
199
  lockedRowGroupColIds?: string[];
200
+ /**
201
+ * Per-colId explanation for why an X Axis option is locked, keyed by colId. Shown as an
202
+ * info tooltip on the locked entry in the X Axis picker.
203
+ */
204
+ lockedRowGroupTooltips?: Record<string, string>;
205
+ /**
206
+ * Explicit display order for the X Axis picker's options, as colIds. Options listed here
207
+ * sort by their position; unlisted options keep their existing relative order after them.
208
+ * Lets the picker order diverge from the table's column order (which otherwise drives it).
209
+ */
210
+ rowGroupOptionOrder?: string[];
211
+ /**
212
+ * When true and the chart is a line chart grid-aligned against a secondary axis, the primary
213
+ * value axis uses a "nice" fitted window (floor near the data minimum) instead of a zero
214
+ * baseline, so series clustered far from zero stay readable. Opt-in per consumer: bar charts
215
+ * and consumers that don't set it keep the zero-based window.
216
+ */
217
+ fitPrimaryAxisToLineData?: boolean;
218
+ /**
219
+ * When true, metric overlays are withheld from the chart (no overlay series, no secondary
220
+ * axis) while the picker selections are preserved, so overlays reappear when the flag drops.
221
+ * Use when the overlay would be misleading for the current view (e.g. a blended WAC/ASP
222
+ * benchmark line across a multi-drug comparison).
223
+ */
224
+ suppressMetricOverlays?: boolean;
197
225
  /** Filter configuration that adds a dropdown above the chart to slice data by a category column. */
198
226
  chartFilter?: ChartFilter;
199
227
  /** The initial chart type to render. */