@turquoisehealth/pit-viper 2.65.1 → 2.66.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.
@@ -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';
@@ -45,6 +46,26 @@ export declare interface FocusUpdateEvent {
45
46
  filterField?: string | null | undefined;
46
47
  }
47
48
 
49
+ declare interface MenuOption {
50
+ id: string;
51
+ text: string;
52
+ subText?: string;
53
+ secondaryText?: string | number;
54
+ icon?: string;
55
+ companyName?: string;
56
+ avatar?: {
57
+ initials?: string;
58
+ image?: string;
59
+ icon?: boolean;
60
+ };
61
+ groupingLabel?: string;
62
+ disabled?: boolean;
63
+ renderer?: Component;
64
+ rendererProps?: any;
65
+ classList?: string[];
66
+ searchText?: string;
67
+ }
68
+
48
69
  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
70
  props: __VLS_PrettifyLocal<any & PvDataTableProps<T> & Partial<{}>> & PublicProps;
50
71
  expose(exposed: ShallowUnwrapRef<PvDataTablePublicInterface>): void;
@@ -83,6 +104,10 @@ declare interface PvDataTableProps<T> {
83
104
  * Handler to fetch filter values for server-side filtering. Only used for server-side row model.
84
105
  */
85
106
  filterValuesSetHandler?: (params: FilterValuesSetHandlerParams<T>) => Promise<(FilterValueResponseOption | null)[]>;
107
+ /**
108
+ * Handler to return suggestions for applying search terms to the table.
109
+ */
110
+ tableSearchHandler?: (params: TableSearchHandlerParams<T>) => Promise<(QueryBuilderSuggestionMenuOption | null)[]>;
86
111
  /**
87
112
  * Specifies an initial set of filters/groups/sort/etc. to be applied to the table.
88
113
  */
@@ -123,6 +148,10 @@ declare interface PvDataTableProps<T> {
123
148
  * Display button to group by columns
124
149
  */
125
150
  enableGroupBySelector?: boolean;
151
+ /**
152
+ * Display input to search within the table
153
+ */
154
+ enableTableSearch?: boolean;
126
155
  /**
127
156
  * Display button to open the vertical filter drawer
128
157
  */
@@ -219,6 +248,8 @@ declare interface PvDataTableProps<T> {
219
248
  * List of column fields that can be focused
220
249
  */
221
250
  focusableColumns?: string[];
251
+ tableSearchPlaceholder?: string;
252
+ tableSearchStyle?: TableSearchStyle;
222
253
  }
223
254
 
224
255
  declare interface PvDataTablePublicInterface {
@@ -229,4 +260,23 @@ declare interface PvDataTablePublicInterface {
229
260
  availableAggFuncColumns: ComputedRef<ColDef[]>;
230
261
  }
231
262
 
263
+ declare interface QueryBuilderSuggestionMenuOption extends MenuOption {
264
+ queryTerm?: QueryTerm;
265
+ }
266
+
267
+ declare interface QueryTerm {
268
+ queryField?: string;
269
+ queryDisplayField?: string;
270
+ exactMatch?: boolean;
271
+ queryText?: string;
272
+ }
273
+
274
+ declare interface TableSearchHandlerParams<T> {
275
+ api: GridApi<T>;
276
+ filterModel?: FilterModel | null;
277
+ query?: string;
278
+ }
279
+
280
+ declare type TableSearchStyle = "query-builder" | "text";
281
+
232
282
  export { }