@turquoisehealth/pit-viper 2.197.1 → 2.197.3-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 (48) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +15 -1
  2. package/_site/assets/css/pit-viper-consumer.css +15 -1
  3. package/_site/assets/css/pit-viper-v2-scoped.css +14 -1
  4. package/_site/assets/css/pit-viper-v2.css +15 -1
  5. package/_site/assets/css/pit-viper.css +15 -1
  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-action-button-stats.html +4950 -0
  10. package/pv-components/dist/stats/web/pv-ai-button-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  16. package/pv-components/dist/vue/base/components/base/PvActionButton/PvActionButton.vue.d.ts +22 -0
  17. package/pv-components/dist/vue/base/components/base/PvAiButton/PvAiButton.vue.d.ts +3 -0
  18. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -3
  19. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
  20. package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
  21. package/pv-components/dist/vue/base/components/base/PvTooltip/PvTooltip.vue.d.ts +1 -1
  22. package/pv-components/dist/vue/base/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +1 -1
  23. package/pv-components/dist/vue/base/components/base/index.d.ts +1 -0
  24. package/pv-components/dist/vue/base/pv-components-base.mjs +1249 -1203
  25. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  26. package/pv-components/dist/vue/visualizations/components/base/PvActionButton/PvActionButton.vue.d.ts +22 -0
  27. package/pv-components/dist/vue/visualizations/components/base/PvAiButton/PvAiButton.vue.d.ts +3 -0
  28. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
  29. package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
  30. package/pv-components/dist/vue/visualizations/components/base/PvTooltip/PvTooltip.vue.d.ts +1 -1
  31. package/pv-components/dist/vue/visualizations/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +1 -1
  32. package/pv-components/dist/vue/visualizations/components/base/index.d.ts +1 -0
  33. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +1 -0
  34. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +1 -0
  35. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +14 -0
  36. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +2 -0
  37. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +9 -0
  38. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1329 -1239
  39. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  40. package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +7599 -0
  41. package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +398 -393
  42. package/pv-components/dist/web/components/pv-header/pv-header.js +18 -12
  43. package/pv-components/dist/web/components/pv-menu/pv-menu.js +879 -833
  44. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +866 -820
  45. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +622 -576
  46. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +594 -548
  47. package/pv-components/dist/web/pv-components.iife.js +36 -36
  48. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -0,0 +1,22 @@
1
+ import { PvAlignmentPositions, PvSize } from '../baseProps';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ icon: string;
5
+ disabled?: boolean;
6
+ size?: Extract<PvSize, "xs" | "sm" | "md" | "lg">;
7
+ tooltipText: string;
8
+ tooltipPosition?: PvAlignmentPositions;
9
+ /** When false, the button is hidden until a `.pv-label` ancestor is hovered (used by menu actions). */
10
+ alwaysShow?: boolean;
11
+ };
12
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ click: (args_0: MouseEvent) => any;
14
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
16
+ }>, {
17
+ size: Extract<PvSize, "xs" | "sm" | "md" | "lg">;
18
+ disabled: boolean;
19
+ tooltipPosition: PvAlignmentPositions;
20
+ alwaysShow: boolean;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;
@@ -9,9 +9,12 @@ interface PvAiButtonProps {
9
9
  loading?: boolean;
10
10
  /** Prevent the button from being clicked */
11
11
  disabled?: boolean;
12
+ /** Hide AiFilled Icon */
13
+ hideIcon?: boolean;
12
14
  }
13
15
  declare const _default: DefineComponent<PvAiButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvAiButtonProps> & Readonly<{}>, {
14
16
  label: string;
15
17
  size: PvButtonSize;
18
+ hideIcon: boolean;
16
19
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
17
20
  export default _default;
@@ -28,10 +28,10 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
28
28
  useTeleport: boolean;
29
29
  teleportLocation: string;
30
30
  delay: number;
31
- disableInteractive: boolean;
32
31
  disableAutoPlacement: boolean;
33
32
  positioningStrategy: Strategy;
34
33
  showOnHover: boolean;
34
+ disableInteractive: boolean;
35
35
  disableClickOutsideToClose: boolean;
36
36
  zIndex: number;
37
37
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -24,10 +24,10 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
24
24
  collapsed: boolean;
25
25
  }) => any;
26
26
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
28
  onChange?: ((payload: {
28
29
  collapsed: boolean;
29
30
  }) => any) | undefined;
30
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
32
32
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
33
  export default _default;
@@ -29,8 +29,8 @@ declare const __VLS_component: DefineComponent<PvTooltipProps, {}, {}, {}, {}, C
29
29
  variant: PvTooltipVariants;
30
30
  tooltipPosition: PvTooltipPositions;
31
31
  delay: number;
32
- ariaLabelledBy: string;
33
32
  disableInteractive: boolean;
33
+ ariaLabelledBy: string;
34
34
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
35
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
36
  export default _default;
@@ -16,8 +16,8 @@ declare const __VLS_component: DefineComponent<PvTooltipV2Props, {}, {}, {}, {},
16
16
  size: PvTooltipSize;
17
17
  variant: PvTooltipVariants;
18
18
  delay: number;
19
- disableInteractive: boolean;
20
19
  showOnHover: boolean;
20
+ disableInteractive: boolean;
21
21
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
22
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
23
  export default _default;
@@ -1,4 +1,5 @@
1
1
  export { default as PvButton } from './PvButton/PvButton.vue';
