@ironsource/shared-ui 2.1.12-test.52 → 2.1.12-test.53
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_3da25a36_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
- package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
- package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
- package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/chart/Chart.vue.d.ts +16 -1
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +38 -32
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +34 -33
- package/components/chart/ChartPlane.vue.d.ts +10 -0
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +158 -147
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +6 -6
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +25 -26
- package/components/chart/colorPalette.d.ts +2 -1
- package/components/chart/colorPalette.js +47 -33
- package/components/chart/composables/useColorsMap.d.ts +3 -1
- package/components/chart/composables/useColorsMap.js +32 -30
- package/components/chart/consts.d.ts +5 -1
- package/components/chart/consts.js +30 -26
- package/components/chart/index.d.ts +58 -1
- package/components/chart/mockData.d.ts +15 -0
- package/components/chart/types.d.ts +3 -1
- package/components/chart/types.js +5 -5
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +18 -13
- package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
- package/components/columnPicker/ColumnPicker.vue.js +7 -0
- package/components/columnPicker/ColumnPicker.vue2.js +322 -0
- package/components/columnPicker/OptionChip.vue.d.ts +53 -0
- package/components/columnPicker/OptionChip.vue.js +7 -0
- package/components/columnPicker/OptionChip.vue2.js +46 -0
- package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
- package/components/columnPicker/RemoveButton.vue.js +7 -0
- package/components/columnPicker/RemoveButton.vue2.js +35 -0
- package/components/columnPicker/index.d.ts +388 -0
- package/components/columnPicker/index.js +6 -0
- package/components/columnPicker/mockData.d.ts +8 -0
- package/components/dialog/v3/Dialog.vue.d.ts +3 -3
- package/components/dialog/v3/index.d.ts +46 -46
- package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
- package/components/dialog/v4/DialogFooter.vue.js +7 -0
- package/components/dialog/v4/DialogFooter.vue2.js +60 -0
- package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
- package/components/dialog/v4/DialogHeader.vue.js +7 -0
- package/components/dialog/v4/DialogHeader.vue2.js +58 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +157 -157
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +176 -171
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/components/link/Link.vue.d.ts +20 -0
- package/components/link/Link.vue.js +2 -2
- package/components/link/Link.vue2.js +35 -21
- package/components/link/index.d.ts +77 -1
- package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/v3/RadioButton.vue.js +3 -3
- package/components/radioButton/v3/RadioButton.vue2.js +42 -39
- package/components/radioButton/v3/index.d.ts +20 -1
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +26 -23
- package/components/sortableList/SortableList.types.d.ts +1 -0
- package/components/sortableList/SortableList.vue.d.ts +10 -0
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +104 -96
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/index.d.ts +39 -1
- package/components/table/v4/DataGrid.vue.d.ts +4 -4
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +237 -245
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +82 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
- package/components/table/v4/MultipleDataGrid.vue.d.ts +6 -5
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
- package/components/table/v4/index.d.ts +552 -305
- package/components/table/v4/index.js +7 -4
- package/components/table/v4/storyUtils.d.ts +25 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +2153 -1419
- package/index.js +99 -95
- package/package.json +5 -1
- package/testids/index.d.ts +7 -1
- package/testids/index.js +26 -25
- package/utils/date.js +3 -3
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import "../../TooltipHeader.
|
|
2
|
-
import {
|
|
3
|
-
import { formatValue as r } from "./utils/utils.js";
|
|
1
|
+
import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_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 T, withCtx as d, createTextVNode as x, toDisplayString as p } from "vue";
|
|
2
|
+
import { formatValue as o } from "./utils/utils.js";
|
|
4
3
|
import y from "../typography/v4/Typography.vue.js";
|
|
5
4
|
import { DateInterval as c } from "./types.js";
|
|
6
5
|
import k from "../icon/v4/IconV4.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import { startOfWeek as
|
|
9
|
-
import { LONG_DATE_FORMAT as
|
|
10
|
-
const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"],
|
|
6
|
+
import O from "../icon/v4/IconFlag.vue.js";
|
|
7
|
+
import { startOfWeek as C, startOfDay as h, endOfWeek as F, startOfMonth as I, endOfMonth as E } from "date-fns";
|
|
8
|
+
import { LONG_DATE_FORMAT as i } from "./consts.js";
|
|
9
|
+
const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"], K = /* @__PURE__ */ v({
|
|
11
10
|
__name: "TooltipHeader",
|
|
12
11
|
props: {
|
|
13
12
|
title: { default: "" },
|
|
@@ -17,48 +16,48 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
|
|
|
17
16
|
totalsChart: { type: Boolean, default: !1 }
|
|
18
17
|
},
|
|
19
18
|
setup(a) {
|
|
20
|
-
const e = a,
|
|
21
|
-
${
|
|
22
|
-
${
|
|
19
|
+
const e = a, r = m(() => e.dataPoints.length ? e.dataPoints[0].dataset : null), D = m(() => e.totalsChart ? r.value?.label || e.title : e.xAxisFormat === "date" ? g(new Date(e.title)) : o(e.title, e.xAxisFormat)), g = (l) => e.xAxisDateInterval === c.WEEKLY ? `
|
|
20
|
+
${o(C(l), i)} -
|
|
21
|
+
${o(h(F(l)), i)}
|
|
23
22
|
` : e.xAxisDateInterval === c.MONTHLY ? `
|
|
24
|
-
${
|
|
25
|
-
${
|
|
26
|
-
` :
|
|
27
|
-
return (l, V) => (
|
|
23
|
+
${o(I(l), i)} -
|
|
24
|
+
${o(h(E(l)), i)}
|
|
25
|
+
` : o(l, i);
|
|
26
|
+
return (l, V) => (n(), f("div", N, [
|
|
28
27
|
A("div", L, [
|
|
29
|
-
a.totalsChart && t(
|
|
28
|
+
a.totalsChart && t(r)?.image ? (n(), f("img", {
|
|
30
29
|
key: 0,
|
|
31
30
|
class: "title-image",
|
|
32
|
-
src: t(
|
|
31
|
+
src: t(r)?.image
|
|
33
32
|
}, null, 8, M)) : s("", !0),
|
|
34
|
-
a.totalsChart && t(
|
|
33
|
+
a.totalsChart && t(r)?.countryFlag ? (n(), u(t(O), {
|
|
35
34
|
key: 1,
|
|
36
|
-
"country-code": t(
|
|
35
|
+
"country-code": t(r).countryFlag
|
|
37
36
|
}, null, 8, ["country-code"])) : s("", !0),
|
|
38
|
-
a.totalsChart && t(
|
|
37
|
+
a.totalsChart && t(r)?.icon ? (n(), u(t(k), {
|
|
39
38
|
key: 2,
|
|
40
39
|
class: "platform-icon",
|
|
41
|
-
type: t(
|
|
42
|
-
name: t(
|
|
40
|
+
type: t(r)?.iconType,
|
|
41
|
+
name: t(r)?.icon,
|
|
43
42
|
size: "16px"
|
|
44
43
|
}, null, 8, ["type", "name"])) : s("", !0),
|
|
45
|
-
|
|
44
|
+
T(t(y), {
|
|
46
45
|
class: "title-text",
|
|
47
46
|
variant: "subtitle2"
|
|
48
47
|
}, {
|
|
49
48
|
default: d(() => [
|
|
50
|
-
x(p(t(
|
|
49
|
+
x(p(t(D)), 1)
|
|
51
50
|
]),
|
|
52
51
|
_: 1
|
|
53
52
|
})
|
|
54
53
|
]),
|
|
55
|
-
a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (
|
|
54
|
+
a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (n(), u(t(y), {
|
|
56
55
|
key: 0,
|
|
57
56
|
class: "tooltip-sub-title",
|
|
58
57
|
variant: "caption"
|
|
59
58
|
}, {
|
|
60
59
|
default: d(() => [
|
|
61
|
-
x(p(t(
|
|
60
|
+
x(p(t(o)(a.title, "day")), 1)
|
|
62
61
|
]),
|
|
63
62
|
_: 1
|
|
64
63
|
})) : s("", !0)
|
|
@@ -66,5 +65,5 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
|
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
67
|
export {
|
|
69
|
-
|
|
68
|
+
K as default
|
|
70
69
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HexColor } from '@/components/chart/types';
|
|
2
2
|
export declare const DEFAULT_CHART_COLOR: HexColor;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const DEFAULT_COLOR_PALETTE: HexColor[];
|
|
4
|
+
export declare const MEDIATION_COLOR_PALETTE: HexColor[];
|
|
4
5
|
export declare const RESERVED_COLORS_MAP: Record<string, HexColor>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NETWORK_UNITY_ADS as
|
|
2
|
-
const I = "#c9c9c9",
|
|
1
|
+
import { NETWORK_UNITY_ADS as R, BIDDING_PREFIX as F, NETWORK_AD_MOB as T, NETWORK_IRON_SOURCE as E, NETWORK_MINTEGRAL as _, NETWORK_APPLOVIN as C, NETWORK_FACEBOOK_META as A, NETWORK_LIFTOFF as B, NETWORK_PANGLE as O, NETWORK_INMOBI as $, NETWORK_DT_EXCHANGE as D } from "./consts.js";
|
|
2
|
+
const I = "#c9c9c9", L = [
|
|
3
3
|
"#80BCFE",
|
|
4
4
|
"#9999FF",
|
|
5
5
|
"#5883E4",
|
|
@@ -10,45 +10,59 @@ const I = "#c9c9c9", K = [
|
|
|
10
10
|
"#673AFF",
|
|
11
11
|
"#CA80DC",
|
|
12
12
|
"#FEBBB2"
|
|
13
|
-
], t =
|
|
13
|
+
], t = [
|
|
14
|
+
"#487BEC",
|
|
15
|
+
"#FFC670",
|
|
16
|
+
"#80CBC4",
|
|
17
|
+
"#FF7557",
|
|
18
|
+
"#7856FF",
|
|
19
|
+
"#FEBBB2",
|
|
20
|
+
"#DA88EE",
|
|
21
|
+
"#0D7EA0",
|
|
22
|
+
"#01AB01",
|
|
23
|
+
"#B3596E"
|
|
24
|
+
], K = {
|
|
14
25
|
Total: "#646464",
|
|
15
26
|
// AB tests
|
|
16
27
|
A: "#FFC134",
|
|
17
28
|
B: "#4F4FF5",
|
|
18
29
|
// Countries
|
|
19
|
-
US: "#
|
|
20
|
-
CN: "#
|
|
21
|
-
GB: "#
|
|
22
|
-
DE: "#
|
|
23
|
-
JP: "#
|
|
24
|
-
AU: "#
|
|
25
|
-
FR: "#
|
|
30
|
+
US: "#9999FF",
|
|
31
|
+
CN: "#FF1200",
|
|
32
|
+
GB: "#89009B",
|
|
33
|
+
DE: "#FBE32D",
|
|
34
|
+
JP: "#8D001F",
|
|
35
|
+
AU: "#E57D00",
|
|
36
|
+
FR: "#ACC62C",
|
|
37
|
+
RU: "#FF70AA",
|
|
26
38
|
// Ad formats
|
|
27
|
-
Rewarded: "#
|
|
28
|
-
Interstitial: "#
|
|
29
|
-
Banner: "#
|
|
30
|
-
Native: "#
|
|
39
|
+
Rewarded: "#80BCFE",
|
|
40
|
+
Interstitial: "#8D001F",
|
|
41
|
+
Banner: "#E57D00",
|
|
42
|
+
Native: "#ACC62C",
|
|
43
|
+
Offerwall: "#9999FF",
|
|
31
44
|
// Ad sources
|
|
32
|
-
[`${
|
|
33
|
-
[`${
|
|
34
|
-
[`${E} ${F}`]: "#
|
|
35
|
-
[`${E}`]: "#
|
|
36
|
-
[`${
|
|
37
|
-
[`${
|
|
38
|
-
[`${
|
|
39
|
-
[`${
|
|
40
|
-
[`${
|
|
41
|
-
[`${
|
|
42
|
-
[`${
|
|
43
|
-
[`${
|
|
44
|
-
[`${
|
|
45
|
-
[`${
|
|
46
|
-
[`${
|
|
47
|
-
[`${
|
|
48
|
-
[`${
|
|
45
|
+
[`${R} ${F}`]: "#80BCFE",
|
|
46
|
+
[`${T} ${F}`]: "#ACC62C",
|
|
47
|
+
[`${E} ${F}`]: "#9999FF",
|
|
48
|
+
[`${E}`]: "#CCCCFF",
|
|
49
|
+
[`${_} ${F}`]: "#E57D00",
|
|
50
|
+
[`${C} ${F}`]: "#00CCD7",
|
|
51
|
+
[`${C}`]: "#80E5EB",
|
|
52
|
+
[`${A} ${F}`]: "#89009B",
|
|
53
|
+
[`${A}`]: "#B866C3",
|
|
54
|
+
[`${B} ${F}`]: "#FF70AA",
|
|
55
|
+
[`${B}`]: "#FFB1DB",
|
|
56
|
+
[`${O} ${F}`]: "#FF1200",
|
|
57
|
+
[`${O}`]: "#FF8880",
|
|
58
|
+
[`${$} ${F}`]: "#FBE32D",
|
|
59
|
+
[`${$}`]: "#FDF196",
|
|
60
|
+
[`${D} ${F}`]: "#8D001F",
|
|
61
|
+
[`${D}`]: "#C6808F"
|
|
49
62
|
};
|
|
50
63
|
export {
|
|
51
|
-
K as COLOR_PALETTE,
|
|
52
64
|
I as DEFAULT_CHART_COLOR,
|
|
53
|
-
|
|
65
|
+
L as DEFAULT_COLOR_PALETTE,
|
|
66
|
+
t as MEDIATION_COLOR_PALETTE,
|
|
67
|
+
K as RESERVED_COLORS_MAP
|
|
54
68
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ChartDataSet } from '@/components/chart';
|
|
3
|
+
import { ColorVariant } from '@/components/chart/types';
|
|
3
4
|
type UseColorsMapArgs = {
|
|
4
5
|
dataSets: Ref<ChartDataSet[]>;
|
|
5
6
|
visibleIds: Ref<unknown[]>;
|
|
7
|
+
variant?: ColorVariant;
|
|
6
8
|
};
|
|
7
|
-
export declare const useColorsMap: ({ dataSets, visibleIds }: UseColorsMapArgs) => {
|
|
9
|
+
export declare const useColorsMap: ({ dataSets, visibleIds, variant, }: UseColorsMapArgs) => {
|
|
8
10
|
colorsMap: Ref<Record<string, `#${string}`>>;
|
|
9
11
|
};
|
|
10
12
|
export {};
|
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { RESERVED_COLORS_MAP as c,
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { computed as r, ref as n, watch as p } from "vue";
|
|
2
|
+
import { RESERVED_COLORS_MAP as c, MEDIATION_COLOR_PALETTE as R, DEFAULT_COLOR_PALETTE as T, DEFAULT_CHART_COLOR as L } from "../colorPalette.js";
|
|
3
|
+
const A = ({
|
|
4
|
+
dataSets: i,
|
|
5
|
+
visibleIds: u,
|
|
6
|
+
variant: v
|
|
7
|
+
}) => {
|
|
8
|
+
const s = r(
|
|
9
|
+
() => i.value.filter(
|
|
10
|
+
(o) => u.value.includes(o.id)
|
|
7
11
|
)
|
|
8
|
-
),
|
|
12
|
+
), t = n({
|
|
9
13
|
...c
|
|
10
14
|
// destructuring is important to avoid mutating the reserved colors object
|
|
11
|
-
}),
|
|
12
|
-
|
|
13
|
-
), d = () => {
|
|
14
|
-
a.value.forEach((o) => {
|
|
15
|
+
}), a = n([]), d = r(() => (v === "mediation" ? R : T).filter((e) => !a.value.includes(e))), f = () => {
|
|
16
|
+
s.value.forEach((o) => {
|
|
15
17
|
const e = String(o.id);
|
|
16
|
-
if (!
|
|
17
|
-
const
|
|
18
|
-
|
|
18
|
+
if (!t.value[e]) {
|
|
19
|
+
const l = o.color || d.value[0] || L;
|
|
20
|
+
E(e, l);
|
|
19
21
|
}
|
|
20
22
|
});
|
|
21
|
-
},
|
|
22
|
-
Object.keys(
|
|
23
|
-
const e =
|
|
24
|
-
!e && !
|
|
23
|
+
}, C = () => {
|
|
24
|
+
Object.keys(t.value).forEach((o) => {
|
|
25
|
+
const e = s.value.find((m) => String(m.id) === o), l = !!c[o];
|
|
26
|
+
!e && !l && O(o);
|
|
25
27
|
});
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
const e =
|
|
30
|
-
delete
|
|
31
|
-
const
|
|
32
|
-
|
|
28
|
+
}, E = (o, e) => {
|
|
29
|
+
t.value[String(o)] = e, a.value.push(e);
|
|
30
|
+
}, O = (o) => {
|
|
31
|
+
const e = t.value[o];
|
|
32
|
+
delete t.value[o];
|
|
33
|
+
const l = a.value.indexOf(e);
|
|
34
|
+
l > -1 && a.value.splice(l, 1);
|
|
33
35
|
};
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
+
return p(
|
|
37
|
+
s,
|
|
36
38
|
() => {
|
|
37
|
-
|
|
39
|
+
C(), f();
|
|
38
40
|
},
|
|
39
41
|
{ immediate: !0 }
|
|
40
42
|
), {
|
|
41
|
-
colorsMap:
|
|
43
|
+
colorsMap: t
|
|
42
44
|
};
|
|
43
45
|
};
|
|
44
46
|
export {
|
|
45
|
-
|
|
47
|
+
A as useColorsMap
|
|
46
48
|
};
|
|
@@ -10,7 +10,7 @@ export declare const DROPDOWN_TYPE_OPTIONS: DropdownTypeOption[];
|
|
|
10
10
|
export declare const HEADER_HEIGHT = 76;
|
|
11
11
|
export declare const COMPACT_HEADER_HEIGHT = 43;
|
|
12
12
|
export declare const DEFAULT_CHART_PLANE_HEIGHT = 312;
|
|
13
|
-
export declare const MIN_PLANE_HEIGHT =
|
|
13
|
+
export declare const MIN_PLANE_HEIGHT = 211;
|
|
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";
|
|
@@ -26,6 +26,10 @@ export declare const NETWORK_PANGLE = "Pangle";
|
|
|
26
26
|
export declare const NETWORK_LIFTOFF = "Liftoff Monetize";
|
|
27
27
|
export declare const HOVER_TRANSPARENCY = 10;
|
|
28
28
|
export declare const HOVER_AREA_TRANSPARENCY = 70;
|
|
29
|
+
export declare const STACKED_LINE_TRANSPARENCY = 10;
|
|
30
|
+
export declare const CHART_ITEM_TRANSPARENCY = 70;
|
|
31
|
+
export declare const INCOMPLETE_DATA_BAR_TRANSPARENCY = 40;
|
|
32
|
+
export declare const LINE_DASH_STYLE: number[];
|
|
29
33
|
export declare const CHART_PADDING: {
|
|
30
34
|
left: number;
|
|
31
35
|
right: number;
|
|
@@ -1,47 +1,51 @@
|
|
|
1
1
|
import { ChartType as _ } from "./types.js";
|
|
2
|
-
const
|
|
2
|
+
const T = "#fcfcfc", t = "#E4E4E4", n = "#646464", A = {
|
|
3
3
|
size: 12,
|
|
4
4
|
weight: 400,
|
|
5
5
|
family: "Inter"
|
|
6
|
-
},
|
|
6
|
+
}, o = 4, R = 1, N = 5, O = [
|
|
7
7
|
{ id: _.Line, name: "Line" },
|
|
8
8
|
{ id: _.StackedLine, name: "Stack" },
|
|
9
9
|
{ id: _.Bar, name: "Bar" }
|
|
10
|
-
],
|
|
10
|
+
], c = 76, L = 43, s = 312, I = 211, C = "__TOTALS_HELPER_KEY__", D = "___BASE_COLOR__", e = "Bidding", P = "ironSource", S = "UnityAds", i = "Meta", H = "Google", K = "Mintegral", B = "AppLovin", M = "InMobi", a = "DT Exchange", G = "Pangle", r = "Liftoff Monetize", F = 10, W = 70, Y = 10, f = 70, d = 40, g = [4, 4], U = {
|
|
11
11
|
left: 18,
|
|
12
12
|
right: 18,
|
|
13
13
|
top: 18,
|
|
14
14
|
bottom: 11
|
|
15
|
-
},
|
|
15
|
+
}, m = 6, p = "dateLong";
|
|
16
16
|
export {
|
|
17
17
|
D as BASE_COLOR_KEY,
|
|
18
|
-
|
|
19
|
-
f as
|
|
18
|
+
e as BIDDING_PREFIX,
|
|
19
|
+
f as CHART_ITEM_TRANSPARENCY,
|
|
20
|
+
U as CHART_PADDING,
|
|
20
21
|
L as COMPACT_HEADER_HEIGHT,
|
|
21
22
|
s as DEFAULT_CHART_PLANE_HEIGHT,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
N as DEFAULT_MAX_VISIBLE,
|
|
24
|
+
R as DEFAULT_MIN_VISIBLE,
|
|
25
|
+
o as DEFAULT_TICK_COUNT,
|
|
26
|
+
O as DROPDOWN_TYPE_OPTIONS,
|
|
27
|
+
t as GRID_LINE_COLOR,
|
|
28
|
+
c as HEADER_HEIGHT,
|
|
28
29
|
W as HOVER_AREA_TRANSPARENCY,
|
|
29
30
|
F as HOVER_TRANSPARENCY,
|
|
30
|
-
|
|
31
|
+
d as INCOMPLETE_DATA_BAR_TRANSPARENCY,
|
|
32
|
+
g as LINE_DASH_STYLE,
|
|
33
|
+
p as LONG_DATE_FORMAT,
|
|
31
34
|
I as MIN_PLANE_HEIGHT,
|
|
32
35
|
H as NETWORK_AD_MOB,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
B as NETWORK_APPLOVIN,
|
|
37
|
+
a as NETWORK_DT_EXCHANGE,
|
|
38
|
+
i as NETWORK_FACEBOOK_META,
|
|
39
|
+
M as NETWORK_INMOBI,
|
|
40
|
+
P as NETWORK_IRON_SOURCE,
|
|
38
41
|
r as NETWORK_LIFTOFF,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
K as NETWORK_MINTEGRAL,
|
|
43
|
+
G as NETWORK_PANGLE,
|
|
44
|
+
S as NETWORK_UNITY_ADS,
|
|
45
|
+
T as POINT_BORDER_COLOR,
|
|
46
|
+
Y as STACKED_LINE_TRANSPARENCY,
|
|
47
|
+
m as TICKS_EXTRA_PADDING,
|
|
48
|
+
n as TICK_LABEL_COLOR,
|
|
49
|
+
A as TICK_LABEL_FONT,
|
|
50
|
+
C as TOTALS_HELPER_KEY
|
|
47
51
|
};
|
|
@@ -41,10 +41,13 @@ declare const ChartTypes: () => ({
|
|
|
41
41
|
tooltipTotalType: import("../../utils/totals").TotalType;
|
|
42
42
|
tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
|
|
43
43
|
tooltipOrder: TooltipOrder;
|
|
44
|
+
indicateIncompleteData: boolean;
|
|
45
|
+
tooltipExcludeTotalItem: boolean;
|
|
44
46
|
fullHeight: boolean;
|
|
45
47
|
fullHeightBottomSpacing: number;
|
|
46
48
|
withSettingsHeader: boolean;
|
|
47
49
|
extraCharts: Record<string, unknown>[];
|
|
50
|
+
colorVariant: import("./types").ColorVariant;
|
|
48
51
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
49
52
|
header: {
|
|
50
53
|
type: import("vue").PropType<string>;
|
|
@@ -199,6 +202,14 @@ declare const ChartTypes: () => ({
|
|
|
199
202
|
type: import("vue").PropType<TooltipOrder>;
|
|
200
203
|
default: TooltipOrder;
|
|
201
204
|
};
|
|
205
|
+
indicateIncompleteData: {
|
|
206
|
+
type: import("vue").PropType<boolean>;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
tooltipExcludeTotalItem: {
|
|
210
|
+
type: import("vue").PropType<boolean>;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
202
213
|
fullHeight: {
|
|
203
214
|
type: import("vue").PropType<boolean>;
|
|
204
215
|
default: boolean;
|
|
@@ -215,11 +226,15 @@ declare const ChartTypes: () => ({
|
|
|
215
226
|
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
216
227
|
default: () => any[];
|
|
217
228
|
};
|
|
229
|
+
colorVariant: {
|
|
230
|
+
type: import("vue").PropType<import("./types").ColorVariant>;
|
|
231
|
+
default: string;
|
|
232
|
+
};
|
|
218
233
|
}>> & {
|
|
219
234
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
220
235
|
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
221
236
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
222
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "xAxisDateInterval" | "totalsChart" | "parsing" | "yAxisFormat" | "valueSuffix" | "valuePrefix" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts">;
|
|
237
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "xAxisDateInterval" | "totalsChart" | "parsing" | "yAxisFormat" | "valueSuffix" | "valuePrefix" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "indicateIncompleteData" | "tooltipExcludeTotalItem" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts" | "colorVariant">;
|
|
223
238
|
$attrs: {
|
|
224
239
|
[x: string]: unknown;
|
|
225
240
|
};
|
|
@@ -387,6 +402,14 @@ declare const ChartTypes: () => ({
|
|
|
387
402
|
type: import("vue").PropType<TooltipOrder>;
|
|
388
403
|
default: TooltipOrder;
|
|
389
404
|
};
|
|
405
|
+
indicateIncompleteData: {
|
|
406
|
+
type: import("vue").PropType<boolean>;
|
|
407
|
+
default: boolean;
|
|
408
|
+
};
|
|
409
|
+
tooltipExcludeTotalItem: {
|
|
410
|
+
type: import("vue").PropType<boolean>;
|
|
411
|
+
default: boolean;
|
|
412
|
+
};
|
|
390
413
|
fullHeight: {
|
|
391
414
|
type: import("vue").PropType<boolean>;
|
|
392
415
|
default: boolean;
|
|
@@ -403,6 +426,10 @@ declare const ChartTypes: () => ({
|
|
|
403
426
|
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
404
427
|
default: () => any[];
|
|
405
428
|
};
|
|
429
|
+
colorVariant: {
|
|
430
|
+
type: import("vue").PropType<import("./types").ColorVariant>;
|
|
431
|
+
default: string;
|
|
432
|
+
};
|
|
406
433
|
}>> & {
|
|
407
434
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
408
435
|
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
@@ -448,10 +475,13 @@ declare const ChartTypes: () => ({
|
|
|
448
475
|
tooltipTotalType: import("../../utils/totals").TotalType;
|
|
449
476
|
tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
|
|
450
477
|
tooltipOrder: TooltipOrder;
|
|
478
|
+
indicateIncompleteData: boolean;
|
|
479
|
+
tooltipExcludeTotalItem: boolean;
|
|
451
480
|
fullHeight: boolean;
|
|
452
481
|
fullHeightBottomSpacing: number;
|
|
453
482
|
withSettingsHeader: boolean;
|
|
454
483
|
extraCharts: Record<string, unknown>[];
|
|
484
|
+
colorVariant: import("./types").ColorVariant;
|
|
455
485
|
}, {}, string> & {
|
|
456
486
|
beforeCreate?: (() => void) | (() => void)[];
|
|
457
487
|
created?: (() => void) | (() => void)[];
|
|
@@ -626,6 +656,14 @@ declare const ChartTypes: () => ({
|
|
|
626
656
|
type: import("vue").PropType<TooltipOrder>;
|
|
627
657
|
default: TooltipOrder;
|
|
628
658
|
};
|
|
659
|
+
indicateIncompleteData: {
|
|
660
|
+
type: import("vue").PropType<boolean>;
|
|
661
|
+
default: boolean;
|
|
662
|
+
};
|
|
663
|
+
tooltipExcludeTotalItem: {
|
|
664
|
+
type: import("vue").PropType<boolean>;
|
|
665
|
+
default: boolean;
|
|
666
|
+
};
|
|
629
667
|
fullHeight: {
|
|
630
668
|
type: import("vue").PropType<boolean>;
|
|
631
669
|
default: boolean;
|
|
@@ -642,6 +680,10 @@ declare const ChartTypes: () => ({
|
|
|
642
680
|
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
643
681
|
default: () => any[];
|
|
644
682
|
};
|
|
683
|
+
colorVariant: {
|
|
684
|
+
type: import("vue").PropType<import("./types").ColorVariant>;
|
|
685
|
+
default: string;
|
|
686
|
+
};
|
|
645
687
|
}>> & {
|
|
646
688
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
647
689
|
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
@@ -804,6 +846,14 @@ declare const ChartTypes: () => ({
|
|
|
804
846
|
type: import("vue").PropType<TooltipOrder>;
|
|
805
847
|
default: TooltipOrder;
|
|
806
848
|
};
|
|
849
|
+
indicateIncompleteData: {
|
|
850
|
+
type: import("vue").PropType<boolean>;
|
|
851
|
+
default: boolean;
|
|
852
|
+
};
|
|
853
|
+
tooltipExcludeTotalItem: {
|
|
854
|
+
type: import("vue").PropType<boolean>;
|
|
855
|
+
default: boolean;
|
|
856
|
+
};
|
|
807
857
|
fullHeight: {
|
|
808
858
|
type: import("vue").PropType<boolean>;
|
|
809
859
|
default: boolean;
|
|
@@ -820,6 +870,10 @@ declare const ChartTypes: () => ({
|
|
|
820
870
|
type: import("vue").PropType<Record<string, unknown>[]>;
|
|
821
871
|
default: () => any[];
|
|
822
872
|
};
|
|
873
|
+
colorVariant: {
|
|
874
|
+
type: import("vue").PropType<import("./types").ColorVariant>;
|
|
875
|
+
default: string;
|
|
876
|
+
};
|
|
823
877
|
}>> & {
|
|
824
878
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
825
879
|
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
@@ -865,10 +919,13 @@ declare const ChartTypes: () => ({
|
|
|
865
919
|
tooltipTotalType: import("../../utils/totals").TotalType;
|
|
866
920
|
tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
|
|
867
921
|
tooltipOrder: TooltipOrder;
|
|
922
|
+
indicateIncompleteData: boolean;
|
|
923
|
+
tooltipExcludeTotalItem: boolean;
|
|
868
924
|
fullHeight: boolean;
|
|
869
925
|
fullHeightBottomSpacing: number;
|
|
870
926
|
withSettingsHeader: boolean;
|
|
871
927
|
extraCharts: Record<string, unknown>[];
|
|
928
|
+
colorVariant: import("./types").ColorVariant;
|
|
872
929
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
873
930
|
$slots: {
|
|
874
931
|
"before-chart-type"?(_: {}): any;
|
|
@@ -38,6 +38,7 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
38
38
|
id: number;
|
|
39
39
|
label: string;
|
|
40
40
|
caption: string;
|
|
41
|
+
isTotal: boolean;
|
|
41
42
|
icon: string;
|
|
42
43
|
data: {
|
|
43
44
|
date: string;
|
|
@@ -58,6 +59,20 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
58
59
|
value2: number;
|
|
59
60
|
value3: number;
|
|
60
61
|
}[];
|
|
62
|
+
isTotal?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: number;
|
|
65
|
+
label: string;
|
|
66
|
+
caption: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
data: {
|
|
69
|
+
date: string;
|
|
70
|
+
value: number;
|
|
71
|
+
value2: number;
|
|
72
|
+
value3: number;
|
|
73
|
+
}[];
|
|
74
|
+
isTotal?: undefined;
|
|
75
|
+
iconType?: undefined;
|
|
61
76
|
})[];
|
|
62
77
|
export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
|
|
63
78
|
id: number;
|
|
@@ -24,6 +24,7 @@ export type ChartDataSet = {
|
|
|
24
24
|
iconType?: IconTypes;
|
|
25
25
|
countryFlag?: string;
|
|
26
26
|
image?: string;
|
|
27
|
+
isTotal?: boolean;
|
|
27
28
|
};
|
|
28
29
|
export type ChartParsingConfig = {
|
|
29
30
|
xAxisKey: string;
|
|
@@ -84,5 +85,6 @@ export declare enum TooltipOrder {
|
|
|
84
85
|
export declare enum TrendDirection {
|
|
85
86
|
UP = "up",
|
|
86
87
|
DOWN = "down",
|
|
87
|
-
NEUTRAL = "
|
|
88
|
+
NEUTRAL = "neutral"
|
|
88
89
|
}
|
|
90
|
+
export type ColorVariant = 'default' | 'mediation';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var L = /* @__PURE__ */ ((e) => (e.Line = "line", e.Bar = "bar", e.StackedLine = "stackedLine", e.StackedBar = "stackedBar", e))(L || {}), a = /* @__PURE__ */ ((e) => (e.DAILY = "daily", e.WEEKLY = "weekly", e.MONTHLY = "monthly", e))(a || {}), n = /* @__PURE__ */ ((e) => (e.Legend = "legend", e.YAxis = "yAxis", e))(n || {}), r = /* @__PURE__ */ ((e) => (e.UP = "up", e.DOWN = "down", e.NEUTRAL = "neutral", e))(r || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
L as ChartType,
|
|
4
|
+
a as DateInterval,
|
|
5
|
+
n as TooltipOrder,
|
|
6
|
+
r as TrendDirection
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PrepareTicksLabelArgs, ValueFormat } from '@/components/chart/types';
|
|
2
|
-
export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat, formatLowDigits?: boolean) => string;
|
|
2
|
+
export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat, formatLowDigits?: boolean, withSuffixSpace?: boolean) => string;
|
|
3
3
|
export declare const prepareTickLabel: ({ label, format, availableSpace, truncate, }: PrepareTicksLabelArgs) => string | string[];
|