@turquoisehealth/pit-viper 2.241.1-dev.0 → 2.243.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 (43) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +5 -0
  2. package/_site/assets/css/pit-viper-consumer.css +5 -0
  3. package/_site/assets/css/pit-viper-v2-scoped.css +4 -0
  4. package/_site/assets/css/pit-viper-v2.css +5 -0
  5. package/_site/assets/css/pit-viper.css +5 -0
  6. package/_src/assets/sprite-v2.svg +1 -1
  7. package/_src/assets/sprite.svg +1 -1
  8. package/package.json +1 -1
  9. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  10. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
  12. package/pv-components/dist/vue/ai/components/base/PvContext/{PvContextFeedback.vue.d.ts → PvContextFeedback/PvContextFeedback.vue.d.ts} +10 -10
  13. package/pv-components/dist/vue/ai/components/base/PvContext/PvContextSurface/PvContextSurface.vue.d.ts +45 -0
  14. package/pv-components/dist/vue/ai/components/base/PvContext/PvSpinesEntityFields/PvSpinesEntityFields.vue.d.ts +12 -0
  15. package/pv-components/dist/vue/ai/components/base/PvContext/config.d.ts +27 -0
  16. package/pv-components/dist/vue/ai/components/base/PvEmptyState/types.d.ts +17 -0
  17. package/pv-components/dist/vue/ai/components/base/PvSidebarV2/types.d.ts +2 -0
  18. package/pv-components/dist/vue/ai/components/base/index.d.ts +6 -1
  19. package/pv-components/dist/vue/base/components/base/PvContext/{PvContextFeedback.vue.d.ts → PvContextFeedback/PvContextFeedback.vue.d.ts} +10 -10
  20. package/pv-components/dist/vue/base/components/base/PvContext/PvContextSurface/PvContextSurface.vue.d.ts +45 -0
  21. package/pv-components/dist/vue/base/components/base/PvContext/PvSpinesEntityFields/PvSpinesEntityFields.vue.d.ts +12 -0
  22. package/pv-components/dist/vue/base/components/base/PvContext/config.d.ts +27 -0
  23. package/pv-components/dist/vue/base/components/base/PvEmptyState/types.d.ts +17 -0
  24. package/pv-components/dist/vue/base/components/base/PvSidebarV2/types.d.ts +2 -0
  25. package/pv-components/dist/vue/base/components/base/index.d.ts +6 -1
  26. package/pv-components/dist/vue/base/pv-components-base.mjs +1779 -1572
  27. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  28. package/pv-components/dist/vue/visualizations/components/base/PvContext/{PvContextFeedback.vue.d.ts → PvContextFeedback/PvContextFeedback.vue.d.ts} +10 -10
  29. package/pv-components/dist/vue/visualizations/components/base/PvContext/PvContextSurface/PvContextSurface.vue.d.ts +45 -0
  30. package/pv-components/dist/vue/visualizations/components/base/PvContext/PvSpinesEntityFields/PvSpinesEntityFields.vue.d.ts +12 -0
  31. package/pv-components/dist/vue/visualizations/components/base/PvContext/config.d.ts +27 -0
  32. package/pv-components/dist/vue/visualizations/components/base/PvEmptyState/types.d.ts +17 -0
  33. package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/types.d.ts +2 -0
  34. package/pv-components/dist/vue/visualizations/components/base/PvSortableList/PvSortableList.vue.d.ts +0 -13
  35. package/pv-components/dist/vue/visualizations/components/base/index.d.ts +6 -1
  36. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +0 -19
  37. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue.d.ts +0 -9
  38. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +0 -42
  39. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1520 -1618
  40. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  41. package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +395 -383
  42. package/pv-components/dist/web/pv-components.iife.js +13 -13
  43. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -0,0 +1,45 @@
