@turquoisehealth/pit-viper 2.106.0 → 2.108.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.
Files changed (66) hide show
  1. package/_src/assets/sprite-v2.svg +1 -1
  2. package/_src/assets/sprite.svg +1 -1
  3. package/package.json +1 -1
  4. package/pv-components/dist/vue/charts/pv-components-charts.d.ts +491 -0
  5. package/pv-components/dist/vue/charts/pv-components-charts.js +259 -0
  6. package/pv-components/dist/vue/charts/pv-components-charts.mjs +121834 -0
  7. package/pv-components/dist/vue/charts/pv-components-charts.umd.js +259 -0
  8. package/pv-components/dist/vue/tables/pv-components-tables.d.ts +299 -0
  9. package/pv-components/dist/vue/tables/pv-components-tables.js +223 -0
  10. package/pv-components/dist/vue/tables/pv-components-tables.mjs +47028 -0
  11. package/pv-components/dist/vue/tables/pv-components-tables.umd.js +223 -0
  12. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +17 -17
  13. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3574 -3472
  14. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +17 -17
  15. package/pv-components/dist/stats/vue/base/stats.html +0 -4949
  16. package/pv-components/dist/stats/vue/visualizations/stats.html +0 -4949
  17. package/pv-components/dist/stats/web/pv-accordion-stats.html +0 -4949
  18. package/pv-components/dist/stats/web/pv-action-bar-stats.html +0 -4949
  19. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +0 -4949
  20. package/pv-components/dist/stats/web/pv-avatar-stats.html +0 -4949
  21. package/pv-components/dist/stats/web/pv-banner-stats.html +0 -4949
  22. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +0 -4949
  23. package/pv-components/dist/stats/web/pv-button-stats.html +0 -4949
  24. package/pv-components/dist/stats/web/pv-card-stats.html +0 -4949
  25. package/pv-components/dist/stats/web/pv-checkbox-stats.html +0 -4949
  26. package/pv-components/dist/stats/web/pv-company-label-stats.html +0 -4949
  27. package/pv-components/dist/stats/web/pv-company-logo-stats.html +0 -4949
  28. package/pv-components/dist/stats/web/pv-company-tag-stats.html +0 -4949
  29. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +0 -4949
  30. package/pv-components/dist/stats/web/pv-date-picker-stats.html +0 -4949
  31. package/pv-components/dist/stats/web/pv-date-time-stats.html +0 -4949
  32. package/pv-components/dist/stats/web/pv-drawer-stats.html +0 -4949
  33. package/pv-components/dist/stats/web/pv-dropdown-stats.html +0 -4949
  34. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +0 -4949
  35. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +0 -4949
  36. package/pv-components/dist/stats/web/pv-icon-stats.html +0 -4949
  37. package/pv-components/dist/stats/web/pv-input-stats.html +0 -4949
  38. package/pv-components/dist/stats/web/pv-insight-card-stats.html +0 -4949
  39. package/pv-components/dist/stats/web/pv-modal-stats.html +0 -4949
  40. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +0 -4949
  41. package/pv-components/dist/stats/web/pv-pagination-stats.html +0 -4949
  42. package/pv-components/dist/stats/web/pv-pill-stats.html +0 -4949
  43. package/pv-components/dist/stats/web/pv-popover-stats.html +0 -4949
  44. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +0 -4949
  45. package/pv-components/dist/stats/web/pv-rating-stats.html +0 -4949
  46. package/pv-components/dist/stats/web/pv-release-badge-stats.html +0 -4949
  47. package/pv-components/dist/stats/web/pv-search-input-stats.html +0 -4949
  48. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +0 -4949
  49. package/pv-components/dist/stats/web/pv-select-button-stats.html +0 -4949
  50. package/pv-components/dist/stats/web/pv-selectable-card-stats.html +0 -4949
  51. package/pv-components/dist/stats/web/pv-side-panel-stats.html +0 -4949
  52. package/pv-components/dist/stats/web/pv-skeleton-stats.html +0 -4949
  53. package/pv-components/dist/stats/web/pv-spinner-stats.html +0 -4949
  54. package/pv-components/dist/stats/web/pv-sprite-stats.html +0 -4949
  55. package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +0 -4949
  56. package/pv-components/dist/stats/web/pv-switch-stats.html +0 -4949
  57. package/pv-components/dist/stats/web/pv-tab-list-stats.html +0 -4949
  58. package/pv-components/dist/stats/web/pv-tabs-stats.html +0 -4949
  59. package/pv-components/dist/stats/web/pv-tag-stats.html +0 -4949
  60. package/pv-components/dist/stats/web/pv-text-area-stats.html +0 -4949
  61. package/pv-components/dist/stats/web/pv-toast-stats.html +0 -4949
  62. package/pv-components/dist/stats/web/pv-toggle-button-stats.html +0 -4949
  63. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +0 -4949
  64. package/pv-components/dist/stats/web/pv-tooltip-stats.html +0 -4949
  65. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +0 -4949
  66. package/pv-components/dist/stats/web/pv-widget-stats.html +0 -4949
