@turquoisehealth/pit-viper 2.211.2 → 2.211.4-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.
- 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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +6 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +2 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +35 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvMapChart/PvMapChart.vue.d.ts +74 -3
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1836 -1807
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1 -1
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2 -1
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ export interface PvSelectButtonProps<T = unknown> {
|
|
|
25
25
|
prefixLabel?: string;
|
|
26
26
|
/** Text label on the trigger button; updates to the selected option's text when an item is chosen */
|
|
27
27
|
label?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Keep the trigger showing `label` even after an option is selected, instead of
|
|
30
|
+
* swapping to the selected option's text. Use when the label is a fixed title
|
|
31
|
+
* (e.g. a column name) and the current selection is surfaced only inside the dropdown.
|
|
32
|
+
*/
|
|
33
|
+
staticLabel?: boolean;
|
|
28
34
|
/** Hide the search input inside the dropdown */
|
|
29
35
|
disableSearchInput?: boolean;
|
|
30
36
|
/** Placeholder text for the search input */
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts
CHANGED
|
@@ -7,5 +7,9 @@ export declare const histogramChartTypeConfig: MenuOption;
|
|
|
7
7
|
export declare const mapChartTypeConfig: MenuOption;
|
|
8
8
|
export declare const MAP_REGION_FIELD = "state";
|
|
9
9
|
export declare const separatorValue = "--SEPARATOR--";
|
|
10
|
+
export declare const distributionRangeMinCategory = "--DISTRIBUTION-RANGE-MIN--";
|
|
11
|
+
export declare const distributionRangeMaxCategory = "--DISTRIBUTION-RANGE-MAX--";
|
|
12
|
+
export declare const padStartValue = "--PAD-START--";
|
|
13
|
+
export declare const padEndValue = "--PAD-END--";
|
|
10
14
|
export declare const sortTotalSuffix = "_sort_total";
|
|
11
15
|
export declare const SECONDARY_AXIS_INTERVAL_COUNT = 5;
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgChartOptions } from 'ag-charts-enterprise';
|
|
1
|
+
import { AgAxisLabelFormatterParams, AgChartOptions, Formatter } from 'ag-charts-enterprise';
|
|
2
2
|
import { ColDef } from 'ag-grid-community';
|
|
3
3
|
import { OptionWithFormatterAndDataType } from './types';
|
|
4
4
|
export declare const isAvailableSecondarySeriesColDef: (colDef: ColDef) => boolean;
|
|
@@ -41,5 +41,39 @@ export declare const buildStackedChartData: (data: AgChartOptions["data"], categ
|
|
|
41
41
|
uniqueFieldValues: string[];
|
|
42
42
|
data?: undefined;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* A lone bar in a category ("bar"-type) chart would otherwise stretch full-width.
|
|
46
|
+
* Flank the single row with two sentinel blank categories so it renders at a
|
|
47
|
+
* natural width instead.
|
|
48
|
+
*
|
|
49
|
+
* The sentinels are dedicated values that can never equal a real category. This
|
|
50
|
+
* matters when the single real category is itself blank (a "(Blanks)" group,
|
|
51
|
+
* whose key is ""): a naive "" pad would collide with the real category, and the
|
|
52
|
+
* pad's transparent, valueless bar would overwrite the real one - rendering it
|
|
53
|
+
* invisible. Both sentinels are hidden by the category-axis label formatter and
|
|
54
|
+
* filtered out of map/scatter data.
|
|
55
|
+
*/
|
|
56
|
+
export declare const padSingleCategoryBarData: (data: AgChartOptions["data"], categoryField: string) => AgChartOptions["data"];
|
|
44
57
|
export declare const calculateMaxChartSeriesValue: (data: any[] | undefined, seriesField: string, isStacked: boolean) => number;
|
|
45
58
|
export declare const calculateMinChartSeriesValue: (data: any[] | undefined, seriesField: string, isStacked: boolean) => number;
|
|
59
|
+
/**
|
|
60
|
+
* Builds the category axis's label formatter. Exactly one of three behaviors applies:
|
|
61
|
+
* - `hideLabel`: every label is blank (e.g. a chart type that doesn't show x-axis labels).
|
|
62
|
+
* - `showDistributionRangeLabels`: only the two blank pad categories flanking a histogram's
|
|
63
|
+
* real buckets (under `useDistributionV2Styling`) are labeled, with the overall lowest
|
|
64
|
+
* min / highest max bucket boundary; every other category (including the real buckets
|
|
65
|
+
* themselves) is blank.
|
|
66
|
+
* - Otherwise: normal category labels, formatted via `columnValueFormatter`, with the
|
|
67
|
+
* separator/single-bar-padding sentinel categories hidden, a focus suffix appended, and
|
|
68
|
+
* the result truncated to `MAX_LABEL_LENGTH`.
|
|
69
|
+
*/
|
|
70
|
+
export declare const buildCategoryAxisLabelFormatter: ({ hideLabel, showDistributionRangeLabels, chartData, formatBucketBoundary, columnValueFormatter, enableFocusView, focuses, focusText, }: {
|
|
71
|
+
hideLabel: boolean;
|
|
72
|
+
showDistributionRangeLabels: boolean;
|
|
73
|
+
chartData: AgChartOptions["data"];
|
|
74
|
+
formatBucketBoundary: (value: number) => string;
|
|
75
|
+
columnValueFormatter: Formatter<AgAxisLabelFormatterParams> | undefined;
|
|
76
|
+
enableFocusView: boolean;
|
|
77
|
+
focuses: string[];
|
|
78
|
+
focusText: string;
|
|
79
|
+
}) => ((params: AgAxisLabelFormatterParams) => string);
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts
CHANGED
|
@@ -77,6 +77,12 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
|
77
77
|
showSeriesLabels?: boolean;
|
|
78
78
|
/** When true, truncates long category labels on the chart axis. */
|
|
79
79
|
truncateLabelValues?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Gate for distribution/histogram chart styling changes that must ship together.
|
|
82
|
+
* When true, notates the x-axis of histogram charts with the overall lowest min
|
|
83
|
+
* (left) and highest max (right) bucket bounds.
|
|
84
|
+
*/
|
|
85
|
+
useDistributionV2Styling?: boolean;
|
|
80
86
|
/** Pre-populated chart data to render before any server-side fetch completes. */
|
|
81
87
|
initialChartData?: AgChartOptions["data"];
|
|
82
88
|
/** When true, wraps large charts in a native Pit Viper-styled scroll container. */
|
package/pv-components/dist/vue/visualizations/components/charts/PvMapChart/PvMapChart.vue.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { AgChartOptions, AgSeriesVisibilityChange, AgChartInstance } from 'ag-charts-types';
|
|
1
2
|
import { MapTopologyType } from '../chart-components/maps/useTopology';
|
|
2
3
|
import { AgMapLineSeriesTooltipRendererParams } from 'ag-charts-enterprise';
|
|
3
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ExtractPropTypes, PropType } from 'vue';
|
|
5
|
+
import { PvChartProps } from '../PvChart/types';
|
|
4
6
|
export interface PvMapChartData {
|
|
5
7
|
[key: string]: string | number;
|
|
6
8
|
}
|
|
@@ -32,7 +34,12 @@ export interface PvMapChartProps {
|
|
|
32
34
|
declare const _default: DefineComponent<{
|
|
33
35
|
chartData: PvMapChartData[];
|
|
34
36
|
selectedRegion?: string | undefined;
|
|
35
|
-
} & PvMapChartProps, {
|
|
37
|
+
} & PvMapChartProps, {
|
|
38
|
+
getChartImageDataURL: (dimensions?: {
|
|
39
|
+
width?: number;
|
|
40
|
+
height?: number;
|
|
41
|
+
}) => Promise<string> | undefined;
|
|
42
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
36
43
|
"update:chartData": (value: PvMapChartData[]) => any;
|
|
37
44
|
"update:selectedRegion": (value: string | undefined) => any;
|
|
38
45
|
} & {
|
|
@@ -52,5 +59,69 @@ declare const _default: DefineComponent<{
|
|
|
52
59
|
gradientLegendMin: number;
|
|
53
60
|
gradientLegendMax: number;
|
|
54
61
|
seriesValueFormatter: (value: number) => string;
|
|
55
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
62
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
63
|
+
pvChartRef: CreateComponentPublicInstanceWithMixins<Readonly< PvChartProps> & Readonly<{
|
|
64
|
+
"onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange<unknown>) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
getChartImageDataURL: (dimensions?: {
|
|
67
|
+
width?: number;
|
|
68
|
+
height?: number;
|
|
69
|
+
}) => Promise<string> | undefined;
|
|
70
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
71
|
+
"series-visibility-change": (event: AgSeriesVisibilityChange<unknown>) => any;
|
|
72
|
+
}, PublicProps, {
|
|
73
|
+
seriesFormatType: "none" | "currency" | "percent";
|
|
74
|
+
isLoading: boolean;
|
|
75
|
+
enableFocusView: boolean;
|
|
76
|
+
minHeight: number;
|
|
77
|
+
translateNullValues: boolean;
|
|
78
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
79
|
+
chartRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
80
|
+
options: {
|
|
81
|
+
type: PropType<AgChartOptions>;
|
|
82
|
+
default: () => AgChartOptions;
|
|
83
|
+
};
|
|
84
|
+
}>> & Readonly<{}>, {
|
|
85
|
+
chart: AgChartInstance | undefined;
|
|
86
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
87
|
+
options: AgChartOptions;
|
|
88
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
89
|
+
P: {};
|
|
90
|
+
B: {};
|
|
91
|
+
D: {};
|
|
92
|
+
C: {};
|
|
93
|
+
M: {};
|
|
94
|
+
Defaults: {};
|
|
95
|
+
}, Readonly< ExtractPropTypes<{
|
|
96
|
+
options: {
|
|
97
|
+
type: PropType<AgChartOptions>;
|
|
98
|
+
default: () => AgChartOptions;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{}>, {
|
|
101
|
+
chart: AgChartInstance | undefined;
|
|
102
|
+
}, {}, {}, {}, {
|
|
103
|
+
options: AgChartOptions;
|
|
104
|
+
}> | null;
|
|
105
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
106
|
+
P: {};
|
|
107
|
+
B: {};
|
|
108
|
+
D: {};
|
|
109
|
+
C: {};
|
|
110
|
+
M: {};
|
|
111
|
+
Defaults: {};
|
|
112
|
+
}, Readonly< PvChartProps> & Readonly<{
|
|
113
|
+
"onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange<unknown>) => any) | undefined;
|
|
114
|
+
}>, {
|
|
115
|
+
getChartImageDataURL: (dimensions?: {
|
|
116
|
+
width?: number;
|
|
117
|
+
height?: number;
|
|
118
|
+
}) => Promise<string> | undefined;
|
|
119
|
+
}, {}, {}, {}, {
|
|
120
|
+
seriesFormatType: "none" | "currency" | "percent";
|
|
121
|
+
isLoading: boolean;
|
|
122
|
+
enableFocusView: boolean;
|
|
123
|
+
minHeight: number;
|
|
124
|
+
translateNullValues: boolean;
|
|
125
|
+
}> | null;
|
|
126
|
+
}, any>;
|
|
56
127
|
export default _default;
|