@turquoisehealth/pit-viper 2.129.1-dev.1 → 2.130.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 (22) hide show
  1. package/_site/assets/css/pit-viper-v2.css +11 -11
  2. package/_src/assets/sprite-v2.svg +1 -1
  3. package/_src/assets/sprite.svg +1 -1
  4. package/package.json +2 -1
  5. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  6. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  11. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuBaseItem.spec.d.ts +1 -0
  12. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuBaseItem.vue.d.ts +5 -1
  13. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItem.vue.d.ts +2 -0
  14. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +2 -0
  15. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +19 -10
  16. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +11 -3
  17. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +2 -0
  18. package/pv-components/dist/vue/base/pv-components-base.mjs +994 -956
  19. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2618 -2575
  20. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +945 -909
  21. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +657 -622
  22. package/pv-components/dist/web/pv-components.iife.js +21 -21
@@ -2,6 +2,10 @@ import { MenuOption, MenuOptionConfig } from '../../../../types.ts';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface PvMenuBaseItemProps extends MenuOption {
4
4
  menuOptionConfig?: MenuOptionConfig;
5
+ queryText?: string | null;
5
6
  }
6
- declare const _default: DefineComponent<PvMenuBaseItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuBaseItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: DefineComponent<PvMenuBaseItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuBaseItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
8
+ mainText: HTMLSpanElement;
9
+ subText: HTMLSpanElement;
10
+ }, any>;
7
11
  export default _default;
@@ -3,6 +3,8 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  interface PvMenuItemProps extends MenuOption {
4
4
  level?: number;
5
5
  config?: MenuOptionConfig;
6
+ queryText?: string | null;
7
+ highlightSearchText?: boolean;
6
8
  }
7
9
  declare const _default: DefineComponent<PvMenuItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
8
10
  "handle-selected": (payload: MenuOptionSelectedEvent) => any;
@@ -2,6 +2,8 @@ import { MenuOption, MenuOptionConfig, MenuOptionSelectedEvent } from '../../../
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  export interface PvMenuItemVariantProps extends MenuOption {
4
4
  selected?: boolean;
5
+ queryText?: string | null;
6
+ highlightSearchText?: boolean;
5
7
  menuOptionConfig?: MenuOptionConfig;
6
8
  }
7
9
  declare const _default: DefineComponent<PvMenuItemVariantProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -7,23 +7,25 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
7
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
8
  readonly "onDropdown-open"?: (() => any) | undefined;
9
9
  readonly "onDropdown-closed"?: (() => any) | undefined;
10
- readonly "onUpdate:modelValue"?: ((value: MenuOption<unknown>[]) => any) | undefined;
10
+ readonly "onUpdate:modelValue"?: ((value: MenuOption<T>[]) => any) | undefined;
11
11
  readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
12
12
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDropdown-open" | "onDropdown-closed" | "onUpdate:modelValue" | "onUpdate:searchInput"> & ({
13
- modelValue?: MenuOption[];
13
+ modelValue?: MenuOption<T>[];
14
14
  searchInput?: string;
15
- } & PvMultiSelectButtonProps<T>) & Partial<{}>> & PublicProps;
15
+ } & PvMultiSelectButtonProps<T, Record<string, unknown>>) & Partial<{}>> & PublicProps;
16
16
  expose(exposed: ShallowUnwrapRef<{}>): void;
17
17
  attrs: any;
