@turquoisehealth/pit-viper 2.206.2 → 2.208.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.
- package/_site/assets/css/pit-viper-a11y.css +0 -5
- package/_site/assets/css/pit-viper-v2.css +0 -5
- 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-distribution-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tag-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +11 -5
- package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +14 -7
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +20 -3
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvTag/PvTag.vue.d.ts +6 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1099 -1045
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +11 -5
- package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +11 -5
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +14 -7
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +20 -3
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTag/PvTag.vue.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/widgetOptions.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +26 -2
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1668 -1416
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +11 -5
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +177 -177
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +13 -15
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1145 -1146
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +885 -866
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +937 -906
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +511 -489
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +865 -843
- package/pv-components/dist/web/components/pv-tag/pv-tag.js +4 -2
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -12,12 +12,16 @@ export interface OptionWithIcon extends Option {
|
|
|
12
12
|
iconName: string;
|
|
13
13
|
iconPosition: "left" | "right";
|
|
14
14
|
}
|
|
15
|
+
type MenuActionResolver<T, R> = {
|
|
16
|
+
bivarianceHack(option: MenuOption<T>): R;
|
|
17
|
+
}["bivarianceHack"];
|
|
15
18
|
export interface MenuAction<T> {
|
|
16
|
-
icon: string |
|
|
17
|
-
isDisabled
|
|
18
|
-
tooltipText
|
|
19
|
-
action
|
|
20
|
-
alwaysShow?: boolean |
|
|
19
|
+
icon: string | MenuActionResolver<T, string>;
|
|
20
|
+
isDisabled?: boolean | MenuActionResolver<T, boolean>;
|
|
21
|
+
tooltipText?: string | MenuActionResolver<T, string>;
|
|
22
|
+
action?: MenuActionResolver<T, void>;
|
|
23
|
+
alwaysShow?: boolean | MenuActionResolver<T, boolean>;
|
|
24
|
+
interactive?: boolean | MenuActionResolver<T, boolean>;
|
|
21
25
|
}
|
|
22
26
|
export interface MenuOption<T = unknown> {
|
|
23
27
|
id: string;
|
|
@@ -40,6 +44,7 @@ export interface MenuOption<T = unknown> {
|
|
|
40
44
|
disabled?: boolean;
|
|
41
45
|
context?: T;
|
|
42
46
|
classList?: string[];
|
|
47
|
+
action?: MenuAction<T>;
|
|
43
48
|
searchText?: string;
|
|
44
49
|
children?: MenuOption<T>[];
|
|
45
50
|
handleSeeMore?: (payload: SeeMoreEvent) => Promise<MenuOption<T>[] | void> | MenuOption<T>[] | void;
|
|
@@ -80,3 +85,4 @@ export declare enum MenuItemType {
|
|
|
80
85
|
}
|
|
81
86
|
export type MenuOptionsVariant = `${MenuItemType}`;
|
|
82
87
|
export type MenuOptionsDisabledVariant = "default" | "ghost" | null;
|
|
88
|
+
export {};
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { PvSearchInputProps } from '../PvSearchInput/PvSearchInput.vue';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
export interface
|
|
4
|
-
header?: string;
|
|
5
|
-
subheader?: string;
|
|
6
|
-
showSearchbar?: boolean;
|
|
3
|
+
export interface PvDrawerProps {
|
|
7
4
|
closeOnClickOutside?: boolean;
|
|
5
|
+
header?: string;
|
|
8
6
|
searchInputProps?: PvSearchInputProps;
|
|
7
|
+
showSearchbar?: boolean;
|
|
8
|
+
subheader?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `PvDrawerProps` instead. Retained as an alias for backwards
|
|
12
|
+
* compatibility with any existing imports of the props interface.
|
|
13
|
+
*/
|
|
14
|
+
export interface PvDrawer extends PvDrawerProps {
|
|
9
15
|
}
|
|
10
|
-
type __VLS_Props =
|
|
16
|
+
type __VLS_Props = PvDrawerProps;
|
|
11
17
|
type __VLS_PublicProps = {
|
|
12
18
|
"searchInput"?: string;
|
|
13
19
|
modelValue: boolean;
|
package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenuControlPanel.vue.d.ts
CHANGED
|
@@ -3,6 +3,14 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
variant?: MenuActionsVariant;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Human-readable filter name used to derive `data-dd-action-name` on the
|
|
8
|
+
* Select All and Clear All buttons (e.g. "Select all Payer Network options",
|
|
9
|
+
* "Clear Payer Network selections"). Leave unset to skip the attributes.
|
|
10
|
+
* Cancel/Confirm intentionally don't get derived labels — the cancel-confirm
|
|
11
|
+
* variant has no production consumers today.
|
|
12
|
+
*/
|
|
13
|
+
rumFilterName?: string;
|
|
6
14
|
};
|
|
7
15
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
16
|
"handle-select-all": () => any;
|
package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ interface PvMenuItemActionProps {
|
|
|
4
4
|
action: MenuAction<any>;
|
|
5
5
|
option: MenuOption;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: DefineComponent<PvMenuItemActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuItemActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
7
|
+
declare const _default: DefineComponent<PvMenuItemActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuItemActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
export default _default;
|
|
@@ -10,8 +10,10 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
10
10
|
readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
|
|
11
11
|
readonly "onDropdown-open"?: (() => any) | undefined;
|
|
12
12
|
readonly "onDropdown-closed"?: (() => any) | undefined;
|
|
13
|
+
readonly "onClear-all"?: ((valueCount: number) => any) | undefined;
|
|
14
|
+
readonly "onSelect-all"?: ((valueCount: number) => any) | undefined;
|
|
13
15
|
readonly "onUpdate:selectionState"?: ((value: MultiSelectState) => any) | undefined;
|
|
14
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onSee-more" | "onUpdate:searchInput" | "onDropdown-open" | "onDropdown-closed" | "onUpdate:selectionState"> & ({
|
|
16
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onSee-more" | "onUpdate:searchInput" | "onDropdown-open" | "onDropdown-closed" | "onClear-all" | "onSelect-all" | "onUpdate:selectionState"> & ({
|
|
15
17
|
modelValue?: MenuOption<T>[];
|
|
16
18
|
selectionState?: MultiSelectState;
|
|
17
19
|
searchInput?: string;
|
|
@@ -29,7 +31,6 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
29
31
|
counterBadgeVariant: PvCounterBadgeVariant;
|
|
30
32
|
countSelectedParents: boolean;
|
|
31
33
|
defaultOpen: boolean;
|
|
32
|
-
disabled: boolean;
|
|
33
34
|
enableChildExpansion: boolean;
|
|
34
35
|
groupings: string[];
|
|
35
36
|
hideParentOnChildQueryMatch: boolean;
|
|
@@ -47,6 +48,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
47
48
|
teleportLocation: string;
|
|
48
49
|
totalOptionCount: number;
|
|
49
50
|
additionalCounter: number;
|
|
51
|
+
rumFilterName: string;
|
|
52
|
+
rumActionName: string;
|
|
50
53
|
counterPosition: "none" | "right" | "left";
|
|
51
54
|
variant: PvSelectButtonVariant;
|
|
52
55
|
size: PvSelectButtonSize;
|
|
@@ -54,7 +57,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
54
57
|
disableDropdownIcon: boolean;
|
|
55
58
|
disableClearIcon: boolean;
|
|
56
59
|
disableSearchInput: boolean;
|
|
57
|
-
|
|
60
|
+
disabled: boolean;
|
|
58
61
|
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
59
62
|
options: MenuOption<T>[];
|
|
60
63
|
menuActionsVariant: MenuActionsVariant | null;
|
|
@@ -72,7 +75,6 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
72
75
|
counterBadgeVariant: PvCounterBadgeVariant;
|
|
73
76
|
countSelectedParents: boolean;
|
|
74
77
|
defaultOpen: boolean;
|
|
75
|
-
disabled: boolean;
|
|
76
78
|
enableChildExpansion: boolean;
|
|
77
79
|
groupings: string[];
|
|
78
80
|
hideParentOnChildQueryMatch: boolean;
|
|
@@ -90,6 +92,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
90
92
|
teleportLocation: string;
|
|
91
93
|
totalOptionCount: number;
|
|
92
94
|
additionalCounter: number;
|
|
95
|
+
rumFilterName: string;
|
|
96
|
+
rumActionName: string;
|
|
93
97
|
counterPosition: "none" | "right" | "left";
|
|
94
98
|
variant: PvSelectButtonVariant;
|
|
95
99
|
size: PvSelectButtonSize;
|
|
@@ -97,7 +101,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
97
101
|
disableDropdownIcon: boolean;
|
|
98
102
|
disableClearIcon: boolean;
|
|
99
103
|
disableSearchInput: boolean;
|
|
100
|
-
|
|
104
|
+
disabled: boolean;
|
|
101
105
|
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
102
106
|
options: MenuOption<T>[];
|
|
103
107
|
menuActionsVariant: MenuActionsVariant | null;
|
|
@@ -115,7 +119,6 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
115
119
|
counterBadgeVariant: PvCounterBadgeVariant;
|
|
116
120
|
countSelectedParents: boolean;
|
|
117
121
|
defaultOpen: boolean;
|
|
118
|
-
disabled: boolean;
|
|
119
122
|
enableChildExpansion: boolean;
|
|
120
123
|
groupings: string[];
|
|
121
124
|
hideParentOnChildQueryMatch: boolean;
|
|
@@ -133,6 +136,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
133
136
|
teleportLocation: string;
|
|
134
137
|
totalOptionCount: number;
|
|
135
138
|
additionalCounter: number;
|
|
139
|
+
rumFilterName: string;
|
|
140
|
+
rumActionName: string;
|
|
136
141
|
counterPosition: "none" | "right" | "left";
|
|
137
142
|
variant: PvSelectButtonVariant;
|
|
138
143
|
size: PvSelectButtonSize;
|
|
@@ -140,7 +145,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
140
145
|
disableDropdownIcon: boolean;
|
|
141
146
|
disableClearIcon: boolean;
|
|
142
147
|
disableSearchInput: boolean;
|
|
143
|
-
|
|
148
|
+
disabled: boolean;
|
|
144
149
|
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
145
150
|
options: MenuOption<T>[];
|
|
146
151
|
menuActionsVariant: MenuActionsVariant | null;
|
|
@@ -153,6 +158,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
153
158
|
(e: "dropdown-open"): void;
|
|
154
159
|
(e: "dropdown-closed"): void;
|
|
155
160
|
(e: "see-more", payload: SeeMoreEvent): void;
|
|
161
|
+
(e: "select-all", valueCount: number): void;
|
|
162
|
+
(e: "clear-all", valueCount: number): void;
|
|
156
163
|
} & (((evt: "update:modelValue", value: MenuOption<T>[]) => void) & ((evt: "update:searchInput", value: string) => void) & ((evt: "update:selectionState", value: MultiSelectState) => void));
|
|
157
164
|
}>) => VNode & {
|
|
158
165
|
__ctx?: Awaited<typeof __VLS_setup>;
|
package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts
CHANGED
|
@@ -24,10 +24,12 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
|
|
|
24
24
|
disableDropdownIcon?: boolean;
|
|
25
25
|
/** Hide the search input inside the dropdown */
|
|
26
26
|
disableSearchInput?: boolean;
|
|
27
|
-
/**
|
|
27
|
+
/** Disable the button. The trigger is non-interactive (not clickable) and the clear
|
|
28
|
+
* icon is hidden. For a read-only / view-only presentation where the dropdown can
|
|
29
|
+
* still be opened to inspect selections, leave `disabled` off and instead compose
|
|
30
|
+
* `disableSearchInput`, `disableClearIcon`, a null `menuActionsVariant`, and disabled
|
|
31
|
+
* options (see SetFilter). */
|
|
28
32
|
disabled?: boolean;
|
|
29
|
-
/** Allow the dropdown to open for viewing but prevent adding or removing selections */
|
|
30
|
-
readOnly?: boolean;
|
|
31
33
|
/** Enable cascade (parent/child) selection. When true, clicking a parent option
|
|
32
34
|
* toggles all its leaf descendants, and parent checkboxes show indeterminate state
|
|
33
35
|
* when partially selected. All existing behavior is unchanged when false (default). */
|
|
@@ -101,6 +103,21 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
|
|
|
101
103
|
* selections from sub-filters (e.g. FilterGroupMenu) that are not part of the
|
|
102
104
|
* main options list. */
|
|
103
105
|
additionalCounter?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Human-readable filter name used to derive `data-dd-action-name` attributes
|
|
108
|
+
* on the trigger, search input, Select All, and Clear All buttons so Datadog
|
|
109
|
+
* RUM resolves clicks to named actions instead of concatenated DOM text.
|
|
110
|
+
* E.g. passing "Payer Network" yields "Open Payer Network filter",
|
|
111
|
+
* "Search Payer Network options", "Select all Payer Network options",
|
|
112
|
+
* "Clear Payer Network selections". Leave undefined to skip.
|
|
113
|
+
*/
|
|
114
|
+
rumFilterName?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Overrides the trigger's `data-dd-action-name`. Use this when the trigger
|
|
117
|
+
* label isn't filter-name shaped (e.g. "Select Y Axis metric" on a chart
|
|
118
|
+
* options selector). When unset, `rumFilterName` composes the default.
|
|
119
|
+
*/
|
|
120
|
+
rumActionName?: string;
|
|
104
121
|
}
|
|
105
122
|
export interface PvMultiSelectButtonSlotProps<T = unknown, SlotContext = Record<string, unknown>> extends Omit<PvMultiSelectButtonProps, "slotContext"> {
|
|
106
123
|
searchInput?: string;
|
package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts
CHANGED
|
@@ -44,6 +44,11 @@ export interface PvSelectButtonProps<T = unknown> {
|
|
|
44
44
|
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
45
45
|
/** Whether to highlight the search text in the options list */
|
|
46
46
|
highlightSearchText?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* `data-dd-action-name` attached to the trigger button so Datadog RUM
|
|
49
|
+
* resolves the click to a named action. Leave unset to skip.
|
|
50
|
+
*/
|
|
51
|
+
rumActionName?: string;
|
|
47
52
|
}
|
|
48
53
|
declare const _default: <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
54
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -33,6 +33,12 @@ export interface PvTagProps {
|
|
|
33
33
|
* Spine - dotted state
|
|
34
34
|
*/
|
|
35
35
|
spine?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Optional `data-dd-action-name` attached to the close (×) icon so Datadog
|
|
38
|
+
* RUM resolves the click to a named action instead of the tag label.
|
|
39
|
+
* Leave unset to fall back to Datadog's default text resolution.
|
|
40
|
+
*/
|
|
41
|
+
rumRemoveActionName?: string;
|
|
36
42
|
}
|
|
37
43
|
declare const _default: DefineComponent<PvTagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
38
44
|
"handle-close": (payload: string) => any;
|
|
@@ -87,3 +87,5 @@ export type { PvHoverActionMenuPosition } from './PvHoverActionMenu/types';
|
|
|
87
87
|
export type { PvFilterPanelAggregateFieldHierarchy, PvFilterPanelColDef, PvFilterPanelColDefContext, PvFilterPanelControlChange, PvFilterPanelFilterChangeEvent, PvFilterPanelFilterChangeReason, PvFilterPanelFilterGroup, PvFilterPanelFilterModel, PvFilterPanelFilterModelType, PvFilterPanelFilterType, PvFilterPanelOption, PvFilterPanelOptionsHandler, PvFilterPanelOptionsHandlerParams, PvFilterPanelOptionsHandlerReason, PvFilterPanelOptionsResponse, PvFilterPanelOptionRawValue, PvFilterPanelProps, PvFilterPanelRangeConfig, PvFilterPanelResultCount, PvFilterPanelSuggestion, PvFilterStore, PvFilterStoreFetchOptionsParams, } from './PvFilterPanel/types';
|
|
88
88
|
export { createPvFilterStore, providePvFilterStore, useOptionalPvFilterStore, usePvFilterStore, } from './PvFilterPanel/usePvFilterStore';
|
|
89
89
|
export type { PvRangeColor, PvRangeMode, PvRangeProps, PvRangeSize, PvRangeValue, } from './PvRange/types';
|
|
90
|
+
export { RumContextKey, useRumContext, addRumAction, deferRumTask } from '../../functions/rum';
|
|
91
|
+
export type { PvRumContext } from '../../functions/rum';
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
|
|
|
79
79
|
truncateLabelValues?: boolean;
|
|
80
80
|
/** Pre-populated chart data to render before any server-side fetch completes. */
|
|
81
81
|
initialChartData?: AgChartOptions["data"];
|
|
82
|
+
/** When true, wraps large charts in a native Pit Viper-styled scroll container. */
|
|
83
|
+
enableChartScrolling?: boolean;
|
|
82
84
|
/** When true, shows a combined configuration panel for chart settings (axes, sort, chart type). */
|
|
83
85
|
enableCombinedChartConfigPanel?: boolean;
|
|
84
86
|
/** Which config panel sections to display (e.g., x-axis, y-axis, sort, chart-type). */
|
|
@@ -32,6 +32,7 @@ export declare const getScrollableChartMinHeight: (params: {
|
|
|
32
32
|
dataCount: number;
|
|
33
33
|
enableChartScrolling: boolean;
|
|
34
34
|
isHorizontalScrollingChart: boolean;
|
|
35
|
+
itemHeight?: number;
|
|
35
36
|
}) => number;
|
|
36
37
|
/**
|
|
37
38
|
* Inline style for the scrollable chart content: horizontal-bar charts grow vertically
|
package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts
CHANGED
|
@@ -2,6 +2,27 @@ import { ColDef, GridApi, ColDefField } from 'ag-grid-community';
|
|
|
2
2
|
import { Ref, WritableComputedRef, ComputedRef, Component } from 'vue';
|
|
3
3
|
import { MenuOption, MultiSelectState, SeeMoreEvent } from '../../../types';
|
|
4
4
|
import { FilterValueResponseOption } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Source qualifier on the `filter_option_selected` RUM action.
|
|
7
|
+
*
|
|
8
|
+
* - `click` — option row click in the dropdown, suggested-tag click, focus
|
|
9
|
+
* button, or any other per-value click affordance.
|
|
10
|
+
* - `remove_chip` — the per-value `×` in the vertical filter drawer.
|
|
11
|
+
*
|
|
12
|
+
* Bulk operations (Select All / Clear All) intentionally do NOT emit
|
|
13
|
+
* per-value events — they'd poison "most desired value" aggregations and
|
|
14
|
+
* flood RUM. They emit a single `filter_bulk_action` instead (see
|
|
15
|
+
* `recordBulkAction`).
|
|
16
|
+
*/
|
|
17
|
+
export type FilterOptionSelectionSource = "click" | "remove_chip";
|
|
18
|
+
/** Action qualifier on the `filter_bulk_action` RUM action. */
|
|
19
|
+
export type FilterBulkActionType = "select_all" | "clear_all";
|
|
20
|
+
/**
|
|
21
|
+
* Where the interaction happened: the horizontal filter bar above the table,
|
|
22
|
+
* or the vertical "All Filters" drawer. Lets analysts measure per-filter
|
|
23
|
+
* drawer traffic (candidates for promotion out of the drawer).
|
|
24
|
+
*/
|
|
25
|
+
export type FilterRumLocation = "horizontal" | "all_filters_drawer";
|
|
5
26
|
export interface UseSetFilterOptions<T> {
|
|
6
27
|
filterColDef: Ref<ColDef<T>>;
|
|
7
28
|
filterStyle?: Ref<"horizontal" | "vertical">;
|
|
@@ -53,13 +74,16 @@ export declare const useSetFilter: <T>(options: UseSetFilterOptions<T>) => {
|
|
|
53
74
|
state: "selected" | "deselected";
|
|
54
75
|
children?: /*elided*/ any[] | undefined;
|
|
55
76
|
}[]>;
|
|
77
|
+
cascadeSelectionStateModel: WritableComputedRef<MultiSelectState, MultiSelectState>;
|
|
56
78
|
filterValueContext: (colField: string, value: string | null) => FilterValueResponseOption | null | undefined;
|
|
57
79
|
formatDisplayValue: (input: string | null) => string | null;
|
|
58
80
|
resolvedFilterValueContext: (input: string | null) => FilterValueResponseOption | null | undefined;
|
|
59
81
|
isUnresolvedMetadataValue: (value: string | null, context?: FilterValueResponseOption | null) => boolean;
|
|
60
82
|
getLatestFilterValues: (fetchNewValues?: boolean, forceFetchValues?: boolean) => Promise<void>;
|
|
61
|
-
addSelectedValue: (value: string | null, field?: string) => void;
|
|
62
|
-
removeSelectedValue: (value: string | null, field?: string) => void;
|
|
83
|
+
addSelectedValue: (value: string | null, field?: string, source?: FilterOptionSelectionSource) => void;
|
|
84
|
+
removeSelectedValue: (value: string | null, field?: string, source?: FilterOptionSelectionSource) => void;
|
|
85
|
+
recordBulkAction: (action: FilterBulkActionType, valueCount: number) => void;
|
|
86
|
+
rumLocation: ComputedRef<FilterRumLocation>;
|
|
63
87
|
handleDropdownOpen: () => void;
|
|
64
88
|
handleDropdownClosed: () => void;
|
|
65
89
|
handleSeeMore: (event: SeeMoreEvent) => Promise<void>;
|
|
@@ -15,3 +15,5 @@ export type { PvDataWidgetDataHandler, UsePvDataWidgetDataOptions, UsePvDataWidg
|
|
|
15
15
|
export type { CrosslineOverlayGroup, VerticalLineOverlay } from '../charts/PvDataTableWithChart/types';
|
|
16
16
|
export { constructAdvancedFilterCondition, convertFilterModelToAdvanced, filterModelContainsColId, mergeFilterModels, getSelectedValuesFromFilterModel, filterModelsEqual, mergeAdvancedFilterCondition, removeColumnFromAdvancedFilter, getSelectedValuesFromAdvancedFilterModel, isAdvancedFilterModel, isFilterModelEmpty, getSelectedValues, getSelectedValuesFromFilterModelByColId, updateSetFilter, updateMultiOrSetFilter, removeColumnFilter, excludeValueFromSetFilter, } from '../tables/PvDataTable/filters/filterHelpers';
|
|
17
17
|
export type { AnyFilterModel } from '../tables/PvDataTable/filters/filterHelpers';
|
|
18
|
+
export { RumContextKey, useRumContext, addRumAction, deferRumTask } from '../../functions/rum';
|
|
19
|
+
export type { PvRumContext } from '../../functions/rum';
|