@turquoisehealth/pit-viper 2.217.1-dev.0 → 2.218.1

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 (39) hide show
  1. package/package.json +1 -1
  2. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  4. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  7. package/pv-components/dist/vue/ai/components/base/PvContext/PvContextFeedback.vue.d.ts +23 -0
  8. package/pv-components/dist/vue/ai/components/base/PvContext/PvContextFieldList.vue.d.ts +12 -0
  9. package/pv-components/dist/vue/ai/components/base/PvContext/PvSpinesContextCard/PvSpinesContextCard.vue.d.ts +33 -0
  10. package/pv-components/dist/vue/ai/components/base/PvContext/PvSpinesContextDrawer/PvSpinesContextDrawer.vue.d.ts +42 -0
  11. package/pv-components/dist/vue/ai/components/base/PvContext/config.d.ts +26 -0
  12. package/pv-components/dist/vue/ai/components/base/PvContext/types.d.ts +102 -0
  13. package/pv-components/dist/vue/ai/components/base/index.d.ts +5 -0
  14. package/pv-components/dist/vue/base/components/base/PvContext/PvContextFeedback.vue.d.ts +23 -0
  15. package/pv-components/dist/vue/base/components/base/PvContext/PvContextFieldList.vue.d.ts +12 -0
  16. package/pv-components/dist/vue/base/components/base/PvContext/PvSpinesContextCard/PvSpinesContextCard.vue.d.ts +33 -0
  17. package/pv-components/dist/vue/base/components/base/PvContext/PvSpinesContextDrawer/PvSpinesContextDrawer.vue.d.ts +42 -0
  18. package/pv-components/dist/vue/base/components/base/PvContext/config.d.ts +26 -0
  19. package/pv-components/dist/vue/base/components/base/PvContext/types.d.ts +102 -0
  20. package/pv-components/dist/vue/base/components/base/index.d.ts +5 -0
  21. package/pv-components/dist/vue/base/pv-components-base.mjs +1769 -1289
  22. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  23. package/pv-components/dist/vue/visualizations/components/base/PvContext/PvContextFeedback.vue.d.ts +23 -0
  24. package/pv-components/dist/vue/visualizations/components/base/PvContext/PvContextFieldList.vue.d.ts +12 -0
  25. package/pv-components/dist/vue/visualizations/components/base/PvContext/PvSpinesContextCard/PvSpinesContextCard.vue.d.ts +33 -0
  26. package/pv-components/dist/vue/visualizations/components/base/PvContext/PvSpinesContextDrawer/PvSpinesContextDrawer.vue.d.ts +42 -0
  27. package/pv-components/dist/vue/visualizations/components/base/PvContext/config.d.ts +26 -0
  28. package/pv-components/dist/vue/visualizations/components/base/PvContext/types.d.ts +102 -0
  29. package/pv-components/dist/vue/visualizations/components/base/index.d.ts +5 -0
  30. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/PvDataTable.vue.d.ts +1 -0
  31. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +1 -0
  32. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +7 -2
  33. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1060 -1016
  34. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  35. package/pv-components/dist/web/components/pv-menu/pv-menu.js +216 -212
  36. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1104 -1100
  37. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +163 -159
  38. package/pv-components/dist/web/pv-components.iife.js +19 -19
  39. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -0,0 +1,23 @@