18
18
  slots: Partial<Record<string, (_: {}) => any>> & {
19
19
  header?(_: {
20
- selectedItems: MenuOption<unknown>[];
20
+ selectedItems: MenuOption<T>[];
21
21
  searchInput: string;
22
+ slotContext: Record<string, unknown> | undefined;
23
+ isOpen: boolean;
24
+ isLoading: boolean;
22
25
  groupings: string[];
23
26
  defaultOpen: boolean;
24
27
  disabled: boolean;
25
28
  teleportLocation: string;
26
- isLoading: boolean;
27
29
  popoverProperties: PvPopoverV2Props;
28
30
  popoverCssProperties: CSSProperties;
29
31
  prefixLabel: string;
@@ -44,15 +46,18 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
44
46
  optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
45
47
  options: MenuOption<T>[];
46
48
  menuActionsVariant: MenuActionsVariant | null;
49
+ highlightSearchText: boolean;
47
50
  }): any;
48
51
  'no-results'?(_: {
49
- selectedItems: MenuOption<unknown>[];
52
+ selectedItems: MenuOption<T>[];
50
53
  searchInput: string;
54
+ slotContext: Record<string, unknown> | undefined;
55
+ isOpen: boolean;
56
+ isLoading: boolean;
51
57
  groupings: string[];
52
58
  defaultOpen: boolean;
53
59
  disabled: boolean;
54
60
  teleportLocation: string;
55
- isLoading: boolean;
56
61
  popoverProperties: PvPopoverV2Props;
57
62
  popoverCssProperties: CSSProperties;
58
63
  prefixLabel: string;
@@ -73,15 +78,18 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
73
78
  optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
74
79
  options: MenuOption<T>[];
75
80
  menuActionsVariant: MenuActionsVariant | null;
81
+ highlightSearchText: boolean;
76
82
  }): any;
77
83
  footer?(_: {
78
- selectedItems: MenuOption<unknown>[];
84
+ selectedItems: MenuOption<T>[];
79
85
  searchInput: string;
86
+ slotContext: Record<string, unknown> | undefined;
87
+ isOpen: boolean;
88
+ isLoading: boolean;
80
89
  groupings: string[];
81
90
  defaultOpen: boolean;
82
91
  disabled: boolean;
83
92
  teleportLocation: string;
84
- isLoading: boolean;
85
93
  popoverProperties: PvPopoverV2Props;
86
94
  popoverCssProperties: CSSProperties;
87
95
  prefixLabel: string;
@@ -102,12 +110,13 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
102
110
  optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
103
111
  options: MenuOption<T>[];
104
112
  menuActionsVariant: MenuActionsVariant | null;
113
+ highlightSearchText: boolean;
105
114
  }): any;
106
115
  };
107
116
  emit: {
108
117
  (e: "dropdown-open"): void;
109
118
  (e: "dropdown-closed"): void;
110
- } & (((evt: "update:modelValue", value: MenuOption<unknown>[]) => void) & ((evt: "update:searchInput", value: string) => void));
119
+ } & (((evt: "update:modelValue", value: MenuOption<T>[]) => void) & ((evt: "update:searchInput", value: string) => void));
111
120
  }>) => VNode & {
112
121
  __ctx?: Awaited<typeof __VLS_setup>;
113
122
  };
@@ -6,7 +6,7 @@ import { PvCounterBadgeVariant } from '../PvCounterBadge/types.ts';
6
6
  export type PvSelectButtonVariant = Extract<PvVariants, "secondary" | "ghost">;
7
7
  export type PvSelectButtonSize = Extract<PvSize, "lg" | "xl">;
8
8
  export type MenuActionsVariant = "select-clear" | "cancel-confirm";
9
- export interface PvMultiSelectButtonProps<T = unknown> {
9
+ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Record<string, unknown> = Record<string, unknown>> {
10
10
  groupings?: string[];
11
11
  defaultOpen?: boolean;
12
12
  disabled?: boolean;
@@ -33,8 +33,16 @@ export interface PvMultiSelectButtonProps<T = unknown> {
33
33
  menuActionsVariant?: MenuActionsVariant | null;
34
34
  /** Variant of the counter badge which appears on the button and menu items */
35
35
  counterBadgeVariant?: PvCounterBadgeVariant;
36
+ /** Additional context to pass to slot components */
37
+ slotContext?: SlotContext;
38
+ /** Whether to highlight the search text in the options list */
39
+ highlightSearchText?: boolean;
36
40
  }
37
- export interface PvMultiSelectButtonSlotProps extends PvMultiSelectButtonProps {
41
+ export interface PvMultiSelectButtonSlotProps<T = unknown, SlotContext = Record<string, unknown>> extends Omit<PvMultiSelectButtonProps, "slotContext"> {
38
42
  searchInput?: string;
39
- selectedItems?: MenuOption[];
43
+ selectedItems?: MenuOption<T>[];
44
+ /** Additional context passed through from slotContext prop */
45
+ slotContext?: SlotContext;
46
+ /** Whether the dropdown is currently open */
47
+ isOpen?: boolean;
40
48
  }
@@ -24,6 +24,8 @@ export interface PvSelectButtonProps<T = unknown> {
24
24
  counterPosition?: "left" | "right";
25
25
  /** Variant of the counter badge which appears on the button and menu items */
26
26
  counterBadgeVariant?: PvCounterBadgeVariant;
27
+ /** Whether to highlight the search text in the options list */
28
+ highlightSearchText?: boolean;
27
29
  }
28
30
  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<{
29
31
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{