@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.
Files changed (153) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  2. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  3. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
  4. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
  5. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  6. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
  8. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  9. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  10. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  11. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  12. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  13. package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +1 -0
  14. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  15. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  16. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  17. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  18. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  19. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +1 -0
  20. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  21. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +1 -0
  22. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  23. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  24. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  25. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  26. package/components/chart/Chart.vue.d.ts +16 -1
  27. package/components/chart/Chart.vue.js +4 -4
  28. package/components/chart/Chart.vue2.js +38 -32
  29. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  30. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  31. package/components/chart/ChartPlane.vue.d.ts +10 -0
  32. package/components/chart/ChartPlane.vue.js +4 -4
  33. package/components/chart/ChartPlane.vue2.js +158 -147
  34. package/components/chart/ChartStoryArgs.d.ts +17 -0
  35. package/components/chart/ChartTooltip.vue.js +2 -2
  36. package/components/chart/ChartTooltip.vue2.js +6 -6
  37. package/components/chart/TooltipHeader.vue.js +3 -3
  38. package/components/chart/TooltipHeader.vue2.js +25 -26
  39. package/components/chart/colorPalette.d.ts +2 -1
  40. package/components/chart/colorPalette.js +47 -33
  41. package/components/chart/composables/useColorsMap.d.ts +3 -1
  42. package/components/chart/composables/useColorsMap.js +32 -30
  43. package/components/chart/consts.d.ts +5 -1
  44. package/components/chart/consts.js +30 -26
  45. package/components/chart/index.d.ts +58 -1
  46. package/components/chart/mockData.d.ts +15 -0
  47. package/components/chart/types.d.ts +3 -1
  48. package/components/chart/types.js +5 -5
  49. package/components/chart/utils/utils.d.ts +1 -1
  50. package/components/chart/utils/utils.js +18 -13
  51. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  52. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  53. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  54. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  55. package/components/columnPicker/OptionChip.vue.js +7 -0
  56. package/components/columnPicker/OptionChip.vue2.js +46 -0
  57. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  58. package/components/columnPicker/RemoveButton.vue.js +7 -0
  59. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  60. package/components/columnPicker/index.d.ts +388 -0
  61. package/components/columnPicker/index.js +6 -0
  62. package/components/columnPicker/mockData.d.ts +8 -0
  63. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  64. package/components/dialog/v3/index.d.ts +46 -46
  65. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  66. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  67. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  68. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  69. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  70. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  71. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  72. package/components/dialog/v4/DialogV4.vue.js +3 -3
  73. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  74. package/components/dialog/v4/index.d.ts +157 -157
  75. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  76. package/components/dropdown/v3/index.d.ts +20 -20
  77. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  78. package/components/dropdown/v4/ConditionalDropdown.vue2.js +176 -171
  79. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  80. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  81. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  82. package/components/dropdown/v4/index.d.ts +20 -1
  83. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  84. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  85. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  86. package/components/includeExclude/index.d.ts +70 -70
  87. package/components/input/v4/TextField.vue.d.ts +12 -0
  88. package/components/input/v4/TextField.vue.js +3 -3
  89. package/components/input/v4/TextField.vue2.js +129 -105
  90. package/components/input/v4/index.d.ts +46 -2
  91. package/components/link/Link.vue.d.ts +20 -0
  92. package/components/link/Link.vue.js +2 -2
  93. package/components/link/Link.vue2.js +35 -21
  94. package/components/link/index.d.ts +77 -1
  95. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  96. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  97. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  98. package/components/radioButton/v3/index.d.ts +20 -1
  99. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  100. package/components/sortableList/SortableItem.vue.js +3 -3
  101. package/components/sortableList/SortableItem.vue2.js +86 -70
  102. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  103. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  104. package/components/sortableList/SortableList.types.d.ts +1 -0
  105. package/components/sortableList/SortableList.vue.d.ts +10 -0
  106. package/components/sortableList/SortableList.vue.js +3 -3
  107. package/components/sortableList/SortableList.vue2.js +104 -96
  108. package/components/sortableList/composables/useHoverEffect.js +1 -1
  109. package/components/sortableList/index.d.ts +39 -1
  110. package/components/table/v4/DataGrid.vue.d.ts +4 -4
  111. package/components/table/v4/DataGrid.vue.js +3 -3
  112. package/components/table/v4/DataGrid.vue2.js +237 -245
  113. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  114. package/components/table/v4/DataGridHeader.vue.js +7 -0
  115. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  116. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  117. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  118. package/components/table/v4/MultipleDataGrid.vue.d.ts +6 -5
  119. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  120. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  121. package/components/table/v4/index.d.ts +552 -305
  122. package/components/table/v4/index.js +7 -4
  123. package/components/table/v4/storyUtils.d.ts +25 -0
  124. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  125. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  126. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  127. package/components/tooltip/v4/index.d.ts +20 -1
  128. package/index.d.ts +2153 -1419
  129. package/index.js +99 -95
  130. package/package.json +5 -1
  131. package/testids/index.d.ts +7 -1
  132. package/testids/index.js +26 -25
  133. package/utils/date.js +3 -3
  134. package/utils/formatNumbers.d.ts +1 -1
  135. package/utils/formatNumbers.js +38 -21
  136. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
  137. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  138. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  139. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +0 -1
  140. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
  141. package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +0 -1
  142. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  143. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  144. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +0 -1
  145. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  146. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  147. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  148. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  149. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  150. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  151. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  152. package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +0 -1
  153. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
