@turquoisehealth/pit-viper 2.189.2-dev.0 → 2.191.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 (45) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +14 -0
  2. package/_site/assets/css/pit-viper-consumer.css +14 -0
  3. package/_site/assets/css/pit-viper-v2-scoped.css +11 -0
  4. package/_site/assets/css/pit-viper-v2.css +14 -0
  5. package/_site/assets/css/pit-viper.css +14 -0
  6. package/package.json +1 -1
  7. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  8. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-avatar-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-modal-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  15. package/pv-components/dist/vue/base/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -15
  16. package/pv-components/dist/vue/base/components/base/PvAvatar/types.d.ts +17 -0
  17. package/pv-components/dist/vue/base/components/base/PvMenu/cascadeUtils.d.ts +7 -0
  18. package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +2 -0
  19. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +6 -0
  20. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +7 -0
  21. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +5 -21
  22. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +27 -0
  23. package/pv-components/dist/vue/base/pv-components-base.mjs +459 -386
  24. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  25. package/pv-components/dist/vue/base/types.d.ts +3 -0
  26. package/pv-components/dist/vue/visualizations/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -15
  27. package/pv-components/dist/vue/visualizations/components/base/PvAvatar/types.d.ts +17 -0
  28. package/pv-components/dist/vue/visualizations/components/base/PvMenu/cascadeUtils.d.ts +7 -0
  29. package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +2 -0
  30. package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +6 -0
  31. package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +7 -0
  32. package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +5 -21
  33. package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +27 -0
  34. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +9 -2
  35. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1933 -1823
  36. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  37. package/pv-components/dist/vue/visualizations/types.d.ts +3 -0
  38. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +8 -3
  39. package/pv-components/dist/web/components/pv-menu/pv-menu.js +835 -817
  40. package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -3
  41. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1186 -1111
  42. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +814 -799
  43. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +923 -853
  44. package/pv-components/dist/web/pv-components.iife.js +31 -31
  45. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,20 +1,7 @@