2
+ export { default as PvActionButton } from './PvActionButton/PvActionButton.vue';
2
3
  export { default as PvAiButton } from './PvAiButton/PvAiButton.vue';
3
4
  export { default as PvButtonWithTooltip } from './PvButton/PvButtonWithTooltip.vue';
4
5
  export { default as PvSplitButton } from './PvSplitButton/PvSplitButton.vue';
@@ -27,6 +27,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
27
27
  getCsvData: () => Promise<string | null> | undefined;
28
28
  refreshData: (params?: RefreshServerSideParams | null) => Promise<void> | undefined;
29
29
  getFilterValueSelectedMetadataMap: () => Record<string, ( FilterValueResponseOption | null)[]> | undefined;
30
+ hydrateSelectedFilterMetadata: () => Promise<Record<string, ( FilterValueResponseOption | null)[]>> | undefined;
30
31
  getPvFilterModel: () => AdvancedFilterModel | FilterModel | null | undefined;
31
32
  setPvFilterModel: (model: FilterModel | AdvancedFilterModel | null) => boolean | undefined;
32
33
  }>): void;
@@ -6,3 +6,4 @@ export declare const multiGroupChartTypeConfigs: MenuOption[];
6
6
  export declare const histogramChartTypeConfig: MenuOption;
7
7
  export declare const separatorValue = "--SEPARATOR--";
8
8
  export declare const sortTotalSuffix = "_sort_total";
9
+ export declare const SECONDARY_AXIS_INTERVAL_COUNT = 5;
@@ -1,5 +1,18 @@
1
1
  import { AgChartOptions } from 'ag-charts-enterprise';
2
2
  import { OptionWithFormatterAndDataType } from './types';
3
+ /**
4
+ * Rounds `rawMax` up to a "nice" ceiling that divides into `intervals` equal,
5
+ * human-friendly steps (multiples of 1, 2, 2.5, or 5 × a power of ten).
6
+ *
7
+ * Used to give the primary and secondary y-axes the same number of intervals
8
+ * from a shared zero baseline, so their gridlines coincide as one set of
9
+ * horizontal lines instead of two misaligned sets. e.g. a raw max of 9.3 over
10
+ * 5 intervals rounds to 10 (steps of 2); a raw max of 100 stays 100 (steps of 20).
11
+ *
12
+ * Returns 0 for non-positive or non-finite input, signalling the caller to fall
13
+ * back to AG Charts' automatic scaling rather than building a degenerate axis.
14
+ */
15
+ export declare const niceAxisCeiling: (rawMax: number, intervals: number) => number;
3
16
  export declare const computeNoDataOverlayText: ({ currentRowGroupColumnsLength, shouldShowFocusOverlayText, chartDataEmpty, missingFocusText, displayGroupByName, }: {
4
17
  currentRowGroupColumnsLength: number;
5
18
  shouldShowFocusOverlayText: boolean;
@@ -19,3 +32,4 @@ export declare const buildStackedChartData: (data: AgChartOptions["data"], categ
19
32
  data?: undefined;
20
33
  };
21
34
  export declare const calculateMaxChartSeriesValue: (data: any[] | undefined, seriesField: string, isStacked: boolean) => number;
35
+ export declare const calculateMinChartSeriesValue: (data: any[] | undefined, seriesField: string, isStacked: boolean) => number;
@@ -142,6 +142,8 @@ export interface OptionWithFormatterAndDataType extends Option {
142
142
  dataType?: string;
143
143
  tooltipRenderer?: ChartTooltipRenderer;
144
144
  description?: string;
145
+ /** Explicit ceiling for this column when plotted on the secondary y-axis; mirrors `context.secondaryAxisMax`. */
146
+ secondaryAxisMax?: number;
145
147
  }
146
148
  export interface StackField {
147
149
  fieldName: string;
@@ -60,6 +60,13 @@ export interface ColDefContextProps<T> extends Omit<PvFilterPanelColDefContext,
60
60
  * If true, we will plot this column on the secondary y-axis.
61
61
  */
62
62
  chartOnSecondaryAxes?: boolean;
63
+ /**
64
+ * Optional maximum value for the secondary y-axis when this column is plotted as a secondary-axis overlay.
65
+ * Use to pin the axis ceiling for bounded metrics (e.g. a 0-5 rate score). No-op when the column renders on the primary axis.
66
+ * This is a hard cap: data points above it render clipped/out of bounds rather than expanding the axis, so only set it
67
+ * to a value the metric cannot exceed.
68
+ */
69
+ secondaryAxisMax?: number;
63
70
  /**
64
71
  * Optional description for the series when used in charting, displayed as a tooltip
65
72
  */
@@ -437,6 +444,8 @@ export interface PvDataTablePublicInterface {
437
444
  getCsvData: () => Promise<string | null>;
438
445
  refreshData: (params?: RefreshServerSideParams | null) => Promise<void>;
439
446
  getFilterValueSelectedMetadataMap: () => Record<string, (FilterValueResponseOption | null)[]>;
447
+ /** Fetches options for every column with a selection and resolves to the full metadata map. */
448
+ hydrateSelectedFilterMetadata: () => Promise<Record<string, (FilterValueResponseOption | null)[]>>;
440
449
  availableRowGroupColumns: ComputedRef<ColDef[]>;
441
450
  availableAggFuncColumns: ComputedRef<ColDef[]>;
442
451
  rowGroupColumnFields: Ref<string[]>;