@turquoisehealth/pit-viper 2.200.0 → 2.201.1-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/_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/_site/assets/css/pit-viper.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-banner-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-widget-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +20 -8
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/chartTypeRegistry.d.ts +13 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidget.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/helpers.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1536 -1443
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +1 -1
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +1 -1
- package/pv-components/dist/web/components/pv-card/pv-card.js +1 -1
- package/pv-components/dist/web/components/pv-input/pv-input.js +3 -3
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +1 -1
- package/pv-components/dist/web/components/pv-widget/pv-widget.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +3 -3
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { ColDef } from 'ag-grid-community';
|
|
2
|
+
/** A column charts as a geographic region when it is named `state` or has the `location` data type. */
|
|
3
|
+
export declare const isMapRegionColDef: (colDef: ColDef) => boolean;
|
|
4
|
+
/** The map chart type can be selected whenever the first x-axis is a region column. */
|
|
5
|
+
export declare const isMapChartTypeAvailable: (stateIsOnXAxis: boolean) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Drop the row group (x-axis) fields that aren't valid under a chart type's x-axis
|
|
8
|
+
* `filterColumns`. Used when switching chart families so a still-valid x-axis (e.g.
|
|
9
|
+
* `state` moving into/out of the map type) is preserved instead of cleared. Returns
|
|
10
|
+
* the input unchanged when the filter or the available columns aren't known yet, so
|
|
11
|
+
* a valid initial selection isn't dropped before the grid is ready.
|
|
12
|
+
*/
|
|
13
|
+
export declare const retainValidXAxisFields: (currentFields: string[], availableColumns: ColDef[], filterColumns: ((columns: ColDef[]) => ColDef[]) | undefined) => string[];
|
|
2
14
|
export interface ChartTypeConfig {
|
|
3
15
|
id: string;
|
|
4
16
|
text: string;
|
|
@@ -19,7 +31,7 @@ export interface ChartTypeConfig {
|
|
|
19
31
|
enabled?: boolean;
|
|
20
32
|
};
|
|
21
33
|
agChartType: string;
|
|
22
|
-
seriesFamily: "cartesian" | "pie";
|
|
34
|
+
seriesFamily: "cartesian" | "pie" | "map";
|
|
23
35
|
isHorizontal?: boolean;
|
|
24
36
|
rowGroupLimit: number;
|
|
25
37
|
supportsFocusView: boolean;
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export declare const BUCKET_AGG_COUNT_VALUE_NAME = "groupedRecordCount";
|
|
|
4
4
|
export declare const singleGroupChartTypeConfigs: MenuOption[];
|
|
5
5
|
export declare const multiGroupChartTypeConfigs: MenuOption[];
|
|
6
6
|
export declare const histogramChartTypeConfig: MenuOption;
|
|
7
|
+
export declare const mapChartTypeConfig: MenuOption;
|
|
8
|
+
export declare const MAP_REGION_FIELD = "state";
|
|
7
9
|
export declare const separatorValue = "--SEPARATOR--";
|
|
8
10
|
export declare const sortTotalSuffix = "_sort_total";
|
|
9
11
|
export declare const SECONDARY_AXIS_INTERVAL_COUNT = 5;
|
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" | "histogram";
|
|
7
|
+
export type supportedChartType = "column" | "bar" | "column_stacked" | "bar_stacked" | "line" | "area" | "pie" | "histogram" | "map";
|
|
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 = {
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidget.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PvDataWidgetColumnDefinition, PvDataWidgetProps, PvDataWidgetViewType
|
|
1
|
+
import { PvDataWidgetChartTypeOption, PvDataWidgetColumnDefinition, PvDataWidgetProps, PvDataWidgetViewType } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type __VLS_Props = PvDataWidgetProps;
|
|
4
4
|
type __VLS_PublicProps = {
|
|
@@ -31,7 +31,9 @@ export interface GenerateDataWidgetChartOptionsParams extends DataWidgetChartOpt
|
|
|
31
31
|
yKey?: string;
|
|
32
32
|
}
|
|
33
33
|
export declare const normalizeChartTypeOption: (option: PvDataWidgetViewType | PvDataWidgetChartTypeOption) => PvSegmentedControlOption | null;
|
|
34
|
-
export declare const buildChartTypeOptions: (chartTypes?: (PvDataWidgetViewType | PvDataWidgetChartTypeOption)[]
|
|
34
|
+
export declare const buildChartTypeOptions: (chartTypes?: (PvDataWidgetViewType | PvDataWidgetChartTypeOption)[], optionsConfig?: {
|
|
35
|
+
useDefaultChartTypesWhenEmpty?: boolean;
|
|
36
|
+
}) => PvSegmentedControlOption[];
|
|
35
37
|
export declare const getSelectedChartType: (requestedChartType: PvDataWidgetViewType | undefined, chartTypeOptions: PvSegmentedControlOption[]) => PvDataWidgetViewType;
|
|
36
38
|
export declare const getInferredColumns: (dataRows: PvDataWidgetDataRow[], colDefs?: PvDataWidgetColumnDefinition[]) => PvDataWidgetColumnDefinition[];
|
|
37
39
|
export declare const getColumnLabel: (column: PvDataWidgetColumnDefinition | undefined, fallback?: string) => string;
|