@turquoisehealth/pit-viper 2.197.3-dev.1 → 2.198.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 (30) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +2 -0
  2. package/_site/assets/css/pit-viper-consumer.css +2 -0
  3. package/_site/assets/css/pit-viper-v2-scoped.css +2 -0
  4. package/_site/assets/css/pit-viper-v2.css +2 -0
  5. package/_site/assets/css/pit-viper.css +2 -0
  6. package/package.json +1 -1
  7. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  8. package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +1 -1
  9. package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +5 -5
  10. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +2 -2
  11. package/pv-components/dist/vue/visualizations/components/base/PvInsightCard/PvInsightCard.vue.d.ts +1 -1
  12. package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +7 -7
  13. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +2 -2
  14. package/pv-components/dist/vue/visualizations/components/base/PvRange/PvRange.vue.d.ts +2 -2
  15. package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -3
  16. package/pv-components/dist/vue/visualizations/components/charts/PvChartWidget/PvChartWidget.vue.d.ts +180 -0
  17. package/pv-components/dist/vue/visualizations/components/charts/PvChartWidget/constants.d.ts +4 -0
  18. package/pv-components/dist/vue/visualizations/components/charts/PvChartWidget/types.d.ts +31 -0
  19. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +7 -4
  20. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidget.vue.d.ts +43 -0
  21. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidgetTable.vue.d.ts +4 -0
  22. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/constants.d.ts +9 -0
  23. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/helpers.d.ts +63 -0
  24. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/types.d.ts +130 -0
  25. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/usePvDataWidgetData.d.ts +40 -0
  26. package/pv-components/dist/vue/visualizations/components/charts/PvMapChart/PvMapChart.vue.d.ts +3 -8
  27. package/pv-components/dist/vue/visualizations/components/charts/widgetOptions.d.ts +58 -0
  28. package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +6 -0
  29. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +11524 -10742
  30. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
@@ -32,8 +32,8 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
32
32
  "click-outside": () => any;
33
33
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
34
34
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
35
- "onClick-outside"?: (() => any) | undefined;
36
35
  "onUpdate:searchInput"?: ((value: string) => any) | undefined;
