@turquoisehealth/pit-viper 2.152.1 → 2.152.3-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/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/chartTypeRegistry.d.ts +27 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +30 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3818 -3546
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ColDef } from 'ag-grid-community';
|
|
2
|
+
export interface ChartTypeConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
xAxis: {
|
|
7
|
+
selectMode: "single" | "sortable";
|
|
8
|
+
filterColumns?: (columns: ColDef[]) => ColDef[];
|
|
9
|
+
hideLabel?: boolean;
|
|
10
|
+
};
|
|
11
|
+
yAxis: {
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
};
|
|
15
|
+
secondaryYAxis: {
|
|
16
|
+
hidden?: boolean;
|
|
17
|
+
};
|
|
18
|
+
sort: {
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
};
|
|
21
|
+
agChartType: string;
|
|
22
|
+
seriesFamily: "cartesian" | "pie";
|
|
23
|
+
isHorizontal?: boolean;
|
|
24
|
+
rowGroupLimit: number;
|
|
25
|
+
supportsFocusView: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function getChartTypeConfig(id: string): ChartTypeConfig;
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { MenuOption } from '../../../types';
|
|
2
|
+
export declare const BUCKET_AGG_FUNC_NAME = "bucketCount";
|
|
3
|
+
export declare const BUCKET_AGG_COUNT_VALUE_NAME = "groupedRecordCount";
|
|
2
4
|
export declare const singleGroupChartTypeConfigs: MenuOption[];
|
|
3
5
|
export declare const multiGroupChartTypeConfigs: MenuOption[];
|
|
6
|
+
export declare const histogramChartTypeConfig: MenuOption;
|
|
4
7
|
export declare const separatorValue = "--SEPARATOR--";
|
|
5
8
|
export declare const sortTotalSuffix = "_sort_total";
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AdvancedFilterModel, ColumnVO, FilterModel, ValueFormatterFunc } from '
|
|
|
4
4
|
import { Option } from '../../../types';
|
|
5
5
|
import { ChartTooltipRenderer, PvDataTableProps } from '../../tables/PvDataTable/types';
|
|
6
6
|
import { FocusData } from '../../tables/PvDataTable/useFocus';
|
|
7
|
-
export type supportedChartType = "column" | "bar" | "column_stacked" | "bar_stacked" | "line" | "area" | "pie";
|
|
7
|
+
export type supportedChartType = "column" | "bar" | "column_stacked" | "bar_stacked" | "line" | "area" | "pie" | "histogram";
|
|
8
8
|
export type secondarySupportedChartType = "scatter" | "line";
|
|
9
9
|
export type ChartConfigPanelType = "y-axis" | "secondary-y-axis" | "x-axis" | "sort" | "chart-type";
|
|
10
10
|
export type ChartFilterOption = {
|
|
@@ -31,6 +31,31 @@ export interface ServerSideChartDataHandlerResponse {
|
|
|
31
31
|
data: AgChartOptions["data"];
|
|
32
32
|
stackField: string;
|
|
33
33
|
}
|
|
34
|
+
export interface VerticalLineOverlay {
|
|
35
|
+
/** The x-axis category value */
|
|
36
|
+
categoryValue?: string | number;
|
|
37
|
+
/** For numeric positioning in histograms - the actual numeric value to plot */
|
|
38
|
+
numericValue?: number;
|
|
39
|
+
/** Line color */
|
|
40
|
+
stroke?: string;
|
|
41
|
+
/** Line width in pixels */
|
|
42
|
+
strokeWidth?: number;
|
|
43
|
+
/** Line opacity (0-1) */
|
|
44
|
+
strokeOpacity?: number;
|
|
45
|
+
/** Dash pattern [dash length, gap length] */
|
|
46
|
+
lineDash?: number[];
|
|
47
|
+
/** Label text to display on the line */
|
|
48
|
+
label?: string;
|
|
49
|
+
/** Label configuration */
|
|
50
|
+
labelConfig?: {
|
|
51
|
+
position?: "top" | "bottom";
|
|
52
|
+
color?: string;
|
|
53
|
+
fontSize?: number;
|
|
54
|
+
fontWeight?: string;
|
|
55
|
+
};
|
|
56
|
+
/** Tooltip content - description shown on hover */
|
|
57
|
+
description?: string;
|
|
58
|
+
}
|
|
34
59
|
export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
35
60
|
enabledChartTypes?: supportedChartType[];
|
|
36
61
|
serverSideChartHandler?: (params: ServerSideChartDataHandlerParams) => Promise<ServerSideChartDataHandlerResponse>;
|
|
@@ -64,6 +89,10 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
|
64
89
|
customCssProperties?: {
|
|
65
90
|
agGridWrapper: CSSProperties;
|
|
66
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* Vertical line overlays to display on the chart with optional tooltips
|
|
94
|
+
*/
|
|
95
|
+
verticalLineOverlays?: VerticalLineOverlay[];
|
|
67
96
|
}
|
|
68
97
|
export interface OptionWithFormatterAndDataType extends Option {
|
|
69
98
|
formatter?: ValueFormatterFunc | string;
|
|
@@ -8,4 +8,5 @@ export declare const colDefMaxSelectableValues: <T>(colDef: ColDef<T>) => number
|
|
|
8
8
|
export declare const isColDefSingleSelect: <T>(colDef: ColDef<T>) => boolean;
|
|
9
9
|
export declare const isColDefNumericDataType: <T>(colDef: ColDef<T>) => boolean;
|
|
10
10
|
export declare const isAggregateColDef: <T>(colDef: ColDef<T>) => boolean;
|
|
11
|
+
export declare const processRowGroupCols: (rowGroupCols: ColumnVO[], colDefs: (ColDef | null | undefined)[] | undefined) => ColumnVO[];
|
|
11
12
|
export declare const mapColsToColumnV0: (columns: Column[]) => ColumnVO[];
|