@ironsource/shared-ui 2.1.12-rc.16 → 2.1.12-rc.18
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/Chart.vue_vue_type_style_index_0_scoped_5525b3bc_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_fc79a730_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_cb98e9e3_lang.css +1 -0
- package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +26 -6
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +84 -76
- package/components/chart/ChartHeader.vue.d.ts +7 -7
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +48 -79
- package/components/chart/ChartHeaderTrend.vue.d.ts +6 -5
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +15 -14
- package/components/chart/ChartPlane.vue.d.ts +27 -7
- package/components/chart/ChartPlane.vue.js +3 -3
- package/components/chart/ChartPlane.vue2.js +282 -267
- package/components/chart/ChartStoryArgs.d.ts +31 -2
- package/components/chart/ChartTooltip.vue.d.ts +6 -1
- package/components/chart/ChartTooltip.vue.js +3 -3
- package/components/chart/ChartTooltip.vue2.js +26 -24
- package/components/chart/SubHeader.vue.d.ts +52 -0
- package/components/chart/SubHeader.vue.js +7 -0
- package/components/chart/SubHeader.vue2.js +61 -0
- package/components/chart/{components/TooltipHeader.vue.d.ts → TooltipHeader.vue.d.ts} +6 -1
- package/components/chart/TooltipHeader.vue.js +7 -0
- package/components/chart/TooltipHeader.vue2.js +69 -0
- package/components/chart/colorPalette.d.ts +1 -1
- package/components/chart/colorPalette.js +23 -23
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/consts.d.ts +12 -12
- package/components/chart/consts.js +32 -32
- package/components/chart/index.d.ts +109 -32
- package/components/chart/mockData.d.ts +8 -0
- package/components/chart/types.d.ts +14 -0
- package/components/chart/types.js +5 -2
- package/components/chart/utils/highlightUtils.d.ts +1 -1
- package/components/chart/utils/utils.d.ts +1 -1
- package/index.js +12 -8
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_4e9ce62f_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_64dcfb5d_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_81cdfd5e_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_40d98a66_lang.css +0 -1
- package/components/chart/components/TooltipHeader.vue.js +0 -7
- package/components/chart/components/TooltipHeader.vue2.js +0 -59
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartType } from '@/components/chart/types';
|
|
1
|
+
import { ChartType, DateInterval, TooltipOrder, TrendDirection } from '@/components/chart/types';
|
|
2
2
|
export declare const chartStoryArgs: {
|
|
3
3
|
chartType: {
|
|
4
4
|
control: {
|
|
@@ -17,6 +17,10 @@ export declare const chartStoryArgs: {
|
|
|
17
17
|
options: string[];
|
|
18
18
|
description: string;
|
|
19
19
|
};
|
|
20
|
+
xAxisDateInterval: {
|
|
21
|
+
options: DateInterval[];
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
20
24
|
parsing: {
|
|
21
25
|
description: string;
|
|
22
26
|
};
|
|
@@ -69,6 +73,18 @@ export declare const chartStoryArgs: {
|
|
|
69
73
|
category: string;
|
|
70
74
|
};
|
|
71
75
|
};
|
|
76
|
+
subheaderTooltip: {
|
|
77
|
+
table: {
|
|
78
|
+
category: string;
|
|
79
|
+
};
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
keepSubheaderVisible: {
|
|
83
|
+
table: {
|
|
84
|
+
category: string;
|
|
85
|
+
};
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
72
88
|
trendValue: {
|
|
73
89
|
table: {
|
|
74
90
|
category: string;
|
|
@@ -82,7 +98,7 @@ export declare const chartStoryArgs: {
|
|
|
82
98
|
description: string;
|
|
83
99
|
control: {
|
|
84
100
|
type: string;
|
|
85
|
-
options:
|
|
101
|
+
options: TrendDirection[];
|
|
86
102
|
};
|
|
87
103
|
};
|
|
88
104
|
tickCount: {
|
|
@@ -100,6 +116,12 @@ export declare const chartStoryArgs: {
|
|
|
100
116
|
type: string;
|
|
101
117
|
};
|
|
102
118
|
};
|
|
119
|
+
empty: {
|
|
120
|
+
description: string;
|
|
121
|
+
control: {
|
|
122
|
+
type: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
103
125
|
withAnimation: {
|
|
104
126
|
control: {
|
|
105
127
|
type: string;
|
|
@@ -138,4 +160,11 @@ export declare const chartStoryArgs: {
|
|
|
138
160
|
type: string;
|
|
139
161
|
};
|
|
140
162
|
};
|
|
163
|
+
tooltipOrder: {
|
|
164
|
+
description: string;
|
|
165
|
+
control: {
|
|
166
|
+
type: string;
|
|
167
|
+
};
|
|
168
|
+
options: TooltipOrder[];
|
|
169
|
+
};
|
|
141
170
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { MyTooltipItem, ValueFormat } from '@/components/chart/types';
|
|
1
|
+
import { DateInterval, MyTooltipItem, ValueFormat } from '@/components/chart/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
title?: string;
|
|
4
4
|
dataPoints: MyTooltipItem<'line'>[];
|
|
5
5
|
xAxisFormat?: ValueFormat;
|
|
6
6
|
yAxisFormat?: ValueFormat;
|
|
7
|
+
xAxisDateInterval?: DateInterval;
|
|
7
8
|
totalLabel?: string;
|
|
8
9
|
totalValue?: number;
|
|
9
10
|
totalsChart?: boolean;
|
|
@@ -12,6 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
12
13
|
dataPoints: () => any[];
|
|
13
14
|
xAxisFormat: any;
|
|
14
15
|
yAxisFormat: any;
|
|
16
|
+
xAxisDateInterval: any;
|
|
15
17
|
totalLabel: string;
|
|
16
18
|
totalValue: any;
|
|
17
19
|
totalsChart: boolean;
|
|
@@ -20,6 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
22
|
dataPoints: MyTooltipItem<'line'>[];
|
|
21
23
|
xAxisFormat?: ValueFormat;
|
|
22
24
|
yAxisFormat?: ValueFormat;
|
|
25
|
+
xAxisDateInterval?: DateInterval;
|
|
23
26
|
totalLabel?: string;
|
|
24
27
|
totalValue?: number;
|
|
25
28
|
totalsChart?: boolean;
|
|
@@ -28,12 +31,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
28
31
|
dataPoints: () => any[];
|
|
29
32
|
xAxisFormat: any;
|
|
30
33
|
yAxisFormat: any;
|
|
34
|
+
xAxisDateInterval: any;
|
|
31
35
|
totalLabel: string;
|
|
32
36
|
totalValue: any;
|
|
33
37
|
totalsChart: boolean;
|
|
34
38
|
}>>>, {
|
|
35
39
|
title: string;
|
|
36
40
|
xAxisFormat: ValueFormat;
|
|
41
|
+
xAxisDateInterval: DateInterval;
|
|
37
42
|
dataPoints: MyTooltipItem<'line'>[];
|
|
38
43
|
totalsChart: boolean;
|
|
39
44
|
yAxisFormat: ValueFormat;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ChartTooltip.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ChartTooltip.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_cb98e9e3_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cb98e9e3"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import "../../ChartTooltip.
|
|
2
|
-
import
|
|
1
|
+
import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_cb98e9e3_lang.css"; import { defineComponent as x, openBlock as a, createElementBlock as o, createBlock as c, createCommentVNode as r, Fragment as y, renderList as h, createElementVNode as m, normalizeStyle as v, unref as l, createVNode as i, withCtx as s, createTextVNode as n, toDisplayString as d } from "vue";
|
|
2
|
+
import u from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import b from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
5
|
import { formatValue as f } from "./utils/utils.js";
|
|
6
|
-
import k from "./
|
|
7
|
-
const
|
|
6
|
+
import k from "./TooltipHeader.vue.js";
|
|
7
|
+
const p = { class: "chart-tooltip" }, C = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "list"
|
|
10
|
-
},
|
|
10
|
+
}, g = { class: "popover-label-wrapper" }, V = {
|
|
11
11
|
key: 2,
|
|
12
12
|
class: "tooltip-footer"
|
|
13
|
-
},
|
|
13
|
+
}, L = /* @__PURE__ */ x({
|
|
14
14
|
__name: "ChartTooltip",
|
|
15
15
|
props: {
|
|
16
16
|
title: { default: "" },
|
|
17
17
|
dataPoints: { default: () => [] },
|
|
18
18
|
xAxisFormat: { default: null },
|
|
19
19
|
yAxisFormat: { default: null },
|
|
20
|
+
xAxisDateInterval: { default: null },
|
|
20
21
|
totalLabel: { default: "Total" },
|
|
21
22
|
totalValue: { default: null },
|
|
22
23
|
totalsChart: { type: Boolean, default: !1 }
|
|
23
24
|
},
|
|
24
25
|
setup(t) {
|
|
25
|
-
return (
|
|
26
|
-
t.title ? (a(),
|
|
26
|
+
return (A, F) => (a(), o("div", p, [
|
|
27
|
+
t.title ? (a(), c(k, {
|
|
27
28
|
key: 0,
|
|
28
29
|
title: t.title,
|
|
29
30
|
"data-points": t.dataPoints,
|
|
30
31
|
"totals-chart": t.totalsChart,
|
|
31
|
-
"x-axis-format": t.xAxisFormat
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
"x-axis-format": t.xAxisFormat,
|
|
33
|
+
"x-axis-date-interval": t.xAxisDateInterval
|
|
34
|
+
}, null, 8, ["title", "data-points", "totals-chart", "x-axis-format", "x-axis-date-interval"])) : r("", !0),
|
|
35
|
+
t.totalsChart ? r("", !0) : (a(), o("ul", C, [
|
|
36
|
+
(a(!0), o(y, null, h(t.dataPoints, (e) => (a(), o("li", {
|
|
35
37
|
key: e.datasetIndex,
|
|
36
38
|
class: "list__item"
|
|
37
39
|
}, [
|
|
38
40
|
m("span", {
|
|
39
41
|
class: "color-box",
|
|
40
|
-
style:
|
|
42
|
+
style: v({
|
|
41
43
|
backgroundColor: String(e.dataset.pointBackgroundColor)
|
|
42
44
|
})
|
|
43
45
|
}, null, 4),
|
|
44
|
-
e.dataset.icon ? (a(),
|
|
46
|
+
e.dataset.icon ? (a(), c(l(b), {
|
|
45
47
|
key: 0,
|
|
46
48
|
class: "platform-icon",
|
|
47
49
|
type: e.dataset.iconType,
|
|
48
50
|
name: e.dataset.icon,
|
|
49
51
|
size: "16px"
|
|
50
52
|
}, null, 8, ["type", "name"])) : r("", !0),
|
|
51
|
-
m("div",
|
|
52
|
-
|
|
53
|
+
m("div", g, [
|
|
54
|
+
i(l(u), {
|
|
53
55
|
variant: "body2",
|
|
54
56
|
class: "flex-grow truncated-label",
|
|
55
57
|
"is-truncated": ""
|
|
56
58
|
}, {
|
|
57
|
-
default:
|
|
59
|
+
default: s(() => [
|
|
58
60
|
n(d(e.dataset.label), 1)
|
|
59
61
|
]),
|
|
60
62
|
_: 2
|
|
61
63
|
}, 1024)
|
|
62
64
|
]),
|
|
63
|
-
|
|
64
|
-
default:
|
|
65
|
+
i(l(u), { variant: "body2" }, {
|
|
66
|
+
default: s(() => [
|
|
65
67
|
n(d(l(f)(e.parsed.y, t.yAxisFormat)), 1)
|
|
66
68
|
]),
|
|
67
69
|
_: 2
|
|
@@ -69,17 +71,17 @@ const C = { class: "chart-tooltip" }, g = {
|
|
|
69
71
|
]))), 128))
|
|
70
72
|
])),
|
|
71
73
|
t.totalValue !== null ? (a(), o("div", V, [
|
|
72
|
-
|
|
74
|
+
i(l(u), {
|
|
73
75
|
variant: "body2",
|
|
74
76
|
class: "flex-grow"
|
|
75
77
|
}, {
|
|
76
|
-
default:
|
|
78
|
+
default: s(() => [
|
|
77
79
|
n(d(t.totalLabel), 1)
|
|
78
80
|
]),
|
|
79
81
|
_: 1
|
|
80
82
|
}),
|
|
81
|
-
|
|
82
|
-
default:
|
|
83
|
+
i(l(u), { variant: "body2" }, {
|
|
84
|
+
default: s(() => [
|
|
83
85
|
n(d(l(f)(t.totalValue, t.yAxisFormat)), 1)
|
|
84
86
|
]),
|
|
85
87
|
_: 1
|
|
@@ -89,5 +91,5 @@ const C = { class: "chart-tooltip" }, g = {
|
|
|
89
91
|
}
|
|
90
92
|
});
|
|
91
93
|
export {
|
|
92
|
-
|
|
94
|
+
L as default
|
|
93
95
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
subheader: string;
|
|
3
|
+
subheaderTooltip?: {
|
|
4
|
+
header?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
};
|
|
7
|
+
showSeparator?: boolean;
|
|
8
|
+
}>, {
|
|
9
|
+
subheader: string;
|
|
10
|
+
subheaderTooltip: any;
|
|
11
|
+
showSeparator: boolean;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
subheader: string;
|
|
14
|
+
subheaderTooltip?: {
|
|
15
|
+
header?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
};
|
|
18
|
+
showSeparator?: boolean;
|
|
19
|
+
}>, {
|
|
20
|
+
subheader: string;
|
|
21
|
+
subheaderTooltip: any;
|
|
22
|
+
showSeparator: boolean;
|
|
23
|
+
}>>>, {
|
|
24
|
+
subheader: string;
|
|
25
|
+
subheaderTooltip: any;
|
|
26
|
+
showSeparator: boolean;
|
|
27
|
+
}>, {
|
|
28
|
+
"subheader-tooltip"?(_: {}): any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
+
default: D[K];
|
|
43
|
+
}> : P[K];
|
|
44
|
+
};
|
|
45
|
+
type __VLS_Prettify<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./SubHeader.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e6008b6c"]]);
|
|
5
|
+
export {
|
|
6
|
+
c as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "../../SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css"; import { defineComponent as b, useSlots as f, computed as m, openBlock as a, createElementBlock as T, createVNode as u, unref as t, withCtx as o, renderSlot as x, createElementVNode as y, createBlock as i, createTextVNode as r, toDisplayString as d, createCommentVNode as h } from "vue";
|
|
2
|
+
import l from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import S from "../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
+
const k = { class: "header-row" }, v = { class: "subheader-tooltip" }, g = /* @__PURE__ */ b({
|
|
5
|
+
__name: "SubHeader",
|
|
6
|
+
props: {
|
|
7
|
+
subheader: { default: "" },
|
|
8
|
+
subheaderTooltip: { default: null },
|
|
9
|
+
showSeparator: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
const s = e, n = f(), c = m(() => n["subheader-tooltip"] || s.subheaderTooltip?.text || s.subheaderTooltip?.header);
|
|
13
|
+
return (p, w) => (a(), T("div", k, [
|
|
14
|
+
u(t(S), {
|
|
15
|
+
placement: "right",
|
|
16
|
+
disabled: !t(c)
|
|
17
|
+
}, {
|
|
18
|
+
tooltip: o(() => [
|
|
19
|
+
x(p.$slots, "subheader-tooltip", {}, () => [
|
|
20
|
+
y("div", v, [
|
|
21
|
+
e.subheaderTooltip?.header ? (a(), i(t(l), {
|
|
22
|
+
key: 0,
|
|
23
|
+
variant: "h5"
|
|
24
|
+
}, {
|
|
25
|
+
default: o(() => [
|
|
26
|
+
r(d(e.subheaderTooltip.header), 1)
|
|
27
|
+
]),
|
|
28
|
+
_: 1
|
|
29
|
+
})) : h("", !0),
|
|
30
|
+
e.subheaderTooltip?.text ? (a(), i(t(l), {
|
|
31
|
+
key: 1,
|
|
32
|
+
variant: "body2",
|
|
33
|
+
class: "subheader-tooltip__text"
|
|
34
|
+
}, {
|
|
35
|
+
default: o(() => [
|
|
36
|
+
r(d(e.subheaderTooltip.text), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
})) : h("", !0)
|
|
40
|
+
])
|
|
41
|
+
], !0)
|
|
42
|
+
]),
|
|
43
|
+
default: o(() => [
|
|
44
|
+
u(t(l), {
|
|
45
|
+
class: "subheader",
|
|
46
|
+
variant: "h5"
|
|
47
|
+
}, {
|
|
48
|
+
default: o(() => [
|
|
49
|
+
r(d(e.subheader + (e.showSeparator ? ":" : "")), 1)
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["disabled"])
|
|
56
|
+
]));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
g as default
|
|
61
|
+
};
|
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
import { MyTooltipItem, ValueFormat } from '@/components/chart/types';
|
|
1
|
+
import { DateInterval, MyTooltipItem, ValueFormat } from '@/components/chart/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
title?: string;
|
|
4
4
|
xAxisFormat?: ValueFormat;
|
|
5
|
+
xAxisDateInterval?: DateInterval;
|
|
5
6
|
dataPoints: MyTooltipItem<'line'>[];
|
|
6
7
|
totalsChart?: boolean;
|
|
7
8
|
}>, {
|
|
8
9
|
title: string;
|
|
9
10
|
xAxisFormat: any;
|
|
11
|
+
xAxisDateInterval: any;
|
|
10
12
|
dataPoints: () => any[];
|
|
11
13
|
totalsChart: boolean;
|
|
12
14
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
15
|
title?: string;
|
|
14
16
|
xAxisFormat?: ValueFormat;
|
|
17
|
+
xAxisDateInterval?: DateInterval;
|
|
15
18
|
dataPoints: MyTooltipItem<'line'>[];
|
|
16
19
|
totalsChart?: boolean;
|
|
17
20
|
}>, {
|
|
18
21
|
title: string;
|
|
19
22
|
xAxisFormat: any;
|
|
23
|
+
xAxisDateInterval: any;
|
|
20
24
|
dataPoints: () => any[];
|
|
21
25
|
totalsChart: boolean;
|
|
22
26
|
}>>>, {
|
|
23
27
|
title: string;
|
|
24
28
|
xAxisFormat: ValueFormat;
|
|
29
|
+
xAxisDateInterval: DateInterval;
|
|
25
30
|
dataPoints: MyTooltipItem<'line'>[];
|
|
26
31
|
totalsChart: boolean;
|
|
27
32
|
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./TooltipHeader.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3b15c693"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css"; import { defineComponent as v, computed as m, openBlock as n, createElementBlock as f, createElementVNode as A, unref as t, createCommentVNode as s, createBlock as u, createVNode as D, withCtx as d, createTextVNode as x, toDisplayString as p } from "vue";
|
|
2
|
+
import { formatValue as r } from "./utils/utils.js";
|
|
3
|
+
import y from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import { DateInterval as c } from "./types.js";
|
|
5
|
+
import T from "../icon/v4/IconV4.vue.js";
|
|
6
|
+
import k from "../icon/v4/IconFlag.vue.js";
|
|
7
|
+
import { startOfWeek as C, endOfWeek as F, startOfMonth as I, endOfMonth as O } from "date-fns";
|
|
8
|
+
import { LONG_DATE_FORMAT as i } from "./consts.js";
|
|
9
|
+
const E = { class: "tooltip-title-wrapper" }, N = { class: "main-title" }, L = ["src"], P = /* @__PURE__ */ v({
|
|
10
|
+
__name: "TooltipHeader",
|
|
11
|
+
props: {
|
|
12
|
+
title: { default: "" },
|
|
13
|
+
xAxisFormat: { default: null },
|
|
14
|
+
xAxisDateInterval: { default: null },
|
|
15
|
+
dataPoints: { default: () => [] },
|
|
16
|
+
totalsChart: { type: Boolean, default: !1 }
|
|
17
|
+
},
|
|
18
|
+
setup(a) {
|
|
19
|
+
const e = a, o = m(() => e.dataPoints.length ? e.dataPoints[0].dataset : null), h = m(() => e.totalsChart ? o.value?.label || e.title : e.xAxisFormat === "date" ? g(new Date(e.title)) : r(e.title, e.xAxisFormat)), g = (l) => e.xAxisDateInterval === c.WEEKLY ? `
|
|
20
|
+
${r(C(l), i)} -
|
|
21
|
+
${r(F(l), i)}
|
|
22
|
+
` : e.xAxisDateInterval === c.MONTHLY ? `
|
|
23
|
+
${r(I(l), i)} -
|
|
24
|
+
${r(O(l), i)}
|
|
25
|
+
` : r(l, i);
|
|
26
|
+
return (l, M) => (n(), f("div", E, [
|
|
27
|
+
A("div", N, [
|
|
28
|
+
a.totalsChart && t(o)?.image ? (n(), f("img", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "title-image",
|
|
31
|
+
src: t(o)?.image
|
|
32
|
+
}, null, 8, L)) : s("", !0),
|
|
33
|
+
a.totalsChart && t(o)?.countryFlag ? (n(), u(t(k), {
|
|
34
|
+
key: 1,
|
|
35
|
+
"country-code": t(o).countryFlag
|
|
36
|
+
}, null, 8, ["country-code"])) : s("", !0),
|
|
37
|
+
a.totalsChart && t(o)?.icon ? (n(), u(t(T), {
|
|
38
|
+
key: 2,
|
|
39
|
+
class: "platform-icon",
|
|
40
|
+
type: t(o)?.iconType,
|
|
41
|
+
name: t(o)?.icon,
|
|
42
|
+
size: "16px"
|
|
43
|
+
}, null, 8, ["type", "name"])) : s("", !0),
|
|
44
|
+
D(t(y), {
|
|
45
|
+
class: "title-text",
|
|
46
|
+
variant: "subtitle2"
|
|
47
|
+
}, {
|
|
48
|
+
default: d(() => [
|
|
49
|
+
x(p(t(h)), 1)
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (n(), u(t(y), {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "tooltip-sub-title",
|
|
57
|
+
variant: "caption"
|
|
58
|
+
}, {
|
|
59
|
+
default: d(() => [
|
|
60
|
+
x(p(t(r)(a.title, "day")), 1)
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
})) : s("", !0)
|
|
64
|
+
]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
P as default
|
|
69
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HexColor } from '
|
|
1
|
+
import { HexColor } from '@/components/chart/types';
|
|
2
2
|
export declare const DEFAULT_CHART_COLOR: HexColor;
|
|
3
3
|
export declare const COLOR_PALETTE: HexColor[];
|
|
4
4
|
export declare const RESERVED_COLORS_MAP: Record<string, HexColor>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { NETWORK_UNITY_ADS as _, BIDDING_PREFIX as F, NETWORK_AD_MOB as N, NETWORK_IRON_SOURCE as E, NETWORK_MINTEGRAL as T, NETWORK_APPLOVIN as A, NETWORK_FACEBOOK_META as $, NETWORK_LIFTOFF as O, NETWORK_PANGLE as C, NETWORK_INMOBI as R, NETWORK_DT_EXCHANGE as B } from "./consts.js";
|
|
2
|
+
const I = "#c9c9c9", K = [
|
|
3
3
|
"#80BCFE",
|
|
4
4
|
"#9999FF",
|
|
5
5
|
"#5883E4",
|
|
@@ -10,8 +10,8 @@ const t = "#c9c9c9", K = [
|
|
|
10
10
|
"#673AFF",
|
|
11
11
|
"#CA80DC",
|
|
12
12
|
"#FEBBB2"
|
|
13
|
-
],
|
|
14
|
-
|
|
13
|
+
], t = {
|
|
14
|
+
Total: "#646464",
|
|
15
15
|
// AB tests
|
|
16
16
|
A: "#FFC134",
|
|
17
17
|
B: "#4F4FF5",
|
|
@@ -29,26 +29,26 @@ const t = "#c9c9c9", K = [
|
|
|
29
29
|
Banner: "#9668FF",
|
|
30
30
|
Native: "#FF35A2",
|
|
31
31
|
// Ad sources
|
|
32
|
-
[`${
|
|
33
|
-
[`${
|
|
34
|
-
[`${
|
|
35
|
-
[`${E}
|
|
36
|
-
[`${
|
|
37
|
-
[`${
|
|
38
|
-
[`${
|
|
39
|
-
[`${
|
|
40
|
-
[`${
|
|
41
|
-
[`${
|
|
42
|
-
[`${
|
|
43
|
-
[`${
|
|
44
|
-
[`${
|
|
45
|
-
[`${
|
|
46
|
-
[`${
|
|
47
|
-
[`${
|
|
48
|
-
[`${
|
|
32
|
+
[`${_} ${F}`]: "#9668FF",
|
|
33
|
+
[`${N} ${F}`]: "#34A853",
|
|
34
|
+
[`${E} ${F}`]: "#272EC4",
|
|
35
|
+
[`${E}`]: "#5C63E7",
|
|
36
|
+
[`${T} ${F}`]: "#00D8B2",
|
|
37
|
+
[`${A} ${F}`]: "#009BCB",
|
|
38
|
+
[`${A}`]: "#80CDE5",
|
|
39
|
+
[`${$} ${F}`]: "#0082FF",
|
|
40
|
+
[`${$}`]: "#52AAFF",
|
|
41
|
+
[`${O} ${F}`]: "#FF35A2",
|
|
42
|
+
[`${O}`]: "#FF9AD1",
|
|
43
|
+
[`${C} ${F}`]: "#F52E1E",
|
|
44
|
+
[`${C}`]: "#FA9F97",
|
|
45
|
+
[`${R} ${F}`]: "#FFD600",
|
|
46
|
+
[`${R}`]: "#FFEC8A",
|
|
47
|
+
[`${B} ${F}`]: "#BA0029",
|
|
48
|
+
[`${B}`]: "#DD8094"
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
51
|
K as COLOR_PALETTE,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
I as DEFAULT_CHART_COLOR,
|
|
53
|
+
t as RESERVED_COLORS_MAP
|
|
54
54
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseChartHeightArgs } from '
|
|
1
|
+
import { UseChartHeightArgs } from '@/components/chart/types';
|
|
2
2
|
export declare const useChartHeight: ({ chartPlanesCount, useFullHeight, }: UseChartHeightArgs) => {
|
|
3
3
|
containerProps: import("vue").ComputedRef<Record<string, unknown>>;
|
|
4
4
|
eachPlaneHeight: import("vue").ComputedRef<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DropdownTypeOption, Font } from './types';
|
|
1
|
+
import { DropdownTypeOption, Font, ValueFormat } from './types';
|
|
2
2
|
export declare const POINT_BORDER_COLOR = "#fcfcfc";
|
|
3
3
|
export declare const GRID_LINE_COLOR = "#E4E4E4";
|
|
4
4
|
export declare const TICK_LABEL_COLOR = "#646464";
|
|
@@ -14,17 +14,16 @@ export declare const MIN_PLANE_HEIGHT = 187;
|
|
|
14
14
|
export declare const TOTALS_HELPER_KEY = "__TOTALS_HELPER_KEY__";
|
|
15
15
|
export declare const BASE_COLOR_KEY = "___BASE_COLOR__";
|
|
16
16
|
export declare const BIDDING_PREFIX = "Bidding";
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
27
|
-
export declare const NETWORK_ID_LIFTOFF = 9962;
|
|
17
|
+
export declare const NETWORK_IRON_SOURCE = "ironSource";
|
|
18
|
+
export declare const NETWORK_UNITY_ADS = "UnityAds";
|
|
19
|
+
export declare const NETWORK_FACEBOOK_META = "Meta";
|
|
20
|
+
export declare const NETWORK_AD_MOB = "Google";
|
|
21
|
+
export declare const NETWORK_MINTEGRAL = "Mintegral";
|
|
22
|
+
export declare const NETWORK_APPLOVIN = "AppLovin";
|
|
23
|
+
export declare const NETWORK_INMOBI = "InMobi";
|
|
24
|
+
export declare const NETWORK_DT_EXCHANGE = "DT Exchange";
|
|
25
|
+
export declare const NETWORK_PANGLE = "Pangle";
|
|
26
|
+
export declare const NETWORK_LIFTOFF = "Liftoff Monetize";
|
|
28
27
|
export declare const HOVER_TRANSPARENCY = 10;
|
|
29
28
|
export declare const HOVER_AREA_TRANSPARENCY = 70;
|
|
30
29
|
export declare const CHART_PADDING: {
|
|
@@ -34,3 +33,4 @@ export declare const CHART_PADDING: {
|
|
|
34
33
|
bottom: number;
|
|
35
34
|
};
|
|
36
35
|
export declare const TICKS_EXTRA_PADDING = 10;
|
|
36
|
+
export declare const LONG_DATE_FORMAT: ValueFormat;
|