36
+ "onClick-outside"?: (() => any) | undefined;
37
37
  }>, {
38
38
  closeOnClickOutside: boolean;
39
39
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -16,21 +16,21 @@ export interface PvDropdownProps {
16
16
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps, {
17
17
  closeDropdown: () => void;
18
18
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
19
- "list-order-updated": (value: string[]) => any;
20
19
  "dropdown-open": () => any;
21
20
  "dropdown-closed": () => any;
21
+ "list-order-updated": (value: string[]) => any;
22
22
  }, string, PublicProps, Readonly<PvDropdownProps> & Readonly<{
23
- "onList-order-updated"?: ((value: string[]) => any) | undefined;
24
23
  "onDropdown-open"?: (() => any) | undefined;
25
24
  "onDropdown-closed"?: (() => any) | undefined;
25
+ "onList-order-updated"?: ((value: string[]) => any) | undefined;
26
26
  }>, {
27
27
  isLoading: boolean;
28
- alignment: "top" | "right" | "top right";
29
- isList: boolean;
30
- defaultOpen: boolean;
31
28
  disabled: boolean;
32
29
  useTeleport: boolean;
33
30
  teleportLocation: string;
31
+ defaultOpen: boolean;
32
+ alignment: "top" | "right" | "top right";
33
+ isList: boolean;
34
34
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
35
35
  triggerRef: HTMLButtonElement;
36
36
  popoverRef: ({
@@ -16,25 +16,25 @@ declare function __VLS_template(): {
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
18
  cancel: () => any;
19
+ apply: (filterModel: PvFilterPanelFilterModel) => any;
19
20
  "load-more": (field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string | undefined) => any;
20
21
  "focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
21
22
  "handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
22
23
  "open-change": (field: string, open: boolean, colDef: PvFilterPanelColDef) => any;
23
24
  "filter-change": (event: PvFilterPanelFilterChangeEvent) => any;
24
25
  "search-change": (field: string, query: string, colDef: PvFilterPanelColDef) => any;
25
- apply: (filterModel: PvFilterPanelFilterModel) => any;
26
26
  "suggestion-click": (suggestion: PvFilterPanelSuggestion) => any;
27
27
  "update:filterModel": (value: PvFilterPanelFilterModel) => any;
28
28
  "update:isCollapsed": (value: boolean) => any;
29
29
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
30
30
  onCancel?: (() => any) | undefined;
31
+ onApply?: ((filterModel: PvFilterPanelFilterModel) => any) | undefined;
31
32
  "onLoad-more"?: ((field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string | undefined) => any) | undefined;
32
33
  "onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
33
34
  "onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
34
35
  "onOpen-change"?: ((field: string, open: boolean, colDef: PvFilterPanelColDef) => any) | undefined;
35
36
  "onFilter-change"?: ((event: PvFilterPanelFilterChangeEvent) => any) | undefined;
36
37
  "onSearch-change"?: ((field: string, query: string, colDef: PvFilterPanelColDef) => any) | undefined;
37
- onApply?: ((filterModel: PvFilterPanelFilterModel) => any) | undefined;
38
38
  "onSuggestion-click"?: ((suggestion: PvFilterPanelSuggestion) => any) | undefined;
39
39
  "onUpdate:filterModel"?: ((value: PvFilterPanelFilterModel) => any) | undefined;
40
40
  "onUpdate:isCollapsed"?: ((value: boolean) => any) | undefined;
@@ -22,8 +22,8 @@ declare const _default: DefineComponent<PvInsightCardProps, {}, {}, {}, {}, Comp
22
22
  onClick?: (() => any) | undefined;
23
23
  "onIcon-click"?: (() => any) | undefined;
24
24
  }>, {
25
- icon: string;
26
25
  interactive: boolean;
26
+ icon: string;
27
27
  showButton: boolean;
28
28
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
29
29
  export default _default;
@@ -5,13 +5,13 @@ import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
5
5
  import { PvPopoverV2Props } from '../PvPopoverV2/types';
6
6
  declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
- readonly "onDropdown-open"?: (() => any) | undefined;
9
- readonly "onDropdown-closed"?: (() => any) | undefined;
10
8
  readonly "onUpdate:modelValue"?: ((value: MenuOption<T>[]) => any) | undefined;
11
- readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
12
9
  readonly "onSee-more"?: ((payload: SeeMoreEvent) => any) | undefined;
10
+ readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
11
+ readonly "onDropdown-open"?: (() => any) | undefined;
12
+ readonly "onDropdown-closed"?: (() => any) | undefined;
13
13
  readonly "onUpdate:selectionState"?: ((value: MultiSelectState) => any) | undefined;
14
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDropdown-open" | "onDropdown-closed" | "onUpdate:modelValue" | "onUpdate:searchInput" | "onSee-more" | "onUpdate:selectionState"> & ({
14
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onSee-more" | "onUpdate:searchInput" | "onDropdown-open" | "onDropdown-closed" | "onUpdate:selectionState"> & ({
15
15
  modelValue?: MenuOption<T>[];
16
16
  selectionState?: MultiSelectState;
17
17
  searchInput?: string;
@@ -55,7 +55,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
55
55
  disableClearIcon: boolean;
56
56
  disableSearchInput: boolean;
57
57
  readOnly: boolean;
58
- optionsVariant: "icon" | "checkbox" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
58
+ optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
59
59
  options: MenuOption<T>[];
60
60
  menuActionsVariant: MenuActionsVariant | null;
61
61
  highlightSearchText: boolean;
@@ -98,7 +98,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
98
98
  disableClearIcon: boolean;
99
99
  disableSearchInput: boolean;
100
100
  readOnly: boolean;
101
- optionsVariant: "icon" | "checkbox" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
101
+ optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
102
102
  options: MenuOption<T>[];
103
103
  menuActionsVariant: MenuActionsVariant | null;
104
104
  highlightSearchText: boolean;
@@ -141,7 +141,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
141
141
  disableClearIcon: boolean;
142
142
  disableSearchInput: boolean;
143
143
  readOnly: boolean;
144
- optionsVariant: "icon" | "checkbox" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
144
+ optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
145
145
  options: MenuOption<T>[];
146
146
  menuActionsVariant: MenuActionsVariant | null;
147
147
  highlightSearchText: boolean;
@@ -25,15 +25,15 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
25
25
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
26
  }>, {
27
27
  position: PvAlignmentPositions;
28
- useTeleport: boolean;
29
- teleportLocation: string;
30
28
  delay: number;
31
29
  disableAutoPlacement: boolean;
32
30
  positioningStrategy: Strategy;
33
31
  showOnHover: boolean;
34
32
  disableInteractive: boolean;
33
+ useTeleport: boolean;
35
34
  disableClickOutsideToClose: boolean;
36
35
  zIndex: number;
36
+ teleportLocation: string;
37
37
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
38
38
  triggerWrapper: HTMLDivElement;
39
39
  floating: HTMLDivElement;
@@ -20,16 +20,16 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
20
20
  disabled: boolean;
21
21
  mode: PvRangeMode;
22
22
  showClear: boolean;
23
+ dataType: string | null;
24
+ valueDecimals: number | null;
23
25
  step: number | null;
24
26
  allowMinMaxEqual: boolean;
25
27
  alwaysEditMin: boolean;
26
- dataType: string | null;
27
28
  maxLabel: string;
28
29
  minLabel: string;
29
30
  showBoundLabels: boolean;
30
31
  showInputs: boolean;
31
32
  showValueTooltips: boolean;
32
- valueDecimals: number | null;
33
33
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
34
34
  sliderRef: HTMLDivElement;
35
35
  }, any>;
@@ -47,11 +47,11 @@ export interface PvSelectButtonProps<T = unknown> {
47
47
  }
48
48
  declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
49
49
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
50
- readonly "onDropdown-open"?: (() => any) | undefined;
51
- readonly "onDropdown-closed"?: (() => any) | undefined;
52
50
  readonly "onUpdate:modelValue"?: ((value: MenuOption<unknown>) => any) | undefined;
53
51
  readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
54
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDropdown-open" | "onDropdown-closed" | "onUpdate:modelValue" | "onUpdate:searchInput"> & ({
52
+ readonly "onDropdown-open"?: (() => any) | undefined;
53
+ readonly "onDropdown-closed"?: (() => any) | undefined;
54
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:searchInput" | "onDropdown-open" | "onDropdown-closed"> & ({
55
55
  modelValue?: MenuOption;
56
56
  searchInput?: string;
57
57
  } & PvSelectButtonProps<T>) & Partial<{}>> & PublicProps;
@@ -0,0 +1,180 @@
1
+ import { AgSeriesVisibilityChange } from 'ag-charts-enterprise';
2
+ import { PvChartWidgetProps, PvChartWidgetMiniChartMode } from './types';
3
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ExtractPropTypes, PropType, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
4
+ import { PvChartProps } from '../PvChart/types';
5
+ import { AgChartOptions, AgChartInstance } from 'ag-charts-types';
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ header?(_: {
10
+ isMiniChart: false;
11
+ effectiveContainerWidth: number;
12
+ }): any;
13
+ footer?(_: {
14
+ isMiniChart: boolean;
15
+ effectiveContainerWidth: number;
16
+ }): any;
17
+ };
18
+ refs: {
19
+ widgetRef: HTMLDivElement;
20
+ chartAreaRef: HTMLDivElement;
21
+ pvChartRef: CreateComponentPublicInstanceWithMixins<Readonly< PvChartProps> & Readonly<{
22
+ "onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange<unknown>) => any) | undefined;
23
+ }>, {
24
+ getChartImageDataURL: (dimensions?: {
25
+ width?: number;
26
+ height?: number;
27
+ }) => Promise<string> | undefined;
28
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
29
+ "series-visibility-change": (event: AgSeriesVisibilityChange<unknown>) => any;
30
+ }, PublicProps, {
31
+ seriesFormatType: "none" | "currency" | "percent";
32
+ isLoading: boolean;
33
+ enableFocusView: boolean;
34
+ minHeight: number;
35
+ translateNullValues: boolean;
36
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
37
+ chartRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
38
+ options: {
39
+ type: PropType<AgChartOptions>;
40
+ default: () => AgChartOptions;
41
+ };
42
+ }>> & Readonly<{}>, {
43
+ chart: AgChartInstance | undefined;
44
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
45
+ options: AgChartOptions;
46
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
47
+ P: {};
48
+ B: {};
49
+ D: {};
50
+ C: {};
51
+ M: {};
52
+ Defaults: {};
53
+ }, Readonly< ExtractPropTypes<{
54
+ options: {
55
+ type: PropType<AgChartOptions>;
56
+ default: () => AgChartOptions;
57
+ };
58
+ }>> & Readonly<{}>, {
59
+ chart: AgChartInstance | undefined;
60
+ }, {}, {}, {}, {
61
+ options: AgChartOptions;
62
+ }> | null;
63
+ }, HTMLDivElement, ComponentProvideOptions, {
64
+ P: {};
65
+ B: {};
66
+ D: {};
67
+ C: {};
68
+ M: {};
69
+ Defaults: {};
70
+ }, Readonly< PvChartProps> & Readonly<{
71
+ "onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange<unknown>) => any) | undefined;
72
+ }>, {
73
+ getChartImageDataURL: (dimensions?: {
74
+ width?: number;
75
+ height?: number;
76
+ }) => Promise<string> | undefined;
77
+ }, {}, {}, {}, {
78
+ seriesFormatType: "none" | "currency" | "percent";
79
+ isLoading: boolean;
80
+ enableFocusView: boolean;
81
+ minHeight: number;
82
+ translateNullValues: boolean;
83
+ }> | null;
84
+ };
85
+ rootEl: HTMLDivElement;
86
+ };
87
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
88
+ declare const __VLS_component: DefineComponent<PvChartWidgetProps, {
89
+ isMiniChart: ComputedRef<boolean>;
90
+ effectiveContainerWidth: ComputedRef<number>;
91
+ getChartImageDataURL: (dimensions?: {
92
+ width?: number;
93
+ height?: number;
94
+ }) => Promise<string> | undefined;
95
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
96
+ "series-visibility-change": (event: AgSeriesVisibilityChange<unknown>) => any;
97
+ }, string, PublicProps, Readonly<PvChartWidgetProps> & Readonly<{
98
+ "onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange<unknown>) => any) | undefined;
99
+ }>, {
100
+ seriesFormatType: "none" | "currency" | "percent";
101
+ isLoading: boolean;
102
+ enableFocusView: boolean;
103
+ translateNullValues: boolean;
104
+ enableChartScrolling: boolean;
105
+ miniChart: PvChartWidgetMiniChartMode;
106
+ showAxes: boolean;
107
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
108
+ widgetRef: HTMLDivElement;
109
+ chartAreaRef: HTMLDivElement;
110
+ pvChartRef: CreateComponentPublicInstanceWithMixins<Readonly< PvChartProps> & Readonly<{
111
+ "onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange<unknown>) => any) | undefined;
112
+ }>, {
113
+ getChartImageDataURL: (dimensions?: {
114
+ width?: number;
115
+ height?: number;
116
+ }) => Promise<string> | undefined;
117
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
118
+ "series-visibility-change": (event: AgSeriesVisibilityChange<unknown>) => any;
119
+ }, PublicProps, {
120
+ seriesFormatType: "none" | "currency" | "percent";
121
+ isLoading: boolean;
122
+ enableFocusView: boolean;
123
+ minHeight: number;
124
+ translateNullValues: boolean;
125
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
126
+ chartRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
127
+ options: {
128
+ type: PropType<AgChartOptions>;
129
+ default: () => AgChartOptions;
130
+ };
131
+ }>> & Readonly<{}>, {
132
+ chart: AgChartInstance | undefined;
133
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
134
+ options: AgChartOptions;
135
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
136
+ P: {};
137
+ B: {};
138
+ D: {};
139
+ C: {};
140
+ M: {};
141
+ Defaults: {};
142
+ }, Readonly< ExtractPropTypes<{
143
+ options: {
144
+ type: PropType<AgChartOptions>;
145
+ default: () => AgChartOptions;
146
+ };
147
+ }>> & Readonly<{}>, {
148
+ chart: AgChartInstance | undefined;
149
+ }, {}, {}, {}, {
150
+ options: AgChartOptions;
151
+ }> | null;
152
+ }, HTMLDivElement, ComponentProvideOptions, {
153
+ P: {};
154
+ B: {};
155
+ D: {};
156
+ C: {};
157
+ M: {};
158
+ Defaults: {};
159
+ }, Readonly< PvChartProps> & Readonly<{
160
+ "onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange<unknown>) => any) | undefined;
161
+ }>, {
162
+ getChartImageDataURL: (dimensions?: {
163
+ width?: number;
164
+ height?: number;
165
+ }) => Promise<string> | undefined;
166
+ }, {}, {}, {}, {
167
+ seriesFormatType: "none" | "currency" | "percent";
168
+ isLoading: boolean;
169
+ enableFocusView: boolean;
170
+ minHeight: number;
171
+ translateNullValues: boolean;
172
+ }> | null;
173
+ }, HTMLDivElement>;
174
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
175
+ export default _default;
176
+ type __VLS_WithTemplateSlots<T, S> = T & {
177
+ new (): {
178
+ $slots: S;
179
+ };
180
+ };
@@ -0,0 +1,4 @@
1
+ export declare const DEFAULT_CONTAINER_WIDTH = 800;
2
+ export declare const MINI_AUTO_BREAKPOINT_PX = 400;
3
+ export declare const MINI_FORCED_BREAKPOINT_PX = 250;
4
+ export declare const CHART_MIN_HEIGHT_PX = 200;
@@ -0,0 +1,31 @@
1
+ import { PvChartProps } from '../PvChart/types';
2
+ export type PvChartWidgetMiniChartMode = "disabled" | "auto" | "always";
3
+ export interface PvChartWidgetProps extends Omit<PvChartProps, "minHeight"> {
4
+ /** Maximum number of data rows rendered from `options.data`. Set to `0` to render no rows. */
5
+ dataLimit?: number;
6
+ /** When true, wraps large charts in a native Pit Viper-styled scroll container. */
7
+ enableChartScrolling?: boolean;
8
+ /** Widget height. Numbers are treated as pixel values; strings are passed through as CSS values. */
9
+ height?: number | string;
10
+ /** Maximum widget height. Numbers are treated as pixel values; strings are passed through as CSS values. */
11
+ maxHeight?: number | string;
12
+ /** Maximum widget width. Numbers are treated as pixel values; strings are passed through as CSS values. */
13
+ maxWidth?: number | string;
14
+ /**
15
+ * Controls mini-chart mode based on the widget's observed container width.
16
+ * - `"disabled"` (default): mini mode never engages from width alone.
17
+ * - `"auto"`: mini mode engages when container width < 400px.
18
+ * - `"always"`: mini mode is always on.
19
+ *
20
+ * Regardless of this prop, mini mode is also forced when container width < 250px.
21
+ */
22
+ miniChart?: PvChartWidgetMiniChartMode;
23
+ /** When false, hides cartesian axis labels, ticks, lines, titles, and grid lines. */
24
+ showAxes?: boolean;
25
+ /** Widget width. Numbers are treated as pixel values; strings are passed through as CSS values. */
26
+ width?: number | string;
27
+ }
28
+ export interface PvChartWidgetSlotProps {
29
+ isMiniChart: boolean;
30
+ effectiveContainerWidth: number;
31
+ }
@@ -1,6 +1,6 @@
1
1
  import { AdvancedFilterModel, ColumnMovedEvent, ColumnResizedEvent, ColumnRowGroupChangedEvent, FilterChangedEvent, FilterModel } from 'ag-grid-enterprise';