1
+ import { ShowContextPayload } from '../config.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvContextSurfaceProps {
4
+ /** Controls the outer surface: `pv-card` or `pv-drawer pv-surface`. */
5
+ variant: "card" | "drawer";
6
+ /** Tag shown in the header row. Omit to hide the tag. Payer/Provider (case-insensitive) also swap in PvCompanyLogo next to the default title. */
7
+ contextType?: string;
8
+ /** Used by the default title when the `title` slot isn't provided. */
9
+ header: string;
10
+ /** Hides the close button. */
11
+ disableClose?: boolean;
12
+ /** Shows a back arrow in the header row, for callers that support drilling back up a navigation stack. */
13
+ showBack?: boolean;
14
+ }
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ title?(_: {}): any;
19
+ default?(_: {}): any;
20
+ footer?(_: {}): any;
21
+ };
22
+ refs: {
23
+ panel: HTMLDivElement;
24
+ };
25
+ rootEl: any;
26
+ };
27
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
+ declare const __VLS_component: DefineComponent<PvContextSurfaceProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
29
+ close: () => any;
30
+ back: () => any;
31
+ "show-context": (payload: ShowContextPayload) => any;
32
+ }, string, PublicProps, Readonly<PvContextSurfaceProps> & Readonly<{
33
+ onClose?: (() => any) | undefined;
34
+ onBack?: (() => any) | undefined;
35
+ "onShow-context"?: ((payload: ShowContextPayload) => any) | undefined;
36
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
37
+ panel: HTMLDivElement;
38
+ }, any>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,12 @@
1
+ import { ShowContextPayload, ContextEntityField } from '../config.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvSpinesEntityFieldsProps {
4
+ /** The label/value rows to render. */
5
+ entityFields: ContextEntityField[];
6
+ }
7
+ declare const _default: DefineComponent<PvSpinesEntityFieldsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
8
+ "show-context": (payload: ShowContextPayload) => any;
9
+ }, string, PublicProps, Readonly<PvSpinesEntityFieldsProps> & Readonly<{
10
+ "onShow-context"?: ((payload: ShowContextPayload) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -1,3 +1,4 @@
1
+ import { InjectionKey } from 'vue';
1
2
  import { ContextCardEnum, ContextCardFieldConfig, ContextCardItem } from './types';
2
3
  export declare const CONTEXT_TAG_LABELS: Record<ContextCardEnum, string>;
3
4
  /**
@@ -20,7 +21,33 @@ export interface ContextLabelClickPayload {
20
21
  value: string[];
21
22
  };
22
23
  }
24
+ /** A single value within a `ContextEntityField`. Set `isClickable` to render it as interactive. */
25
+ export interface ContextEntityFieldValue {
26
+ name: string;
27
+ isClickable?: boolean;
28
+ /** Opaque identifier for this value (e.g. a knowledge-graph id). Not read internally; consumers resolve it themselves in their `show-context` handler. */
29
+ contextIdentifier?: string;
30
+ }
31
+ /** A pre-built label/value entry for PvSpinesEntityFields and PvContextFeedback. */
32
+ export interface ContextEntityField {
33
+ label: string;
34
+ value: ContextEntityFieldValue | ContextEntityFieldValue[];
35
+ }
23
36
  export interface ContextFeedbackPayload {
24
37
  fields: string[];
25
38
  comment: string;
26
39
  }
40
+ /** Emitted as PvContextSurface's `show-context` event when a clickable value is activated. */
41
+ export interface ShowContextPayload {
42
+ contextIdentifier: string;
43
+ }
44
+ /**
45
+ * Lets content slotted into PvContextSurface (e.g. PvSpinesEntityFields) request a context
46
+ * change without the consumer manually relaying an intermediate event. PvContextSurface
47
+ * provides this; slotted content injects it and calls `showContext` directly, and
48
+ * PvContextSurface re-emits it as its own `show-context` event.
49
+ */
50
+ export interface PvContextSurfaceContext {
51
+ showContext: (payload: ShowContextPayload) => void;
52
+ }
53
+ export declare const PvContextSurfaceKey: InjectionKey<PvContextSurfaceContext>;
@@ -0,0 +1,17 @@
1
+ export interface PvEmptyStateProps {
2
+ /** Alt text for the image */
3
+ alt?: string;
4
+ description?: string;
5
+ /** Primary text displayed in the empty/error state */
6
+ header?: string;
7
+ /** Label for the primary action button. Button is only rendered when set */
8
+ primaryLabel?: string;
9
+ /** Label for the secondary action button. Button is only rendered when set */
10
+ secondaryLabel?: string;
11
+ /** Source URL for the image displayed above the header */
12
+ src?: string;
13
+ }
14
+ export interface PvEmptyStateEmits {
15
+ (e: "handle-primary-click"): void;
16
+ (e: "handle-secondary-click"): void;
17
+ }
@@ -1,4 +1,6 @@
1
1
  export interface PvSidebarV2Props {
2
+ /** @deprecated Organization and profile menus are always click-only. This prop has no effect. */
3
+ disableOrgProfileHover?: boolean;
2
4
  disableToggle?: boolean;
3
5
  /** Top-level nav items, with optional nested children rendered as an accordion / hover flyout. */
4
6
  navItems?: PvSidebarNavItem[];
@@ -27,6 +27,9 @@ export { default as PvDateTime } from './PvDateTime/PvDateTime.vue';
27
27
  export { default as PvDrawer } from './PvDrawer/PvDrawer.vue';
28
28
  export { default as PvSpinesContextCard } from './PvContext/PvSpinesContextCard/PvSpinesContextCard.vue';
29
29
  export { default as PvSpinesContextDrawer } from './PvContext/PvSpinesContextDrawer/PvSpinesContextDrawer.vue';
30
+ export { default as PvContextSurface } from './PvContext/PvContextSurface/PvContextSurface.vue';
31
+ export { default as PvSpinesEntityFields } from './PvContext/PvSpinesEntityFields/PvSpinesEntityFields.vue';
32
+ export { default as PvContextFeedback } from './PvContext/PvContextFeedback/PvContextFeedback.vue';
30
33
  export { default as PvTooltip } from './PvTooltip/PvTooltip.vue';
31
34
  export { default as PvTooltipV2 } from './PvTooltipV2/PvTooltipV2.vue';
32
35
  export { default as PvTabs } from './PvTabs/PvTabs.vue';
@@ -94,6 +97,8 @@ export { createPvFilterStore, providePvFilterStore, useOptionalPvFilterStore, us
94
97
  export type { PvRangeColor, PvRangeMode, PvRangeProps, PvRangeSize, PvRangeValue, } from './PvRange/types';
95
98
  export { ContextCardEnum } from './PvContext/types';
96
99
  export type { ContextCardItem, ContextCardVariants, ProviderContextCard, PayerContextCard, LineOfBusinessContextCard, PlanTypeContextCard, ProductContextCard, CSBAContextCard, StateContextCard, ServiceContextCard, ServiceCodeContextCard, } from './PvContext/types';
97
- export type { ContextFeedbackPayload, ContextLabelClickPayload } from './PvContext/config';
100
+ export type { ContextLabelClickPayload } from './PvContext/config';
101
+ export type { ShowContextPayload, ContextEntityField, ContextEntityFieldValue, ContextFeedbackPayload, PvContextSurfaceContext, } from './PvContext/config';
102
+ export { PvContextSurfaceKey } from './PvContext/config';
98
103
  export { RumContextKey, useRumContext, addRumAction, deferRumTask } from '../../functions/rum';
99
104
  export type { PvRumContext } from '../../functions/rum';
@@ -1,23 +1,23 @@
1
- import { ContextCardItem } from './types.ts';
2
- import { ContextFeedbackPayload } from './config.ts';
1
+ import { ContextEntityField, ContextFeedbackPayload } from '../config.ts';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
3
  interface PvContextFeedbackProps {
5
- item: ContextCardItem;
4
+ /** The field labels to offer for feedback selection. */
5
+ fields?: ContextEntityField[];
6
6
  /**
7
7
  * Handles the submitted feedback. Resolve `true` when the feedback was
8
- * accepted (a persistent success message replaces the form and blocks further
9
- * submissions) or `false` when it failed (a persistent error message appears
10
- * and the form stays open so the user can retry). The submit button shows a
11
- * spinner while the returned promise is pending.
8
+ * accepted (the form resets and a success toast appears) or `false` when it
9
+ * failed (an error toast appears and the form stays open so the user can
10
+ * retry). The submit button shows a spinner while the returned promise is
11
+ * pending.
12
12
  */
13
13
  onSubmitFeedback?: (payload: ContextFeedbackPayload) => Promise<boolean>;
14
- /** Message shown in place of the form after feedback is accepted. */
14
+ /** Toast message shown after feedback is accepted. */
15
15
  successMessage?: string;
16
- /** Message shown when feedback submission fails. */
16
+ /** Toast message shown when feedback submission fails. */
17
17
  errorMessage?: string;
18
18
  }
19
19
  declare const _default: DefineComponent<PvContextFeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvContextFeedbackProps> & Readonly<{}>, {
20
20
  successMessage: string;
21
21
  errorMessage: string;
22
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
23
23
  export default _default;
@@ -0,0 +1,45 @@
1
+ import { ShowContextPayload } from '../config.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvContextSurfaceProps {
4
+ /** Controls the outer surface: `pv-card` or `pv-drawer pv-surface`. */
5
+ variant: "card" | "drawer";
6
+ /** Tag shown in the header row. Omit to hide the tag. Payer/Provider (case-insensitive) also swap in PvCompanyLogo next to the default title. */
7
+ contextType?: string;
8
+ /** Used by the default title when the `title` slot isn't provided. */
9
+ header: string;
10
+ /** Hides the close button. */
11
+ disableClose?: boolean;
12
+ /** Shows a back arrow in the header row, for callers that support drilling back up a navigation stack. */
13
+ showBack?: boolean;
14
+ }
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ title?(_: {}): any;
19
+ default?(_: {}): any;
20
+ footer?(_: {}): any;
21
+ };
22
+ refs: {
23
+ panel: HTMLDivElement;
24
+ };
25
+ rootEl: any;
26
+ };
27
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
+ declare const __VLS_component: DefineComponent<PvContextSurfaceProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
29
+ close: () => any;
30
+ back: () => any;
31
+ "show-context": (payload: ShowContextPayload) => any;
32
+ }, string, PublicProps, Readonly<PvContextSurfaceProps> & Readonly<{
33
+ onClose?: (() => any) | undefined;
34
+ onBack?: (() => any) | undefined;
35
+ "onShow-context"?: ((payload: ShowContextPayload) => any) | undefined;
36
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
37
+ panel: HTMLDivElement;
38
+ }, any>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,12 @@
1
+ import { ShowContextPayload, ContextEntityField } from '../config.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvSpinesEntityFieldsProps {
4
+ /** The label/value rows to render. */
5
+ entityFields: ContextEntityField[];
6
+ }
7
+ declare const _default: DefineComponent<PvSpinesEntityFieldsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
8
+ "show-context": (payload: ShowContextPayload) => any;
9
+ }, string, PublicProps, Readonly<PvSpinesEntityFieldsProps> & Readonly<{
10
+ "onShow-context"?: ((payload: ShowContextPayload) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -1,3 +1,4 @@
1
+ import { InjectionKey } from 'vue';
1
2
  import { ContextCardEnum, ContextCardFieldConfig, ContextCardItem } from './types';
2
3
  export declare const CONTEXT_TAG_LABELS: Record<ContextCardEnum, string>;
3
4
  /**
@@ -20,7 +21,33 @@ export interface ContextLabelClickPayload {
20
21
  value: string[];
21
22
  };
22
23
  }
24
+ /** A single value within a `ContextEntityField`. Set `isClickable` to render it as interactive. */
25
+ export interface ContextEntityFieldValue {
26
+ name: string;
27
+ isClickable?: boolean;
28
+ /** Opaque identifier for this value (e.g. a knowledge-graph id). Not read internally; consumers resolve it themselves in their `show-context` handler. */
29
+ contextIdentifier?: string;
30
+ }
31
+ /** A pre-built label/value entry for PvSpinesEntityFields and PvContextFeedback. */
32
+ export interface ContextEntityField {
33
+ label: string;
34
+ value: ContextEntityFieldValue | ContextEntityFieldValue[];
35
+ }
23
36
  export interface ContextFeedbackPayload {
24
37
  fields: string[];
25
38
  comment: string;
26
39
  }
40
+ /** Emitted as PvContextSurface's `show-context` event when a clickable value is activated. */
41
+ export interface ShowContextPayload {
42
+ contextIdentifier: string;
43
+ }
44
+ /**
45
+ * Lets content slotted into PvContextSurface (e.g. PvSpinesEntityFields) request a context
46
+ * change without the consumer manually relaying an intermediate event. PvContextSurface
47
+ * provides this; slotted content injects it and calls `showContext` directly, and
48
+ * PvContextSurface re-emits it as its own `show-context` event.
49
+ */
50
+ export interface PvContextSurfaceContext {
51
+ showContext: (payload: ShowContextPayload) => void;
52
+ }
53
+ export declare const PvContextSurfaceKey: InjectionKey<PvContextSurfaceContext>;
@@ -0,0 +1,17 @@
1
+ export interface PvEmptyStateProps {
2
+ /** Alt text for the image */
3
+ alt?: string;
4
+ description?: string;
5
+ /** Primary text displayed in the empty/error state */
6
+ header?: string;
7
+ /** Label for the primary action button. Button is only rendered when set */
8
+ primaryLabel?: string;
9
+ /** Label for the secondary action button. Button is only rendered when set */
10
+ secondaryLabel?: string;
11
+ /** Source URL for the image displayed above the header */
12
+ src?: string;
13
+ }
14
+ export interface PvEmptyStateEmits {
15
+ (e: "handle-primary-click"): void;
16
+ (e: "handle-secondary-click"): void;
17
+ }
@@ -1,4 +1,6 @@
1
1
  export interface PvSidebarV2Props {
2
+ /** @deprecated Organization and profile menus are always click-only. This prop has no effect. */
3
+ disableOrgProfileHover?: boolean;
2
4
  disableToggle?: boolean;
3
5
  /** Top-level nav items, with optional nested children rendered as an accordion / hover flyout. */
4
6
  navItems?: PvSidebarNavItem[];
@@ -27,6 +27,9 @@ export { default as PvDateTime } from './PvDateTime/PvDateTime.vue';
27
27
  export { default as PvDrawer } from './PvDrawer/PvDrawer.vue';
28
28
  export { default as PvSpinesContextCard } from './PvContext/PvSpinesContextCard/PvSpinesContextCard.vue';
29
29
  export { default as PvSpinesContextDrawer } from './PvContext/PvSpinesContextDrawer/PvSpinesContextDrawer.vue';
30
+ export { default as PvContextSurface } from './PvContext/PvContextSurface/PvContextSurface.vue';
31
+ export { default as PvSpinesEntityFields } from './PvContext/PvSpinesEntityFields/PvSpinesEntityFields.vue';
32
+ export { default as PvContextFeedback } from './PvContext/PvContextFeedback/PvContextFeedback.vue';
30
33
  export { default as PvTooltip } from './PvTooltip/PvTooltip.vue';
31
34
  export { default as PvTooltipV2 } from './PvTooltipV2/PvTooltipV2.vue';
32
35
  export { default as PvTabs } from './PvTabs/PvTabs.vue';
@@ -94,6 +97,8 @@ export { createPvFilterStore, providePvFilterStore, useOptionalPvFilterStore, us
94
97
  export type { PvRangeColor, PvRangeMode, PvRangeProps, PvRangeSize, PvRangeValue, } from './PvRange/types';
95
98
  export { ContextCardEnum } from './PvContext/types';
96
99
  export type { ContextCardItem, ContextCardVariants, ProviderContextCard, PayerContextCard, LineOfBusinessContextCard, PlanTypeContextCard, ProductContextCard, CSBAContextCard, StateContextCard, ServiceContextCard, ServiceCodeContextCard, } from './PvContext/types';
97
- export type { ContextFeedbackPayload, ContextLabelClickPayload } from './PvContext/config';
100
+ export type { ContextLabelClickPayload } from './PvContext/config';
101
+ export type { ShowContextPayload, ContextEntityField, ContextEntityFieldValue, ContextFeedbackPayload, PvContextSurfaceContext, } from './PvContext/config';
102
+ export { PvContextSurfaceKey } from './PvContext/config';
98
103
  export { RumContextKey, useRumContext, addRumAction, deferRumTask } from '../../functions/rum';
99
104
  export type { PvRumContext } from '../../functions/rum';