@turquoisehealth/pit-viper 2.171.1-dev.7 → 2.173.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 (75) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +0 -17
  2. package/_site/assets/css/pit-viper-consumer.css +0 -17
  3. package/_site/assets/css/pit-viper-v2-scoped.css +0 -16
  4. package/_site/assets/css/pit-viper-v2.css +0 -17
  5. package/_site/assets/css/pit-viper.css +0 -17
  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-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  16. package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
  17. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  18. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
  19. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  20. package/pv-components/dist/stats/web/pv-switch-stats.html +1 -1
  21. package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
  22. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  23. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  24. package/pv-components/dist/vue/base/components/base/PvButton/PvButton.vue.d.ts +2 -2
  25. package/pv-components/dist/vue/base/components/base/PvButton/PvButtonIconBadge.vue.d.ts +4 -0
  26. package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +9 -0
  27. package/pv-components/dist/vue/base/components/base/PvCounterBadge/PvCounterBadge.vue.d.ts +1 -1
  28. package/pv-components/dist/vue/base/components/base/PvExpandableContent/PvExpandableContent.vue.d.ts +1 -1
  29. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItem.vue.d.ts +2 -9
  30. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -3
  31. package/pv-components/dist/vue/base/components/base/PvPagination/PvPagination.vue.d.ts +1 -1
  32. package/pv-components/dist/vue/base/components/base/PvPill/PvPill.vue.d.ts +1 -1
  33. package/pv-components/dist/vue/base/components/base/PvRating/PvRating.vue.d.ts +1 -1
  34. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +1 -1
  35. package/pv-components/dist/vue/base/components/base/PvSkeleton/PvSkeleton.vue.d.ts +1 -1
  36. package/pv-components/dist/vue/base/components/base/PvSpinner/PvSpinner.vue.d.ts +1 -1
  37. package/pv-components/dist/vue/base/components/base/PvSwitch/PvSwitch.vue.d.ts +0 -2
  38. package/pv-components/dist/vue/base/components/base/PvSwitch/types.d.ts +1 -1
  39. package/pv-components/dist/vue/base/components/base/PvTag/PvTag.vue.d.ts +1 -1
  40. package/pv-components/dist/vue/base/components/base/PvToggleButton/PvToggleButton.vue.d.ts +1 -1
  41. package/pv-components/dist/vue/base/components/base/PvTooltip/PvTooltip.vue.d.ts +1 -1
  42. package/pv-components/dist/vue/base/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +2 -2
  43. package/pv-components/dist/vue/base/pv-components-base.mjs +2290 -2309
  44. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  45. package/pv-components/dist/vue/base/types.d.ts +1 -5
  46. package/pv-components/dist/vue/visualizations/components/base/PvButton/PvButtonIconBadge.vue.d.ts +4 -0
  47. package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +9 -0
  48. package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItem.vue.d.ts +2 -9
  49. package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -3
  50. package/pv-components/dist/vue/visualizations/components/base/PvSwitch/PvSwitch.vue.d.ts +0 -2
  51. package/pv-components/dist/vue/visualizations/components/base/PvSwitch/types.d.ts +1 -1
  52. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/chartTypeRegistry.d.ts +1 -0
  53. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +7 -0
  54. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +18 -1
  55. package/pv-components/dist/vue/visualizations/components/tables/symbols.d.ts +5 -1
  56. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4121 -4128
  57. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  58. package/pv-components/dist/vue/visualizations/types.d.ts +1 -5
  59. package/pv-components/dist/web/components/pv-button/pv-button.js +367 -361
  60. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +449 -444
  61. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +413 -407
  62. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +312 -306
  63. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +514 -509
  64. package/pv-components/dist/web/components/pv-menu/pv-menu.js +1494 -1559
  65. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1807 -1871
  66. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +372 -366
  67. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1388 -1453
  68. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +1028 -1021
  69. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1370 -1435
  70. package/pv-components/dist/web/components/pv-switch/pv-switch.js +106 -114
  71. package/pv-components/dist/web/components/pv-toast/pv-toast.js +416 -411
  72. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +22 -21
  73. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +21 -21
  74. package/pv-components/dist/web/pv-components.iife.js +43 -43
  75. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -43,7 +43,6 @@ export interface MenuOptionConfig {
43
43
  renderer?: Component;
44
44
  action?: MenuAction<any>;
45
45
  variant?: MenuOptionsVariant;
46
- disabledVariant?: MenuOptionsDisabledVariant;
47
46
  counterBadgeVariant?: PvCounterBadgeVariant;
48
47
  }
