@turquoisehealth/pit-viper 2.128.0 → 2.129.1-dev.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/package.json +1 -1
  2. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  4. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  8. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuBaseItem.vue.d.ts +7 -0
  9. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItem.vue.d.ts +10 -26
  10. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +8 -0
  11. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +12 -0
  12. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +39 -155
  13. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +9 -4
  14. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +29 -54
  15. package/pv-components/dist/vue/base/pv-components-base.mjs +2716 -2750
  16. package/pv-components/dist/vue/base/types.d.ts +22 -4
  17. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3067 -3113
  18. package/pv-components/dist/vue/visualizations/types.d.ts +22 -4
  19. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2292 -2220
  20. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2574 -2434
  21. package/pv-components/dist/web/pv-components.iife.js +49 -49
  22. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuCheckboxItem.vue.d.ts +0 -23
  23. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuRadioItem.spec.d.ts +0 -1
  24. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuRadioItem.vue.d.ts +0 -18
  25. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectMenuItem.vue.d.ts +0 -15
  26. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectMenuItem.vue.d.ts +0 -19
  27. /package/pv-components/dist/vue/base/components/base/PvMenu/items/{PvMenuCheckboxItem.spec.d.ts → PvMenuItemAction.spec.d.ts} +0 -0
@@ -1,4 +1,5 @@
1
1
  import { Component } from 'vue';
2
+ import { PvCounterBadgeVariant } from './components/base/PvCounterBadge/types.ts';
2
3
  /**
3
4
  * For interfaces and type aliases shared across multiple components.
4
5
  */
@@ -10,12 +11,20 @@ export interface OptionWithIcon extends Option {
10
11
  iconName: string;
11
12
  iconPosition: "left" | "right";
12
13
  }
13
- export interface MenuOption {
14
+ export interface MenuAction<T> {
15
+ icon: string | ((option: MenuOption<T>) => string);
16
+ isDisabled: boolean | ((option: MenuOption<T>) => boolean);
17
+ tooltipText: string | ((option: MenuOption<T>) => string);
18
+ action: (option: MenuOption<T>) => void;
19
+ alwaysShow?: boolean | ((option: MenuOption<T>) => boolean);
20
+ }
21
+ export interface MenuOption<T = unknown> {
14
22
  id: string;
15
23
  text: string;
16
24
  subText?: string;
17
25
  /** Value of the secondary text which appears on the menu item. Number shows up as a counter badge, string shows up as plain text */
18
26
  secondaryText?: number | string;
27
+ subduedText?: string;
19
28
  icon?: string;
20
29
  companyName?: string;
21
30
  avatar?: {
@@ -25,11 +34,20 @@ export interface MenuOption {
25
34
  };
26
35
  groupingLabel?: string;
27
36
  disabled?: boolean;
28
- renderer?: Component;
29
- rendererProps?: any;
37
+ context?: T;
30
38
  classList?: string[];
31
39
  searchText?: string;
32
- children?: MenuOption[];
40
+ children?: MenuOption<T>[];
41
+ }
42
+ export interface MenuOptionConfig {
43
+ renderer?: Component;
44
+ action?: MenuAction<any>;
45
+ variant?: MenuOptionsVariant;
46
+ counterBadgeVariant?: PvCounterBadgeVariant;
47
+ }
48
+ export interface MenuOptionSelectedEvent {
49
+ option: MenuOption;
50
+ event: Event;
33
51
  }
34
52
  export declare enum MenuItemType {
35
53
  simple = "simple",