@@ -1,13 +1,12 @@
1
- import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css"; import { defineComponent as v, computed as u, openBlock as i, createElementBlock as f, createElementVNode as A, unref as t, createCommentVNode as s, createBlock as m, createVNode as D, withCtx as d, createTextVNode as x, toDisplayString as p } from "vue";
2
- import { getUTCDate as T } from "../../utils/date.js";
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 C from "../icon/v4/IconFlag.vue.js";
8
- import { startOfWeek as F, endOfWeek as I, startOfMonth as O, endOfMonth as E } from "date-fns";
9
- import { LONG_DATE_FORMAT as n } from "./consts.js";
10
- const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"], S = /* @__PURE__ */ v({
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, o = u(() => e.dataPoints.length ? e.dataPoints[0].dataset : null), h = u(() => e.totalsChart ? o.value?.label || e.title : e.xAxisFormat === "date" ? g(T(e.title)) : r(e.title, e.xAxisFormat)), g = (l) => e.xAxisDateInterval === c.WEEKLY ? `
21
- ${r(F(l), n)} -
22
- ${r(I(l), n)}
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
- ${r(O(l), n)} -
25
- ${r(E(l), n)}
26
- ` : r(l, n);
27
- return (l, V) => (i(), f("div", N, [
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(o)?.image ? (i(), f("img", {
28
+ a.totalsChart && t(r)?.image ? (n(), f("img", {
30
29
  key: 0,
31
30
  class: "title-image",
32
- src: t(o)?.image
31
+ src: t(r)?.image
33
32
  }, null, 8, M)) : s("", !0),
34
- a.totalsChart && t(o)?.countryFlag ? (i(), m(t(C), {
33
+ a.totalsChart && t(r)?.countryFlag ? (n(), u(t(O), {
35
34
  key: 1,
36
- "country-code": t(o).countryFlag
35
+ "country-code": t(r).countryFlag
37
36
  }, null, 8, ["country-code"])) : s("", !0),
38
- a.totalsChart && t(o)?.icon ? (i(), m(t(k), {
37
+ a.totalsChart && t(r)?.icon ? (n(), u(t(k), {
39
38
  key: 2,
40
39
  class: "platform-icon",
41
- type: t(o)?.iconType,
42
- name: t(o)?.icon,
40
+ type: t(r)?.iconType,
41
+ name: t(r)?.icon,
43
42
  size: "16px"
44
43
  }, null, 8, ["type", "name"])) : s("", !0),
45
- D(t(y), {
44
+ T(t(y), {
46
45
  class: "title-text",
47
46
  variant: "subtitle2"
48
47
  }, {
49
48
  default: d(() => [
50
- x(p(t(h)), 1)
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 ? (i(), m(t(y), {
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(r)(a.title, "day")), 1)
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
- S as default
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 COLOR_PALETTE: HexColor[];
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 _, 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 = [
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: "#272EC4",
20
- CN: "#F52E1E",
21
- GB: "#0082FF",
22
- DE: "#FFD600",
23
- JP: "#BA0029",
24
- AU: "#009BCB",
25
- FR: "#34A853",
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: "#0082FF",
28
- Interstitial: "#009BCB",
29
- Banner: "#9668FF",
30
- Native: "#FF35A2",
39
+ Rewarded: "#80BCFE",
40
+ Interstitial: "#8D001F",
41
+ Banner: "#E57D00",
42
+ Native: "#ACC62C",
43
+ Offerwall: "#9999FF",
31
44
  // Ad sources
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"
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
- t as RESERVED_COLORS_MAP
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 n, ref as r, watch as E } from "vue";
2
- import { RESERVED_COLORS_MAP as c, COLOR_PALETTE as O, DEFAULT_CHART_COLOR as R } from "../colorPalette.js";
3
- const T = ({ dataSets: u, visibleIds: i }) => {
4
- const a = n(
5
- () => u.value.filter(
6
- (o) => i.value.includes(o.id)
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
- ), l = r({
12
+ ), t = n({
9
13
  ...c
10
14
  // destructuring is important to avoid mutating the reserved colors object
11
- }), s = r([]), v = n(
12
- () => O.filter((o) => !s.value.includes(o))
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 (!l.value[e]) {
17
- const t = o.color || v.value[0] || R;
18
- C(e, t);
18
+ if (!t.value[e]) {
19
+ const l = o.color || d.value[0] || L;
20
+ E(e, l);
19
21
  }
20
22
  });
21
- }, f = () => {
22
- Object.keys(l.value).forEach((o) => {
23
- const e = a.value.find((m) => String(m.id) === o), t = !!c[o];
24
- !e && !t && p(o);
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
- }, C = (o, e) => {
27
- l.value[String(o)] = e, s.value.push(e);
28
- }, p = (o) => {
29
- const e = l.value[o];
30
- delete l.value[o];
31
- const t = s.value.indexOf(e);
32
- t > -1 && s.value.splice(t, 1);
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 E(
35
- a,
36
+ return p(
37
+ s,
36
38
  () => {
37
- f(), d();
39
+ C(), f();
38
40
  },
39
41
  { immediate: !0 }
40
42
  ), {
41
- colorsMap: l
43
+ colorsMap: t
42
44
  };
43
45
  };
44
46
  export {
45
- T as useColorsMap
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 = 187;
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 t = "#fcfcfc", n = "#E4E4E4", T = "#646464", o = {
2
+ const T = "#fcfcfc", t = "#E4E4E4", n = "#646464", A = {
3
3
  size: 12,
4
4
  weight: 400,
5
5
  family: "Inter"
6
- }, O = 4, A = 1, R = 5, c = [
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
- ], N = 76, L = 43, s = 312, I = 187, e = "__TOTALS_HELPER_KEY__", D = "___BASE_COLOR__", i = "Bidding", C = "ironSource", K = "UnityAds", P = "Meta", H = "Google", S = "Mintegral", a = "AppLovin", B = "InMobi", G = "DT Exchange", M = "Pangle", r = "Liftoff Monetize", F = 10, W = 70, f = {
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
- }, d = 6, g = "dateLong";
15
+ }, m = 6, p = "dateLong";
16
16
  export {
17
17
  D as BASE_COLOR_KEY,
18
- i as BIDDING_PREFIX,
19
- f as CHART_PADDING,
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
- R as DEFAULT_MAX_VISIBLE,
23
- A as DEFAULT_MIN_VISIBLE,
24
- O as DEFAULT_TICK_COUNT,
25
- c as DROPDOWN_TYPE_OPTIONS,
26
- n as GRID_LINE_COLOR,
27
- N as HEADER_HEIGHT,
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
- g as LONG_DATE_FORMAT,
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
- a as NETWORK_APPLOVIN,
34
- G as NETWORK_DT_EXCHANGE,
35
- P as NETWORK_FACEBOOK_META,
36
- B as NETWORK_INMOBI,
37
- C as NETWORK_IRON_SOURCE,
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
- S as NETWORK_MINTEGRAL,
40
- M as NETWORK_PANGLE,
41
- K as NETWORK_UNITY_ADS,
42
- t as POINT_BORDER_COLOR,
43
- d as TICKS_EXTRA_PADDING,
44
- T as TICK_LABEL_COLOR,
45
- o as TICK_LABEL_FONT,
46
- e as TOTALS_HELPER_KEY
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 = "right"
88
+ NEUTRAL = "neutral"
88
89
  }
90
+ export type ColorVariant = 'default' | 'mediation';
@@ -1,7 +1,7 @@
1
- var e = /* @__PURE__ */ ((L) => (L.Line = "line", L.Bar = "bar", L.StackedLine = "stackedLine", L.StackedBar = "stackedBar", L))(e || {}), r = /* @__PURE__ */ ((L) => (L.DAILY = "daily", L.WEEKLY = "weekly", L.MONTHLY = "monthly", L))(r || {}), a = /* @__PURE__ */ ((L) => (L.Legend = "legend", L.YAxis = "yAxis", L))(a || {}), n = /* @__PURE__ */ ((L) => (L.UP = "up", L.DOWN = "down", L.NEUTRAL = "right", L))(n || {});
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
- e as ChartType,
4
- r as DateInterval,
5
- a as TooltipOrder,
6
- n as TrendDirection
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[];