49
48
  export interface MenuOptionSelectedEvent {
@@ -56,9 +55,6 @@ export declare enum MenuItemType {
56
55
  company = "company",
57
56
  avatar = "avatar",
58
57
  icon = "icon",
59
- radio = "radio",
60
- checkmark = "checkmark",
61
- toggle = "toggle"
58
+ radio = "radio"
62
59
  }
63
60
  export type MenuOptionsVariant = `${MenuItemType}`;
64
- export type MenuOptionsDisabledVariant = "default" | "ghost" | null;
@@ -0,0 +1,4 @@
1
+ import { PvButtonIconBadgeProps } from './types.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<PvButtonIconBadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvButtonIconBadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4
+ export default _default;
@@ -22,6 +22,15 @@ export interface PvButtonProps {
22
22
  /** Optional counter on the right side of the button */
23
23
  rightCounterBadge?: number;
24
24
  }
25
+ export interface PvButtonIconBadgeProps {
26
+ size: PvButtonSize;
27
+ /** Optional icon */
28
+ icon?: string;
29
+ /** Optional counter badge */
30
+ counterBadge?: number;
31
+ /** Test ID for the icon element */
32
+ iconTestId?: string;
33
+ }
25
34
  export interface PvButtonWithTooltipProps extends PvButtonProps {
26
35
  /** Text to show within the tooltip */
27
36
  tooltipText: string;
@@ -6,17 +6,10 @@ interface PvMenuItemProps extends MenuOption {
6
6
  queryText?: string | null;
7
7
  highlightSearchText?: boolean;
8
8
  }
9
- type __VLS_Props = PvMenuItemProps;
10
- type __VLS_PublicProps = {
11
- "selectedItems"?: string[];
12
- } & __VLS_Props;
13
- declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
- "update:selectedItems": (value: string[]) => any;
15
- } & {
9
+ declare const _default: DefineComponent<PvMenuItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
16
10
  "handle-selected": (payload: MenuOptionSelectedEvent) => any;
17
- }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ }, string, PublicProps, Readonly<PvMenuItemProps> & Readonly<{
18
12
  "onHandle-selected"?: ((payload: MenuOptionSelectedEvent) => any) | undefined;
19
- "onUpdate:selectedItems"?: ((value: string[]) => any) | undefined;
20
13
  }>, {
21
14
  level: number;
22
15
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -43,7 +43,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
43
43
  disableDropdownIcon: boolean;
44
44
  disableClearIcon: boolean;
45
45
  disableSearchInput: boolean;
46
- optionsVariant: "icon" | "checkbox" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
46
+ optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
47
47
  options: MenuOption<T>[];
48
48
  menuActionsVariant: MenuActionsVariant | null;
49
49
  highlightSearchText: boolean;
@@ -76,7 +76,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
76
76
  disableDropdownIcon: boolean;
77
77
  disableClearIcon: boolean;
78
78
  disableSearchInput: boolean;
79
- optionsVariant: "icon" | "checkbox" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
79
+ optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
80
80
  options: MenuOption<T>[];
81
81
  menuActionsVariant: MenuActionsVariant | null;
82
82
  highlightSearchText: boolean;
@@ -109,7 +109,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
109
109
  disableDropdownIcon: boolean;
110
110
  disableClearIcon: boolean;
111
111
  disableSearchInput: boolean;
112
- optionsVariant: "icon" | "checkbox" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
112
+ optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
113
113
  options: MenuOption<T>[];
114
114
  menuActionsVariant: MenuActionsVariant | null;
115
115
  highlightSearchText: boolean;
@@ -5,7 +5,6 @@ interface PvSwitchProps {
5
5
  label?: string;
6
6
  disabled?: boolean;
7
7
  id?: string;
8
- hideCheckIcon?: boolean;
9
8
  }
10
9
  type __VLS_Props = PvSwitchProps;
11
10
  type __VLS_PublicProps = {
@@ -19,6 +18,5 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
19
18
  size: PvSwitchSize;
20
19
  id: string;
21
20
  disabled: boolean;
22
- hideCheckIcon: boolean;
23
21
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
24
22
  export default _default;
@@ -1,2 +1,2 @@
1
1
  import { PvSize } from '../baseProps';
2
- export type PvSwitchSize = Extract<PvSize, "sm" | "md" | "lg">;
2
+ export type PvSwitchSize = Extract<PvSize, "md" | "lg">;
@@ -23,5 +23,6 @@ export interface ChartTypeConfig {
23
23
  isHorizontal?: boolean;
24
24
  rowGroupLimit: number;
25
25
  supportsFocusView: boolean;
26
+ storeBeforeChange: boolean;
26
27
  }
27
28
  export declare function getChartTypeConfig(id: string): ChartTypeConfig;
@@ -1,5 +1,12 @@
1
1
  import { AgChartOptions } from 'ag-charts-enterprise';
2
2
  import { OptionWithFormatterAndDataType } from './types';
3
+ export declare const computeNoDataOverlayText: ({ currentRowGroupColumnsLength, shouldShowFocusOverlayText, chartDataEmpty, missingFocusText, displayGroupByName, }: {
4
+ currentRowGroupColumnsLength: number;
5
+ shouldShowFocusOverlayText: boolean;
6
+ chartDataEmpty: boolean;
7
+ missingFocusText: string | undefined | null;
8
+ displayGroupByName: string;
9
+ }) => string;
3
10
  export declare const generateStackSeriesKey: (seriesField: string, stackField: string) => string;
4
11
  export declare const generateStackSecondaryCategoryKey: (stackField: string) => string;
5
12
  export declare const buildStackedChartData: (data: AgChartOptions["data"], categoryField: string, stackField: string, seriesColumns: OptionWithFormatterAndDataType[], supplementaryChartingColumns?: OptionWithFormatterAndDataType[]) => {
@@ -39,6 +39,16 @@ export interface VerticalLineOverlay {
39
39
  /** The line color as a hex code. */
40
40
  color?: string;
41
41
  }
42
+ export interface CrosslineOverlayGroup {
43
+ /** Unique identifier for this overlay group. */
44
+ id: string;
45
+ /** Display label shown in the options panel toggle. */
46
+ label: string;
47
+ /** The crosslines belonging to this group. */
48
+ overlays: VerticalLineOverlay[];
49
+ /** If true, this group is toggled on when the chart first renders. */
50
+ enabled?: boolean;
51
+ }
42
52
  export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
43
53
  allFieldsAreFocusable?: boolean;
44
54
  enabledChartTypes?: supportedChartType[];
@@ -63,6 +73,7 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
63
73
  focusableColumns?: string[];
64
74
  focusText?: string;
65
75
  focusRequired?: boolean;
76
+ missingFocusText?: string;
66
77
  /**
67
78
  * Enable toggle to group or ungroup
68
79
  */
@@ -74,9 +85,15 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
74
85
  agGridWrapper: CSSProperties;
75
86
  };
76
87
  /**
77
- * Vertical line overlays to display on the chart with optional tooltips
88
+ * NOTE: This prop is deprecated in favor of the below crosslineOverlayGroups.
78
89
  */
79
90
  verticalLineOverlays?: VerticalLineOverlay[];
91
+ /**
92
+ * Grouped crossline overlay definitions. Each group contains a set of
93
+ * crosslines that can be independently toggled on/off in the chart
94
+ * options panel.
95
+ */
96
+ crosslineOverlayGroups?: CrosslineOverlayGroup[];
80
97
  }
81
98
  export interface OptionWithFormatterAndDataType extends Option {
82
99
  formatter?: ValueFormatterFunc | string;
@@ -2,7 +2,7 @@ import { InjectionKey, Ref, ShallowRef } from 'vue';
2
2
  import { Column, GridApi, SortModelItem, ColDef } from 'ag-grid-community';
3
3
  import { MenuOption } from '../../types';
4
4
  import { createFilterStore } from './PvDataTable/useFilterStore';
5
- import { OptionWithFormatterAndDataType } from '../charts/PvDataTableWithChart/types';
5
+ import { OptionWithFormatterAndDataType, CrosslineOverlayGroup } from '../charts/PvDataTableWithChart/types';
6
6
  import { createFocusStore } from './PvDataTable/useFocus';
7
7
  export declare const FilterStoreKey: InjectionKey<ReturnType<typeof createFilterStore>>;
8
8
  export declare const FocusStoreKey: InjectionKey<ReturnType<typeof createFocusStore>>;
@@ -54,3 +54,7 @@ export type AvailableSecondarySeriesKey = Ref<OptionWithFormatterAndDataType[]>;
54
54
  export declare const AvailableSecondarySeriesKey: InjectionKey<AvailableSecondarySeriesKey>;
55
55
  export type EnableAdvancedFilterState = Ref<boolean>;
56
56
  export declare const EnableAdvancedFilterKey: InjectionKey<EnableAdvancedFilterState>;
57
+ export type ActiveCrosslineOverlayGroupsState = Ref<Set<string>>;
58
+ export declare const ActiveCrosslineOverlayGroupsKey: InjectionKey<ActiveCrosslineOverlayGroupsState>;
59
+ export type AvailableCrosslineOverlayGroupsState = Ref<CrosslineOverlayGroup[]>;
60
+ export declare const AvailableCrosslineOverlayGroupsKey: InjectionKey<AvailableCrosslineOverlayGroupsState>;