@turquoisehealth/pit-viper 2.72.0 → 2.72.1-dev.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/vue/base/pv-components-base.js +11 -11
- package/pv-components/dist/vue/base/pv-components-base.mjs +105 -104
- package/pv-components/dist/vue/base/pv-components-base.umd.js +2 -2
- package/pv-components/dist/vue/charts/pv-components-charts.d.ts +95 -7
- package/pv-components/dist/vue/charts/pv-components-charts.js +57 -56
- package/pv-components/dist/vue/charts/pv-components-charts.mjs +26254 -24273
- package/pv-components/dist/vue/charts/pv-components-charts.umd.js +58 -57
- package/pv-components/dist/vue/tables/pv-components-tables.d.ts +60 -1
- package/pv-components/dist/vue/tables/pv-components-tables.js +49 -48
- package/pv-components/dist/vue/tables/pv-components-tables.mjs +8563 -6687
- package/pv-components/dist/vue/tables/pv-components-tables.umd.js +49 -48
- package/pv-components/dist/web/pv-components.iife.js +10 -10
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AdvancedFilterModel } from 'ag-grid-community/dist/types/src/interfaces/advancedFilterModel';
|
|
1
2
|
import { AgChartInstance } from 'ag-charts-enterprise';
|
|
2
3
|
import { AgChartOptions } from 'ag-charts-types';
|
|
3
4
|
import { AgChartOptions as AgChartOptions_2 } from 'ag-charts-enterprise';
|
|
@@ -8,6 +9,8 @@ import { Column } from 'ag-grid-enterprise';
|
|
|
8
9
|
import { ColumnMovedEvent } from 'ag-grid-enterprise';
|
|
9
10
|
import { ColumnResizedEvent } from 'ag-grid-enterprise';
|
|
10
11
|
import { ColumnRowGroupChangedEvent } from 'ag-grid-enterprise';
|
|
12
|
+
import { ColumnVO } from 'ag-grid-community/dist/types/src/interfaces/iColumnVO';
|
|
13
|
+
import { Component } from 'vue';
|
|
11
14
|
import { ComponentOptionsMixin } from 'vue';
|
|
12
15
|
import { ComponentProvideOptions } from 'vue';
|
|
13
16
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
@@ -15,6 +18,7 @@ import { DefineComponent } from 'vue';
|
|
|
15
18
|
import { ExtractPropTypes } from 'vue';
|
|
16
19
|
import { FilterChangedEvent } from 'ag-grid-enterprise';
|
|
17
20
|
import { FilterModel } from 'ag-grid-enterprise';
|
|
21
|
+
import { FilterModel as FilterModel_2 } from 'ag-grid-community/dist/types/src/interfaces/iFilter';
|
|
18
22
|
import { FirstDataRenderedEvent } from 'ag-grid-community';
|
|
19
23
|
import { GlobalComponents } from 'vue';
|
|
20
24
|
import { GlobalDirectives } from 'vue';
|
|
@@ -49,6 +53,19 @@ declare type ChartFilterOption = {
|
|
|
49
53
|
filterValues: string[];
|
|
50
54
|
};
|
|
51
55
|
|
|
56
|
+
declare interface ChartState {
|
|
57
|
+
seriesField?: string | null;
|
|
58
|
+
chartType?: string | null;
|
|
59
|
+
chartSort?: string | null;
|
|
60
|
+
chartCategoryFields?: string[] | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare interface ChartStateChangedEvent {
|
|
64
|
+
api: GridApi | null;
|
|
65
|
+
newState: ChartState | null;
|
|
66
|
+
oldState: ChartState | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
52
69
|
declare interface FilterValueResponseOption {
|
|
53
70
|
value: string;
|
|
54
71
|
label?: string;
|
|
@@ -72,6 +89,26 @@ declare interface FocusUpdateEvent {
|
|
|
72
89
|
|
|
73
90
|
declare type MapTopologyType = "state" | "city" | "county" | "cbsa" | "zip_code";
|
|
74
91
|
|
|
92
|
+
declare interface MenuOption {
|
|
93
|
+
id: string;
|
|
94
|
+
text: string;
|
|
95
|
+
subText?: string;
|
|
96
|
+
secondaryText?: string | number;
|
|
97
|
+
icon?: string;
|
|
98
|
+
companyName?: string;
|
|
99
|
+
avatar?: {
|
|
100
|
+
initials?: string;
|
|
101
|
+
image?: string;
|
|
102
|
+
icon?: boolean;
|
|
103
|
+
};
|
|
104
|
+
groupingLabel?: string;
|
|
105
|
+
disabled?: boolean;
|
|
106
|
+
renderer?: Component;
|
|
107
|
+
rendererProps?: any;
|
|
108
|
+
classList?: string[];
|
|
109
|
+
searchText?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
75
112
|
export declare const PvChart: DefineComponent<PvChartProps, {
|
|
76
113
|
getChartImageDataURL: (dimensions?: {
|
|
77
114
|
width?: number;
|
|
@@ -140,6 +177,10 @@ declare interface PvDataTableProps<T> {
|
|
|
140
177
|
* Handler to fetch filter values for server-side filtering. Only used for server-side row model.
|
|
141
178
|
*/
|
|
142
179
|
filterValuesSetHandler?: (params: FilterValuesSetHandlerParams<T>) => Promise<(FilterValueResponseOption | null)[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Handler to return suggestions for applying search terms to the table.
|
|
182
|
+
*/
|
|
183
|
+
tableSearchHandler?: (params: TableSearchHandlerParams<T>) => Promise<(QueryBuilderSuggestionMenuOption | null)[]>;
|
|
143
184
|
/**
|
|
144
185
|
* Specifies an initial set of filters/groups/sort/etc. to be applied to the table.
|
|
145
186
|
*/
|
|
@@ -180,6 +221,14 @@ declare interface PvDataTableProps<T> {
|
|
|
180
221
|
* Display button to group by columns
|
|
181
222
|
*/
|
|
182
223
|
enableGroupBySelector?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Display input to search within the table
|
|
226
|
+
*/
|
|
227
|
+
enableTableSearch?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Allows for slot content to be placed above the chart
|
|
230
|
+
*/
|
|
231
|
+
enableTopSlot?: boolean;
|
|
183
232
|
/**
|
|
184
233
|
* Display button to open the vertical filter drawer
|
|
185
234
|
*/
|
|
@@ -276,12 +325,14 @@ declare interface PvDataTableProps<T> {
|
|
|
276
325
|
* List of column fields that can be focused
|
|
277
326
|
*/
|
|
278
327
|
focusableColumns?: string[];
|
|
328
|
+
tableSearchPlaceholder?: string;
|
|
329
|
+
tableSearchStyle?: TableSearchStyle;
|
|
330
|
+
maxHorizontalFilters?: number;
|
|
279
331
|
}
|
|
280
332
|
|
|
281
333
|
export declare const PvDataTableWithChart: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
282
334
|
props: __VLS_PrettifyLocal<any & PvDataTableWithChartProps<T> & Partial<{}>> & PublicProps;
|
|
283
335
|
expose(exposed: ShallowUnwrapRef< {
|
|
284
|
-
provideChartData: (data: AgChartOptions["data"], stackField: string) => void;
|
|
285
336
|
getChartImageDataURL: (dimensions?: {
|
|
286
337
|
width?: number;
|
|
287
338
|
height?: number;
|
|
@@ -297,10 +348,7 @@ export declare const PvDataTableWithChart: <T>(__VLS_props: NonNullable<Awaited<
|
|
|
297
348
|
attrs: any;
|
|
298
349
|
slots: {};
|
|
299
350
|
emit: {
|
|
300
|
-
(e: "chart-
|
|
301
|
-
api: GridApi | null;
|
|
302
|
-
seriesField: string | null;
|
|
303
|
-
}): void;
|
|
351
|
+
(e: "chart-state-changed", event: ChartStateChangedEvent): void;
|
|
304
352
|
(e: "column-moved", event: ColumnMovedEvent<T>): void;
|
|
305
353
|
(e: "column-resized", event: ColumnResizedEvent<T>): void;
|
|
306
354
|
(e: "column-row-group-changed", event: ColumnRowGroupChangedEvent<T>): void;
|
|
@@ -319,16 +367,16 @@ export declare const PvDataTableWithChart: <T>(__VLS_props: NonNullable<Awaited<
|
|
|
319
367
|
|
|
320
368
|
declare interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
321
369
|
enabledChartTypes?: supportedChartType[];
|
|
322
|
-
|
|
370
|
+
serverSideChartHandler?: (params: ServerSideChartDataHandlerParams) => Promise<ServerSideChartDataHandlerResponse>;
|
|
323
371
|
showSeriesLabels?: boolean;
|
|
324
372
|
truncateLabelValues?: boolean;
|
|
325
373
|
initialChartData?: AgChartOptions_2["data"];
|
|
326
|
-
displayChartLoading?: boolean;
|
|
327
374
|
enableCombinedChartConfigPanel?: boolean;
|
|
328
375
|
chartConfigPanelOptions?: ChartConfigPanelType[];
|
|
329
376
|
chartFilter?: ChartFilter;
|
|
330
377
|
chartType?: supportedChartType;
|
|
331
378
|
yKey?: string;
|
|
379
|
+
initialSort?: string;
|
|
332
380
|
hideChart?: boolean;
|
|
333
381
|
hideTable?: boolean;
|
|
334
382
|
filterPanelAboveChart?: boolean;
|
|
@@ -339,6 +387,10 @@ declare interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
|
339
387
|
};
|
|
340
388
|
percentOfFocusViewYKey?: string;
|
|
341
389
|
focusableColumns?: string[];
|
|
390
|
+
/**
|
|
391
|
+
* Enable toggle to group or ungroup
|
|
392
|
+
*/
|
|
393
|
+
enableGroupingToggle?: boolean;
|
|
342
394
|
}
|
|
343
395
|
|
|
344
396
|
export declare const PvMapChart: DefineComponent< {
|
|
@@ -382,10 +434,46 @@ declare interface PvMapChartProps {
|
|
|
382
434
|
tooltipRenderer?: (params: AgMapLineSeriesTooltipRendererParams<PvMapChartData>) => string | HTMLElement;
|
|
383
435
|
}
|
|
384
436
|
|
|
437
|
+
declare interface QueryBuilderSuggestionMenuOption extends MenuOption {
|
|
438
|
+
queryTerm?: QueryTerm;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
declare interface QueryTerm {
|
|
442
|
+
queryField?: string;
|
|
443
|
+
queryDisplayField?: string;
|
|
444
|
+
exactMatch?: boolean;
|
|
445
|
+
queryText?: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
385
448
|
declare interface RegionSelectionChangedEvent {
|
|
386
449
|
region: string | null | undefined;
|
|
387
450
|
}
|
|
388
451
|
|
|
452
|
+
declare interface ServerSideChartDataHandlerParams {
|
|
453
|
+
rowGroupCols: ColumnVO[];
|
|
454
|
+
/** Columns that have aggregations on them. */
|
|
455
|
+
valueCols: ColumnVO[];
|
|
456
|
+
/**
|
|
457
|
+
* If filtering, what the filter model is.
|
|
458
|
+
* If Advanced Filter is enabled, will be of type `AdvancedFilterModel | null`.
|
|
459
|
+
* If Advanced Filter is disabled, will be of type `FilterModel`.
|
|
460
|
+
*/
|
|
461
|
+
filterModel: FilterModel_2 | AdvancedFilterModel | null;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare interface ServerSideChartDataHandlerResponse {
|
|
465
|
+
data: AgChartOptions_2["data"];
|
|
466
|
+
stackField: string;
|
|
467
|
+
}
|
|
468
|
+
|
|
389
469
|
declare type supportedChartType = "column" | "bar" | "column_stacked" | "bar_stacked" | "line" | "area" | "pie";
|
|
390
470
|
|
|
471
|
+
declare interface TableSearchHandlerParams<T> {
|
|
472
|
+
api: GridApi<T>;
|
|
473
|
+
filterModel?: FilterModel | null;
|
|
474
|
+
query?: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare type TableSearchStyle = "query-builder" | "text";
|
|
478
|
+
|
|
391
479
|
export { }
|