@ironsource/shared-ui 2.1.12-rc.39 → 2.1.12-rc.40
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/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +6 -6
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +18 -13
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-tooltip[data-v-3d0780bb]{color:var(--text-primary);background:var(--common-white);box-shadow:0 4px 8px -2px #1018281f;border:1px solid var(--common-divider-elevation-0);border-radius:var(--border-radius-md);width:280px;padding:calc(var(--spacing-100) - 1px)}.color-box[data-v-3d0780bb]{width:12px;height:12px;border-radius:2px;display:inline-block;margin-right:var(--spacing-100)}.color-box+.platform-icon[data-v-3d0780bb]{margin-left:calc(var(--spacing-50) - var(--spacing-100))}.list[data-v-3d0780bb]{list-style:none;margin:0;padding:0}.list__item[data-v-3d0780bb]{display:flex;align-items:center;margin-bottom:var(--spacing-50);color:var(--text-secondary)}.list__item[data-v-3d0780bb]:last-child{margin-bottom:0}.platform-icon[data-v-3d0780bb]{color:var(--action-active);margin-right:var(--spacing-50)}.popover-label-wrapper[data-v-3d0780bb]{display:flex;width:200px;flex-grow:1}.truncated-label[data-v-3d0780bb]{max-width:90%}.tooltip-footer[data-v-3d0780bb]{display:flex;align-items:center;margin-top:var(--spacing-100);color:var(--text-primary)}.flex-grow[data-v-3d0780bb]{flex-grow:1}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ChartTooltip.vue2.js";
|
|
2
2
|
/* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartTooltip.
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d0780bb"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ChartTooltip.
|
|
1
|
+
import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css"; import { defineComponent as m, openBlock as a, createElementBlock as o, createBlock as f, createCommentVNode as r, Fragment as y, renderList as v, createElementVNode as c, normalizeStyle as h, unref as l, createVNode as i, withCtx as n, createTextVNode as u, toDisplayString as s } from "vue";
|
|
2
2
|
import d from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import b from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
@@ -26,7 +26,7 @@ const C = { class: "chart-tooltip" }, g = {
|
|
|
26
26
|
},
|
|
27
27
|
setup(t) {
|
|
28
28
|
return (F, S) => (a(), o("div", C, [
|
|
29
|
-
t.title ? (a(),
|
|
29
|
+
t.title ? (a(), f(k, {
|
|
30
30
|
key: 0,
|
|
31
31
|
title: t.title,
|
|
32
32
|
"data-points": t.dataPoints,
|
|
@@ -39,20 +39,20 @@ const C = { class: "chart-tooltip" }, g = {
|
|
|
39
39
|
key: e.datasetIndex,
|
|
40
40
|
class: "list__item"
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
c("span", {
|
|
43
43
|
class: "color-box",
|
|
44
44
|
style: h({
|
|
45
45
|
backgroundColor: String(e.dataset.pointBackgroundColor)
|
|
46
46
|
})
|
|
47
47
|
}, null, 4),
|
|
48
|
-
e.dataset.icon ? (a(),
|
|
48
|
+
e.dataset.icon ? (a(), f(l(b), {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "platform-icon",
|
|
51
51
|
type: e.dataset.iconType,
|
|
52
52
|
name: e.dataset.icon,
|
|
53
53
|
size: "16px"
|
|
54
54
|
}, null, 8, ["type", "name"])) : r("", !0),
|
|
55
|
-
|
|
55
|
+
c("div", V, [
|
|
56
56
|
i(l(d), {
|
|
57
57
|
variant: "body2",
|
|
58
58
|
class: "flex-grow truncated-label",
|
|
@@ -66,7 +66,7 @@ const C = { class: "chart-tooltip" }, g = {
|
|
|
66
66
|
]),
|
|
67
67
|
i(l(d), { variant: "body2" }, {
|
|
68
68
|
default: n(() => [
|
|
69
|
-
u(s(t.valuePrefix + l(x)(e.parsed.y, t.yAxisFormat, !0) + t.valueSuffix), 1)
|
|
69
|
+
u(s(t.valuePrefix + l(x)(e.parsed.y, t.yAxisFormat, !0, !1) + t.valueSuffix), 1)
|
|
70
70
|
]),
|
|
71
71
|
_: 2
|
|
72
72
|
}, 1024)
|
|
@@ -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[];
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { getUTCDate as
|
|
2
|
-
import { format as
|
|
3
|
-
import { TICK_LABEL_FONT as
|
|
4
|
-
import { nFormatter as
|
|
5
|
-
import { truncateTextToFit as
|
|
6
|
-
import { REGEX_LINEBREAK as
|
|
7
|
-
const u = (r, t, o = !1) => t === "day" ? e(
|
|
1
|
+
import { getUTCDate as e } from "../../../utils/date.js";
|
|
2
|
+
import { format as f } from "date-fns";
|
|
3
|
+
import { TICK_LABEL_FONT as d } from "../consts.js";
|
|
4
|
+
import { nFormatter as L, DEFAULT_FALLBACK as T } from "../../../utils/formatNumbers.js";
|
|
5
|
+
import { truncateTextToFit as c } from "../../../utils/text.js";
|
|
6
|
+
import { REGEX_LINEBREAK as s } from "../../../consts/regex.js";
|
|
7
|
+
const u = (r, t, o = !1, n = !0) => t === "day" ? f(e(r), "EEEE") : t === "number" ? L(
|
|
8
|
+
r,
|
|
9
|
+
o,
|
|
10
|
+
T,
|
|
11
|
+
n
|
|
12
|
+
) : t === "date" ? f(e(r), "MMM dd") : t === "dateLong" ? f(e(r), "MMM dd, yyyy") : String(r), B = ({
|
|
8
13
|
label: r,
|
|
9
14
|
format: t,
|
|
10
15
|
availableSpace: o,
|
|
11
|
-
truncate:
|
|
16
|
+
truncate: n = !1
|
|
12
17
|
}) => {
|
|
13
|
-
const p =
|
|
14
|
-
const
|
|
15
|
-
return
|
|
18
|
+
const p = s.test(r), m = (E) => {
|
|
19
|
+
const i = u(E, t);
|
|
20
|
+
return n && o > 0 ? c(i, d, o) : i;
|
|
16
21
|
};
|
|
17
|
-
return p ? r.split(
|
|
22
|
+
return p ? r.split(s).map(m) : m(r);
|
|
18
23
|
};
|
|
19
24
|
export {
|
|
20
25
|
u as formatValue,
|
|
21
|
-
|
|
26
|
+
B as prepareTickLabel
|
|
22
27
|
};
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_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
|
-
.chart-tooltip[data-v-3315b68f]{color:var(--text-primary);background:var(--common-white);box-shadow:0 4px 8px -2px #1018281f;border:1px solid var(--common-divider-elevation-0);border-radius:var(--border-radius-md);width:280px;padding:calc(var(--spacing-100) - 1px)}.color-box[data-v-3315b68f]{width:12px;height:12px;border-radius:2px;display:inline-block;margin-right:var(--spacing-100)}.color-box+.platform-icon[data-v-3315b68f]{margin-left:calc(var(--spacing-50) - var(--spacing-100))}.list[data-v-3315b68f]{list-style:none;margin:0;padding:0}.list__item[data-v-3315b68f]{display:flex;align-items:center;margin-bottom:var(--spacing-50);color:var(--text-secondary)}.list__item[data-v-3315b68f]:last-child{margin-bottom:0}.platform-icon[data-v-3315b68f]{color:var(--action-active);margin-right:var(--spacing-50)}.popover-label-wrapper[data-v-3315b68f]{display:flex;width:200px;flex-grow:1}.truncated-label[data-v-3315b68f]{max-width:90%}.tooltip-footer[data-v-3315b68f]{display:flex;align-items:center;margin-top:var(--spacing-100);color:var(--text-primary)}.flex-grow[data-v-3315b68f]{flex-grow:1}
|