@turquoisehealth/pit-viper 2.224.1-dev.0 → 2.224.1-dev.2
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.
- package/_site/assets/css/pit-viper-a11y.css +1 -1
- package/_site/assets/css/pit-viper-consumer.css +1 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
- package/_site/assets/css/pit-viper-v2.css +1 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-search-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/base/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs +727 -689
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/crosslineHelpers.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +3 -2
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/useBenchmarkOverlays.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2531 -2483
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +2 -0
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +554 -549
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +837 -800
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +632 -623
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +21 -15
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1732 -1696
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +21 -15
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +17 -8
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +110 -75
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +425 -404
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { PvAvatarShape, PvAvatarVariant } from './components/base/PvAvatar/types.ts';
|
|
3
3
|
import { PvCounterBadgeVariant } from './components/base/PvCounterBadge/types.ts';
|
|
4
|
+
import { PvSize } from './components/base/baseProps';
|
|
4
5
|
/**
|
|
5
6
|
* For interfaces and type aliases shared across multiple components.
|
|
6
7
|
*/
|
|
@@ -62,6 +63,7 @@ export interface MenuOptionConfig {
|
|
|
62
63
|
variant?: MenuOptionsVariant;
|
|
63
64
|
disabledVariant?: MenuOptionsDisabledVariant;
|
|
64
65
|
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
66
|
+
size?: Extract<PvSize, "lg" | "xl">;
|
|
65
67
|
}
|
|
66
68
|
export interface MenuOptionSelectedEvent {
|
|
67
69
|
option: MenuOption;
|
|
@@ -33,6 +33,6 @@ export interface PvButtonWithTooltipProps extends PvButtonProps {
|
|
|
33
33
|
tooltipVariant?: PvTooltipVariants;
|
|
34
34
|
/** Where the tooltip appears relative to the button */
|
|
35
35
|
tooltipPosition?: PvTooltipPositions;
|
|
36
|
-
/** Delay in milliseconds before showing the tooltip */
|
|
36
|
+
/** Delay in milliseconds before showing the tooltip on hover. Keyboard focus is never delayed. */
|
|
37
37
|
delay?: number;
|
|
38
38
|
}
|
|
@@ -132,6 +132,10 @@ export interface PvFilterPanelColDefContext {
|
|
|
132
132
|
* are displayed and does not affect the filter model.
|
|
133
133
|
*/
|
|
134
134
|
filterPanel?: Record<string, PvFilterPanelFacetDef>;
|
|
135
|
+
/**
|
|
136
|
+
* Optional text displayed beside the loading spinner while filter options load.
|
|
137
|
+
*/
|
|
138
|
+
filterOptionsLoadingText?: string;
|
|
135
139
|
/**
|
|
136
140
|
* Optional renderer to override the default filter options list
|
|
137
141
|
*/
|
|
@@ -406,6 +410,7 @@ export interface PvFilterPanelResolvedFilter {
|
|
|
406
410
|
key: string;
|
|
407
411
|
knownOptions?: PvFilterPanelOption[];
|
|
408
412
|
label: string;
|
|
413
|
+
loadingText?: string;
|
|
409
414
|
options?: PvFilterPanelOption[];
|
|
410
415
|
rangeMax?: number | null;
|
|
411
416
|
rangeMin?: number | null;
|
|
@@ -37,6 +37,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
37
37
|
icon: string;
|
|
38
38
|
isSeeMoreLoading: boolean;
|
|
39
39
|
hasMoreOptions: boolean;
|
|
40
|
+
loadingText: string;
|
|
40
41
|
optionsAction: MenuAction<T> | undefined;
|
|
41
42
|
optionsRenderer: Component;
|
|
42
43
|
overlayTrigger: boolean;
|
|
@@ -81,6 +82,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
81
82
|
icon: string;
|
|
82
83
|
isSeeMoreLoading: boolean;
|
|
83
84
|
hasMoreOptions: boolean;
|
|
85
|
+
loadingText: string;
|
|
84
86
|
optionsAction: MenuAction<T> | undefined;
|
|
85
87
|
optionsRenderer: Component;
|
|
86
88
|
overlayTrigger: boolean;
|
|
@@ -125,6 +127,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
125
127
|
icon: string;
|
|
126
128
|
isSeeMoreLoading: boolean;
|
|
127
129
|
hasMoreOptions: boolean;
|
|
130
|
+
loadingText: string;
|
|
128
131
|
optionsAction: MenuAction<T> | undefined;
|
|
129
132
|
optionsRenderer: Component;
|
|
130
133
|
overlayTrigger: boolean;
|
package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
|
|
|
57
57
|
hasMoreOptions?: boolean;
|
|
58
58
|
/** Text label on the trigger button */
|
|
59
59
|
label?: string;
|
|
60
|
+
/** Optional text displayed beside the dropdown loading spinner. */
|
|
61
|
+
loadingText?: string;
|
|
60
62
|
/** Style of the footer action panel. "select-clear" shows select/clear all; "cancel-confirm" requires explicit confirmation. */
|
|
61
63
|
menuActionsVariant?: MenuActionsVariant | null;
|
|
62
64
|
/** The list of selectable options */
|
package/pv-components/dist/vue/visualizations/components/base/PvSearchInput/PvSearchInput.vue.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { PvSize } from '../baseProps';
|
|
1
2
|
import { DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
3
|
export interface PvSearchInputProps {
|
|
3
|
-
/**
|
|
4
|
-
* Placeholder text shown when the input is empty.
|
|
5
|
-
*/
|
|
6
|
-
placeholder?: string;
|
|
7
4
|
/**
|
|
8
5
|
* When true, the input is non-interactive and visually dimmed.
|
|
9
6
|
*/
|
|
10
7
|
disabled?: boolean;
|
|
11
8
|
/** When true, displays a keyboard shortcut badge ("/" key) and registers the hotkey to focus the input. */
|
|
12
9
|
displayShortcut?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Placeholder text shown when the input is empty.
|
|
12
|
+
*/
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
size?: Extract<PvSize, "lg" | "xl">;
|
|
13
15
|
}
|
|
14
16
|
export interface PvSearchInputExposed {
|
|
15
17
|
input: HTMLInputElement | null;
|
|
@@ -25,6 +27,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {
|
|
|
25
27
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
28
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
29
|
}>, {
|
|
30
|
+
size: Extract<PvSize, "lg" | "xl">;
|
|
28
31
|
placeholder: string;
|
|
29
32
|
disabled: boolean;
|
|
30
33
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -11,7 +11,7 @@ interface PvTooltipProps {
|
|
|
11
11
|
size?: PvTooltipSize;
|
|
12
12
|
/** When true, tooltip hides immediately when cursor leaves the trigger */
|
|
13
13
|
disableInteractive?: boolean;
|
|
14
|
-
/** Delay in milliseconds before showing the tooltip */
|
|
14
|
+
/** Delay in milliseconds before showing the tooltip on hover. Keyboard focus is never delayed. */
|
|
15
15
|
delay?: number;
|
|
16
16
|
}
|
|
17
17
|
declare function __VLS_template(): {
|
|
@@ -20,7 +20,9 @@ declare function __VLS_template(): {
|
|
|
20
20
|
label?(_: {}): any;
|
|
21
21
|
'tooltip-content'?(_: {}): any;
|
|
22
22
|
};
|
|
23
|
-
refs: {
|
|
23
|
+
refs: {
|
|
24
|
+
rootRef: HTMLDivElement;
|
|
25
|
+
};
|
|
24
26
|
rootEl: HTMLDivElement;
|
|
25
27
|
};
|
|
26
28
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -31,7 +33,9 @@ declare const __VLS_component: DefineComponent<PvTooltipProps, {}, {}, {}, {}, C
|
|
|
31
33
|
delay: number;
|
|
32
34
|
disableInteractive: boolean;
|
|
33
35
|
ariaLabelledBy: string;
|
|
34
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
36
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
37
|
+
rootRef: HTMLDivElement;
|
|
38
|
+
}, HTMLDivElement>;
|
|
35
39
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
40
|
export default _default;
|
|
37
41
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChipSection, CrosslineOverlayGroup, VerticalLineOverlay } from './types';
|
|
2
2
|
export declare const DEFAULT_CROSSLINE_OVERLAY_COLOR = "#E7E2D9";
|
|
3
|
+
export declare const LEGACY_CROSSLINE_OVERLAY_COLOR = "#7C8AF4";
|
|
3
4
|
export declare const scaleValueToIndex: (value: number, buckets: {
|
|
4
5
|
bucketMin: number;
|
|
5
6
|
bucketMax: number;
|
|
@@ -10,7 +11,7 @@ export interface CrosslineAxisDomain {
|
|
|
10
11
|
axisMin: number;
|
|
11
12
|
axisMax: number;
|
|
12
13
|
}
|
|
13
|
-
export declare const getCrosslineAxisDomain: (numCategories: number,
|
|
14
|
+
export declare const getCrosslineAxisDomain: (numCategories: number, showDistributionRangeLabels: boolean | undefined) => CrosslineAxisDomain;
|
|
14
15
|
export declare const scaledIndexToAxisFraction: (scaledValue: number, domain: CrosslineAxisDomain) => number;
|
|
15
16
|
export declare const resolveCrosslineOverlays: (groups: CrosslineOverlayGroup[], activeGroupIds: Set<string>) => VerticalLineOverlay[];
|
|
16
17
|
export declare const computeChipSections: (groups: CrosslineOverlayGroup[], activeGroupIds: Set<string>, formatValue: (value: number) => string | number) => ChipSection[];
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts
CHANGED
|
@@ -75,8 +75,9 @@ export declare const calculateMinChartSeriesValue: (data: any[] | undefined, ser
|
|
|
75
75
|
* Builds the category axis's label formatter. Exactly one of three behaviors applies:
|
|
76
76
|
* - `hideLabel`: every label is blank (e.g. a chart type that doesn't show x-axis labels).
|
|
77
77
|
* - `showDistributionRangeLabels`: only the two blank pad categories flanking a histogram's
|
|
78
|
-
* real buckets are labeled, with the overall lowest
|
|
79
|
-
* every other category (including the real buckets
|
|
78
|
+
* real buckets (under `useDistributionV2Styling`) are labeled, with the overall lowest
|
|
79
|
+
* min / highest max bucket boundary; every other category (including the real buckets
|
|
80
|
+
* themselves) is blank.
|
|
80
81
|
* - Otherwise: normal category labels, formatted via `columnValueFormatter`, with the
|
|
81
82
|
* separator/single-bar-padding sentinel categories hidden, a focus suffix appended, and
|
|
82
83
|
* the result truncated to `MAX_LABEL_LENGTH`.
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts
CHANGED
|
@@ -142,6 +142,12 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
|
142
142
|
showSeriesLabels?: boolean;
|
|
143
143
|
/** When true, truncates long category labels on the chart axis. */
|
|
144
144
|
truncateLabelValues?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Gate for distribution/histogram chart styling changes that must ship together.
|
|
147
|
+
* When true, notates the x-axis of histogram charts with the overall lowest min
|
|
148
|
+
* (left) and highest max (right) bucket bounds.
|
|
149
|
+
*/
|
|
150
|
+
useDistributionV2Styling?: boolean;
|
|
145
151
|
/** Pre-populated chart data to render before any server-side fetch completes. */
|
|
146
152
|
initialChartData?: AgChartOptions["data"];
|
|
147
153
|
/** When true, wraps large charts in a native Pit Viper-styled scroll container. */
|
|
@@ -9,6 +9,7 @@ export interface CrosslineTooltip {
|
|
|
9
9
|
}
|
|
10
10
|
interface UseBenchmarkOverlaysOptions {
|
|
11
11
|
crosslineOverlayGroups: ComputedRef<CrosslineOverlayGroup[]>;
|
|
12
|
+
useDistributionV2Styling: ComputedRef<boolean | undefined>;
|
|
12
13
|
isHistogramWithBuckets: ComputedRef<boolean | undefined>;
|
|
13
14
|
isHorizontalBarChart: ComputedRef<boolean>;
|
|
14
15
|
computedChartData: ComputedRef<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgCartesianSeriesTooltipRendererParams } from 'ag-charts-enterprise';
|
|
2
2
|
import { ColDefDataType } from './table-components/formatting';
|
|
3
|
-
import { ComputedRef, CSSProperties, Ref } from 'vue';
|
|
3
|
+
import { Component, ComputedRef, CSSProperties, Ref } from 'vue';
|
|
4
4
|
import { AdvancedFilterModel, CellSelectionOptions, FilterModel, GetContextMenuItemsParams, GridState, IServerSideGetRowsParams, ProcessCellForExportParams, ProcessDataFromClipboardParams, RowSelectionOptions, Theme, ValueFormatterFunc } from 'ag-grid-enterprise';
|
|
5
5
|
import { PvDataTableTheme } from '../themes';
|
|
6
6
|
import { PvDataTableFilterStore } from './useFilterStore';
|
|
@@ -288,6 +288,8 @@ export interface PvDataTableProps<T> {
|
|
|
288
288
|
* If true, will show loading state - can be used as a dynamic prop to show/hide loading state
|
|
289
289
|
*/
|
|
290
290
|
isLoading?: boolean;
|
|
291
|
+
/** Custom Vue component for rendering loading cells in the server-side row model. */
|
|
292
|
+
loadingCellRenderer?: Component;
|
|
291
293
|
/**
|
|
292
294
|
* Height of the table + filter container (must be a valid CSS height value, e.g. '500px', '50vh', etc.).
|
|
293
295
|
*/
|
|
@@ -479,6 +481,8 @@ export interface PvDataTableProps<T> {
|
|
|
479
481
|
* If true, clicking a grouped row will toggle its expanded/collapsed state.
|
|
480
482
|
*/
|
|
481
483
|
enableExpandOnRowClick?: boolean;
|
|
484
|
+
/** Adds pointer and hover styling to full rows. Listen for `row-clicked` to handle activation. */
|
|
485
|
+
enableFullRowClick?: boolean;
|
|
482
486
|
}
|
|
483
487
|
export interface PvDataTablePublicInterface {
|
|
484
488
|
getCsvData: () => Promise<string | null>;
|
package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export declare const useSetFilter: <T>(options: UseSetFilterOptions<T>) => {
|
|
|
57
57
|
showSearchBar: ComputedRef<boolean>;
|
|
58
58
|
filterSearchPlaceholder: ComputedRef<string>;
|
|
59
59
|
emptyFilterResultsRenderer: ComputedRef< Component | undefined>;
|
|
60
|
+
filterOptionsLoadingText: ComputedRef<string | undefined>;
|
|
60
61
|
filterOptionsRenderer: ComputedRef< Component | undefined>;
|
|
61
62
|
filterHeaderRenderer: ComputedRef< Component | undefined>;
|
|
62
63
|
filterFooterRenderer: ComputedRef< Component | undefined>;
|