2
2
  import { FirstDataRenderedEvent, GridReadyEvent, RefreshServerSideParams, SortChangedEvent } from 'ag-grid-community';
3
- import { ChartStateChangedEvent, FocusUpdateEvent, FilterValueResponseOption } from '../../tables/PvDataTable/types';
3
+ import { ChartStateChangedEvent, FilterValueResponseOption, FocusUpdateEvent } from '../../tables/PvDataTable/types';
4
4
  import { PvDataTableWithChartProps } from './types';
5
5
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
6
6
  declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
@@ -26,9 +26,12 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
26
26
  }) => Promise<string> | undefined;
27
27
  getCsvData: () => Promise<string | null> | undefined;
28
28
  refreshData: (params?: RefreshServerSideParams | null) => Promise<void> | undefined;
29
- getFilterValueSelectedMetadataMap: (options?: {
30
- hydrate?: boolean;
31
- }) => Record<string, ( FilterValueResponseOption | null)[]> | Promise<Record<string, ( FilterValueResponseOption | null)[]>> | undefined;
29
+ getFilterValueSelectedMetadataMap: {
30
+ (): Record<string, (FilterValueResponseOption | null)[]> | undefined;
31
+ (options: {
32
+ hydrate: true;
33
+ }): Promise<Record<string, (FilterValueResponseOption | null)[]>> | undefined;
34
+ };
32
35
  getPvFilterModel: () => AdvancedFilterModel | FilterModel | null | undefined;
