@turquoisehealth/pit-viper 2.71.1-dev.4 → 2.72.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.
@@ -1,4 +1,3 @@
1
- import { AdvancedFilterModel } from 'ag-grid-community/dist/types/src/interfaces/advancedFilterModel';
2
1
  import { AgChartInstance } from 'ag-charts-enterprise';
3
2
  import { AgChartOptions } from 'ag-charts-types';
4
3
  import { AgChartOptions as AgChartOptions_2 } from 'ag-charts-enterprise';
@@ -9,8 +8,6 @@ import { Column } from 'ag-grid-enterprise';
9
8
  import { ColumnMovedEvent } from 'ag-grid-enterprise';
10
9
  import { ColumnResizedEvent } from 'ag-grid-enterprise';
11
10
  import { ColumnRowGroupChangedEvent } from 'ag-grid-enterprise';
12
- import { ColumnVO } from 'ag-grid-community/dist/types/src/interfaces/iColumnVO';
13
- import { Component } from 'vue';
14
11
  import { ComponentOptionsMixin } from 'vue';
15
12
  import { ComponentProvideOptions } from 'vue';
16
13
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
@@ -18,7 +15,6 @@ import { DefineComponent } from 'vue';
18
15
  import { ExtractPropTypes } from 'vue';
19
16
  import { FilterChangedEvent } from 'ag-grid-enterprise';
20
17
  import { FilterModel } from 'ag-grid-enterprise';
21
- import { FilterModel as FilterModel_2 } from 'ag-grid-community/dist/types/src/interfaces/iFilter';
22
18
  import { FirstDataRenderedEvent } from 'ag-grid-community';
23
19
  import { GlobalComponents } from 'vue';
24
20
  import { GlobalDirectives } from 'vue';
@@ -53,19 +49,6 @@ declare type ChartFilterOption = {
53
49
  filterValues: string[];
54
50
  };
55
51
 
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
-
69
52
  declare interface FilterValueResponseOption {
70
53
  value: string;
71
54
  label?: string;
@@ -89,26 +72,6 @@ declare interface FocusUpdateEvent {
89
72
 
90
73
  declare type MapTopologyType = "state" | "city" | "county" | "cbsa" | "zip_code";
91
74
 
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
-
112
75
  export declare const PvChart: DefineComponent<PvChartProps, {
113
76
  getChartImageDataURL: (dimensions?: {
114
77
  width?: number;
@@ -177,10 +140,6 @@ declare interface PvDataTableProps<T> {
177
140
  * Handler to fetch filter values for server-side filtering. Only used for server-side row model.
178
141
  */
179
142
  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)[]>;
184
143
  /**
185
144
  * Specifies an initial set of filters/groups/sort/etc. to be applied to the table.
186
145
  */
@@ -221,14 +180,6 @@ declare interface PvDataTableProps<T> {
221
180
  * Display button to group by columns
222
181
  */
223
182
  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;
232
183
  /**
233
184
  * Display button to open the vertical filter drawer
234
185
  */
@@ -325,14 +276,12 @@ declare interface PvDataTableProps<T> {
325
276
  * List of column fields that can be focused
326
277
  */
327
278
  focusableColumns?: string[];
328
- tableSearchPlaceholder?: string;
329
- tableSearchStyle?: TableSearchStyle;
330
- maxHorizontalFilters?: number;
331
279
  }
332
280
 
333
281
  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<{
334
282
  props: __VLS_PrettifyLocal<any & PvDataTableWithChartProps<T> & Partial<{}>> & PublicProps;
335
283
  expose(exposed: ShallowUnwrapRef< {
284
+ provideChartData: (data: AgChartOptions["data"], stackField: string) => void;
336
285
  getChartImageDataURL: (dimensions?: {
337
286
  width?: number;
338
287
  height?: number;
@@ -348,7 +297,10 @@ export declare const PvDataTableWithChart: <T>(__VLS_props: NonNullable<Awaited<
348
297
  attrs: any;
349
298
  slots: {};
350
299
  emit: {
351
- (e: "chart-state-changed", event: ChartStateChangedEvent): void;
300
+ (e: "chart-series-changed", event: {
301
+ api: GridApi | null;
302
+ seriesField: string | null;
303
+ }): void;
352
304
  (e: "column-moved", event: ColumnMovedEvent<T>): void;
353
305
  (e: "column-resized", event: ColumnResizedEvent<T>): void;
354
306
  (e: "column-row-group-changed", event: ColumnRowGroupChangedEvent<T>): void;
@@ -367,16 +319,16 @@ export declare const PvDataTableWithChart: <T>(__VLS_props: NonNullable<Awaited<
367
319
 
368
320
  declare interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
369
321
  enabledChartTypes?: supportedChartType[];
370
- serverSideChartHandler?: (params: ServerSideChartDataHandlerParams) => Promise<ServerSideChartDataHandlerResponse>;
322
+ overrideChartData?: boolean;
371
323
  showSeriesLabels?: boolean;
372
324
  truncateLabelValues?: boolean;
373
325
  initialChartData?: AgChartOptions_2["data"];
326
+ displayChartLoading?: boolean;
374
327
  enableCombinedChartConfigPanel?: boolean;
375
328
  chartConfigPanelOptions?: ChartConfigPanelType[];
376
329
  chartFilter?: ChartFilter;
377
330
  chartType?: supportedChartType;
378
331
  yKey?: string;
379
- initialSort?: string;
380
332
  hideChart?: boolean;
381
333
  hideTable?: boolean;
382
334
  filterPanelAboveChart?: boolean;
@@ -387,10 +339,6 @@ declare interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
387
339
  };
388
340
  percentOfFocusViewYKey?: string;
389
341
  focusableColumns?: string[];
390
- /**
391
- * Enable toggle to group or ungroup
392
- */
393
- enableGroupingToggle?: boolean;
394
342
  }
395
343
 
396
344
  export declare const PvMapChart: DefineComponent< {
@@ -434,46 +382,10 @@ declare interface PvMapChartProps {
434
382
  tooltipRenderer?: (params: AgMapLineSeriesTooltipRendererParams<PvMapChartData>) => string | HTMLElement;
435
383
  }
436
384
 
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
-
448
385
  declare interface RegionSelectionChangedEvent {
449
386
  region: string | null | undefined;
450
387
  }
451
388
 
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
-
469
389
  declare type supportedChartType = "column" | "bar" | "column_stacked" | "bar_stacked" | "line" | "area" | "pie";
470
390
 
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
-
479
391
  export { }