@turquoisehealth/pit-viper 2.207.0 → 2.209.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 +5 -0
- package/_site/assets/css/pit-viper-v2.css +5 -0
- package/_src/assets/sprite-v2.svg +1 -1
- package/_src/assets/sprite.svg +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-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-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-popover-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-progress-bar-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-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-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-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/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +11 -5
- package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +10 -2
- package/pv-components/dist/vue/base/components/base/PvFilterModal/PvFilterModal.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +22 -1
- package/pv-components/dist/vue/base/components/base/PvHoverActionMenu/PvHoverActionMenu.vue.d.ts +1 -1
- 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 +4 -4
- package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +3 -2
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +11 -20
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +9 -16
- package/pv-components/dist/vue/base/components/base/PvProgressBar/PvProgressBar.vue.d.ts +7 -3
- package/pv-components/dist/vue/base/components/base/PvRadioGroup/PvRadioGroup.vue.d.ts +8 -8
- package/pv-components/dist/vue/base/components/base/PvRange/PvRange.vue.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +2163 -2001
- 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/PvDropdown/PvDropdown.vue.d.ts +10 -2
- package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +22 -1
- 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 +5 -5
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +3 -2
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +11 -20
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +9 -16
- package/pv-components/dist/vue/visualizations/components/base/PvProgressBar/PvProgressBar.vue.d.ts +7 -3
- package/pv-components/dist/vue/visualizations/components/base/PvRadioGroup/PvRadioGroup.vue.d.ts +8 -8
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +4 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +4 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2700 -2586
- 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-action-button/pv-action-button.js +1062 -1026
- 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-dropdown/pv-dropdown.js +953 -934
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1631 -1556
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1866 -1794
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +939 -907
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1169 -1118
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1039 -1047
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +6 -3
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +6 -3
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +1054 -1013
- package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +485 -476
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1744 -1519
- package/pv-components/dist/web/components/pv-radio-group/pv-radio-group.js +8 -8
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +986 -954
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1298 -1306
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +359 -359
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +942 -911
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +892 -856
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +414 -410
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +903 -861
- package/pv-components/dist/web/pv-components.iife.js +19 -19
- 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 {};
|