@@ -0,0 +1,299 @@
1
+ import { ColDef } from 'ag-grid-community';
2
+ import { Column } from 'ag-grid-enterprise';
3
+ import { ColumnMovedEvent } from 'ag-grid-enterprise';
4
+ import { ColumnResizedEvent } from 'ag-grid-enterprise';
5
+ import { ColumnRowGroupChangedEvent } from 'ag-grid-enterprise';
6
+ import { Component } from 'vue';
7
+ import { ComputedRef } from 'vue';
8
+ import { CSSProperties } from 'vue';
9
+ import { FilterChangedEvent } from 'ag-grid-enterprise';
10
+ import { FilterModel } from 'ag-grid-enterprise';
11
+ import { FirstDataRenderedEvent } from 'ag-grid-community';
12
+ import { GridApi } from 'ag-grid-community';
13
+ import { GridReadyEvent } from 'ag-grid-community';
14
+ import { GridState } from 'ag-grid-enterprise';
15
+ import { IServerSideGetRowsParams } from 'ag-grid-enterprise';
16
+ import { IsGroupOpenByDefaultParams } from 'ag-grid-community';
17
+ import { IsServerSideGroupOpenByDefaultParams } from 'ag-grid-community';
18
+ import { PublicProps } from 'vue';
19
+ import { Ref } from 'vue';
20
+ import { RefreshServerSideParams } from 'ag-grid-community';
21
+ import { ShallowUnwrapRef } from 'vue';
22
+ import { SortChangedEvent } from 'ag-grid-community';
23
+ import { Theme } from 'ag-grid-enterprise';
24
+ import { VNode } from 'vue';
25
+
26
+ declare type __VLS_PrettifyLocal<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
29
+
30
+ declare interface FilterValueResponseOption {
31
+ value: string;
32
+ label?: string;
33
+ isPreference?: boolean;
34
+ isSelectable?: boolean;
35
+ metadata?: any;
36
+ }
37
+
38
+ declare interface FilterValuesSetHandlerParams<T> {
39
+ api: GridApi<T>;
40
+ colDef: ColDef<T>;
41
+ column: Column<T>;
42
+ filterModel?: FilterModel | null;
43
+ query?: string;
44
+ }
45
+
46
+ export declare interface FocusUpdateEvent {
47
+ focuses?: string[] | null | undefined;
48
+ filterField?: string | null | undefined;
49
+ }
50
+
51
+ declare interface MenuOption {
52
+ id: string;
53
+ text: string;
54
+ subText?: string;
55
+ secondaryText?: string | number;
56
+ icon?: string;
57
+ companyName?: string;
58
+ avatar?: {
59
+ initials?: string;
60
+ image?: string;
61
+ icon?: boolean;
62
+ };
63
+ groupingLabel?: string;
64
+ disabled?: boolean;
65
+ renderer?: Component;
66
+ rendererProps?: any;
67
+ classList?: string[];
68
+ searchText?: string;
69
+ }
70
+
71
+ 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<{
72
+ props: __VLS_PrettifyLocal<any & PvDataTableProps<T> & Partial<{}>> & PublicProps;
73
+ expose(exposed: ShallowUnwrapRef<PvDataTablePublicInterface>): void;
74
+ attrs: any;
75
+ slots: {
76
+ 'top-slot'?(_: {}): any;
77
+ };
78
+ emit: {
79
+ (e: "column-moved", event: ColumnMovedEvent<T>): void;
80
+ (e: "column-resized", event: ColumnResizedEvent<T>): void;
81
+ (e: "column-row-group-changed", event: ColumnRowGroupChangedEvent<T>): void;
82
+ (e: "grid-ready", event: GridReadyEvent<T>): void;
83
+ (e: "filter-changed", event: FilterChangedEvent<T>): void;
84
+ (e: "sort-changed", event: SortChangedEvent<T>): void;
85
+ (e: "filter-opened", event: FilterChangedEvent<T>): void;
86
+ (e: "first-data-rendered", event: FirstDataRenderedEvent<T>): void;
87
+ (e: "handle-settings-icon", value: string): void;
88
+ (e: "focus-update", event: FocusUpdateEvent): void;
89
+ };
90
+ }>) => VNode & {
91
+ __ctx?: Awaited<typeof __VLS_setup>;
92
+ };
93
+
94
+ declare interface PvDataTableProps<T> {
95
+ /**
96
+ * Column definitions for the table. Follows the AG Grid column definition format.
97
+ */
98
+ colDefs?: ColDef<T>[];
99
+ /**
100
+ * Array of JSON data objects to be displayed in the table. Only used for client-side row model.
101
+ */
102
+ rowData?: T[];
103
+ /**
104
+ * Handler to fetch server-side data. Only used for server-side row model.
105
+ */
106
+ serverSideRowHandler?: (params: IServerSideGetRowsParams<T>, isCsvExport?: boolean) => void;
107
+ /**
108
+ * Handler to fetch filter values for server-side filtering. Only used for server-side row model.
109
+ */
110
+ filterValuesSetHandler?: (params: FilterValuesSetHandlerParams<T>) => Promise<(FilterValueResponseOption | null)[]>;
111
+ /**
112
+ * Handler to return suggestions for applying search terms to the table.
113
+ */
114
+ tableSearchHandler?: (params: TableSearchHandlerParams<T>) => Promise<(QueryBuilderSuggestionMenuOption | null)[]>;
115
+ /**
116
+ * Specifies an initial set of filters/groups/sort/etc. to be applied to the table.
117
+ */
118
+ initialGridState?: GridState;
119
+ /**
120
+ * Specifies an initial set of metadata values for filters that require them
121
+ */
122
+ initialFilterValueMap?: Record<string, (FilterValueResponseOption | null)[]>;
123
+ /**
124
+ * Override the Pit Viper them
125
+ */
126
+ theme?: Theme;
127
+ /**
128
+ * For aggregated columns, only show the aggregate at the final group level
129
+ */
130
+ displayBaseAggregationsOnly?: boolean;
131
+ /**
132
+ * Display Row Number in the first column
133
+ */
134
+ displayRowNumber?: boolean;
135
+ /**
136
+ * Display Counts on Grouped Rows (requires allChildrenCount on the object)
137
+ */
138
+ displayGroupCount?: boolean;
139
+ /**
140
+ * Displays Icon on Preferences that emits handle-settings-icon event
141
+ */
142
+ displayPreferencesIcon?: boolean;
143
+ /**
144
+ * Display button to hide/show columns
145
+ */
146
+ enableColumnVisibilitySelector?: boolean;
147
+ /**
148
+ * Display everything focus view related
149
+ */
150
+ enableFocusView?: boolean;
151
+ /**
152
+ * Display button to group by columns
153
+ */
154
+ enableGroupBySelector?: boolean;
155
+ /**
156
+ * Display input to search within the table
157
+ */
158
+ enableTableSearch?: boolean;
159
+ /**
160
+ * Allows for slot content to be placed above the chart
161
+ */
162
+ enableTopSlot?: boolean;
163
+ /**
164
+ * Display button to open the vertical filter drawer
165
+ */
166
+ enableVerticalFilterPanel?: boolean;
167
+ /**
168
+ * Number of groups to support (defaults to 2)
169
+ */
170
+ rowGroupLimit?: number;
171
+ /**
172
+ * Whether to expand all groups by default, based on level. -1 expands all groups
173
+ */
174
+ groupDefaultExpanded?: number;
175
+ /**
176
+ * A handler to determine if a group should be open by default dynamically.
177
+ */
178
+ isClientSideGroupOpenByDefault?: (params: IsGroupOpenByDefaultParams) => boolean;
179
+ /**
180
+ * A handler to determine whether a group should be open by default.
181
+ */
182
+ isServerSideGroupOpenByDefault?: (params: IsServerSideGroupOpenByDefaultParams) => boolean;
183
+ /**
184
+ * Display button to export table data as CSV
185
+ */
186
+ enableCsvExport?: boolean;
187
+ /**
188
+ * # of rows to export to CSV - be careful overriding this as large exports can cause performance issues
189
+ */
190
+ csvRowLimit?: number;
191
+ /**
192
+ * Optional param to implement custom logic for CSV export. If not specified, the serverSideRowHandler will be used to generate the CSV data.
193
+ */
194
+ serverSideCsvHandler?: (params: IServerSideGetRowsParams<T>) => Promise<void>;
195
+ /**
196
+ * Field that can be used to identify row uniqueness for preserving expanded/collapsed row states
197
+ */
198
+ uniqueRowIdField?: string;
199
+ /**
200
+ * If true, will not show data until at least one filter is applied
201
+ */
202
+ requireFiltersToShowData?: boolean;
203
+ /**
204
+ * If true, will show loading state - can be used as a dynamic prop to show/hide loading state
205
+ */
206
+ isLoading?: boolean;
207
+ /**
208
+ * Height of the table + filter container
209
+ */
210
+ containerHeight?: number;
211
+ /**
212
+ * Min height of the table + filter container
213
+ */
214
+ containerMinHeight?: number;
215
+ /**
216
+ * Enables the ValidationModule for advanced debugging as well as additional console logging from AG Grid
217
+ */
218
+ debugMode?: boolean;
219
+ /**
220
+ * If true, hide all row-grouped columns from the table.
221
+ */
222
+ hideAllRowGroupedColumns?: boolean;
223
+ /**
224
+ * Specifies the column to pin to the left of the table if at least one row grouping is enabled.
225
+ */
226
+ leftPinnedColumnName?: string;
227
+ /**
228
+ * Enables pagination
229
+ */
230
+ pagination?: boolean;
231
+ /**
232
+ * Set the pagination page size. Defaults to 50.
233
+ */
234
+ paginationPageSize?: 20 | 50 | 100 | 200;
235
+ /**
236
+ * Row height for individual rows
237
+ */
238
+ rowHeight?: number;
239
+ /**
240
+ * Set tooltip show delay. Detaults 1000ms
241
+ */
242
+ tooltipShowDelay?: number;
243
+ /**
244
+ * Set tooltip hide delay.
245
+ */
246
+ tooltipHideDelay?: number;
247
+ /**
248
+ * Hide the table rows (but still show the filter panel)
249
+ */
250
+ hideTable?: boolean;
251
+ /**
252
+ * DOM location to use for relocating the filter panel
253
+ */
254
+ filterTeleportLocation?: string;
255
+ /**
256
+ * List of column fields that can be focused
257
+ */
258
+ focusableColumns?: string[];
259
+ tableSearchPlaceholder?: string;
260
+ tableSearchStyle?: TableSearchStyle;
261
+ maxHorizontalFilters?: number;
262
+ maintainColumnOrder?: boolean;
263
+ /**
264
+ * Custom CSS Properties
265
+ */
266
+ customCssProperties?: {
267
+ agGridWrapper: CSSProperties;
268
+ };
269
+ }
270
+
271
+ declare interface PvDataTablePublicInterface {
272
+ getCsvData: () => Promise<string | null>;
273
+ refreshData: (params?: RefreshServerSideParams | null) => Promise<void>;
274
+ getFilterValueSelectedMetadataMap: () => Record<string, (FilterValueResponseOption | null)[]>;
275
+ availableRowGroupColumns: ComputedRef<ColDef[]>;
276
+ availableAggFuncColumns: ComputedRef<ColDef[]>;
277
+ rowGroupColumnFields: Ref<string[]>;
278
+ }
279
+
280
+ declare interface QueryBuilderSuggestionMenuOption extends MenuOption {
281
+ queryTerm?: QueryTerm;
282
+ }
283
+
284
+ declare interface QueryTerm {
285
+ queryField?: string;
286
+ queryDisplayField?: string;
287
+ exactMatch?: boolean;
288
+ queryText?: string;
289
+ }
290
+
291
+ declare interface TableSearchHandlerParams<T> {
292
+ api: GridApi<T>;
293
+ filterModel?: FilterModel | null;
294
+ query?: string;
295
+ }
296
+
297
+ declare type TableSearchStyle = "query-builder" | "text";
298
+
299
+ export { }