@turquoisehealth/pit-viper 2.119.1-dev.0 → 2.121.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 (27) 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/base/components/base/PvButton/helpers.d.ts +0 -1
  5. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +0 -6
  6. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +289 -206
  7. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -31
  8. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
  9. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -6
  10. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +177 -20
  11. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +9 -4
  12. package/pv-components/dist/vue/base/components/base/index.d.ts +1 -1
  13. package/pv-components/dist/vue/base/pv-components-base.js +29 -29
  14. package/pv-components/dist/vue/base/pv-components-base.mjs +3569 -3560
  15. package/pv-components/dist/vue/base/pv-components-base.umd.js +29 -29
  16. package/pv-components/dist/vue/charts/pv-components-charts.d.ts +491 -0
  17. package/pv-components/dist/vue/charts/pv-components-charts.js +259 -0
  18. package/pv-components/dist/vue/charts/pv-components-charts.mjs +121834 -0
  19. package/pv-components/dist/vue/charts/pv-components-charts.umd.js +259 -0
  20. package/pv-components/dist/vue/tables/pv-components-tables.d.ts +299 -0
  21. package/pv-components/dist/vue/tables/pv-components-tables.js +223 -0
  22. package/pv-components/dist/vue/tables/pv-components-tables.mjs +47028 -0
  23. package/pv-components/dist/vue/tables/pv-components-tables.umd.js +223 -0
  24. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +17 -17
  25. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4376 -5532
  26. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +17 -17
  27. package/pv-components/dist/web/pv-components.iife.js +31 -31
@@ -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 { }