1
- import { PvAvatarSize, PvAvatarVariant } from './types';
1
+ import { PvAvatarProps, PvAvatarSize, PvAvatarShape } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- interface PvAvatarProps {
4
- /** Icon name from the SVG sprite to display inside the avatar. Takes priority over `initials` and `image`. */
5
- icon?: string;
6
- /** URL of an image to display. Only rendered when `icon` and `initials` are not set. */
7
- image?: string;
8
- /** Accessible alt text for the avatar image. Defaults to "" (decorative) when initials or other context provides the name. */
9
- alt?: string;
10
- /** One or two character string displayed when no icon is provided. Takes priority over `image` when both are set. */
11
- initials?: string;
12
- /** Display size of the avatar. */
13
- size?: PvAvatarSize;
14
- /** Color variant applied to the avatar background (1–7). */
15
- variant?: PvAvatarVariant;
16
- }
17
3
  declare const _default: DefineComponent<PvAvatarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvAvatarProps> & Readonly<{}>, {
18
4
  size: PvAvatarSize;
5
+ shape: PvAvatarShape;
19
6
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
20
7
  export default _default;
@@ -1,3 +1,20 @@
1
1
  import { PvSize } from '../baseProps';
2
+ export type PvAvatarShape = "circle" | "square";
2
3
  export type PvAvatarSize = Extract<PvSize, "sm" | "md" | "lg" | "xl" | "2x">;
3
4
  export type PvAvatarVariant = "1" | "2" | "3" | "4" | "5" | "6" | "7";
5
+ export interface PvAvatarProps {
6
+ /** Accessible alt text for the avatar image. Defaults to "" (decorative) when initials or other context provides the name. */
7
+ alt?: string;
8
+ /** Icon name from the SVG sprite to display inside the avatar. Takes priority over `initials` and `image`. */
9
+ icon?: string;
10
+ /** URL of an image to display. Only rendered when `icon` and `initials` are not set. */
11
+ image?: string;
12
+ /** One or two character string displayed when no icon is provided. Takes priority over `image` when both are set. */
13
+ initials?: string;
14
+ /** Shape of the avatar. Defaults to `circle`. */
15
+ shape?: PvAvatarShape;
16
+ /** Display size of the avatar. */
17
+ size?: PvAvatarSize;
18
+ /** Color variant applied to the avatar background (1–7). */
19
+ variant?: PvAvatarVariant;
20
+ }
@@ -1,4 +1,11 @@
1
1
  import { MenuOption, MultiSelectState } from '../../../types';
2
+ /**
3
+ * Returns true when an option has children, whether they are already loaded or
4
+ * only represented by the server-provided `totalChildCount` for lazy-loading.
5
+ * Fully loaded children still count as cascade children — this helper answers
6
+ * "is this a parent?", not "are there more children to load?".
7
+ */
8
+ export declare function hasCascadeChildren<T>(option: MenuOption<T>): boolean;
2
9
  /** Recursively collect all leaf (childless) options from a tree. */
3
10
  export declare function collectLeafOptions<T>(options: MenuOption<T>[]): MenuOption<T>[];
4
11
  /**
@@ -12,6 +12,8 @@ export interface PvMenuProps {
12
12
  itemClass?: string;
13
13
  /** When true, only selected items are visible (used during loading states). */
14
14
  isLoading?: boolean;
15
+ /** When true, the top-level See more button shows a loading spinner. */
16
+ isSeeMoreLoading?: boolean;
15
17
  /** When true, only one item can be selected at a time (radio behavior). */
16
18
  singleSelect?: boolean;
17
19
  /** When true, selecting a parent option toggles all its leaf children. */
@@ -34,6 +34,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
34
34
  groupings: string[];
35
35
  hideParentOnChildQueryMatch: boolean;
36
36
  icon: string;
37
+ isSeeMoreLoading: boolean;
37
38
  hasMoreOptions: boolean;
38
39
  optionsAction: MenuAction<T> | undefined;
39
40
  optionsRenderer: Component;
@@ -58,6 +59,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
58
59
  menuActionsVariant: MenuActionsVariant | null;
59
60
  highlightSearchText: boolean;
60
61
  enableCascadeSelection: boolean;
62
+ counterStyle: "primary" | "secondary";
61
63
  }): any;
62
64
  'no-results'?(_: {
63
65
  selectedItems: MenuOption<T>[];
@@ -74,6 +76,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
74
76
  groupings: string[];
75
77
  hideParentOnChildQueryMatch: boolean;
76
78
  icon: string;
79
+ isSeeMoreLoading: boolean;
77
80
  hasMoreOptions: boolean;
78
81
  optionsAction: MenuAction<T> | undefined;
79
82
  optionsRenderer: Component;
@@ -98,6 +101,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
98
101
  menuActionsVariant: MenuActionsVariant | null;
99
102
  highlightSearchText: boolean;
100
103
  enableCascadeSelection: boolean;
104
+ counterStyle: "primary" | "secondary";
101
105
  }): any;
102
106
  footer?(_: {
103
107
  selectedItems: MenuOption<T>[];
@@ -114,6 +118,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
114
118
  groupings: string[];
115
119
  hideParentOnChildQueryMatch: boolean;
116
120
  icon: string;
121
+ isSeeMoreLoading: boolean;
117
122
  hasMoreOptions: boolean;
118
123
  optionsAction: MenuAction<T> | undefined;
119
124
  optionsRenderer: Component;
@@ -138,6 +143,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
138
143
  menuActionsVariant: MenuActionsVariant | null;
139
144
  highlightSearchText: boolean;
140
145
  enableCascadeSelection: boolean;
146
+ counterStyle: "primary" | "secondary";
141
147
  }): any;
142
148
  };