33
36
  setPvFilterModel: (model: FilterModel | AdvancedFilterModel | null) => boolean | undefined;
34
37
  }>): void;
@@ -0,0 +1,43 @@
1
+ import { PvDataWidgetColumnDefinition, PvDataWidgetProps, PvDataWidgetViewType, PvDataWidgetChartTypeOption } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = PvDataWidgetProps;
4
+ type __VLS_PublicProps = {
5
+ "chartType"?: PvDataWidgetViewType;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ footer?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
+ "update:chartType": (value: PvDataWidgetViewType) => any;
19
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:chartType"?: ((value: PvDataWidgetViewType) => any) | undefined;
21
+ }>, {
22
+ minHeight: number;
23
+ enableChartScrolling: boolean;
24
+ colDefs: PvDataWidgetColumnDefinition[];
25
+ showSeriesLabels: boolean;
26
+ hideAxes: boolean;
27
+ hideAxisTitles: boolean;
28
+ hideLegend: boolean;
29
+ hideValueAxis: boolean;
30
+ appliedFilters: string[];
31
+ chartLoading: boolean;
32
+ chartTypes: (PvDataWidgetViewType | PvDataWidgetChartTypeOption)[];
33
+ enableTableScrolling: boolean;
34
+ showTableBelowChart: boolean;
35
+ showWidgetTypeToggle: boolean;
36
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,4 @@
1
+ import { PvDataWidgetTableProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<PvDataWidgetTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvDataWidgetTableProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLTableElement>;
4
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { PvDataWidgetChartTypeOption, PvDataWidgetViewType } from './types';
2
+ export declare const DEFAULT_CHART_TYPE_OPTIONS: Required<Pick<PvDataWidgetChartTypeOption, "icon" | "label" | "value">>[];
3
+ export declare const DEFAULT_ENABLED_CHART_TYPES: PvDataWidgetViewType[];
4
+ export declare const DEFAULT_FALLBACK_CHART_TYPE: PvDataWidgetViewType;
5
+ export declare const TABLE_VIEW_TYPE: PvDataWidgetViewType;
6
+ export declare const NUMERIC_DATA_TYPES: Set<string>;
7
+ export declare const DEFAULT_MAP_REGION_FIELD = "state";
8
+ export declare const DEFAULT_MIN_HEIGHT_PX = 320;
9
+ export declare const CHART_SCROLL_MIN_WIDTH_PX = 320;
@@ -0,0 +1,63 @@
1
+ import { PvSegmentedControlOption } from '../../base/PvSegmentedControl/types';
2
+ import { AgChartOptions } from 'ag-charts-types';
3
+ import { PvDataWidgetChartTypeOption, PvDataWidgetColumnDefinition, PvDataWidgetDataRow, PvDataWidgetViewType } from './types';
4
+ export interface DataWidgetChartOptionConfig {
5
+ dataLimit?: number;
6
+ hideAxes?: boolean;
7
+ hideAxisTitles?: boolean;
8
+ hideLegend?: boolean;
9
+ hideValueAxis?: boolean;
10
+ noDataOverlayText?: string;
11
+ }
12
+ export interface PvDataWidgetStackedChartData {
13
+ data: PvDataWidgetDataRow[];
14
+ stackValues: string[];
15
+ }
16
+ export interface GenerateDataWidgetChartOptionsParams extends DataWidgetChartOptionConfig {
17
+ aggregatedCategoryChartData: PvDataWidgetDataRow[];
18
+ categoryColumn?: PvDataWidgetColumnDefinition;
19
+ displayDataRows: PvDataWidgetDataRow[];
20
+ numericColumns: PvDataWidgetColumnDefinition[];
21
+ providedChartOptions?: AgChartOptions;
22
+ secondarySeriesColumn?: PvDataWidgetColumnDefinition;
23
+ selectedChartType: PvDataWidgetViewType;
24
+ seriesColumn?: PvDataWidgetColumnDefinition;
25
+ showSeriesLabels?: boolean;
26
+ stackColumn?: PvDataWidgetColumnDefinition;
27
+ stackedChartData: PvDataWidgetStackedChartData;
28
+ /** Use the widget-resolved rows instead of providedChartOptions.data. */
29
+ useDisplayDataRows?: boolean;
30
+ xKey?: string;
31
+ yKey?: string;
32
+ }
33
+ export declare const normalizeChartTypeOption: (option: PvDataWidgetViewType | PvDataWidgetChartTypeOption) => PvSegmentedControlOption | null;
34
+ export declare const buildChartTypeOptions: (chartTypes?: (PvDataWidgetViewType | PvDataWidgetChartTypeOption)[]) => PvSegmentedControlOption[];
35
+ export declare const getSelectedChartType: (requestedChartType: PvDataWidgetViewType | undefined, chartTypeOptions: PvSegmentedControlOption[]) => PvDataWidgetViewType;
36
+ export declare const getInferredColumns: (dataRows: PvDataWidgetDataRow[], colDefs?: PvDataWidgetColumnDefinition[]) => PvDataWidgetColumnDefinition[];
37
+ export declare const getColumnLabel: (column: PvDataWidgetColumnDefinition | undefined, fallback?: string) => string;
38
+ export declare const getColumnDataType: (column: PvDataWidgetColumnDefinition | undefined) => string;
39
+ export declare const getIsNumericColumn: (column: PvDataWidgetColumnDefinition | undefined, dataRows: PvDataWidgetDataRow[]) => boolean;
40
+ export declare const getTableCellValue: (row: PvDataWidgetDataRow, field: string) => string;
41
+ export declare const applyDataWidgetChartOptions: (options: AgChartOptions, config: DataWidgetChartOptionConfig) => AgChartOptions;
42
+ export declare const getStackedChartData: ({ dataRows, categoryColumn, seriesColumn, stackColumn, }: {
43
+ dataRows: PvDataWidgetDataRow[];
44
+ categoryColumn?: PvDataWidgetColumnDefinition;
45
+ seriesColumn?: PvDataWidgetColumnDefinition;
46
+ stackColumn?: PvDataWidgetColumnDefinition;
47
+ }) => PvDataWidgetStackedChartData;
48
+ export declare const getAggregatedCategoryChartData: ({ dataRows, categoryColumn, seriesColumn, }: {
49
+ dataRows: PvDataWidgetDataRow[];
50
+ categoryColumn?: PvDataWidgetColumnDefinition;
51
+ seriesColumn?: PvDataWidgetColumnDefinition;
52
+ }) => PvDataWidgetDataRow[];
53
+ export declare const getMapChartData: ({ dataRows, mapColumn, seriesColumn, }: {
54
+ dataRows: PvDataWidgetDataRow[];
55
+ mapColumn?: PvDataWidgetColumnDefinition;
56
+ seriesColumn?: PvDataWidgetColumnDefinition;
57
+ }) => Record<string, string | number>[];
58
+ export declare const getMapGradientRange: (mapData: Record<string, string | number>[], seriesField: string | undefined) => {
59
+ min: number;
60
+ max: number;
61
+ };
62
+ export declare const getMapSeriesValueFormatter: (seriesColumn: PvDataWidgetColumnDefinition | undefined) => (value: number) => string;
63
+ export declare const generateDataWidgetChartOptions: ({ aggregatedCategoryChartData, categoryColumn, dataLimit, displayDataRows, hideAxes, hideAxisTitles, hideLegend, hideValueAxis, noDataOverlayText, numericColumns, providedChartOptions, secondarySeriesColumn, selectedChartType, seriesColumn, showSeriesLabels, stackColumn, stackedChartData, useDisplayDataRows, xKey: explicitXKey, yKey: explicitYKey, }: GenerateDataWidgetChartOptionsParams) => AgChartOptions;