@turquoisehealth/pit-viper 2.199.0 → 2.199.1
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/helpers.d.ts +8 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts
CHANGED
|
@@ -13,12 +13,19 @@ import { OptionWithFormatterAndDataType } from './types';
|
|
|
13
13
|
* back to AG Charts' automatic scaling rather than building a degenerate axis.
|
|
14
14
|
*/
|
|
15
15
|
export declare const niceAxisCeiling: (rawMax: number, intervals: number) => number;
|
|
16
|
-
export declare const computeNoDataOverlayText: ({ currentRowGroupColumnsLength, shouldShowFocusOverlayText, chartDataEmpty, missingFocusText, displayGroupByName, }: {
|
|
16
|
+
export declare const computeNoDataOverlayText: ({ currentRowGroupColumnsLength, shouldShowFocusOverlayText, chartDataEmpty, missingFocusText, displayGroupByName, yAxisName, yAxisOptionCount, }: {
|
|
17
17
|
currentRowGroupColumnsLength: number;
|
|
18
18
|
shouldShowFocusOverlayText: boolean;
|
|
19
19
|
chartDataEmpty: boolean;
|
|
20
20
|
missingFocusText: string | undefined | null;
|
|
21
21
|
displayGroupByName: string;
|
|
22
|
+
/** Display name of the currently selected y-axis. */
|
|
23
|
+
yAxisName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of selectable y-axis options. Prompting the user to "select a different one"
|
|
26
|
+
* only makes sense when there's more than one to choose from.
|
|
27
|
+
*/
|
|
28
|
+
yAxisOptionCount?: number;
|
|
22
29
|
}) => string;
|
|
23
30
|
export declare const generateStackSeriesKey: (seriesField: string, stackField: string) => string;
|
|
24
31
|
export declare const generateStackSecondaryCategoryKey: (stackField: string) => string;
|
|
@@ -6019,7 +6019,7 @@ var Sa = {
|
|
|
6019
6019
|
if (!Number.isFinite(e) || e <= 0 || t <= 0) return 0;
|
|
6020
6020
|
let n = e / t, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
|
|
6021
6021
|
return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 2.5 ? 2.5 : i <= 5 ? 5 : 10) * r * t;
|
|
6022
|
-
}, yo = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i }) => e === 0 ? "No groups selected. Select at least one group to display data." : n ? t ? r ?? `Select focus ${i} to view Visualization.` : jt : "", bo = (e, t) => `${e}_${t}`, xo = (e) => `secondaryCategory_${e}`, So = (e, t, n, r, i = []) => {
|
|
6022
|
+
}, yo = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i, yAxisName: a, yAxisOptionCount: o }) => e === 0 ? "No groups selected. Select at least one group to display data." : n ? t ? r ?? `Select focus ${i} to view Visualization.` : a && (o ?? 0) > 1 ? `No data available for ${a}, please select a different one.` : jt : "", bo = (e, t) => `${e}_${t}`, xo = (e) => `secondaryCategory_${e}`, So = (e, t, n, r, i = []) => {
|
|
6023
6023
|
if (!e || e.length === 0) return {
|
|
6024
6024
|
data: [],
|
|
6025
6025
|
uniqueFieldValues: []
|
|
@@ -12813,7 +12813,9 @@ var Tf = { style: {
|
|
|
12813
12813
|
shouldShowFocusOverlayText: nt.value || l.focusRequired && ie.value.length === 0,
|
|
12814
12814
|
chartDataEmpty: et.value,
|
|
12815
12815
|
missingFocusText: l.missingFocusText,
|
|
12816
|
-
displayGroupByName: t
|
|
12816
|
+
displayGroupByName: t,
|
|
12817
|
+
yAxisName: Te.value,
|
|
12818
|
+
yAxisOptionCount: I.value.length
|
|
12817
12819
|
});
|
|
12818
12820
|
}), it = (e, t) => {
|
|
12819
12821
|
if (t.length === 0 || e < t[0].bucketMin) return null;
|