143
149
  emit: {
@@ -49,6 +49,8 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
49
49
  icon?: string;
50
50
  /** Show a loading spinner inside the dropdown */
51
51
  isLoading?: boolean;
52
+ /** Show a loading spinner on the top-level See more button without replacing the option list */
53
+ isSeeMoreLoading?: boolean;
52
54
  /** Whether more top-level options are available after the loaded options */
53
55
  hasMoreOptions?: boolean;
54
56
  /** Text label on the trigger button */
@@ -90,6 +92,11 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
90
92
  totalOptionCount?: number;
91
93
  /** Visual style of the trigger button */
92
94
  variant?: PvSelectButtonVariant;
95
+ /** Style of the counter badge on the trigger button.
96
+ * - "primary": Shows a counter badge in the specified counterPosition (left/right)
97
+ * - "secondary": Shows the first selected item's text with a "+N" badge for additional selections
98
+ */
99
+ counterStyle?: "primary" | "secondary";
93
100
  }
94
101
  export interface PvMultiSelectButtonSlotProps<T = unknown, SlotContext = Record<string, unknown>> extends Omit<PvMultiSelectButtonProps, "slotContext"> {
95
102
  searchInput?: string;
@@ -1,30 +1,14 @@
1
- import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types';
2
- import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
1
+ import { PvSelectButtonTriggerProps } from './types';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
- export interface PvSelectButtonTrigger {
5
- variant?: PvSelectButtonVariant;
6
- inverse?: boolean;
7
- size?: PvSelectButtonSize;
8
- disabled?: boolean;
9
- counterPosition?: "left" | "right" | "none";
10
- counterValue?: number;
11
- counterBadgeVariant?: PvCounterBadgeVariant;
12
- prefixLabel?: string;
13
- label?: string;
14
- icon?: string;
15
- companyLogo?: string;
16
- showClear?: boolean;
17
- showDropdown?: boolean;
18
- open: boolean;
19
- isLoading?: boolean;
20
- }
21
- declare const _default: DefineComponent<PvSelectButtonTrigger, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3
+ import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types';
4
+ declare const _default: DefineComponent<PvSelectButtonTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
22
5
  "handle-clear": () => any;
23
- }, string, PublicProps, Readonly<PvSelectButtonTrigger> & Readonly<{
6
+ }, string, PublicProps, Readonly<PvSelectButtonTriggerProps> & Readonly<{
24
7
  "onHandle-clear"?: (() => any) | undefined;
25
8
  }>, {
26
9
  size: PvSelectButtonSize;
27
10
  variant: PvSelectButtonVariant;
11
+ counterStyle: "primary" | "secondary";
28
12
  showDropdown: boolean;
29
13
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
30
14
  export default _default;
@@ -0,0 +1,27 @@
1
+ import { Component } from 'vue';
2
+ import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
3
+ import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types';
4
+ import { MenuOption, MenuOptionConfig } from '../../../../types';
5
+ export interface PvSelectButtonTriggerProps {
6
+ avatar?: MenuOption["avatar"];
7
+ companyLogo?: string;
8
+ counterBadgeVariant?: PvCounterBadgeVariant;
9
+ counterPosition?: "left" | "right" | "none";
10
+ counterValue?: number;
11
+ disabled?: boolean;
12
+ icon?: string;
13
+ inverse?: boolean;
14
+ isLoading?: boolean;
15
+ label?: string;
16
+ menuOptionConfig?: MenuOptionConfig;
17
+ open: boolean;
18
+ prefixLabel?: string;
19
+ renderer?: Component;
20
+ selectedOption?: MenuOption;
21
+ showClear?: boolean;
22
+ showDropdown?: boolean;
23
+ size?: PvSelectButtonSize;
24
+ variant?: PvSelectButtonVariant;
25
+ counterStyle?: "primary" | "secondary";
26
+ selectedItems?: MenuOption[];
27
+ }