@turquoisehealth/pit-viper 2.207.0 → 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.
Files changed (32) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +5 -0
  2. package/_site/assets/css/pit-viper-v2.css +5 -0
  3. package/package.json +1 -1
  4. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  5. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
  13. package/pv-components/dist/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +11 -5
  14. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +1 -1
  15. package/pv-components/dist/vue/base/pv-components-base.mjs +702 -686
  16. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  17. package/pv-components/dist/vue/base/types.d.ts +11 -5
  18. package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +11 -5
  19. package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +1 -1
  20. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +792 -773
  21. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  22. package/pv-components/dist/vue/visualizations/types.d.ts +11 -5
  23. package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +177 -177
  24. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +13 -15
  25. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1141 -1144
  26. package/pv-components/dist/web/components/pv-menu/pv-menu.js +885 -866
  27. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +911 -892
  28. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +506 -486
  29. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +861 -842
  30. package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +359 -359
  31. package/pv-components/dist/web/pv-components.iife.js +13 -13
  32. 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 | ((option: MenuOption<T>) => string);
17
- isDisabled: boolean | ((option: MenuOption<T>) => boolean);
18
- tooltipText: string | ((option: MenuOption<T>) => string);
19
- action: (option: MenuOption<T>) => void;
20
- alwaysShow?: boolean | ((option: MenuOption<T>) => 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 PvDrawer {
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 = PvDrawer;
16
+ type __VLS_Props = PvDrawerProps;
11
17
  type __VLS_PublicProps = {
12
18
  "searchInput"?: string;
13
19
  modelValue: boolean;
@@ -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, {}, HTMLDivElement>;
7
+ declare const _default: DefineComponent<PvMenuItemActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuItemActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;