1
+ import { ContextCardItem } from './types.ts';
2
+ import { ContextFeedbackPayload } from './config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvContextFeedbackProps {
5
+ item: ContextCardItem;
6
+ /**
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.
12
+ */
13
+ onSubmitFeedback?: (payload: ContextFeedbackPayload) => Promise<boolean>;
14
+ /** Message shown in place of the form after feedback is accepted. */
15
+ successMessage?: string;
16
+ /** Message shown when feedback submission fails. */
17
+ errorMessage?: string;
18
+ }
19
+ declare const _default: DefineComponent<PvContextFeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvContextFeedbackProps> & Readonly<{}>, {
20
+ successMessage: string;
21
+ errorMessage: string;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
23
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { ContextCardItem } from './types.ts';
2
+ import { ContextLabelClickPayload } from './config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvContextFieldListProps {
5
+ item: ContextCardItem;
6
+ }
7
+ declare const _default: DefineComponent<PvContextFieldListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
8
+ "label-click": (payload: ContextLabelClickPayload) => any;
9
+ }, string, PublicProps, Readonly<PvContextFieldListProps> & Readonly<{
10
+ "onLabel-click"?: ((payload: ContextLabelClickPayload) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { ContextCardItem } from '../types.ts';
2
+ import { ContextFeedbackPayload, ContextLabelClickPayload } from '../config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvSpinesContextCardProps {
5
+ /**
6
+ * Title text shown in the card header. For the Payer variant it is rendered as
7
+ * the company label. Defaults to the item's `title` when omitted.
8
+ */
9
+ header?: string;
10
+ /** The context item to display. Its `variant` discriminant determines which fields are rendered. */
11
+ item: ContextCardItem;
12
+ /** When true, hides the close button so the card cannot be dismissed. */
13
+ disableClose?: boolean;
14
+ /**
15
+ * Handles submitted feedback. Resolve `true` when the feedback was accepted
16
+ * (an inline success toast replaces the form) or `false` when it failed (an
17
+ * inline error toast appears and the form stays open); the submit button
18
+ * shows a spinner while the returned promise is pending.
19
+ */
20
+ onSubmitFeedback?: (payload: ContextFeedbackPayload) => Promise<boolean>;
21
+ /** Message shown in the inline toast after feedback is accepted. */
22
+ feedbackSuccessMessage?: string;
23
+ /** Message shown in the inline toast when feedback submission fails. */
24
+ feedbackErrorMessage?: string;
25
+ }
26
+ declare const _default: DefineComponent<PvSpinesContextCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
27
+ close: () => any;
28
+ "label-click": (payload: ContextLabelClickPayload) => any;
29
+ }, string, PublicProps, Readonly<PvSpinesContextCardProps> & Readonly<{
30
+ onClose?: (() => any) | undefined;
31
+ "onLabel-click"?: ((payload: ContextLabelClickPayload) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
33
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { ContextCardItem } from '../../PvContext/types.ts';
2
+ import { ContextFeedbackPayload, ContextLabelClickPayload } from '../../PvContext/config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvSpinesContextDrawerProps {
5
+ /**
6
+ * Title text shown in the drawer header. For the Payer variant it is rendered
7
+ * as the company label. Defaults to the item's `title` when omitted.
8
+ */
9
+ header?: string;
10
+ /** The context item to display. Its `variant` discriminant determines which fields are rendered. */
11
+ item: ContextCardItem;
12
+ /** When true, the drawer closes when the user clicks outside of it. */
13
+ closeOnClickOutside?: boolean;
14
+ /**
15
+ * Handles submitted feedback. Resolve `true` when the feedback was accepted
16
+ * (an inline success toast replaces the form) or `false` when it failed (an
17
+ * inline error toast appears and the form stays open); the submit button
18
+ * shows a spinner while the returned promise is pending.
19
+ */
20
+ onSubmitFeedback?: (payload: ContextFeedbackPayload) => Promise<boolean>;
21
+ /** Message shown in the inline toast after feedback is accepted. */
22
+ feedbackSuccessMessage?: string;
23
+ /** Message shown in the inline toast when feedback submission fails. */
24
+ feedbackErrorMessage?: string;
25
+ }
26
+ type __VLS_Props = PvSpinesContextDrawerProps;
27
+ type __VLS_PublicProps = {
28
+ modelValue: boolean;
29
+ } & __VLS_Props;
30
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
31
+ "update:modelValue": (value: boolean) => any;
32
+ } & {
33
+ close: () => any;
34
+ "label-click": (payload: ContextLabelClickPayload) => any;
35
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
37
+ onClose?: (() => any) | undefined;
38
+ "onLabel-click"?: ((payload: ContextLabelClickPayload) => any) | undefined;
39
+ }>, {
40
+ closeOnClickOutside: boolean;
41
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
42
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { ContextCardEnum, ContextCardFieldConfig, ContextCardItem } from './types';
2
+ export declare const CONTEXT_TAG_LABELS: Record<ContextCardEnum, string>;
3
+ /**
4
+ * Maps each variant to the ordered list of fields it displays. Adding a new
5
+ * variant requires adding both its interface (in types.ts) and an entry here,
6
+ * so the displayed fields stay tightly coupled to the variant.
7
+ */
8
+ export declare const CONTEXT_FIELD_CONFIG: ContextCardFieldConfig;
9
+ export interface ContextRow {
10
+ label: string;
11
+ value: string[];
12
+ clickable: boolean;
13
+ }
14
+ export declare const buildContextRows: (item: ContextCardItem) => ContextRow[];
15
+ export interface ContextLabelClickPayload {
16
+ x: number;
17
+ y: number;
18
+ field: {
19
+ label: string;
20
+ value: string[];
21
+ };
22
+ }
23
+ export interface ContextFeedbackPayload {
24
+ fields: string[];
25
+ comment: string;
26
+ }
@@ -0,0 +1,102 @@
1
+ export declare enum ContextCardEnum {
2
+ Provider = "provider",
3
+ Payer = "payer",
4
+ LineOfBusiness = "lineOfBusiness",
5
+ PlanType = "planType",
6
+ Product = "product",
7
+ CSBA = "CSBA",
8
+ State = "state",
9
+ Service = "service",
10
+ ServiceCode = "serviceCode"
11
+ }
12
+ export type ContextCardVariants = `${ContextCardEnum}`;
13
+ interface BaseContextCard {
14
+ title: string;
15
+ }
16
+ export interface ProviderContextCard extends BaseContextCard {
17
+ variant: ContextCardEnum.Provider;
18
+ npi_array: string[];
19
+ tin: string;
20
+ ccn: string;
21
+ provider_type: string;
22
+ state: string;
23
+ cbsa: string;
24
+ parent_organization: string;
25
+ licensed_beds: string;
26
+ designations: string[];
27
+ }
28
+ export interface PayerContextCard extends BaseContextCard {
29
+ variant: ContextCardEnum.Payer;
30
+ aliases: string[];
31
+ payer_type: string;
32
+ state: string;
33
+ lines_of_business: string[];
34
+ plan_types: string[];
35
+ }
36
+ export interface LineOfBusinessContextCard extends BaseContextCard {
37
+ variant: ContextCardEnum.LineOfBusiness;
38
+ payer: string;
39
+ broad_networks: string[];
40
+ narrow_networks: string[];
41
+ other_networks: string[];
42
+ }
43
+ export interface PlanTypeContextCard extends BaseContextCard {
44
+ variant: ContextCardEnum.PlanType;
45
+ payer: string;
46
+ lines_of_business: string[];
47
+ network_category: string;
48
+ products: string[];
49
+ }
50
+ export interface ProductContextCard extends BaseContextCard {
51
+ variant: ContextCardEnum.Product;
52
+ payer: string;
53
+ lines_of_business: string[];
54
+ plan_type: string;
55
+ network_category: string;
56
+ }
57
+ export interface CSBAContextCard extends BaseContextCard {
58
+ variant: ContextCardEnum.CSBA;
59
+ state: string;
60
+ counties: string[];
61
+ population: string;
62
+ provider_count: string;
63
+ }
64
+ export interface StateContextCard extends BaseContextCard {
65
+ variant: ContextCardEnum.State;
66
+ abbreviation: string;
67
+ population: string;
68
+ provider_count: string;
69
+ }
70
+ export interface ServiceContextCard extends BaseContextCard {
71
+ variant: ContextCardEnum.Service;
72
+ code: string;
73
+ description: string;
74
+ category: string;
75
+ }
76
+ export interface ServiceCodeContextCard extends BaseContextCard {
77
+ variant: ContextCardEnum.ServiceCode;
78
+ description: string;
79
+ category: string;
80
+ }
81
+ /**
82
+ * Discriminated union of every context card shape. The `variant` field is the
83
+ * discriminant: narrowing on it exposes only the fields valid for that variant.
84
+ */
85
+ export type ContextCardItem = ProviderContextCard | PayerContextCard | LineOfBusinessContextCard | PlanTypeContextCard | ProductContextCard | CSBAContextCard | StateContextCard | ServiceContextCard | ServiceCodeContextCard;
86
+ /** A single display row: the human-readable label and the item key it reads from. */
87
+ export interface ContextCardField<T extends ContextCardItem = ContextCardItem> {
88
+ label: string;
89
+ key: Exclude<keyof T, "variant" | "title">;
90
+ clickable?: boolean;
91
+ }
92
+ /**
93
+ * Maps each variant to the ordered list of fields it displays. Adding a new
94
+ * variant requires adding both its interface (above) and an entry here, so the
95
+ * displayed fields stay tightly coupled to the variant.
96
+ */
97
+ export type ContextCardFieldConfig = {
98
+ [K in ContextCardEnum]: ContextCardField<Extract<ContextCardItem, {
99
+ variant: K;
100
+ }>>[];
101
+ };
102
+ export {};
@@ -25,6 +25,8 @@ export { default as PvSearchInput } from './PvSearchInput/PvSearchInput.vue';
25
25
  export { default as PvDatePicker } from './PvDatePicker/PvDatePicker.vue';
26
26
  export { default as PvDateTime } from './PvDateTime/PvDateTime.vue';
27
27
  export { default as PvDrawer } from './PvDrawer/PvDrawer.vue';
28
+ export { default as PvSpinesContextCard } from './PvContext/PvSpinesContextCard/PvSpinesContextCard.vue';
29
+ export { default as PvSpinesContextDrawer } from './PvContext/PvSpinesContextDrawer/PvSpinesContextDrawer.vue';
28
30
  export { default as PvTooltip } from './PvTooltip/PvTooltip.vue';
29
31
  export { default as PvTooltipV2 } from './PvTooltipV2/PvTooltipV2.vue';
30
32
  export { default as PvTabs } from './PvTabs/PvTabs.vue';
@@ -88,5 +90,8 @@ export type { PvMenuChildrenDisplay } from './PvMenu/types';
88
90
  export type { PvFilterPanelAggregateFieldHierarchy, PvFilterPanelColDef, PvFilterPanelColDefContext, PvFilterPanelControlChange, PvFilterPanelFilterChangeEvent, PvFilterPanelFilterChangeReason, PvFilterPanelFilterGroup, PvFilterPanelFilterModel, PvFilterPanelFilterModelType, PvFilterPanelFilterType, PvFilterPanelOption, PvFilterPanelOptionsHandler, PvFilterPanelOptionsHandlerParams, PvFilterPanelOptionsHandlerReason, PvFilterPanelOptionsResponse, PvFilterPanelOptionRawValue, PvFilterPanelProps, PvFilterPanelRangeConfig, PvFilterPanelResultCount, PvFilterPanelSuggestion, PvFilterStore, PvFilterStoreFetchOptionsParams, } from './PvFilterPanel/types';
89
91
  export { createPvFilterStore, providePvFilterStore, useOptionalPvFilterStore, usePvFilterStore, } from './PvFilterPanel/usePvFilterStore';
90
92
  export type { PvRangeColor, PvRangeMode, PvRangeProps, PvRangeSize, PvRangeValue, } from './PvRange/types';
93
+ export { ContextCardEnum } from './PvContext/types';
94
+ export type { ContextCardItem, ContextCardVariants, ProviderContextCard, PayerContextCard, LineOfBusinessContextCard, PlanTypeContextCard, ProductContextCard, CSBAContextCard, StateContextCard, ServiceContextCard, ServiceCodeContextCard, } from './PvContext/types';
95
+ export type { ContextFeedbackPayload, ContextLabelClickPayload } from './PvContext/config';
91
96
  export { RumContextKey, useRumContext, addRumAction, deferRumTask } from '../../functions/rum';
92
97
  export type { PvRumContext } from '../../functions/rum';
@@ -0,0 +1,23 @@
1
+ import { ContextCardItem } from './types.ts';
2
+ import { ContextFeedbackPayload } from './config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvContextFeedbackProps {
5
+ item: ContextCardItem;
6
+ /**
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.
12
+ */
13
+ onSubmitFeedback?: (payload: ContextFeedbackPayload) => Promise<boolean>;
14
+ /** Message shown in place of the form after feedback is accepted. */
15
+ successMessage?: string;
16
+ /** Message shown when feedback submission fails. */
17
+ errorMessage?: string;
18
+ }
19
+ declare const _default: DefineComponent<PvContextFeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvContextFeedbackProps> & Readonly<{}>, {
20
+ successMessage: string;
21
+ errorMessage: string;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
23
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { ContextCardItem } from './types.ts';
2
+ import { ContextLabelClickPayload } from './config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvContextFieldListProps {
5
+ item: ContextCardItem;
6
+ }
7
+ declare const _default: DefineComponent<PvContextFieldListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
8
+ "label-click": (payload: ContextLabelClickPayload) => any;
9
+ }, string, PublicProps, Readonly<PvContextFieldListProps> & Readonly<{
10
+ "onLabel-click"?: ((payload: ContextLabelClickPayload) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { ContextCardItem } from '../types.ts';
2
+ import { ContextFeedbackPayload, ContextLabelClickPayload } from '../config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvSpinesContextCardProps {
5
+ /**
6
+ * Title text shown in the card header. For the Payer variant it is rendered as
7
+ * the company label. Defaults to the item's `title` when omitted.
8
+ */
9
+ header?: string;
10
+ /** The context item to display. Its `variant` discriminant determines which fields are rendered. */
11
+ item: ContextCardItem;
12
+ /** When true, hides the close button so the card cannot be dismissed. */
13
+ disableClose?: boolean;
14
+ /**
15
+ * Handles submitted feedback. Resolve `true` when the feedback was accepted
16
+ * (an inline success toast replaces the form) or `false` when it failed (an
17
+ * inline error toast appears and the form stays open); the submit button
18
+ * shows a spinner while the returned promise is pending.
19
+ */
20
+ onSubmitFeedback?: (payload: ContextFeedbackPayload) => Promise<boolean>;
21
+ /** Message shown in the inline toast after feedback is accepted. */
22
+ feedbackSuccessMessage?: string;
23
+ /** Message shown in the inline toast when feedback submission fails. */
24
+ feedbackErrorMessage?: string;
25
+ }
26
+ declare const _default: DefineComponent<PvSpinesContextCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
27
+ close: () => any;
28
+ "label-click": (payload: ContextLabelClickPayload) => any;
29
+ }, string, PublicProps, Readonly<PvSpinesContextCardProps> & Readonly<{
30
+ onClose?: (() => any) | undefined;
31
+ "onLabel-click"?: ((payload: ContextLabelClickPayload) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
33
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { ContextCardItem } from '../../PvContext/types.ts';
2
+ import { ContextFeedbackPayload, ContextLabelClickPayload } from '../../PvContext/config.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvSpinesContextDrawerProps {
5
+ /**
6
+ * Title text shown in the drawer header. For the Payer variant it is rendered
7
+ * as the company label. Defaults to the item's `title` when omitted.
8
+ */
9
+ header?: string;
10
+ /** The context item to display. Its `variant` discriminant determines which fields are rendered. */
11
+ item: ContextCardItem;
12
+ /** When true, the drawer closes when the user clicks outside of it. */
13
+ closeOnClickOutside?: boolean;
14
+ /**
15
+ * Handles submitted feedback. Resolve `true` when the feedback was accepted
16
+ * (an inline success toast replaces the form) or `false` when it failed (an
17
+ * inline error toast appears and the form stays open); the submit button
18
+ * shows a spinner while the returned promise is pending.
19
+ */
20
+ onSubmitFeedback?: (payload: ContextFeedbackPayload) => Promise<boolean>;
21
+ /** Message shown in the inline toast after feedback is accepted. */
22
+ feedbackSuccessMessage?: string;
23
+ /** Message shown in the inline toast when feedback submission fails. */
24
+ feedbackErrorMessage?: string;
25
+ }
26
+ type __VLS_Props = PvSpinesContextDrawerProps;
27
+ type __VLS_PublicProps = {
28
+ modelValue: boolean;
29
+ } & __VLS_Props;
30
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
31
+ "update:modelValue": (value: boolean) => any;
32
+ } & {
33
+ close: () => any;
34
+ "label-click": (payload: ContextLabelClickPayload) => any;
35
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ onClose?: (() => any) | undefined;
37
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
38
+ "onLabel-click"?: ((payload: ContextLabelClickPayload) => any) | undefined;
39
+ }>, {
40
+ closeOnClickOutside: boolean;
41
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
42
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { ContextCardEnum, ContextCardFieldConfig, ContextCardItem } from './types';
2
+ export declare const CONTEXT_TAG_LABELS: Record<ContextCardEnum, string>;
3
+ /**
4
+ * Maps each variant to the ordered list of fields it displays. Adding a new
5
+ * variant requires adding both its interface (in types.ts) and an entry here,
6
+ * so the displayed fields stay tightly coupled to the variant.
7
+ */
8
+ export declare const CONTEXT_FIELD_CONFIG: ContextCardFieldConfig;
9
+ export interface ContextRow {
10
+ label: string;
11
+ value: string[];
12
+ clickable: boolean;
13
+ }
14
+ export declare const buildContextRows: (item: ContextCardItem) => ContextRow[];
15
+ export interface ContextLabelClickPayload {
16
+ x: number;
17
+ y: number;
18
+ field: {
19
+ label: string;
20
+ value: string[];
21
+ };
22
+ }
23
+ export interface ContextFeedbackPayload {
24
+ fields: string[];
25
+ comment: string;
26
+ }
@@ -0,0 +1,102 @@
1
+ export declare enum ContextCardEnum {
2
+ Provider = "provider",
3
+ Payer = "payer",
4
+ LineOfBusiness = "lineOfBusiness",
5
+ PlanType = "planType",
6
+ Product = "product",
7
+ CSBA = "CSBA",
8
+ State = "state",
9
+ Service = "service",
10
+ ServiceCode = "serviceCode"
11
+ }
12
+ export type ContextCardVariants = `${ContextCardEnum}`;
13
+ interface BaseContextCard {
14
+ title: string;
15
+ }
16
+ export interface ProviderContextCard extends BaseContextCard {
17
+ variant: ContextCardEnum.Provider;
18
+ npi_array: string[];
19
+ tin: string;
20
+ ccn: string;
21
+ provider_type: string;
22
+ state: string;
23
+ cbsa: string;
24
+ parent_organization: string;
25
+ licensed_beds: string;
26
+ designations: string[];
27
+ }
28
+ export interface PayerContextCard extends BaseContextCard {
29
+ variant: ContextCardEnum.Payer;
30
+ aliases: string[];
31
+ payer_type: string;
32
+ state: string;
33
+ lines_of_business: string[];
34
+ plan_types: string[];
35
+ }
36
+ export interface LineOfBusinessContextCard extends BaseContextCard {
37
+ variant: ContextCardEnum.LineOfBusiness;
38
+ payer: string;
39
+ broad_networks: string[];
40
+ narrow_networks: string[];
41
+ other_networks: string[];
42
+ }
43
+ export interface PlanTypeContextCard extends BaseContextCard {
44
+ variant: ContextCardEnum.PlanType;
45
+ payer: string;
46
+ lines_of_business: string[];
47
+ network_category: string;
48
+ products: string[];
49
+ }
50
+ export interface ProductContextCard extends BaseContextCard {
51
+ variant: ContextCardEnum.Product;
52
+ payer: string;
53
+ lines_of_business: string[];
54
+ plan_type: string;
55
+ network_category: string;
56
+ }
57
+ export interface CSBAContextCard extends BaseContextCard {
58
+ variant: ContextCardEnum.CSBA;
59
+ state: string;
60
+ counties: string[];
61
+ population: string;
62
+ provider_count: string;
63
+ }
64
+ export interface StateContextCard extends BaseContextCard {
65
+ variant: ContextCardEnum.State;
66
+ abbreviation: string;
67
+ population: string;
68
+ provider_count: string;
69
+ }
70
+ export interface ServiceContextCard extends BaseContextCard {
71
+ variant: ContextCardEnum.Service;
72
+ code: string;
73
+ description: string;
74
+ category: string;
75
+ }
76
+ export interface ServiceCodeContextCard extends BaseContextCard {
77
+ variant: ContextCardEnum.ServiceCode;
78
+ description: string;
79
+ category: string;
80
+ }
81
+ /**
82
+ * Discriminated union of every context card shape. The `variant` field is the
83
+ * discriminant: narrowing on it exposes only the fields valid for that variant.
84
+ */
85
+ export type ContextCardItem = ProviderContextCard | PayerContextCard | LineOfBusinessContextCard | PlanTypeContextCard | ProductContextCard | CSBAContextCard | StateContextCard | ServiceContextCard | ServiceCodeContextCard;
86
+ /** A single display row: the human-readable label and the item key it reads from. */
87
+ export interface ContextCardField<T extends ContextCardItem = ContextCardItem> {
88
+ label: string;
89
+ key: Exclude<keyof T, "variant" | "title">;
90
+ clickable?: boolean;
91
+ }
92
+ /**
93
+ * Maps each variant to the ordered list of fields it displays. Adding a new
94
+ * variant requires adding both its interface (above) and an entry here, so the
95
+ * displayed fields stay tightly coupled to the variant.
96
+ */
97
+ export type ContextCardFieldConfig = {
98
+ [K in ContextCardEnum]: ContextCardField<Extract<ContextCardItem, {
99
+ variant: K;
100
+ }>>[];
101
+ };
102
+ export {};
@@ -25,6 +25,8 @@ export { default as PvSearchInput } from './PvSearchInput/PvSearchInput.vue';
25
25
  export { default as PvDatePicker } from './PvDatePicker/PvDatePicker.vue';
26
26
  export { default as PvDateTime } from './PvDateTime/PvDateTime.vue';
27
27
  export { default as PvDrawer } from './PvDrawer/PvDrawer.vue';
28
+ export { default as PvSpinesContextCard } from './PvContext/PvSpinesContextCard/PvSpinesContextCard.vue';
29
+ export { default as PvSpinesContextDrawer } from './PvContext/PvSpinesContextDrawer/PvSpinesContextDrawer.vue';
28
30
  export { default as PvTooltip } from './PvTooltip/PvTooltip.vue';
29
31
  export { default as PvTooltipV2 } from './PvTooltipV2/PvTooltipV2.vue';
30
32
  export { default as PvTabs } from './PvTabs/PvTabs.vue';
@@ -88,5 +90,8 @@ export type { PvMenuChildrenDisplay } from './PvMenu/types';
88
90
  export type { PvFilterPanelAggregateFieldHierarchy, PvFilterPanelColDef, PvFilterPanelColDefContext, PvFilterPanelControlChange, PvFilterPanelFilterChangeEvent, PvFilterPanelFilterChangeReason, PvFilterPanelFilterGroup, PvFilterPanelFilterModel, PvFilterPanelFilterModelType, PvFilterPanelFilterType, PvFilterPanelOption, PvFilterPanelOptionsHandler, PvFilterPanelOptionsHandlerParams, PvFilterPanelOptionsHandlerReason, PvFilterPanelOptionsResponse, PvFilterPanelOptionRawValue, PvFilterPanelProps, PvFilterPanelRangeConfig, PvFilterPanelResultCount, PvFilterPanelSuggestion, PvFilterStore, PvFilterStoreFetchOptionsParams, } from './PvFilterPanel/types';
89
91
  export { createPvFilterStore, providePvFilterStore, useOptionalPvFilterStore, usePvFilterStore, } from './PvFilterPanel/usePvFilterStore';
90
92
  export type { PvRangeColor, PvRangeMode, PvRangeProps, PvRangeSize, PvRangeValue, } from './PvRange/types';
93
+ export { ContextCardEnum } from './PvContext/types';
94
+ export type { ContextCardItem, ContextCardVariants, ProviderContextCard, PayerContextCard, LineOfBusinessContextCard, PlanTypeContextCard, ProductContextCard, CSBAContextCard, StateContextCard, ServiceContextCard, ServiceCodeContextCard, } from './PvContext/types';
95
+ export type { ContextFeedbackPayload, ContextLabelClickPayload } from './PvContext/config';
91
96
  export { RumContextKey, useRumContext, addRumAction, deferRumTask } from '../../functions/rum';
92
97
  export type { PvRumContext } from '../../functions/rum';