@turquoisehealth/pit-viper 2.244.4 → 2.245.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-empty-state-stats.html +4950 -0
- package/pv-components/dist/vue/ai/components/base/PvEmptyState/PvEmptyState.vue.d.ts +10 -0
- package/pv-components/dist/vue/ai/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvEmptyState/PvEmptyState.vue.d.ts +10 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +57 -8
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvEmptyState/PvEmptyState.vue.d.ts +10 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +33 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +21 -0
- package/pv-components/dist/vue/visualizations/components/charts/themes.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2700 -2510
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-empty-state/pv-empty-state.js +6431 -0
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
package/pv-components/dist/vue/visualizations/components/base/PvEmptyState/PvEmptyState.vue.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PvEmptyStateProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<PvEmptyStateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
+
"handle-primary-click": () => any;
|
|
5
|
+
"handle-secondary-click": () => any;
|
|
6
|
+
}, string, PublicProps, Readonly<PvEmptyStateProps> & Readonly<{
|
|
7
|
+
"onHandle-primary-click"?: (() => any) | undefined;
|
|
8
|
+
"onHandle-secondary-click"?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -78,6 +78,7 @@ export { default as PvSidebarV2 } from './PvSidebarV2/PvSidebarV2.vue';
|
|
|
78
78
|
export { default as PvMenuItem } from './PvMenu/items/PvMenuItem.vue';
|
|
79
79
|
export { default as PvTableOfContents } from './PvTableOfContents/PvTableOfContents.vue';
|
|
80
80
|
export { default as PvStepper } from './PvStepper/PvStepper.vue';
|
|
81
|
+
export { default as PvEmptyState } from './PvEmptyState/PvEmptyState.vue';
|
|
81
82
|
export { useDateTime } from './PvDateTime/useDateTime';
|
|
82
83
|
export { usePvComponents } from './PvComponentsConfig/usePvComponents';
|
|
83
84
|
export type { Tab } from './PvTabs/types';
|
|
@@ -20,7 +20,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
20
20
|
readonly "onChart-state-changed"?: ((event: ChartStateChangedEvent) => any) | undefined;
|
|
21
21
|
readonly "onChart-collapsed"?: ((collapsed: boolean) => any) | undefined;
|
|
22
22
|
readonly "onActive-overlay-group-ids-change"?: ((ids: string[]) => any) | undefined;
|
|
23
|
-
|
|
23
|
+
readonly "onStack-values-page-changed"?: ((pageIndex: number) => any) | undefined;
|
|
24
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onHandle-settings-icon" | "onColumn-moved" | "onColumn-resized" | "onColumn-row-group-changed" | "onColumn-value-changed" | "onGrid-ready" | "onFilter-changed" | "onSort-changed" | "onFilter-opened" | "onFirst-data-rendered" | "onFocus-update" | "onTable-overlay-change" | "onChart-state-changed" | "onChart-collapsed" | "onActive-overlay-group-ids-change" | "onStack-values-page-changed"> & PvDataTableWithChartProps<T> & Partial<{}>> & PublicProps;
|
|
24
25
|
expose(exposed: ShallowUnwrapRef<{
|
|
25
26
|
getChartImageDataURL: (dimensions?: {
|
|
26
27
|
width?: number;
|
|
@@ -60,6 +61,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
60
61
|
(e: "chart-collapsed", collapsed: boolean): void;
|
|
61
62
|
(e: "table-overlay-change", selectedIds: string[]): void;
|
|
62
63
|
(e: "active-overlay-group-ids-change", ids: string[]): void;
|
|
64
|
+
(e: "stack-values-page-changed", pageIndex: number): void;
|
|
63
65
|
};
|
|
64
66
|
}>) => VNode & {
|
|
65
67
|
__ctx?: Awaited<typeof __VLS_setup>;
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts
CHANGED
|
@@ -65,13 +65,45 @@ export declare const isChronologicalColDef: (colDef: ColDef | null | undefined)
|
|
|
65
65
|
export declare const sortChartDataChronologically: (data: AgChartOptions["data"], categoryField: string) => AgChartOptions["data"];
|
|
66
66
|
export declare const generateStackSeriesKey: (seriesField: string, stackField: string) => string;
|
|
67
67
|
export declare const generateStackSecondaryCategoryKey: (stackField: string) => string;
|
|
68
|
-
export
|
|
68
|
+
export interface StackValuesPage {
|
|
69
|
+
data: AgChartOptions["data"];
|
|
70
|
+
/** Total distinct stack values across all pages. */
|
|
71
|
+
total: number;
|
|
72
|
+
pageCount: number;
|
|
73
|
+
/** The page actually returned — clamped into range if the requested one was out of bounds. */
|
|
74
|
+
pageIndex: number;
|
|
75
|
+
/** This page's stack values, ordered by total contribution to the primary series,
|
|
76
|
+
* descending (highest cost first) — the render order, not just the selection. */
|
|
77
|
+
orderedLabels: string[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Same idea as paginateStackValuesByTotal, but for the client-side grouping path: rows are
|
|
81
|
+
* already pivoted one-per-category (each stack value lives in its own `field_stackValue`
|
|
82
|
+
* sub-key via generateStackSeriesKey — see getStackedChartDataFromRowNodes), rather than one
|
|
83
|
+
* row per raw record. Ranks stack values by total contribution to the primary series across
|
|
84
|
+
* all category rows, keeps only the requested page, and recomputes each series' `_sort_total`
|
|
85
|
+
* to reflect only the kept values (so axis scaling and label-suppression thresholds match what
|
|
86
|
+
* actually renders — otherwise they'd stay based on every value, page or no page).
|
|
87
|
+
*
|
|
88
|
+
* Ranking (and the `_sort_total` recompute) only happens when paging is actually enabled (a
|
|
89
|
+
* positive `pageSize`) — see paginateStackValuesByTotal for why that matters. With `pageSize`
|
|
90
|
+
* falsy (paging off, the default), `fieldValues` and each row's existing sort totals pass
|
|
91
|
+
* through unchanged.
|
|
92
|
+
*/
|
|
93
|
+
export declare const paginatePivotedStackValuesByTotal: (rows: AgChartOptions["data"], fieldValues: string[], seriesColumns: OptionWithFormatterAndDataType[], primaryField: string | undefined, pageSize: number | undefined, pageIndex: number) => StackValuesPage;
|
|
94
|
+
export declare const buildStackedChartData: (data: AgChartOptions["data"], categoryField: string, stackField: string, seriesColumns: OptionWithFormatterAndDataType[], supplementaryChartingColumns?: OptionWithFormatterAndDataType[], primarySeriesField?: string, stackValuesPageSize?: number, stackValuesPageIndex?: number) => {
|
|
69
95
|
data: never[];
|
|
70
96
|
uniqueFieldValues: never[];
|
|
97
|
+
totalStackValueCount: number;
|
|
98
|
+
stackValuesPageCount: number;
|
|
99
|
+
stackValuesPageIndex: number;
|
|
71
100
|
stackedData?: undefined;
|
|
72
101
|
} | {
|
|
73
102
|
stackedData: any[];
|
|
74
103
|
uniqueFieldValues: string[];
|
|
104
|
+
totalStackValueCount: number;
|
|
105
|
+
stackValuesPageCount: number;
|
|
106
|
+
stackValuesPageIndex: number;
|
|
75
107
|
data?: undefined;
|
|
76
108
|
};
|
|
77
109
|
/**
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts
CHANGED
|
@@ -146,6 +146,27 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
|
146
146
|
allFieldsAreFocusable?: boolean;
|
|
147
147
|
/** List of chart types available in the chart-type selector. */
|
|
148
148
|
enabledChartTypes?: supportedChartType[];
|
|
149
|
+
/**
|
|
150
|
+
* How many distinct stack/series values (e.g. the second row-group column's values)
|
|
151
|
+
* render on the chart per page, ranked by their total contribution to the primary series
|
|
152
|
+
* across all categories (highest first) and shown a page at a time — nothing is ever
|
|
153
|
+
* permanently dropped, the rest are just a page navigation away (see
|
|
154
|
+
* `initialStackValuesPageIndex` / the exposed page-navigation controls).
|
|
155
|
+
*
|
|
156
|
+
* Opt-in: omit or set to 0 to disable (the default) and keep the stack field's original,
|
|
157
|
+
* unranked order exactly as before this prop existed. Set a positive number (20 lines up
|
|
158
|
+
* with a typical legend page size) for high-cardinality dimensions — hundreds of cities,
|
|
159
|
+
* providers, etc. — that would otherwise each become their own series and the chart would
|
|
160
|
+
* become an unreadable crunch of overlapping bars. Applies to both server-side
|
|
161
|
+
* (`serverSideChartHandler`) and client-side (`rowData`) data.
|
|
162
|
+
*/
|
|
163
|
+
stackValuesPageSize?: number;
|
|
164
|
+
/**
|
|
165
|
+
* Which page of stack values to show initially, 0-indexed, when `stackValuesPageSize` is
|
|
166
|
+
* paging a high-cardinality stack field. Out-of-range values are clamped. Defaults to 0.
|
|
167
|
+
* Subsequent page navigation is internal; listen for `stack-values-page-changed` to observe it.
|
|
168
|
+
*/
|
|
169
|
+
initialStackValuesPageIndex?: number;
|
|
149
170
|
/** Handler to fetch chart data on the server side. Only used for server-side row model. */
|
|
150
171
|
serverSideChartHandler?: (params: ServerSideChartDataHandlerParams) => Promise<ServerSideChartDataHandlerResponse>;
|
|
151
172
|
/** When true, displays value labels on chart series bars/points. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgChartTheme } from 'ag-charts-enterprise';
|
|
1
|
+
import { AgChartTheme, CssColor } from 'ag-charts-enterprise';
|
|
2
|
+
export declare const multicolorFills: CssColor[];
|
|
2
3
|
export declare const SCATTER_MARKER_STROKE = "#7C8AF4";
|
|
3
4
|
export declare const PitViperAGChartsMonochromeThemeName = "pv-ag-chart-monochrome";
|
|
4
5
|
export declare const PitViperAGChartsMonochromeTheme: AgChartTheme;
|