@ironsource/shared-ui 2.1.12-rc.40 → 2.1.12-rc.41
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/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +25 -26
- package/index.js +1 -1
- package/package.json +1 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tooltip-title-wrapper[data-v-da3532aa]{display:flex;flex-direction:column;color:var(--text-primary);margin-bottom:var(--spacing-100)}.tooltip-title-wrapper .main-title[data-v-da3532aa]{display:flex;align-items:center;gap:.25rem}.tooltip-title-wrapper .title-text[data-v-da3532aa]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tooltip-title-wrapper .title-image[data-v-da3532aa]{width:20px;height:20px;border-radius:4px}.tooltip-title-wrapper .tooltip-sub-title[data-v-da3532aa]{color:var(--text-secondary)}.tooltip-title-wrapper .platform-icon[data-v-da3532aa]{color:var(--action-active)}
|
|
@@ -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,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
|
};
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.tooltip-title-wrapper[data-v-5160f12d]{display:flex;flex-direction:column;color:var(--text-primary);margin-bottom:var(--spacing-100)}.tooltip-title-wrapper .main-title[data-v-5160f12d]{display:flex;align-items:center;gap:.25rem}.tooltip-title-wrapper .title-text[data-v-5160f12d]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tooltip-title-wrapper .title-image[data-v-5160f12d]{width:20px;height:20px;border-radius:4px}.tooltip-title-wrapper .tooltip-sub-title[data-v-5160f12d]{color:var(--text-secondary)}.tooltip-title-wrapper .platform-icon[data-v-5160f12d]{color:var(--action-active)}
|