@ironsource/shared-ui 2.1.12-test.98 → 2.1.12
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_060d02be_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_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_8cc86a27_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_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/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_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/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_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_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_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/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +21 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +130 -114
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +49 -44
- package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +43 -39
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +76 -71
- package/components/chart/ChartPlane.vue.d.ts +15 -0
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +173 -156
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +39 -35
- package/components/chart/LegendSorting.vue.d.ts +5 -0
- package/components/chart/LegendSorting.vue.js +16 -14
- package/components/chart/SettingsHeader.vue.d.ts +19 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +36 -29
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +26 -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 +77 -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 +20 -14
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +73 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- 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/dateRange/common/DateRange.common.js +60 -60
- 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 +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- 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/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +81 -3
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
- package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
- package/components/emptyState/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 +95 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +65 -0
- package/components/link/index.d.ts +296 -0
- package/components/link/index.js +6 -0
- 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/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +5 -5
- 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 +12 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +111 -113
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +77 -39
- package/components/table/common/consts.d.ts +2 -0
- package/components/table/common/consts.js +6 -4
- package/components/table/v4/DataGrid.vue.d.ts +12 -7
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +273 -268
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- 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 +84 -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 +8 -7
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
- package/components/table/v4/index.d.ts +646 -332
- package/components/table/v4/index.js +11 -5
- package/components/table/v4/storyUtils.d.ts +25 -0
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -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 +2675 -1649
- package/index.js +137 -121
- package/package.json +18 -1
- package/testids/index.d.ts +47 -1
- package/testids/index.js +40 -32
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_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_e53c6287_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_b21a79b1_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/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_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_3b15c693_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import "../../ChartTooltip.
|
|
1
|
+
import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css"; import { defineComponent as v, openBlock as l, createElementBlock as o, mergeProps as h, unref as e, createBlock as f, createCommentVNode as r, Fragment as b, renderList as C, createElementVNode as c, normalizeStyle as k, createVNode as i, withCtx as s, createTextVNode as u, toDisplayString as n } from "vue";
|
|
2
2
|
import d from "../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import A from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
|
-
import { formatValue as
|
|
6
|
-
import
|
|
7
|
-
|
|
5
|
+
import { formatValue as m } from "./utils/utils.js";
|
|
6
|
+
import I from "./TooltipHeader.vue.js";
|
|
7
|
+
import { useTestIdAttrs as T } from "../../utils/testIds.js";
|
|
8
|
+
import { ChartTooltipTestIdModifiers as x } from "../../testids/index.js";
|
|
9
|
+
const g = {
|
|
8
10
|
key: 1,
|
|
9
11
|
class: "list"
|
|
10
|
-
},
|
|
12
|
+
}, p = { class: "popover-label-wrapper" }, V = {
|
|
11
13
|
key: 2,
|
|
12
14
|
class: "tooltip-footer"
|
|
13
|
-
},
|
|
15
|
+
}, O = /* @__PURE__ */ v({
|
|
14
16
|
__name: "ChartTooltip",
|
|
15
17
|
props: {
|
|
16
18
|
title: { default: "" },
|
|
@@ -22,11 +24,13 @@ const C = { class: "chart-tooltip" }, g = {
|
|
|
22
24
|
totalValue: { default: null },
|
|
23
25
|
totalsChart: { type: Boolean, default: !1 },
|
|
24
26
|
valueSuffix: { default: "" },
|
|
25
|
-
valuePrefix: { default: "" }
|
|
27
|
+
valuePrefix: { default: "" },
|
|
28
|
+
testId: { default: "" }
|
|
26
29
|
},
|
|
27
30
|
setup(t) {
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
const y = T(t.testId, x);
|
|
32
|
+
return (N, S) => (l(), o("div", h({ class: "chart-tooltip" }, e(y)[e(x).CONTAINER]), [
|
|
33
|
+
t.title ? (l(), f(I, {
|
|
30
34
|
key: 0,
|
|
31
35
|
title: t.title,
|
|
32
36
|
"data-points": t.dataPoints,
|
|
@@ -34,64 +38,64 @@ const C = { class: "chart-tooltip" }, g = {
|
|
|
34
38
|
"x-axis-format": t.xAxisFormat,
|
|
35
39
|
"x-axis-date-interval": t.xAxisDateInterval
|
|
36
40
|
}, null, 8, ["title", "data-points", "totals-chart", "x-axis-format", "x-axis-date-interval"])) : r("", !0),
|
|
37
|
-
t.totalsChart ? r("", !0) : (
|
|
38
|
-
(
|
|
39
|
-
key:
|
|
41
|
+
t.totalsChart ? r("", !0) : (l(), o("ul", g, [
|
|
42
|
+
(l(!0), o(b, null, C(t.dataPoints, (a) => (l(), o("li", {
|
|
43
|
+
key: a.datasetIndex,
|
|
40
44
|
class: "list__item"
|
|
41
45
|
}, [
|
|
42
|
-
|
|
46
|
+
c("span", {
|
|
43
47
|
class: "color-box",
|
|
44
|
-
style:
|
|
45
|
-
backgroundColor: String(
|
|
48
|
+
style: k({
|
|
49
|
+
backgroundColor: String(a.dataset.pointBackgroundColor)
|
|
46
50
|
})
|
|
47
51
|
}, null, 4),
|
|
48
|
-
|
|
52
|
+
a.dataset.icon ? (l(), f(e(A), {
|
|
49
53
|
key: 0,
|
|
50
54
|
class: "platform-icon",
|
|
51
|
-
type:
|
|
52
|
-
name:
|
|
55
|
+
type: a.dataset.iconType,
|
|
56
|
+
name: a.dataset.icon,
|
|
53
57
|
size: "16px"
|
|
54
58
|
}, null, 8, ["type", "name"])) : r("", !0),
|
|
55
|
-
|
|
56
|
-
i(
|
|
59
|
+
c("div", p, [
|
|
60
|
+
i(e(d), {
|
|
57
61
|
variant: "body2",
|
|
58
62
|
class: "flex-grow truncated-label",
|
|
59
63
|
"is-truncated": ""
|
|
60
64
|
}, {
|
|
61
|
-
default:
|
|
62
|
-
|
|
65
|
+
default: s(() => [
|
|
66
|
+
u(n(a.dataset.label), 1)
|
|
63
67
|
]),
|
|
64
68
|
_: 2
|
|
65
69
|
}, 1024)
|
|
66
70
|
]),
|
|
67
|
-
i(
|
|
68
|
-
default:
|
|
69
|
-
|
|
71
|
+
i(e(d), { variant: "body2" }, {
|
|
72
|
+
default: s(() => [
|
|
73
|
+
u(n(t.valuePrefix + e(m)(a.parsed.y, t.yAxisFormat, !0, !1) + t.valueSuffix), 1)
|
|
70
74
|
]),
|
|
71
75
|
_: 2
|
|
72
76
|
}, 1024)
|
|
73
77
|
]))), 128))
|
|
74
78
|
])),
|
|
75
|
-
t.totalValue !== null ? (
|
|
76
|
-
i(
|
|
79
|
+
t.totalValue !== null ? (l(), o("div", V, [
|
|
80
|
+
i(e(d), {
|
|
77
81
|
variant: "body2",
|
|
78
82
|
class: "flex-grow"
|
|
79
83
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
|
|
84
|
+
default: s(() => [
|
|
85
|
+
u(n(t.totalLabel), 1)
|
|
82
86
|
]),
|
|
83
87
|
_: 1
|
|
84
88
|
}),
|
|
85
|
-
i(
|
|
86
|
-
default:
|
|
87
|
-
|
|
89
|
+
i(e(d), { variant: "body2" }, {
|
|
90
|
+
default: s(() => [
|
|
91
|
+
u(n(t.valuePrefix + e(m)(t.totalValue, t.yAxisFormat, !0) + t.valueSuffix), 1)
|
|
88
92
|
]),
|
|
89
93
|
_: 1
|
|
90
94
|
})
|
|
91
95
|
])) : r("", !0)
|
|
92
|
-
]));
|
|
96
|
+
], 16));
|
|
93
97
|
}
|
|
94
98
|
});
|
|
95
99
|
export {
|
|
96
|
-
|
|
100
|
+
O as default
|
|
97
101
|
};
|
|
@@ -2,19 +2,24 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
2
2
|
selected: unknown;
|
|
3
3
|
options: unknown[];
|
|
4
4
|
optionNameKey: string;
|
|
5
|
+
testId?: string;
|
|
5
6
|
}>, {
|
|
6
7
|
options: () => any[];
|
|
8
|
+
testId: string;
|
|
7
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
10
|
"update:selected": (option: unknown) => void;
|
|
9
11
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
12
|
selected: unknown;
|
|
11
13
|
options: unknown[];
|
|
12
14
|
optionNameKey: string;
|
|
15
|
+
testId?: string;
|
|
13
16
|
}>, {
|
|
14
17
|
options: () => any[];
|
|
18
|
+
testId: string;
|
|
15
19
|
}>>> & {
|
|
16
20
|
"onUpdate:selected"?: (option: unknown) => any;
|
|
17
21
|
}, {
|
|
22
|
+
testId: string;
|
|
18
23
|
options: unknown[];
|
|
19
24
|
}>;
|
|
20
25
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as
|
|
1
|
+
import { defineComponent as l, openBlock as s, createElementBlock as m, createVNode as r, unref as n, isRef as d, withCtx as a, mergeProps as c } from "vue";
|
|
2
2
|
import u from "../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import f from "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
@@ -15,28 +15,30 @@ const y = { class: "legend-sorting" }, L = /* @__PURE__ */ l({
|
|
|
15
15
|
props: {
|
|
16
16
|
selected: null,
|
|
17
17
|
options: { default: () => [] },
|
|
18
|
-
optionNameKey: null
|
|
18
|
+
optionNameKey: null,
|
|
19
|
+
testId: { default: "" }
|
|
19
20
|
},
|
|
20
21
|
emits: ["update:selected"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
return (v, i) => (
|
|
22
|
+
setup(e, { emit: p }) {
|
|
23
|
+
const o = g(e, "selected", p);
|
|
24
|
+
return (v, i) => (s(), m("div", y, [
|
|
24
25
|
r(n(u), {
|
|
25
|
-
selected: n(
|
|
26
|
-
"onUpdate:selected": i[0] || (i[0] = (
|
|
27
|
-
"display-value": (
|
|
28
|
-
options:
|
|
29
|
-
"option-name-key":
|
|
30
|
-
placement: "bottom-end"
|
|
26
|
+
selected: n(o),
|
|
27
|
+
"onUpdate:selected": i[0] || (i[0] = (t) => d(o) ? o.value = t : null),
|
|
28
|
+
"display-value": (t) => t[e.optionNameKey],
|
|
29
|
+
options: e.options,
|
|
30
|
+
"option-name-key": e.optionNameKey,
|
|
31
|
+
placement: "bottom-end",
|
|
32
|
+
"test-id": e.testId
|
|
31
33
|
}, {
|
|
32
|
-
"dropdown-trigger": a(({ buttonTriggerProps:
|
|
33
|
-
r(n(f), c(
|
|
34
|
+
"dropdown-trigger": a(({ buttonTriggerProps: t }) => [
|
|
35
|
+
r(n(f), c(t, {
|
|
34
36
|
"icon-name": "funnel-simple",
|
|
35
37
|
"icon-type": "regular"
|
|
36
38
|
}), null, 16)
|
|
37
39
|
]),
|
|
38
40
|
_: 1
|
|
39
|
-
}, 8, ["selected", "display-value", "options", "option-name-key"])
|
|
41
|
+
}, 8, ["selected", "display-value", "options", "option-name-key", "test-id"])
|
|
40
42
|
]));
|
|
41
43
|
}
|
|
42
44
|
});
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { ChartType } from './types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
chartType: ChartType;
|
|
4
4
|
hideLegend: boolean;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}>, {
|
|
7
|
+
testId: string;
|
|
5
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
9
|
"update:chartType": (type: ChartType) => void;
|
|
7
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
11
|
chartType: ChartType;
|
|
9
12
|
hideLegend: boolean;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}>, {
|
|
15
|
+
testId: string;
|
|
10
16
|
}>>> & {
|
|
11
17
|
"onUpdate:chartType"?: (type: ChartType) => any;
|
|
12
|
-
}, {
|
|
18
|
+
}, {
|
|
19
|
+
testId: string;
|
|
20
|
+
}>, {
|
|
13
21
|
"before-chart-type"?(_: {}): any;
|
|
14
22
|
metric?(_: {}): any;
|
|
15
23
|
breakdowns?(_: {}): any;
|
|
@@ -24,6 +32,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
24
32
|
required: true;
|
|
25
33
|
};
|
|
26
34
|
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
27
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
44
|
new (): {
|
|
29
45
|
$slots: S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./SettingsHeader.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../SettingsHeader.
|
|
4
|
-
const
|
|
3
|
+
// import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a869d327"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,66 +1,73 @@
|
|
|
1
|
-
import "../../SettingsHeader.
|
|
2
|
-
import
|
|
1
|
+
import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css"; import { defineComponent as y, computed as T, openBlock as v, createElementBlock as I, mergeProps as m, unref as t, createElementVNode as s, normalizeClass as c, renderSlot as i, createVNode as u, isRef as b, withCtx as w } from "vue";
|
|
2
|
+
import N from "../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import O from "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import "../dropdown/v4/OptionV4.vue.js";
|
|
11
11
|
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
12
|
-
import { DROPDOWN_TYPE_OPTIONS as
|
|
13
|
-
|
|
12
|
+
import { DROPDOWN_TYPE_OPTIONS as f } from "./consts.js";
|
|
13
|
+
import { useTestIdAttrs as k } from "../../utils/testIds.js";
|
|
14
|
+
import { ChartSettingsHeaderTestIdModifiers as n } from "../../testids/index.js";
|
|
15
|
+
const C = { class: "chart-type-selection" }, M = /* @__PURE__ */ y({
|
|
14
16
|
__name: "SettingsHeader",
|
|
15
17
|
props: {
|
|
16
18
|
chartType: null,
|
|
17
|
-
hideLegend: { type: Boolean }
|
|
19
|
+
hideLegend: { type: Boolean },
|
|
20
|
+
testId: { default: "" }
|
|
18
21
|
},
|
|
19
22
|
emits: ["update:chartType"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
23
|
+
setup(r, { emit: h }) {
|
|
24
|
+
const a = r, o = T({
|
|
22
25
|
get() {
|
|
23
|
-
return
|
|
26
|
+
return f.find(({ id: e }) => e === a.chartType);
|
|
24
27
|
},
|
|
25
28
|
set(e) {
|
|
26
|
-
|
|
29
|
+
h("update:chartType", e.id);
|
|
27
30
|
}
|
|
28
|
-
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
}), l = (e) => `Chart: ${e.name}`, g = k(
|
|
32
|
+
a.testId,
|
|
33
|
+
n
|
|
34
|
+
);
|
|
35
|
+
return (e, p) => (v(), I("div", m({ class: "settings-header-container" }, t(g)[t(n).CONTAINER]), [
|
|
36
|
+
s("div", {
|
|
37
|
+
class: c(["settings", { "settings-spacer": !r.hideLegend }])
|
|
32
38
|
}, [
|
|
33
39
|
i(e.$slots, "before-chart-type", {}, void 0, !0),
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
s("div", C, [
|
|
41
|
+
u(t(N), {
|
|
36
42
|
selected: t(o),
|
|
37
|
-
"onUpdate:selected":
|
|
38
|
-
options: t(
|
|
43
|
+
"onUpdate:selected": p[0] || (p[0] = (d) => b(o) ? o.value = d : null),
|
|
44
|
+
options: t(f),
|
|
39
45
|
"option-name-key": "name",
|
|
40
|
-
"display-value":
|
|
46
|
+
"display-value": l,
|
|
41
47
|
placeholder: "Select chart type",
|
|
42
|
-
size: "small"
|
|
48
|
+
size: "small",
|
|
49
|
+
"test-id": `${r.testId}-${t(n).TYPE_DROPDOWN}`
|
|
43
50
|
}, {
|
|
44
|
-
"dropdown-trigger":
|
|
45
|
-
|
|
46
|
-
label:
|
|
51
|
+
"dropdown-trigger": w(({ buttonTriggerProps: d }) => [
|
|
52
|
+
u(t(O), m(d, {
|
|
53
|
+
label: l(t(o))
|
|
47
54
|
}), null, 16, ["label"])
|
|
48
55
|
]),
|
|
49
56
|
_: 1
|
|
50
|
-
}, 8, ["selected", "options"])
|
|
57
|
+
}, 8, ["selected", "options", "test-id"])
|
|
51
58
|
]),
|
|
52
|
-
|
|
59
|
+
s("div", null, [
|
|
53
60
|
i(e.$slots, "metric", {}, void 0, !0)
|
|
54
61
|
])
|
|
55
62
|
], 2),
|
|
56
|
-
|
|
57
|
-
class:
|
|
63
|
+
s("div", {
|
|
64
|
+
class: c(["breakdowns", { "breakdowns-border": !r.hideLegend }])
|
|
58
65
|
}, [
|
|
59
66
|
i(e.$slots, "breakdowns", {}, void 0, !0)
|
|
60
67
|
], 2)
|
|
61
|
-
]));
|
|
68
|
+
], 16));
|
|
62
69
|
}
|
|
63
70
|
});
|
|
64
71
|
export {
|
|
65
|
-
|
|
72
|
+
M as default
|
|
66
73
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TooltipHeader.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../TooltipHeader.
|
|
4
|
-
const
|
|
3
|
+
// import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-da3532aa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../TooltipHeader.
|
|
2
|
-
import { formatValue as
|
|
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";
|
|
3
3
|
import y from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import { DateInterval as c } from "./types.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { startOfWeek as C, endOfWeek as F, startOfMonth as I, endOfMonth as
|
|
5
|
+
import k from "../icon/v4/IconV4.vue.js";
|
|
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
8
|
import { LONG_DATE_FORMAT as i } from "./consts.js";
|
|
9
|
-
const
|
|
9
|
+
const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"], K = /* @__PURE__ */ v({
|
|
10
10
|
__name: "TooltipHeader",
|
|
11
11
|
props: {
|
|
12
12
|
title: { default: "" },
|
|
@@ -16,37 +16,37 @@ const E = { class: "tooltip-title-wrapper" }, N = { class: "main-title" }, L = [
|
|
|
16
16
|
totalsChart: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
18
|
setup(a) {
|
|
19
|
-
const e = a,
|
|
20
|
-
${
|
|
21
|
-
${
|
|
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)}
|
|
22
22
|
` : e.xAxisDateInterval === c.MONTHLY ? `
|
|
23
|
-
${
|
|
24
|
-
${
|
|
25
|
-
` :
|
|
26
|
-
return (l,
|
|
27
|
-
A("div",
|
|
28
|
-
a.totalsChart && t(
|
|
23
|
+
${o(I(l), i)} -
|
|
24
|
+
${o(h(E(l)), i)}
|
|
25
|
+
` : o(l, i);
|
|
26
|
+
return (l, V) => (n(), f("div", N, [
|
|
27
|
+
A("div", L, [
|
|
28
|
+
a.totalsChart && t(r)?.image ? (n(), f("img", {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "title-image",
|
|
31
|
-
src: t(
|
|
32
|
-
}, null, 8,
|
|
33
|
-
a.totalsChart && t(
|
|
31
|
+
src: t(r)?.image
|
|
32
|
+
}, null, 8, M)) : s("", !0),
|
|
33
|
+
a.totalsChart && t(r)?.countryFlag ? (n(), u(t(O), {
|
|
34
34
|
key: 1,
|
|
35
|
-
"country-code": t(
|
|
35
|
+
"country-code": t(r).countryFlag
|
|
36
36
|
}, null, 8, ["country-code"])) : s("", !0),
|
|
37
|
-
a.totalsChart && t(
|
|
37
|
+
a.totalsChart && t(r)?.icon ? (n(), u(t(k), {
|
|
38
38
|
key: 2,
|
|
39
39
|
class: "platform-icon",
|
|
40
|
-
type: t(
|
|
41
|
-
name: t(
|
|
40
|
+
type: t(r)?.iconType,
|
|
41
|
+
name: t(r)?.icon,
|
|
42
42
|
size: "16px"
|
|
43
43
|
}, null, 8, ["type", "name"])) : s("", !0),
|
|
44
|
-
|
|
44
|
+
T(t(y), {
|
|
45
45
|
class: "title-text",
|
|
46
46
|
variant: "subtitle2"
|
|
47
47
|
}, {
|
|
48
48
|
default: d(() => [
|
|
49
|
-
x(p(t(
|
|
49
|
+
x(p(t(D)), 1)
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
})
|
|
@@ -57,7 +57,7 @@ const E = { class: "tooltip-title-wrapper" }, N = { class: "main-title" }, L = [
|
|
|
57
57
|
variant: "caption"
|
|
58
58
|
}, {
|
|
59
59
|
default: d(() => [
|
|
60
|
-
x(p(t(
|
|
60
|
+
x(p(t(o)(a.title, "day")), 1)
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
})) : s("", !0)
|
|
@@ -65,5 +65,5 @@ const E = { class: "tooltip-title-wrapper" }, N = { class: "main-title" }, L = [
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
K as default
|
|
69
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 {};
|