@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 {};
|