@turquoisehealth/pit-viper 2.197.3-dev.2 → 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.
- package/_site/assets/css/pit-viper-a11y.css +2 -0
- package/_site/assets/css/pit-viper-consumer.css +2 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +2 -0
- package/_site/assets/css/pit-viper-v2.css +2 -0
- package/_site/assets/css/pit-viper.css +2 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +5 -5
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvInsightCard/PvInsightCard.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +7 -7
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvRange/PvRange.vue.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvChartWidget/PvChartWidget.vue.d.ts +180 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvChartWidget/constants.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvChartWidget/types.d.ts +31 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidget.vue.d.ts +43 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidgetTable.vue.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/constants.d.ts +9 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/helpers.d.ts +63 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/types.d.ts +130 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/usePvDataWidgetData.d.ts +40 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvMapChart/PvMapChart.vue.d.ts +3 -8
- package/pv-components/dist/vue/visualizations/components/charts/widgetOptions.d.ts +58 -0
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +11524 -10745
- 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, {
|
package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts
CHANGED
|
@@ -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: ({
|
package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts
CHANGED
|
@@ -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;
|
package/pv-components/dist/vue/visualizations/components/base/PvInsightCard/PvInsightCard.vue.d.ts
CHANGED
|
@@ -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>, "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
144
|
+
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
145
145
|
options: MenuOption<T>[];
|
|
146
146
|
menuActionsVariant: MenuActionsVariant | null;
|
|
147
147
|
highlightSearchText: boolean;
|
package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts
CHANGED
|
@@ -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>;
|
package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/pv-components/dist/vue/visualizations/components/charts/PvChartWidget/PvChartWidget.vue.d.ts
ADDED
|
@@ -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,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
|
+
}
|
package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidget.vue.d.ts
ADDED
|
@@ -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;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { AgChartOptions } from 'ag-charts-types';
|
|
2
|
+
export type PvDataWidgetChartType = "area" | "bar" | "bar_stacked" | "column" | "column_stacked" | "histogram" | "line" | "map" | "pie" | "scatter";
|
|
3
|
+
export type PvDataWidgetViewType = PvDataWidgetChartType | "table" | (string & {});
|
|
4
|
+
export type PvDataWidgetDataRow = Record<string, unknown>;
|
|
5
|
+
export interface PvDataWidgetTableHeader {
|
|
6
|
+
/** Field identifier for this table column. */
|
|
7
|
+
field: string;
|
|
8
|
+
/** Resolved display label for this table column. */
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PvDataWidgetTableProps {
|
|
12
|
+
/** Header cells rendered in the table head. */
|
|
13
|
+
headers: PvDataWidgetTableHeader[];
|
|
14
|
+
/** Pre-resolved string cells, one inner array per row. */
|
|
15
|
+
rows: string[][];
|
|
16
|
+
}
|
|
17
|
+
export interface PvDataWidgetColumnDefinition {
|
|
18
|
+
/**
|
|
19
|
+
* Optional context compatible with AG Grid ColDef context for simple data definitions.
|
|
20
|
+
* `context.dataType` takes precedence over the top-level `dataType` and `type` hints.
|
|
21
|
+
*/
|
|
22
|
+
context?: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
chartOnSecondaryAxes?: boolean;
|
|
25
|
+
chartSeriesDescription?: string;
|
|
26
|
+
chartSeriesDisplayName?: string;
|
|
27
|
+
dataType?: string;
|
|
28
|
+
hideFromCharting?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** Data type hint used to infer categories and series without formatter functions. Falls back to `type` and is superseded by `context.dataType`. */
|
|
31
|
+
dataType?: string;
|
|
32
|
+
/** Field name in each data row. */
|
|
33
|
+
field: string;
|
|
34
|
+
/** Display label for table headers, axes, and series names. */
|
|
35
|
+
headerName?: string;
|
|
36
|
+
/** Hide this column from generated charts and tables. */
|
|
37
|
+
hide?: boolean;
|
|
38
|
+
/** Data type hint alias for A2UI-style definitions. */
|
|
39
|
+
type?: string;
|
|
40
|
+
/** Allow simple AG Grid ColDef-style objects without requiring JS formatter support. */
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
}
|
|
43
|
+
export interface PvDataWidgetChartTypeOption {
|
|
44
|
+
/** Accessible label for icon-only segmented controls. */
|
|
45
|
+
ariaLabel?: string;
|
|
46
|
+
/** Icon displayed in the segmented control. */
|
|
47
|
+
icon?: string;
|
|
48
|
+
/** Visible label displayed in the segmented control. */
|
|
49
|
+
label?: string;
|
|
50
|
+
/** Stable chart/view type value. */
|
|
51
|
+
value?: PvDataWidgetViewType;
|
|
52
|
+
}
|
|
53
|
+
export interface PvDataWidgetProps {
|
|
54
|
+
/** Applied filter labels rendered in the header area. */
|
|
55
|
+
appliedFilters?: string[];
|
|
56
|
+
/** Data rows used for generated chart and table views. */
|
|
57
|
+
chartData?: PvDataWidgetDataRow[];
|
|
58
|
+
/** Loading state passed to generated charts. */
|
|
59
|
+
chartLoading?: boolean;
|
|
60
|
+
/** AG Charts options. When supplied, these are used for chart rendering. */
|
|
61
|
+
chartOptions?: AgChartOptions;
|
|
62
|
+
/**
|
|
63
|
+
* Chart/view types available in the header segmented control. Accepts simple
|
|
64
|
+
* string values (e.g. `["column", "table"]`) or full option objects with custom
|
|
65
|
+
* labels and icons. At least one non-table chart type is always guaranteed.
|
|
66
|
+
*/
|
|
67
|
+
chartTypes?: (PvDataWidgetViewType | PvDataWidgetChartTypeOption)[];
|
|
68
|
+
/** Column definitions used to infer labels and numeric/category fields. Compatible with simple AG Grid ColDefs. */
|
|
69
|
+
colDefs?: PvDataWidgetColumnDefinition[];
|
|
70
|
+
/** Maximum number of data rows rendered in generated chart and table views. Set to `0` to render no rows. */
|
|
71
|
+
dataLimit?: number;
|
|
72
|
+
/** When true, wraps large generated charts in a native Pit Viper-styled scroll container. */
|
|
73
|
+
enableChartScrolling?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* When true, scrolls table overflow. The body is capped by `tableMaxHeight` when set,
|
|
76
|
+
* otherwise by the constrained flex layout (i.e. a bounded widget `height`/`maxHeight`).
|
|
77
|
+
*/
|
|
78
|
+
enableTableScrolling?: boolean;
|
|
79
|
+
/** Widget height. Numbers are treated as pixel values; strings are passed through as CSS values. */
|
|
80
|
+
height?: number | string;
|
|
81
|
+
/**
|
|
82
|
+
* When true, hides cartesian axis labels, ticks, lines, titles, and grid lines.
|
|
83
|
+
* Supersedes `hideAxisTitles` and `hideValueAxis` — the whole axis is hidden.
|
|
84
|
+
*/
|
|
85
|
+
hideAxes?: boolean;
|
|
86
|
+
/** When true, hides axis titles (e.g. "Plan Type") while keeping tick labels. */
|
|
87
|
+
hideAxisTitles?: boolean;
|
|
88
|
+
/** When true, hides the chart legend on generated charts. */
|
|
89
|
+
hideLegend?: boolean;
|
|
90
|
+
/** When true, hides the numeric value axis while keeping the category (x) axis labels. */
|
|
91
|
+
hideValueAxis?: boolean;
|
|
92
|
+
/** Data field containing map region values. Defaults to `state` when present. */
|
|
93
|
+
mapKey?: string;
|
|
94
|
+
/** Maximum widget height. Numbers are treated as pixel values; strings are passed through as CSS values. */
|
|
95
|
+
maxHeight?: number | string;
|
|
96
|
+
/** Maximum widget width. Numbers are treated as pixel values; strings are passed through as CSS values. */
|
|
97
|
+
maxWidth?: number | string;
|
|
98
|
+
/**
|
|
99
|
+
* Minimum pixel height for generated charts. Required as a number because ag-charts
|
|
100
|
+
* sizes its canvas from an explicit height rather than CSS alone.
|
|
101
|
+
*/
|
|
102
|
+
minHeight?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Overlay text shown when a generated chart has no data. When omitted, the chart's
|
|
105
|
+
* own default overlay text is used.
|
|
106
|
+
*/
|
|
107
|
+
noDataOverlayText?: string;
|
|
108
|
+
/** When true, renders value labels on generated cartesian series (e.g. above bars). */
|
|
109
|
+
showSeriesLabels?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* When true, renders the data table beneath the chart for non-table view types.
|
|
112
|
+
* Independent of whether `table` appears in the view toggle. The below-table is
|
|
113
|
+
* hidden when `table` is the selected view (a table is never stacked under a table).
|
|
114
|
+
*/
|
|
115
|
+
showTableBelowChart?: boolean;
|
|
116
|
+
/** When true (default), shows the chart/table type toggle in the header. */
|
|
117
|
+
showWidgetTypeToggle?: boolean;
|
|
118
|
+
/** Field used as the generated stacked chart grouping key. Defaults to the second category-like column. */
|
|
119
|
+
stackKey?: string;
|
|
120
|
+
/** Maximum table container height when table scrolling is enabled. Numbers are treated as pixel values. */
|
|
121
|
+
tableMaxHeight?: number | string;
|
|
122
|
+
/** Title displayed in the widget header. */
|
|
123
|
+
title?: string;
|
|
124
|
+
/** Widget width. Numbers are treated as pixel values; strings are passed through as CSS values. */
|
|
125
|
+
width?: number | string;
|
|
126
|
+
/** Field used as the generated chart category/x-axis. */
|
|
127
|
+
xKey?: string;
|
|
128
|
+
/** Field used as the generated chart series/y-axis. */
|
|
129
|
+
yKey?: string;
|
|
130
|
+
}
|