@turquoisehealth/pit-viper 2.182.0 → 2.182.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.
- package/_site/assets/css/pit-viper-a11y.css +1 -1
- package/_site/assets/css/pit-viper-consumer.css +1 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
- package/_site/assets/css/pit-viper-v2.css +1 -1
- package/_site/assets/css/pit-viper.css +1 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-accordion-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ai-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-avatar-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-avatar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-checkbox-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-range-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-switch-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvAvatarGroup/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvCheckbox/PvCheckbox.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/cascadeUtils.d.ts +2 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvRange/PvRange.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvSegmentedControl/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvSwitch/PvSwitch.vue.d.ts +2 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +1178 -1068
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCheckbox/PvCheckbox.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/cascadeUtils.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvRange/PvRange.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSegmentedControl/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSwitch/PvSwitch.vue.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOverlayMenuItemRenderer.vue.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +20 -17
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +9 -8
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1844 -1403
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +7 -4
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +3 -3
- package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +4 -3
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +4 -2
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +3 -2
- package/pv-components/dist/web/components/pv-button/pv-button.js +7 -5
- package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +8 -2
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -2
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +8 -5
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +8 -6
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +8 -5
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +10 -7
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +2121 -885
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1758 -1621
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +11 -7
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +816 -806
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +2499 -1493
- package/pv-components/dist/web/components/pv-range/pv-range.js +481 -477
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +733 -719
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1183 -1089
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +408 -405
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +2 -2
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +8 -5
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +665 -655
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +8 -5
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +664 -654
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +11 -5
- package/pv-components/dist/web/pv-components.iife.js +20 -20
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -41,6 +41,7 @@ export interface MenuOption<T = unknown> {
|
|
|
41
41
|
handleSeeMore?: (payload: SeeMoreEvent) => Promise<MenuOption<T>[] | void> | MenuOption<T>[] | void;
|
|
42
42
|
totalChildCount?: number;
|
|
43
43
|
defaultExpanded?: boolean;
|
|
44
|
+
config?: MenuOptionConfig;
|
|
44
45
|
}
|
|
45
46
|
export interface MenuOptionConfig {
|
|
46
47
|
renderer?: Component;
|
|
@@ -55,12 +56,14 @@ export interface MenuOptionSelectedEvent {
|
|
|
55
56
|
}
|
|
56
57
|
export interface SeeMoreEvent {
|
|
57
58
|
parentId?: string;
|
|
59
|
+
offset?: number;
|
|
58
60
|
}
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
export interface SelectionNode {
|
|
62
|
+
id: string;
|
|
63
|
+
state: "selected" | "deselected";
|
|
64
|
+
children?: SelectionNode[];
|
|
63
65
|
}
|
|
66
|
+
export type MultiSelectState = SelectionNode[];
|
|
64
67
|
export declare enum MenuItemType {
|
|
65
68
|
simple = "simple",
|
|
66
69
|
checkbox = "checkbox",
|
|
@@ -5,6 +5,8 @@ interface PvAvatarProps {
|
|
|
5
5
|
icon?: string;
|
|
6
6
|
/** URL of an image to display. Only rendered when `icon` and `initials` are not set. */
|
|
7
7
|
image?: string;
|
|
8
|
+
/** Accessible alt text for the avatar image. Defaults to "" (decorative) when initials or other context provides the name. */
|
|
9
|
+
alt?: string;
|
|
8
10
|
/** One or two character string displayed when no icon is provided. Takes priority over `image` when both are set. */
|
|
9
11
|
initials?: string;
|
|
10
12
|
/** Display size of the avatar. */
|
|
@@ -3,6 +3,8 @@ export interface PvAvatarGroupItem {
|
|
|
3
3
|
initials?: string;
|
|
4
4
|
/** URL of an image to display in the avatar. */
|
|
5
5
|
image?: string;
|
|
6
|
+
/** Accessible alt text for the avatar image. Defaults to "" (decorative) when initials or other context provides the name. */
|
|
7
|
+
alt?: string;
|
|
6
8
|
/**
|
|
7
9
|
* Reserved for future use.
|
|
8
10
|
* A default placeholder avatar is currently rendered whenever neither `initials`
|
|
@@ -23,6 +23,8 @@ export interface PvButtonProps {
|
|
|
23
23
|
leftCounterBadge?: number;
|
|
24
24
|
/** Optional counter on the right side of the button */
|
|
25
25
|
rightCounterBadge?: number;
|
|
26
|
+
/** Accessible name for icon-only buttons (no label). Required when label is omitted. */
|
|
27
|
+
ariaLabel?: string;
|
|
26
28
|
}
|
|
27
29
|
export interface PvButtonWithTooltipProps extends PvButtonProps {
|
|
28
30
|
/** Text to show within the tooltip */
|
package/pv-components/dist/vue/visualizations/components/base/PvCheckbox/PvCheckbox.vue.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ interface PvCheckboxProps {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
/** When true, displays the checkbox in an indeterminate (mixed) state. */
|
|
6
6
|
indeterminate?: boolean;
|
|
7
|
+
/** Accessible name when no wrapping <label> is present. */
|
|
8
|
+
ariaLabel?: string;
|
|
7
9
|
}
|
|
8
10
|
type __VLS_Props = PvCheckboxProps;
|
|
9
11
|
type __VLS_PublicProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuOption } from '../../../types';
|
|
1
|
+
import { MenuOption, MultiSelectState } from '../../../types';
|
|
2
2
|
/** Recursively collect all leaf (childless) options from a tree. */
|
|
3
3
|
export declare function collectLeafOptions<T>(options: MenuOption<T>[]): MenuOption<T>[];
|
|
4
4
|
/**
|
|
@@ -21,6 +21,7 @@ export declare function mergeLeafOptions<T>(base: MenuOption<T>[], overlay: Menu
|
|
|
21
21
|
* not depend on Map iteration order.
|
|
22
22
|
*/
|
|
23
23
|
export declare function countWithCollapsedParents<T>(options: MenuOption<T>[], selectedIds: Set<string>): number;
|
|
24
|
+
export declare function countFromSelectionState(state: MultiSelectState): number;
|
|
24
25
|
/**
|
|
25
26
|
* Recursively filter a tree for a search value.
|
|
26
27
|
*
|
|
@@ -19,7 +19,7 @@ export interface PvPopoverV2Props {
|
|
|
19
19
|
useTeleport?: boolean;
|
|
20
20
|
/** When true, clicking outside the popover will not close it. */
|
|
21
21
|
disableClickOutsideToClose?: boolean;
|
|
22
|
-
/** Delay in milliseconds before opening
|
|
22
|
+
/** Delay in milliseconds before opening the popover. Closing is always immediate regardless of this value. */
|
|
23
23
|
delay?: number;
|
|
24
24
|
/** z-index applied to the floating popover element. */
|
|
25
25
|
zIndex?: number;
|
|
@@ -11,6 +11,8 @@ export interface PvSegmentedControlOption {
|
|
|
11
11
|
iconPosition?: "left" | "right";
|
|
12
12
|
/** Visible text for the option. Omit for icon-only segments. */
|
|
13
13
|
label?: string;
|
|
14
|
+
/** Accessible name for icon-only segments (no label). Required when label is omitted. */
|
|
15
|
+
ariaLabel?: string;
|
|
14
16
|
/** Unique identifier emitted as the model value when this option is selected. */
|
|
15
17
|
value: string;
|
|
16
18
|
}
|
|
@@ -7,6 +7,8 @@ interface PvSwitchProps {
|
|
|
7
7
|
size?: PvSwitchSize;
|
|
8
8
|
/** Optional text label displayed next to the switch. */
|
|
9
9
|
label?: string;
|
|
10
|
+
/** Accessible name for the switch when no visible label is provided. */
|
|
11
|
+
ariaLabel?: string;
|
|
10
12
|
/** When true, the switch is non-interactive and visually dimmed. */
|
|
11
13
|
disabled?: boolean;
|
|
12
14
|
/** HTML id for the underlying checkbox input. Auto-generated when omitted. */
|
|
@@ -26,7 +28,6 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
|
|
|
26
28
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
29
|
}>, {
|
|
28
30
|
size: PvSwitchSize;
|
|
29
|
-
id: string;
|
|
30
31
|
disabled: boolean;
|
|
31
32
|
hideCheckIcon: boolean;
|
|
32
33
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TableConfigOptions } from '../types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
groupedModeEnabled: boolean;
|
|
5
|
+
tableConfigOptions?: TableConfigOptions;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
+
"toggle-group": (enableGrouping: boolean) => any;
|
|
9
|
+
"overlay-change": (selectedIds: string[]) => any;
|
|
10
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onToggle-group"?: ((enableGrouping: boolean) => any) | undefined;
|
|
12
|
+
"onOverlay-change"?: ((selectedIds: string[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface TableOverlayContext {
|
|
3
|
+
rightIcon?: string;
|
|
4
|
+
}
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
text: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
context?: TableOverlayContext;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts
CHANGED
|
@@ -52,6 +52,15 @@ export interface CrosslineOverlayGroup {
|
|
|
52
52
|
disabled?: boolean;
|
|
53
53
|
disabledReason?: string;
|
|
54
54
|
}
|
|
55
|
+
export interface TableOverlayOption {
|
|
56
|
+
title: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
field: string;
|
|
59
|
+
}
|
|
60
|
+
export interface TableConfigOptions {
|
|
61
|
+
/** Overlay options that appear as expandable checkboxes under "Table Overlay". */
|
|
62
|
+
tableOverlayOptions?: TableOverlayOption[];
|
|
63
|
+
}
|
|
55
64
|
export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
56
65
|
/**
|
|
57
66
|
* Boolean flag denoting whether all fields are focusable, meaning their filter options can be selected as focus in
|
|
@@ -108,6 +117,11 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
|
108
117
|
* Enable toggle to group or ungroup
|
|
109
118
|
*/
|
|
110
119
|
enableGroupingToggle?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Configuration options for the Table Configuration dropdown panel.
|
|
122
|
+
* Includes table overlay options and can be extended with additional settings.
|
|
123
|
+
*/
|
|
124
|
+
tableConfigOptions?: TableConfigOptions;
|
|
111
125
|
/**
|
|
112
126
|
* Css Properties
|
|
113
127
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Column, ColumnVO, ICellRendererParams, ValueFormatterFunc } from 'ag-grid-enterprise';
|
|
2
2
|
import { ColDef } from 'ag-grid-community';
|
|
3
|
-
import { ColDefContextProps } from './types';
|
|
3
|
+
import { AggregateFieldHierarchy, ColDefContextProps } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Returns row data for a cell renderer. For leaf rows, returns `params.data` directly.
|
|
6
6
|
* For group rows (where `params.data` is null), falls back to the first child row's data.
|
|
@@ -13,6 +13,10 @@ export declare const colDefValueFormatter: <T>(colDef: ColDef<T>) => ValueFormat
|
|
|
13
13
|
export declare const colDefMaxSelectableValues: <T>(colDef: ColDef<T>) => number | null;
|
|
14
14
|
export declare const isColDefSingleSelect: <T>(colDef: ColDef<T>) => boolean;
|
|
15
15
|
export declare const isColDefNumericDataType: <T>(colDef: ColDef<T>) => boolean;
|
|
16
|
+
export declare const flattenAggregateFieldHierarchy: (hierarchy: AggregateFieldHierarchy | undefined) => string[];
|
|
17
|
+
export declare const getAggregateFields: <T>(colDef: ColDef<T>) => string[];
|
|
18
|
+
export declare const getAggregateLeafFields: (hierarchy: AggregateFieldHierarchy | undefined) => string[];
|
|
19
|
+
export declare const getAggregateRootField: <T>(colDef: ColDef<T>) => string | undefined;
|
|
16
20
|
export declare const isAggregateColDef: <T>(colDef: ColDef<T>) => boolean;
|
|
17
21
|
export declare const processRowGroupCols: (rowGroupCols: ColumnVO[], colDefs: (ColDef | null | undefined)[] | undefined) => ColumnVO[];
|
|
18
22
|
export declare const mapColsToColumnV0: (columns: Column[]) => ColumnVO[];
|
|
@@ -44,6 +44,12 @@ export interface TooltipDatum {
|
|
|
44
44
|
[key: string]: string | number | undefined;
|
|
45
45
|
}
|
|
46
46
|
export type ChartTooltipRenderer = (params: AgCartesianSeriesTooltipRendererParams<TooltipDatum>) => string;
|
|
47
|
+
export interface AggregateFieldHierarchy {
|
|
48
|
+
/** Field represented by this hierarchy node. Parent/child relationships are determined by nesting. */
|
|
49
|
+
field: string;
|
|
50
|
+
/** Child fields nested under this field. */
|
|
51
|
+
children?: AggregateFieldHierarchy[];
|
|
52
|
+
}
|
|
47
53
|
export interface ColDefContextProps<T> {
|
|
48
54
|
/**
|
|
49
55
|
* Display name for the aggregation function (e.g. "Sum", "Average", etc.) to show in the UI, if different from the aggFunc name
|
|
@@ -139,27 +145,22 @@ export interface ColDefContextProps<T> {
|
|
|
139
145
|
customTooltipRenderer?: ChartTooltipRenderer;
|
|
140
146
|
/**
|
|
141
147
|
* For server-side filtering, list of associated column IDs to query against when searching for filter values.
|
|
142
|
-
*
|
|
143
|
-
* Interaction with `aggregateFields`:
|
|
144
|
-
* - `queryColIds` only, with query: rows matching the query in any `queryColIds` field are found,
|
|
145
|
-
* then the base column's `field` values are collected from those rows.
|
|
146
|
-
* - `queryColIds` + `aggregateFields`, with query: rows matching the query via `queryColIds` are found,
|
|
147
|
-
* then values are collected from each `aggregateFields` field (not the base `field`).
|
|
148
|
-
* - `queryColIds` only, no query: ignored — all values from the base `field` are returned.
|
|
149
|
-
* - `aggregateFields` only, no query: values are collected from each `aggregateFields` field across all rows.
|
|
150
148
|
*/
|
|
151
149
|
queryColIds?: string[];
|
|
152
150
|
/**
|
|
153
|
-
*
|
|
154
|
-
* Fields must be present as their own columns in the table.
|
|
155
|
-
* The filter types must match between the aggregated column AND the fields used for aggregation.
|
|
156
|
-
* Filters for the aggregated fields will be hidden from the UI.
|
|
151
|
+
* Hierarchy of fields represented by this aggregate filter column.
|
|
157
152
|
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
153
|
+
* Example: `{ field: "health_system", children: [{ field: "provider_id" }] }`
|
|
154
|
+
* renders health systems as parent options and providers as nested child options.
|
|
155
|
+
* Fields must be present as their own columns in the table. Filters for the
|
|
156
|
+
* hierarchy fields are hidden from the filter panel in favor of this aggregate filter.
|
|
160
157
|
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
158
|
+
* Requires `enableAdvancedFilter: true` on the table — columns with an aggregate hierarchy
|
|
159
|
+
* are excluded (and may log a console warning) when advanced filtering is disabled.
|
|
160
|
+
*/
|
|
161
|
+
aggregateFieldHierarchy?: AggregateFieldHierarchy;
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated Use `aggregateFieldHierarchy` so parent/child relationships are explicit.
|
|
163
164
|
*/
|
|
164
165
|
aggregateFields?: string[];
|
|
165
166
|
/**
|
|
@@ -170,7 +171,7 @@ export interface ColDefContextProps<T> {
|
|
|
170
171
|
export interface FilterValuesSetHandlerParams<T> {
|
|
171
172
|
api?: GridApi<T>;
|
|
172
173
|
colDef: ColDef<T>;
|
|
173
|
-
filterModel?: FilterModel | null;
|
|
174
|
+
filterModel?: FilterModel | AdvancedFilterModel | null;
|
|
174
175
|
query?: string;
|
|
175
176
|
selectedValues?: (string | null)[];
|
|
176
177
|
/** Pagination offset for "see more" requests */
|
|
@@ -217,6 +218,8 @@ export interface FilterValueResponseOption {
|
|
|
217
218
|
matchedValue?: string;
|
|
218
219
|
/** The field used to match the value (for search scenarios) */
|
|
219
220
|
matchedField?: string;
|
|
221
|
+
/** Optional PvMenu option props to apply when rendering this value in custom/nested filters. */
|
|
222
|
+
menuOption?: Partial<Omit<MenuOption<FilterValueResponseOption>, "id" | "text" | "children" | "context">>;
|
|
220
223
|
/** Nested child options for hierarchical/cascade filtering */
|
|
221
224
|
children?: FilterValueResponseOption[];
|
|
222
225
|
/** Total number of children available (may exceed children.length when paginating) */
|
package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const createFilterStore: () => {
|
|
|
21
21
|
filterModel?: FilterModel | AdvancedFilterModel;
|
|
22
22
|
offset?: number;
|
|
23
23
|
parentId?: string;
|
|
24
|
+
useStaged?: boolean;
|
|
24
25
|
}) => Promise<(string | null)[]>;
|
|
25
26
|
filterValueContext: (colField: string, value: string | null) => FilterValueResponseOption | null | undefined;
|
|
26
27
|
filterModelEmpty: ComputedRef<boolean>;
|
|
@@ -67,6 +68,7 @@ export declare const useFilterStore: () => {
|
|
|
67
68
|
filterModel?: FilterModel | AdvancedFilterModel;
|
|
68
69
|
offset?: number;
|
|
69
70
|
parentId?: string;
|
|
71
|
+
useStaged?: boolean;
|
|
70
72
|
}) => Promise<(string | null)[]>;
|
|
71
73
|
filterValueContext: (colField: string, value: string | null) => FilterValueResponseOption | null | undefined;
|
|
72
74
|
filterModelEmpty: ComputedRef<boolean>;
|
package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts
CHANGED
|
@@ -34,16 +34,17 @@ export declare const useSetFilter: <T>(options: UseSetFilterOptions<T>) => {
|
|
|
34
34
|
totalOptionCount: ComputedRef<number | undefined>;
|
|
35
35
|
isAggregate: ComputedRef<boolean>;
|
|
36
36
|
cascadeSelectionState: Ref<{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, MultiSelectState | {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}>;
|
|
37
|
+
id: string;
|
|
38
|
+
state: "selected" | "deselected";
|
|
39
|
+
children?: /*elided*/ any[] | undefined;
|
|
40
|
+
}[], MultiSelectState | {
|
|
41
|
+
id: string;
|
|
42
|
+
state: "selected" | "deselected";
|
|
43
|
+
children?: /*elided*/ any[] | undefined;
|
|
44
|
+
}[]>;
|
|
45
45
|
filterValueContext: (colField: string, value: string | null) => FilterValueResponseOption | null | undefined;
|
|
46
46
|
formatDisplayValue: (input: string | null) => string | null;
|
|
47
|
+
resolvedFilterValueContext: (input: string | null) => FilterValueResponseOption | null | undefined;
|
|
47
48
|
isUnresolvedMetadataValue: (value: string | null) => boolean;
|
|
48
49
|
getLatestFilterValues: (fetchNewValues?: boolean, forceFetchValues?: boolean) => Promise<void>;
|
|
49
50
|
addSelectedValue: (value: string | null, field?: string) => void;
|