@turquoisehealth/pit-viper 2.71.0 → 2.71.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.
@@ -3,6 +3,7 @@ import { Column } from 'ag-grid-enterprise';
3
3
  import { ColumnMovedEvent } from 'ag-grid-enterprise';
4
4
  import { ColumnResizedEvent } from 'ag-grid-enterprise';
5
5
  import { ColumnRowGroupChangedEvent } from 'ag-grid-enterprise';
6
+ import { Component } from 'vue';
6
7
  import { ComputedRef } from 'vue';
7
8
  import { FilterChangedEvent } from 'ag-grid-enterprise';
8
9
  import { FilterModel } from 'ag-grid-enterprise';
@@ -14,6 +15,7 @@ import { IServerSideGetRowsParams } from 'ag-grid-enterprise';
14
15
  import { IsGroupOpenByDefaultParams } from 'ag-grid-community';
15
16
  import { IsServerSideGroupOpenByDefaultParams } from 'ag-grid-community';
16
17
  import { PublicProps } from 'vue';
18
+ import { Ref } from 'vue';
17
19
  import { RefreshServerSideParams } from 'ag-grid-community';
18
20
  import { ShallowUnwrapRef } from 'vue';
19
21
  import { SortChangedEvent } from 'ag-grid-community';
@@ -45,11 +47,33 @@ export declare interface FocusUpdateEvent {
45
47
  filterField?: string | null | undefined;
46
48
  }
47
49
 
50
+ declare interface MenuOption {
51
+ id: string;
52
+ text: string;
53
+ subText?: string;
54
+ secondaryText?: string | number;
55
+ icon?: string;
56
+ companyName?: string;
57
+ avatar?: {
58
+ initials?: string;
59
+ image?: string;
60
+ icon?: boolean;
61
+ };
62
+ groupingLabel?: string;
63
+ disabled?: boolean;
64
+ renderer?: Component;
65
+ rendererProps?: any;
66
+ classList?: string[];
67
+ searchText?: string;
68
+ }
69
+
48
70
  export declare const PvDataTable: <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<{
49
71
  props: __VLS_PrettifyLocal<any & PvDataTableProps<T> & Partial<{}>> & PublicProps;
50
72
  expose(exposed: ShallowUnwrapRef<PvDataTablePublicInterface>): void;
51
73
  attrs: any;
52
- slots: {};
74
+ slots: {
75
+ 'top-slot'?(_: {}): any;
76
+ };
53
77
  emit: {
54
78
  (e: "column-moved", event: ColumnMovedEvent<T>): void;
55
79
  (e: "column-resized", event: ColumnResizedEvent<T>): void;
@@ -83,6 +107,10 @@ declare interface PvDataTableProps<T> {
83
107
  * Handler to fetch filter values for server-side filtering. Only used for server-side row model.
84
108
  */
85
109
  filterValuesSetHandler?: (params: FilterValuesSetHandlerParams<T>) => Promise<(FilterValueResponseOption | null)[]>;
110
+ /**
111
+ * Handler to return suggestions for applying search terms to the table.
112
+ */
113
+ tableSearchHandler?: (params: TableSearchHandlerParams<T>) => Promise<(QueryBuilderSuggestionMenuOption | null)[]>;
86
114
  /**
87
115
  * Specifies an initial set of filters/groups/sort/etc. to be applied to the table.
88
116
  */
@@ -123,6 +151,14 @@ declare interface PvDataTableProps<T> {
123
151
  * Display button to group by columns
124
152
  */
125
153
  enableGroupBySelector?: boolean;
154
+ /**
155
+ * Display input to search within the table
156
+ */
157
+ enableTableSearch?: boolean;
158
+ /**
159
+ * Allows for slot content to be placed above the chart
160
+ */
161
+ enableTopSlot?: boolean;
126
162
  /**
127
163
  * Display button to open the vertical filter drawer
128
164
  */
@@ -219,6 +255,8 @@ declare interface PvDataTableProps<T> {
219
255
  * List of column fields that can be focused
220
256
  */
221
257
  focusableColumns?: string[];
258
+ tableSearchPlaceholder?: string;
259
+ tableSearchStyle?: TableSearchStyle;
222
260
  }
223
261
 
224
262
  declare interface PvDataTablePublicInterface {
@@ -227,6 +265,26 @@ declare interface PvDataTablePublicInterface {
227
265
  getFilterValueSelectedMetadataMap: () => Record<string, (FilterValueResponseOption | null)[]>;
228
266
  availableRowGroupColumns: ComputedRef<ColDef[]>;
229
267
  availableAggFuncColumns: ComputedRef<ColDef[]>;
268
+ rowGroupColumnFields: Ref<string[]>;
230
269
  }
231
270
 
271
+ declare interface QueryBuilderSuggestionMenuOption extends MenuOption {
272
+ queryTerm?: QueryTerm;
273
+ }
274
+
275
+ declare interface QueryTerm {
276
+ queryField?: string;
277
+ queryDisplayField?: string;
278
+ exactMatch?: boolean;
279
+ queryText?: string;
280
+ }
281
+
282
+ declare interface TableSearchHandlerParams<T> {
283
+ api: GridApi<T>;
284
+ filterModel?: FilterModel | null;
285
+ query?: string;
286
+ }
287
+
288
+ declare type TableSearchStyle = "query-builder" | "text";
289
+
232
290
  export { }