@ironsource/shared-ui 2.1.12-rc.4 → 2.1.12-rc.6
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/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +57 -39
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +97 -296
- package/components/chart/ChartHeader.vue.d.ts +20 -10
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +74 -52
- package/components/chart/ChartHeaderTrend.vue.d.ts +34 -0
- package/components/chart/ChartHeaderTrend.vue.js +7 -0
- package/components/chart/ChartHeaderTrend.vue2.js +32 -0
- package/components/chart/ChartLegend.vue.js +2 -2
- package/components/chart/ChartLegend.vue2.js +36 -35
- package/components/chart/ChartPlane.vue.d.ts +143 -0
- package/components/chart/ChartPlane.vue.js +7 -0
- package/components/chart/ChartPlane.vue2.js +306 -0
- package/components/chart/ChartStoryArgs.d.ts +135 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +36 -35
- package/components/chart/composables/useChartHeight.d.ts +5 -0
- package/components/chart/composables/useChartHeight.js +22 -0
- package/components/chart/composables/useColorsMap.d.ts +10 -0
- package/components/chart/composables/useColorsMap.js +17 -0
- package/components/chart/composables/useTooltipPosition.d.ts +1 -1
- package/components/chart/composables/useTooltipPosition.js +11 -15
- package/components/chart/consts.d.ts +5 -0
- package/components/chart/consts.js +20 -15
- package/components/chart/index.d.ts +189 -113
- package/components/chart/mockData.d.ts +27 -1
- package/components/chart/types.d.ts +4 -0
- package/components/chart/utils/formatNumber.d.ts +0 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +64 -64
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/table/v4/DataGrid.vue.d.ts +3 -3
- package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
- package/components/table/v4/index.d.ts +14 -14
- package/composables/useFullPageHeight.d.ts +10 -0
- package/composables/useFullPageHeight.js +15 -0
- package/index.d.ts +42 -42
- package/index.js +1 -1
- package/package.json +1 -1
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +8 -9
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
- package/components/chart/utils/formatNumber.js +0 -11
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { useElementSize as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { computed as h } from "vue";
|
|
2
|
+
import { useElementSize as T } from "@vueuse/core";
|
|
3
|
+
import { COMPACT_HEADER_HEIGHT as l } from "../consts.js";
|
|
4
|
+
const D = (n, s, E, _ = !0) => {
|
|
5
|
+
const t = T(s);
|
|
5
6
|
return {
|
|
6
|
-
position:
|
|
7
|
-
if (!
|
|
7
|
+
position: h(() => {
|
|
8
|
+
if (!n.value || !E.value)
|
|
8
9
|
return { top: 0, left: 0 };
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
top: e + (_ ? -1 * Math.min(
|
|
13
|
-
e - 8,
|
|
14
|
-
t.height.value + 8
|
|
15
|
-
) : -20)
|
|
16
|
-
};
|
|
10
|
+
const e = n.value.getBoundingClientRect(), { caretX: F, caretY: o } = E.value, c = F + t.width.value + 20 >= e.width, r = o + t.height.value + -30 >= e.height, u = F + (c ? -(t.width.value + 20) : 20);
|
|
11
|
+
let i = o + (r ? -1 * (o + t.height.value + 8 - e.height) : -30);
|
|
12
|
+
return _ && (i = Math.max(i, -l + 8)), { left: u, top: i };
|
|
17
13
|
})
|
|
18
14
|
};
|
|
19
15
|
};
|
|
20
16
|
export {
|
|
21
|
-
|
|
17
|
+
D as useTooltipPosition
|
|
22
18
|
};
|
|
@@ -12,3 +12,8 @@ export declare const DEFAULT_TICK_COUNT = 4;
|
|
|
12
12
|
export declare const DEFAULT_MIN_VISIBLE = 1;
|
|
13
13
|
export declare const DEFAULT_MAX_VISIBLE = 5;
|
|
14
14
|
export declare const DROPDOWN_TYPE_OPTIONS: DropdownTypeOption[];
|
|
15
|
+
export declare const HEADER_HEIGHT = 76;
|
|
16
|
+
export declare const COMPACT_HEADER_HEIGHT = 43;
|
|
17
|
+
export declare const DEFAULT_CHART_PLANE_HEIGHT = 312;
|
|
18
|
+
export declare const MIN_PLANE_HEIGHT = 187;
|
|
19
|
+
export declare const TOTALS_HELPER_KEY = "__TOTALS_HELPER_KEY__";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChartType as
|
|
2
|
-
const
|
|
1
|
+
import { ChartType as E } from "./types.js";
|
|
2
|
+
const L = "#fcfcfc", T = "#E4E4E4", n = "#646464", t = {
|
|
3
3
|
size: 12,
|
|
4
4
|
weight: 400,
|
|
5
5
|
family: "Inter"
|
|
@@ -9,19 +9,24 @@ const _ = "#fcfcfc", n = "#E4E4E4", t = "#646464", O = {
|
|
|
9
9
|
"#5883E4",
|
|
10
10
|
"#80CBC4",
|
|
11
11
|
"#FFC670"
|
|
12
|
-
],
|
|
13
|
-
{ id:
|
|
14
|
-
{ id:
|
|
15
|
-
{ id:
|
|
16
|
-
];
|
|
12
|
+
], O = 4, I = 1, o = 5, A = [
|
|
13
|
+
{ id: E.Line, name: "Line" },
|
|
14
|
+
{ id: E.StackedLine, name: "Stack" },
|
|
15
|
+
{ id: E.Bar, name: "Bar" }
|
|
16
|
+
], C = 76, s = 43, H = 312, R = 187, e = "__TOTALS_HELPER_KEY__";
|
|
17
17
|
export {
|
|
18
18
|
c as COLOR_PALETTE,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
s as COMPACT_HEADER_HEIGHT,
|
|
20
|
+
H as DEFAULT_CHART_PLANE_HEIGHT,
|
|
21
|
+
o as DEFAULT_MAX_VISIBLE,
|
|
22
|
+
I as DEFAULT_MIN_VISIBLE,
|
|
23
|
+
O as DEFAULT_TICK_COUNT,
|
|
24
|
+
A as DROPDOWN_TYPE_OPTIONS,
|
|
25
|
+
T as GRID_LINE_COLOR,
|
|
26
|
+
C as HEADER_HEIGHT,
|
|
27
|
+
R as MIN_PLANE_HEIGHT,
|
|
28
|
+
L as POINT_BORDER_COLOR,
|
|
29
|
+
n as TICK_LABEL_COLOR,
|
|
30
|
+
t as TICK_LABEL_FONT,
|
|
31
|
+
e as TOTALS_HELPER_KEY
|
|
27
32
|
};
|
|
@@ -6,24 +6,28 @@ declare const ChartTypes: () => ({
|
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
header: string;
|
|
8
8
|
loading: boolean;
|
|
9
|
-
xAxisFormat: import("./types").ValueFormat;
|
|
10
|
-
yAxisFormat: import("./types").ValueFormat;
|
|
11
|
-
parsing: import("./types").ChartParsingConfig;
|
|
12
9
|
visibleIds: unknown[];
|
|
13
10
|
minVisible: number;
|
|
14
11
|
maxVisible: number;
|
|
15
12
|
maxLimitTooltipText: string;
|
|
16
13
|
chartType: import("./types").ChartType;
|
|
17
|
-
withSettingsHeader: boolean;
|
|
18
|
-
subheader: string;
|
|
19
|
-
withSubheaderTooltip: boolean;
|
|
20
|
-
dataSets: import("./types").ChartDataSet[];
|
|
21
14
|
hideLegend: boolean;
|
|
15
|
+
xAxisFormat: import("./types").ValueFormat;
|
|
16
|
+
yAxisFormat: import("./types").ValueFormat;
|
|
17
|
+
parsing: import("./types").ChartParsingConfig;
|
|
18
|
+
dataSets: import("./types").ChartDataSet[];
|
|
19
|
+
subheader: string;
|
|
20
|
+
trendValue: string | number;
|
|
21
|
+
trendDirection: "up" | "down";
|
|
22
22
|
tickCount: number;
|
|
23
|
+
withAnimation: boolean;
|
|
24
|
+
totalsChart: boolean;
|
|
23
25
|
noDataIcon: string;
|
|
24
26
|
noDataTitle: string;
|
|
25
27
|
noDataSubtitle: string;
|
|
26
|
-
|
|
28
|
+
fullHeight: boolean;
|
|
29
|
+
withSettingsHeader: boolean;
|
|
30
|
+
extraCharts: Record<string, unknown>[];
|
|
27
31
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
28
32
|
header: {
|
|
29
33
|
type: import("vue").PropType<string>;
|
|
@@ -33,18 +37,6 @@ declare const ChartTypes: () => ({
|
|
|
33
37
|
type: import("vue").PropType<boolean>;
|
|
34
38
|
default: boolean;
|
|
35
39
|
};
|
|
36
|
-
xAxisFormat: {
|
|
37
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
yAxisFormat: {
|
|
41
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
parsing: {
|
|
45
|
-
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
46
|
-
default: any;
|
|
47
|
-
};
|
|
48
40
|
visibleIds: {
|
|
49
41
|
type: import("vue").PropType<unknown[]>;
|
|
50
42
|
required: true;
|
|
@@ -66,31 +58,51 @@ declare const ChartTypes: () => ({
|
|
|
66
58
|
type: import("vue").PropType<import("./types").ChartType>;
|
|
67
59
|
default: import("./types").ChartType;
|
|
68
60
|
};
|
|
69
|
-
|
|
61
|
+
hideLegend: {
|
|
70
62
|
type: import("vue").PropType<boolean>;
|
|
71
63
|
default: boolean;
|
|
72
64
|
};
|
|
73
|
-
|
|
74
|
-
type: import("vue").PropType<
|
|
65
|
+
xAxisFormat: {
|
|
66
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
75
67
|
default: string;
|
|
76
68
|
};
|
|
77
|
-
|
|
78
|
-
type: import("vue").PropType<
|
|
79
|
-
default:
|
|
69
|
+
yAxisFormat: {
|
|
70
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
parsing: {
|
|
74
|
+
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
75
|
+
default: any;
|
|
80
76
|
};
|
|
81
77
|
dataSets: {
|
|
82
78
|
type: import("vue").PropType<import("./types").ChartDataSet[]>;
|
|
83
79
|
required: true;
|
|
84
80
|
default: () => any[];
|
|
85
81
|
};
|
|
86
|
-
|
|
87
|
-
type: import("vue").PropType<
|
|
88
|
-
default:
|
|
82
|
+
subheader: {
|
|
83
|
+
type: import("vue").PropType<string>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
trendValue: {
|
|
87
|
+
type: import("vue").PropType<string | number>;
|
|
88
|
+
default: any;
|
|
89
|
+
};
|
|
90
|
+
trendDirection: {
|
|
91
|
+
type: import("vue").PropType<"up" | "down">;
|
|
92
|
+
default: string;
|
|
89
93
|
};
|
|
90
94
|
tickCount: {
|
|
91
95
|
type: import("vue").PropType<number>;
|
|
92
96
|
default: number;
|
|
93
97
|
};
|
|
98
|
+
withAnimation: {
|
|
99
|
+
type: import("vue").PropType<boolean>;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
totalsChart: {
|
|
103
|
+
type: import("vue").PropType<boolean>;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
94
106
|
noDataIcon: {
|
|
95
107
|
type: import("vue").PropType<string>;
|
|
96
108
|
default: string;
|
|
@@ -103,14 +115,22 @@ declare const ChartTypes: () => ({
|
|
|
103
115
|
type: import("vue").PropType<string>;
|
|
104
116
|
default: string;
|
|
105
117
|
};
|
|
106
|
-
|
|
118
|
+
fullHeight: {
|
|
107
119
|
type: import("vue").PropType<boolean>;
|
|
108
120
|
default: boolean;
|
|
109
121
|
};
|
|
122
|
+
withSettingsHeader: {
|
|
123
|
+
type: import("vue").PropType<boolean>;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
extraCharts: {
|
|
127
|
+
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
128
|
+
default: () => any[];
|
|
129
|
+
};
|
|
110
130
|
}>> & {
|
|
111
131
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
112
132
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
113
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "
|
|
133
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "chartType" | "hideLegend" | "xAxisFormat" | "yAxisFormat" | "parsing" | "dataSets" | "subheader" | "trendValue" | "trendDirection" | "tickCount" | "withAnimation" | "totalsChart" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "fullHeight" | "withSettingsHeader" | "extraCharts">;
|
|
114
134
|
$attrs: {
|
|
115
135
|
[x: string]: unknown;
|
|
116
136
|
};
|
|
@@ -133,18 +153,6 @@ declare const ChartTypes: () => ({
|
|
|
133
153
|
type: import("vue").PropType<boolean>;
|
|
134
154
|
default: boolean;
|
|
135
155
|
};
|
|
136
|
-
xAxisFormat: {
|
|
137
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
yAxisFormat: {
|
|
141
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
142
|
-
default: string;
|
|
143
|
-
};
|
|
144
|
-
parsing: {
|
|
145
|
-
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
146
|
-
default: any;
|
|
147
|
-
};
|
|
148
156
|
visibleIds: {
|
|
149
157
|
type: import("vue").PropType<unknown[]>;
|
|
150
158
|
required: true;
|
|
@@ -166,31 +174,51 @@ declare const ChartTypes: () => ({
|
|
|
166
174
|
type: import("vue").PropType<import("./types").ChartType>;
|
|
167
175
|
default: import("./types").ChartType;
|
|
168
176
|
};
|
|
169
|
-
|
|
177
|
+
hideLegend: {
|
|
170
178
|
type: import("vue").PropType<boolean>;
|
|
171
179
|
default: boolean;
|
|
172
180
|
};
|
|
173
|
-
|
|
174
|
-
type: import("vue").PropType<
|
|
181
|
+
xAxisFormat: {
|
|
182
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
175
183
|
default: string;
|
|
176
184
|
};
|
|
177
|
-
|
|
178
|
-
type: import("vue").PropType<
|
|
179
|
-
default:
|
|
185
|
+
yAxisFormat: {
|
|
186
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
parsing: {
|
|
190
|
+
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
191
|
+
default: any;
|
|
180
192
|
};
|
|
181
193
|
dataSets: {
|
|
182
194
|
type: import("vue").PropType<import("./types").ChartDataSet[]>;
|
|
183
195
|
required: true;
|
|
184
196
|
default: () => any[];
|
|
185
197
|
};
|
|
186
|
-
|
|
187
|
-
type: import("vue").PropType<
|
|
188
|
-
default:
|
|
198
|
+
subheader: {
|
|
199
|
+
type: import("vue").PropType<string>;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
trendValue: {
|
|
203
|
+
type: import("vue").PropType<string | number>;
|
|
204
|
+
default: any;
|
|
205
|
+
};
|
|
206
|
+
trendDirection: {
|
|
207
|
+
type: import("vue").PropType<"up" | "down">;
|
|
208
|
+
default: string;
|
|
189
209
|
};
|
|
190
210
|
tickCount: {
|
|
191
211
|
type: import("vue").PropType<number>;
|
|
192
212
|
default: number;
|
|
193
213
|
};
|
|
214
|
+
withAnimation: {
|
|
215
|
+
type: import("vue").PropType<boolean>;
|
|
216
|
+
default: boolean;
|
|
217
|
+
};
|
|
218
|
+
totalsChart: {
|
|
219
|
+
type: import("vue").PropType<boolean>;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
194
222
|
noDataIcon: {
|
|
195
223
|
type: import("vue").PropType<string>;
|
|
196
224
|
default: string;
|
|
@@ -203,10 +231,18 @@ declare const ChartTypes: () => ({
|
|
|
203
231
|
type: import("vue").PropType<string>;
|
|
204
232
|
default: string;
|
|
205
233
|
};
|
|
206
|
-
|
|
234
|
+
fullHeight: {
|
|
235
|
+
type: import("vue").PropType<boolean>;
|
|
236
|
+
default: boolean;
|
|
237
|
+
};
|
|
238
|
+
withSettingsHeader: {
|
|
207
239
|
type: import("vue").PropType<boolean>;
|
|
208
240
|
default: boolean;
|
|
209
241
|
};
|
|
242
|
+
extraCharts: {
|
|
243
|
+
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
244
|
+
default: () => any[];
|
|
245
|
+
};
|
|
210
246
|
}>> & {
|
|
211
247
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
212
248
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
@@ -216,24 +252,28 @@ declare const ChartTypes: () => ({
|
|
|
216
252
|
}, string, {
|
|
217
253
|
header: string;
|
|
218
254
|
loading: boolean;
|
|
219
|
-
xAxisFormat: import("./types").ValueFormat;
|
|
220
|
-
yAxisFormat: import("./types").ValueFormat;
|
|
221
|
-
parsing: import("./types").ChartParsingConfig;
|
|
222
255
|
visibleIds: unknown[];
|
|
223
256
|
minVisible: number;
|
|
224
257
|
maxVisible: number;
|
|
225
258
|
maxLimitTooltipText: string;
|
|
226
259
|
chartType: import("./types").ChartType;
|
|
227
|
-
withSettingsHeader: boolean;
|
|
228
|
-
subheader: string;
|
|
229
|
-
withSubheaderTooltip: boolean;
|
|
230
|
-
dataSets: import("./types").ChartDataSet[];
|
|
231
260
|
hideLegend: boolean;
|
|
261
|
+
xAxisFormat: import("./types").ValueFormat;
|
|
262
|
+
yAxisFormat: import("./types").ValueFormat;
|
|
263
|
+
parsing: import("./types").ChartParsingConfig;
|
|
264
|
+
dataSets: import("./types").ChartDataSet[];
|
|
265
|
+
subheader: string;
|
|
266
|
+
trendValue: string | number;
|
|
267
|
+
trendDirection: "up" | "down";
|
|
232
268
|
tickCount: number;
|
|
269
|
+
withAnimation: boolean;
|
|
270
|
+
totalsChart: boolean;
|
|
233
271
|
noDataIcon: string;
|
|
234
272
|
noDataTitle: string;
|
|
235
273
|
noDataSubtitle: string;
|
|
236
|
-
|
|
274
|
+
fullHeight: boolean;
|
|
275
|
+
withSettingsHeader: boolean;
|
|
276
|
+
extraCharts: Record<string, unknown>[];
|
|
237
277
|
}, {}, string> & {
|
|
238
278
|
beforeCreate?: (() => void) | (() => void)[];
|
|
239
279
|
created?: (() => void) | (() => void)[];
|
|
@@ -263,18 +303,6 @@ declare const ChartTypes: () => ({
|
|
|
263
303
|
type: import("vue").PropType<boolean>;
|
|
264
304
|
default: boolean;
|
|
265
305
|
};
|
|
266
|
-
xAxisFormat: {
|
|
267
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
268
|
-
default: string;
|
|
269
|
-
};
|
|
270
|
-
yAxisFormat: {
|
|
271
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
272
|
-
default: string;
|
|
273
|
-
};
|
|
274
|
-
parsing: {
|
|
275
|
-
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
276
|
-
default: any;
|
|
277
|
-
};
|
|
278
306
|
visibleIds: {
|
|
279
307
|
type: import("vue").PropType<unknown[]>;
|
|
280
308
|
required: true;
|
|
@@ -296,31 +324,51 @@ declare const ChartTypes: () => ({
|
|
|
296
324
|
type: import("vue").PropType<import("./types").ChartType>;
|
|
297
325
|
default: import("./types").ChartType;
|
|
298
326
|
};
|
|
299
|
-
|
|
327
|
+
hideLegend: {
|
|
300
328
|
type: import("vue").PropType<boolean>;
|
|
301
329
|
default: boolean;
|
|
302
330
|
};
|
|
303
|
-
|
|
304
|
-
type: import("vue").PropType<
|
|
331
|
+
xAxisFormat: {
|
|
332
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
305
333
|
default: string;
|
|
306
334
|
};
|
|
307
|
-
|
|
308
|
-
type: import("vue").PropType<
|
|
309
|
-
default:
|
|
335
|
+
yAxisFormat: {
|
|
336
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
337
|
+
default: string;
|
|
338
|
+
};
|
|
339
|
+
parsing: {
|
|
340
|
+
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
341
|
+
default: any;
|
|
310
342
|
};
|
|
311
343
|
dataSets: {
|
|
312
344
|
type: import("vue").PropType<import("./types").ChartDataSet[]>;
|
|
313
345
|
required: true;
|
|
314
346
|
default: () => any[];
|
|
315
347
|
};
|
|
316
|
-
|
|
317
|
-
type: import("vue").PropType<
|
|
318
|
-
default:
|
|
348
|
+
subheader: {
|
|
349
|
+
type: import("vue").PropType<string>;
|
|
350
|
+
default: string;
|
|
351
|
+
};
|
|
352
|
+
trendValue: {
|
|
353
|
+
type: import("vue").PropType<string | number>;
|
|
354
|
+
default: any;
|
|
355
|
+
};
|
|
356
|
+
trendDirection: {
|
|
357
|
+
type: import("vue").PropType<"up" | "down">;
|
|
358
|
+
default: string;
|
|
319
359
|
};
|
|
320
360
|
tickCount: {
|
|
321
361
|
type: import("vue").PropType<number>;
|
|
322
362
|
default: number;
|
|
323
363
|
};
|
|
364
|
+
withAnimation: {
|
|
365
|
+
type: import("vue").PropType<boolean>;
|
|
366
|
+
default: boolean;
|
|
367
|
+
};
|
|
368
|
+
totalsChart: {
|
|
369
|
+
type: import("vue").PropType<boolean>;
|
|
370
|
+
default: boolean;
|
|
371
|
+
};
|
|
324
372
|
noDataIcon: {
|
|
325
373
|
type: import("vue").PropType<string>;
|
|
326
374
|
default: string;
|
|
@@ -333,10 +381,18 @@ declare const ChartTypes: () => ({
|
|
|
333
381
|
type: import("vue").PropType<string>;
|
|
334
382
|
default: string;
|
|
335
383
|
};
|
|
336
|
-
|
|
384
|
+
fullHeight: {
|
|
337
385
|
type: import("vue").PropType<boolean>;
|
|
338
386
|
default: boolean;
|
|
339
387
|
};
|
|
388
|
+
withSettingsHeader: {
|
|
389
|
+
type: import("vue").PropType<boolean>;
|
|
390
|
+
default: boolean;
|
|
391
|
+
};
|
|
392
|
+
extraCharts: {
|
|
393
|
+
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
394
|
+
default: () => any[];
|
|
395
|
+
};
|
|
340
396
|
}>> & {
|
|
341
397
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
342
398
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
@@ -353,18 +409,6 @@ declare const ChartTypes: () => ({
|
|
|
353
409
|
type: import("vue").PropType<boolean>;
|
|
354
410
|
default: boolean;
|
|
355
411
|
};
|
|
356
|
-
xAxisFormat: {
|
|
357
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
358
|
-
default: string;
|
|
359
|
-
};
|
|
360
|
-
yAxisFormat: {
|
|
361
|
-
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
362
|
-
default: string;
|
|
363
|
-
};
|
|
364
|
-
parsing: {
|
|
365
|
-
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
366
|
-
default: any;
|
|
367
|
-
};
|
|
368
412
|
visibleIds: {
|
|
369
413
|
type: import("vue").PropType<unknown[]>;
|
|
370
414
|
required: true;
|
|
@@ -386,31 +430,51 @@ declare const ChartTypes: () => ({
|
|
|
386
430
|
type: import("vue").PropType<import("./types").ChartType>;
|
|
387
431
|
default: import("./types").ChartType;
|
|
388
432
|
};
|
|
389
|
-
|
|
433
|
+
hideLegend: {
|
|
390
434
|
type: import("vue").PropType<boolean>;
|
|
391
435
|
default: boolean;
|
|
392
436
|
};
|
|
393
|
-
|
|
394
|
-
type: import("vue").PropType<
|
|
437
|
+
xAxisFormat: {
|
|
438
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
395
439
|
default: string;
|
|
396
440
|
};
|
|
397
|
-
|
|
398
|
-
type: import("vue").PropType<
|
|
399
|
-
default:
|
|
441
|
+
yAxisFormat: {
|
|
442
|
+
type: import("vue").PropType<import("./types").ValueFormat>;
|
|
443
|
+
default: string;
|
|
444
|
+
};
|
|
445
|
+
parsing: {
|
|
446
|
+
type: import("vue").PropType<import("./types").ChartParsingConfig>;
|
|
447
|
+
default: any;
|
|
400
448
|
};
|
|
401
449
|
dataSets: {
|
|
402
450
|
type: import("vue").PropType<import("./types").ChartDataSet[]>;
|
|
403
451
|
required: true;
|
|
404
452
|
default: () => any[];
|
|
405
453
|
};
|
|
406
|
-
|
|
407
|
-
type: import("vue").PropType<
|
|
408
|
-
default:
|
|
454
|
+
subheader: {
|
|
455
|
+
type: import("vue").PropType<string>;
|
|
456
|
+
default: string;
|
|
457
|
+
};
|
|
458
|
+
trendValue: {
|
|
459
|
+
type: import("vue").PropType<string | number>;
|
|
460
|
+
default: any;
|
|
461
|
+
};
|
|
462
|
+
trendDirection: {
|
|
463
|
+
type: import("vue").PropType<"up" | "down">;
|
|
464
|
+
default: string;
|
|
409
465
|
};
|
|
410
466
|
tickCount: {
|
|
411
467
|
type: import("vue").PropType<number>;
|
|
412
468
|
default: number;
|
|
413
469
|
};
|
|
470
|
+
withAnimation: {
|
|
471
|
+
type: import("vue").PropType<boolean>;
|
|
472
|
+
default: boolean;
|
|
473
|
+
};
|
|
474
|
+
totalsChart: {
|
|
475
|
+
type: import("vue").PropType<boolean>;
|
|
476
|
+
default: boolean;
|
|
477
|
+
};
|
|
414
478
|
noDataIcon: {
|
|
415
479
|
type: import("vue").PropType<string>;
|
|
416
480
|
default: string;
|
|
@@ -423,10 +487,18 @@ declare const ChartTypes: () => ({
|
|
|
423
487
|
type: import("vue").PropType<string>;
|
|
424
488
|
default: string;
|
|
425
489
|
};
|
|
426
|
-
|
|
490
|
+
fullHeight: {
|
|
427
491
|
type: import("vue").PropType<boolean>;
|
|
428
492
|
default: boolean;
|
|
429
493
|
};
|
|
494
|
+
withSettingsHeader: {
|
|
495
|
+
type: import("vue").PropType<boolean>;
|
|
496
|
+
default: boolean;
|
|
497
|
+
};
|
|
498
|
+
extraCharts: {
|
|
499
|
+
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
500
|
+
default: () => any[];
|
|
501
|
+
};
|
|
430
502
|
}>> & {
|
|
431
503
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
432
504
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
@@ -436,24 +508,28 @@ declare const ChartTypes: () => ({
|
|
|
436
508
|
}, string, {
|
|
437
509
|
header: string;
|
|
438
510
|
loading: boolean;
|
|
439
|
-
xAxisFormat: import("./types").ValueFormat;
|
|
440
|
-
yAxisFormat: import("./types").ValueFormat;
|
|
441
|
-
parsing: import("./types").ChartParsingConfig;
|
|
442
511
|
visibleIds: unknown[];
|
|
443
512
|
minVisible: number;
|
|
444
513
|
maxVisible: number;
|
|
445
514
|
maxLimitTooltipText: string;
|
|
446
515
|
chartType: import("./types").ChartType;
|
|
447
|
-
withSettingsHeader: boolean;
|
|
448
|
-
subheader: string;
|
|
449
|
-
withSubheaderTooltip: boolean;
|
|
450
|
-
dataSets: import("./types").ChartDataSet[];
|
|
451
516
|
hideLegend: boolean;
|
|
517
|
+
xAxisFormat: import("./types").ValueFormat;
|
|
518
|
+
yAxisFormat: import("./types").ValueFormat;
|
|
519
|
+
parsing: import("./types").ChartParsingConfig;
|
|
520
|
+
dataSets: import("./types").ChartDataSet[];
|
|
521
|
+
subheader: string;
|
|
522
|
+
trendValue: string | number;
|
|
523
|
+
trendDirection: "up" | "down";
|
|
452
524
|
tickCount: number;
|
|
525
|
+
withAnimation: boolean;
|
|
526
|
+
totalsChart: boolean;
|
|
453
527
|
noDataIcon: string;
|
|
454
528
|
noDataTitle: string;
|
|
455
529
|
noDataSubtitle: string;
|
|
456
|
-
|
|
530
|
+
fullHeight: boolean;
|
|
531
|
+
withSettingsHeader: boolean;
|
|
532
|
+
extraCharts: Record<string, unknown>[];
|
|
457
533
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
458
534
|
$slots: {
|
|
459
535
|
metric?(_: {}): any;
|
|
@@ -7,10 +7,12 @@ export declare const SINGLE_DATASET_DATE: {
|
|
|
7
7
|
color: string;
|
|
8
8
|
}[];
|
|
9
9
|
export declare const SINGLE_DATASET_COUNTRY: {
|
|
10
|
+
id: string;
|
|
10
11
|
label: string;
|
|
11
12
|
data: {
|
|
12
|
-
country: string;
|
|
13
13
|
value: number;
|
|
14
|
+
value2: number;
|
|
15
|
+
value3: number;
|
|
14
16
|
}[];
|
|
15
17
|
}[];
|
|
16
18
|
export declare const MULTIPLE_DATASETS_DATE: ({
|
|
@@ -21,6 +23,8 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
21
23
|
data: {
|
|
22
24
|
date: string;
|
|
23
25
|
value: number;
|
|
26
|
+
value2: number;
|
|
27
|
+
value3: number;
|
|
24
28
|
}[];
|
|
25
29
|
iconType?: undefined;
|
|
26
30
|
} | {
|
|
@@ -32,7 +36,19 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
32
36
|
data: {
|
|
33
37
|
date: string;
|
|
34
38
|
value: number;
|
|
39
|
+
value2: number;
|
|
40
|
+
value3: number;
|
|
35
41
|
}[];
|
|
42
|
+
} | {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
caption: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
data: {
|
|
48
|
+
date: string;
|
|
49
|
+
value: number;
|
|
50
|
+
}[];
|
|
51
|
+
iconType?: undefined;
|
|
36
52
|
})[];
|
|
37
53
|
export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
|
|
38
54
|
id: string;
|
|
@@ -40,6 +56,16 @@ export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
|
|
|
40
56
|
data: {
|
|
41
57
|
date: string;
|
|
42
58
|
value: number;
|
|
59
|
+
value2: number;
|
|
60
|
+
value3: number;
|
|
43
61
|
}[];
|
|
44
62
|
}[];
|
|
45
63
|
export declare const generateMockData: (numSeries?: number) => any[];
|
|
64
|
+
export declare const metricOptions: {
|
|
65
|
+
id: string;
|
|
66
|
+
label: string;
|
|
67
|
+
}[];
|
|
68
|
+
export declare const breakdownsOptions: {
|
|
69
|
+
id: string;
|
|
70
|
+
label: string;
|
|
71
|
+
}[];
|