@ironsource/shared-ui 2.1.11-test.26 → 2.1.11-test.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.
Files changed (51) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
  5. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  6. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css +1 -0
  8. package/DialogV4.vue_vue_type_style_index_0_scoped_c65df8d7_lang.css +1 -0
  9. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  10. package/components/chart/Chart.vue.d.ts +11 -3
  11. package/components/chart/Chart.vue.js +2 -2
  12. package/components/chart/Chart.vue2.js +108 -96
  13. package/components/chart/ChartHeader.vue.d.ts +13 -6
  14. package/components/chart/ChartHeader.vue.js +2 -2
  15. package/components/chart/ChartHeader.vue2.js +32 -29
  16. package/components/chart/ChartLegend.vue.d.ts +5 -0
  17. package/components/chart/ChartLegend.vue.js +3 -3
  18. package/components/chart/ChartLegend.vue2.js +99 -49
  19. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  20. package/components/chart/ChartTooltip.vue.js +2 -2
  21. package/components/chart/ChartTooltip.vue2.js +64 -43
  22. package/components/chart/index.d.ts +36 -16
  23. package/components/chart/mockData.d.ts +15 -2
  24. package/components/chart/types.d.ts +15 -1
  25. package/components/chart/utils/utils.js +5 -5
  26. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  27. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  28. package/components/dialog/v4/DialogV4.vue.d.ts +10 -0
  29. package/components/dialog/v4/DialogV4.vue.js +3 -3
  30. package/components/dialog/v4/DialogV4.vue2.js +64 -60
  31. package/components/dialog/v4/index.d.ts +39 -1
  32. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  33. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  34. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  35. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  36. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  37. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  38. package/components/table/v4/DataGrid.vue.js +3 -3
  39. package/components/table/v4/DataGrid.vue2.js +5 -5
  40. package/index.d.ts +136 -3
  41. package/index.js +1 -1
  42. package/package.json +1 -1
  43. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_f9a13e27_lang.css +0 -1
  44. package/Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css +0 -1
  45. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  46. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  47. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  48. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  49. package/DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css +0 -1
  50. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  51. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
@@ -1,66 +1,69 @@
1
- import "../../ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css"; import { defineComponent as y, computed as T, openBlock as c, createElementBlock as x, createElementVNode as V, createVNode as d, unref as t, withCtx as i, createTextVNode as u, toDisplayString as s, createBlock as b, isRef as g, createCommentVNode as k } from "vue";
1
+ import "../../ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css"; import { defineComponent as y, computed as T, openBlock as c, createElementBlock as b, createElementVNode as S, createVNode as i, unref as a, withCtx as o, renderSlot as V, createTextVNode as s, toDisplayString as u, createBlock as g, isRef as v, createCommentVNode as w } from "vue";
2
2
  import h from "../typography/v4/Typography.vue.js";
3
- import v from "../switch/v4/SwitchV4.vue.js";
3
+ import B from "../switch/v4/SwitchV4.vue.js";
4
4
  import { ChartType as r } from "./types.js";
5
- import B from "../tooltip/v4/TooltipV4.vue.js";
6
- const C = { class: "chart-header" }, S = { class: "header-texts" }, E = /* @__PURE__ */ y({
5
+ import k from "../tooltip/v4/TooltipV4.vue.js";
6
+ const C = { class: "chart-header" }, x = { class: "header-texts" }, D = /* @__PURE__ */ y({
7
7
  __name: "ChartHeader",
8
8
  props: {
9
9
  chartType: { default: r.Line },
10
10
  withSettingsHeader: { type: Boolean, default: !0 },
11
11
  header: { default: "" },
12
12
  subheader: { default: "" },
13
- subheaderTooltip: { default: "" }
13
+ withSubheaderTooltip: { type: Boolean, default: !1 }
14
14
  },
15
15
  emits: ["update:chartType"],
16
16
  setup(e, { emit: p }) {
17
- const m = e, n = [
17
+ const m = e, l = [
18
18
  { id: r.Line, icon: "chart-line-up" },
19
19
  { id: r.Bar, icon: "chart-bar" },
20
20
  { id: r.StackedLine, icon: "chart-line" }
21
- ], o = T({
21
+ ], d = T({
22
22
  get() {
23
- return n.find(({ id: a }) => a === m.chartType);
23
+ return l.find(({ id: t }) => t === m.chartType);
24
24
  },
25
- set(a) {
26
- p("update:chartType", a.id);
25
+ set(t) {
26
+ p("update:chartType", t.id);
27
27
  }
28
28
  });
29
- return (a, l) => (c(), x("div", C, [
30
- V("div", S, [
31
- d(t(B), {
32
- text: e.subheaderTooltip,
33
- placement: "right"
29
+ return (t, n) => (c(), b("div", C, [
30
+ S("div", x, [
31
+ i(a(k), {
32
+ placement: "right",
33
+ disabled: !e.withSubheaderTooltip
34
34
  }, {
35
- default: i(() => [
36
- d(t(h), {
35
+ tooltip: o(() => [
36
+ V(t.$slots, "subheader-tooltip", {}, void 0, !0)
37
+ ]),
38
+ default: o(() => [
39
+ i(a(h), {
37
40
  class: "subheader",
38
41
  variant: "h5"
39
42
  }, {
40
- default: i(() => [
41
- u(s(e.subheader), 1)
43
+ default: o(() => [
44
+ s(u(e.subheader), 1)
42
45
  ]),
43
46
  _: 1
44
47
  })
45
48
  ]),
46
- _: 1
47
- }, 8, ["text"]),
48
- d(t(h), { variant: "chart2" }, {
49
- default: i(() => [
50
- u(s(e.header), 1)
49
+ _: 3
50
+ }, 8, ["disabled"]),
51
+ i(a(h), { variant: "chart2" }, {
52
+ default: o(() => [
53
+ s(u(e.header), 1)
51
54
  ]),
52
55
  _: 1
53
56
  })
54
57
  ]),
55
- e.withSettingsHeader ? k("", !0) : (c(), b(t(v), {
58
+ e.withSettingsHeader ? w("", !0) : (c(), g(a(B), {
56
59
  key: 0,
57
- modelValue: t(o),
58
- "onUpdate:modelValue": l[0] || (l[0] = (f) => g(o) ? o.value = f : null),
59
- options: n
60
+ modelValue: a(d),
61
+ "onUpdate:modelValue": n[0] || (n[0] = (f) => v(d) ? d.value = f : null),
62
+ options: l
60
63
  }, null, 8, ["modelValue"]))
61
64
  ]));
62
65
  }
63
66
  });
64
67
  export {
65
- E as default
68
+ D as default
66
69
  };
@@ -4,11 +4,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  visibleIds: unknown[];
5
5
  minVisible?: number;
6
6
  maxVisible?: number;
7
+ maxLimitTooltipText?: string;
7
8
  }>, {
8
9
  items: () => any[];
9
10
  visibleIds: () => any[];
10
11
  minVisible: number;
11
12
  maxVisible: number;
13
+ maxLimitTooltipText: string;
12
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
15
  "update:visibleIds": (visibleIds: unknown[]) => void;
14
16
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -16,11 +18,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
18
  visibleIds: unknown[];
17
19
  minVisible?: number;
18
20
  maxVisible?: number;
21
+ maxLimitTooltipText?: string;
19
22
  }>, {
20
23
  items: () => any[];
21
24
  visibleIds: () => any[];
22
25
  minVisible: number;
23
26
  maxVisible: number;
27
+ maxLimitTooltipText: string;
24
28
  }>>> & {
25
29
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
26
30
  }, {
@@ -28,6 +32,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
32
  visibleIds: unknown[];
29
33
  minVisible: number;
30
34
  maxVisible: number;
35
+ maxLimitTooltipText: string;
31
36
  }>;
32
37
  export default _default;
33
38
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartLegend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-c0f71a49"]]);
3
+ // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a1c626cd"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,72 +1,122 @@
1
- import "../../ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css"; import { defineComponent as E, ref as T, computed as r, openBlock as d, createElementBlock as n, createElementVNode as c, createVNode as u, unref as i, mergeProps as p, Fragment as y, renderList as w, withCtx as S, createTextVNode as U, toDisplayString as B } from "vue";
2
- import { useVirtualList as D } from "@vueuse/core";
3
- import N from "../typography/v4/Typography.vue.js";
4
- import A from "../checkbox/v4/CheckboxV4.vue.js";
5
- import F from "../search/v4/SearchV4.vue.js";
6
- import { DEFAULT_MIN_VISIBLE as H, DEFAULT_MAX_VISIBLE as M } from "./consts.js";
7
- const P = { class: "chart-legend" }, R = { class: "search-box" }, K = /* @__PURE__ */ E({
1
+ import "../../ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css"; import { defineComponent as M, ref as N, computed as p, openBlock as r, createElementBlock as u, createElementVNode as a, createVNode as n, unref as i, mergeProps as x, Fragment as S, renderList as P, normalizeClass as A, withCtx as m, withModifiers as F, createBlock as H, createCommentVNode as U, createTextVNode as h, toDisplayString as I } from "vue";
2
+ import { useVirtualList as z } from "@vueuse/core";
3
+ import _ from "../typography/v4/Typography.vue.js";
4
+ import R from "../checkbox/v4/CheckboxV4.vue.js";
5
+ import q from "../search/v4/SearchV4.vue.js";
6
+ import { DEFAULT_MIN_VISIBLE as G, DEFAULT_MAX_VISIBLE as X } from "./consts.js";
7
+ import $ from "../icon/v4/IconV4.vue.js";
8
+ import "../icon/v4/IconFlag.vue.js";
9
+ import j from "../tooltip/v4/TooltipV4.vue.js";
10
+ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = ["onClick"], Q = { class: "label-container" }, ae = /* @__PURE__ */ M({
8
11
  __name: "ChartLegend",
9
12
  props: {
10
13
  items: { default: () => [] },
11
14
  visibleIds: { default: () => [] },
12
- minVisible: { default: H },
13
- maxVisible: { default: M }
15
+ minVisible: { default: G },
16
+ maxVisible: { default: X },
17
+ maxLimitTooltipText: { default: "" }
14
18
  },
15
19
  emits: ["update:visibleIds"],
16
- setup(m, { emit: b }) {
17
- const s = m, h = 32, o = T(""), f = r(() => {
18
- const t = o.value.toLowerCase();
19
- return s.items.filter(
20
+ setup(b, { emit: L }) {
21
+ const o = b, T = 32, d = N(""), g = p(() => {
22
+ const t = d.value.toLowerCase();
23
+ return o.items.filter(
20
24
  (l) => l.label.toLowerCase().includes(t)
21
25
  );
22
- }), a = (t) => s.visibleIds.includes(t.id), v = r(
23
- () => s.visibleIds.length >= s.maxVisible
24
- ), I = r(
25
- () => s.visibleIds.length <= s.minVisible
26
- ), _ = (t) => I.value && a(t) || v.value && !a(t), V = (t, l) => {
27
- b(
26
+ }), s = (t) => o.visibleIds.includes(t.id), f = p(
27
+ () => o.visibleIds.length >= o.maxVisible
28
+ ), k = p(
29
+ () => o.visibleIds.length <= o.minVisible
30
+ ), c = (t) => k.value && s(t) || f.value && !s(t), C = (t) => !o.maxLimitTooltipText || s(t) || !f.value, V = (t, l) => {
31
+ L(
28
32
  "update:visibleIds",
29
- t ? [...s.visibleIds, l.id] : s.visibleIds.filter((e) => e !== l.id)
33
+ t ? [...o.visibleIds, l.id] : o.visibleIds.filter((e) => e !== l.id)
30
34
  );
31
- }, { list: g, containerProps: L, wrapperProps: x } = D(f, {
32
- itemHeight: h,
35
+ }, { list: y, containerProps: w, wrapperProps: E } = z(g, {
36
+ itemHeight: T,
33
37
  overscan: 10
34
- });
35
- return (t, l) => (d(), n("div", P, [
36
- c("div", R, [
37
- u(i(F), {
38
- modelValue: o.value,
39
- "onUpdate:modelValue": l[0] || (l[0] = (e) => o.value = e)
38
+ }), B = (t) => {
39
+ c(t) || V(!s(t), t);
40
+ };
41
+ return (t, l) => (r(), u("div", J, [
42
+ a("div", K, [
43
+ n(i(q), {
44
+ modelValue: d.value,
45
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => d.value = e)
40
46
  }, null, 8, ["modelValue"])
41
47
  ]),
42
- c("div", p({ class: "legend" }, i(L)), [
43
- c("ul", p({ class: "legend__list" }, i(x)), [
44
- (d(!0), n(y, null, w(i(g), ({ data: e, index: k }) => (d(), n("li", { key: k }, [
45
- u(i(A), {
46
- color: e.color,
47
- "is-checked": a(e),
48
- disabled: _(e),
49
- "onUpdate:isChecked": (C) => V(C, e)
50
- }, null, 8, ["color", "is-checked", "disabled", "onUpdate:isChecked"]),
51
- u(i(N), {
52
- variant: "body2",
53
- "is-truncated": "",
54
- class: "legend-label",
55
- "with-tooltip": "",
56
- "tooltip-text": e.label,
57
- "tooltip-placement": "top"
48
+ a("div", x({ class: "legend" }, i(w)), [
49
+ a("ul", x({ class: "legend__list" }, i(E)), [
50
+ (r(!0), u(S, null, P(i(y), ({ data: e, index: D }) => (r(), u("li", {
51
+ key: D,
52
+ class: A({ "disabled-item": c(e) })
53
+ }, [
54
+ n(i(j), {
55
+ text: b.maxLimitTooltipText,
56
+ disabled: C(e),
57
+ class: "disabled-tooltip"
58
58
  }, {
59
- default: S(() => [
60
- U(B(e.label), 1)
59
+ default: m(() => [
60
+ a("div", {
61
+ class: "item-wrapper",
62
+ onClick: (v) => B(e)
63
+ }, [
64
+ n(i(R), {
65
+ color: e.color,
66
+ "is-checked": s(e),
67
+ disabled: c(e),
68
+ onClick: l[1] || (l[1] = F(
69
+ (v) => {
70
+ v.stopPropagation();
71
+ },
72
+ ["stop"]
73
+ ))
74
+ }, null, 8, ["color", "is-checked", "disabled"]),
75
+ e.icon ? (r(), H(i($), {
76
+ key: 0,
77
+ class: "icon-color",
78
+ type: e.iconType,
79
+ name: e.icon,
80
+ size: "16px"
81
+ }, null, 8, ["type", "name"])) : U("", !0),
82
+ a("div", Q, [
83
+ n(i(_), {
84
+ variant: "body2",
85
+ class: "legend-label",
86
+ "is-truncated": "",
87
+ "with-tooltip": "",
88
+ "tooltip-text": e.label,
89
+ "tooltip-placement": "left"
90
+ }, {
91
+ default: m(() => [
92
+ h(I(e.label), 1)
93
+ ]),
94
+ _: 2
95
+ }, 1032, ["tooltip-text"]),
96
+ n(i(_), {
97
+ variant: "caption",
98
+ class: "legend-caption legend-label",
99
+ "is-truncated": "",
100
+ "with-tooltip": "",
101
+ "tooltip-text": e.caption,
102
+ "tooltip-placement": "left"
103
+ }, {
104
+ default: m(() => [
105
+ h(I(e.caption), 1)
106
+ ]),
107
+ _: 2
108
+ }, 1032, ["tooltip-text"])
109
+ ])
110
+ ], 8, O)
61
111
  ]),
62
112
  _: 2
63
- }, 1032, ["tooltip-text"])
64
- ]))), 128))
113
+ }, 1032, ["text", "disabled"])
114
+ ], 2))), 128))
65
115
  ], 16)
66
116
  ], 16)
67
117
  ]));
68
118
  }
69
119
  });
70
120
  export {
71
- K as default
121
+ ae as default
72
122
  };
@@ -1,8 +1,7 @@
1
- import { TooltipItem } from 'chart.js';
2
- import { ValueFormat } from '@/components/chart/types';
1
+ import { MyTooltipItem, ValueFormat } from '@/components/chart/types';
3
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
3
  title?: string;
5
- dataPoints: TooltipItem<'line'>[];
4
+ dataPoints: MyTooltipItem<'line'>[];
6
5
  xAxisFormat?: ValueFormat;
7
6
  yAxisFormat?: ValueFormat;
8
7
  totalLabel?: string;
@@ -16,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
15
  totalValue: any;
17
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
17
  title?: string;
19
- dataPoints: TooltipItem<'line'>[];
18
+ dataPoints: MyTooltipItem<'line'>[];
20
19
  xAxisFormat?: ValueFormat;
21
20
  yAxisFormat?: ValueFormat;
22
21
  totalLabel?: string;
@@ -30,7 +29,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
30
29
  totalValue: any;
31
30
  }>>>, {
32
31
  title: string;
33
- dataPoints: TooltipItem<'line'>[];
32
+ dataPoints: MyTooltipItem<'line'>[];
34
33
  xAxisFormat: ValueFormat;
35
34
  yAxisFormat: ValueFormat;
36
35
  totalLabel: string;
@@ -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.vue_vue_type_style_index_0_scoped_ec636f18_lang.css"; //*');
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ec636f18"]]);
3
+ // import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6744325c"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,10 +1,15 @@
1
- import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css"; import { defineComponent as y, computed as b, openBlock as a, createElementBlock as s, createElementVNode as u, createBlock as g, unref as e, withCtx as l, createTextVNode as o, toDisplayString as r, createCommentVNode as f, Fragment as h, renderList as k, normalizeStyle as v, createVNode as d } from "vue";
2
- import i from "../typography/v4/Typography.vue.js";
3
- import { formatValue as c } from "./utils/utils.js";
4
- const F = { class: "chart-tooltip" }, V = { class: "tooltip-title" }, p = { class: "list" }, A = {
1
+ import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css"; import { defineComponent as b, computed as x, openBlock as l, createElementBlock as c, createVNode as o, unref as t, withCtx as r, createTextVNode as i, toDisplayString as s, createCommentVNode as m, createElementVNode as f, Fragment as v, renderList as F, normalizeStyle as h, createBlock as g } from "vue";
2
+ import n from "../typography/v4/Typography.vue.js";
3
+ import { formatValue as d } from "./utils/utils.js";
4
+ import k from "../icon/v4/IconV4.vue.js";
5
+ import "../icon/v4/IconFlag.vue.js";
6
+ const A = { class: "chart-tooltip" }, V = {
5
7
  key: 0,
8
+ class: "tooltip-title-wrapper"
9
+ }, C = { class: "list" }, T = { class: "popover-label-wrapper" }, _ = {
10
+ key: 1,
6
11
  class: "tooltip-footer"
7
- }, T = /* @__PURE__ */ y({
12
+ }, I = /* @__PURE__ */ b({
8
13
  __name: "ChartTooltip",
9
14
  props: {
10
15
  title: { default: "" },
@@ -14,68 +19,84 @@ const F = { class: "chart-tooltip" }, V = { class: "tooltip-title" }, p = { clas
14
19
  totalLabel: { default: "Total" },
15
20
  totalValue: { default: null }
16
21
  },
17
- setup(t) {
18
- const m = t, x = b(() => m.xAxisFormat === "date" ? "dateLong" : m.xAxisFormat);
19
- return (C, _) => (a(), s("div", F, [
20
- u("div", V, [
21
- t.title ? (a(), g(e(i), {
22
- key: 0,
23
- variant: "subtitle2"
22
+ setup(e) {
23
+ const u = e, y = x(() => u.xAxisFormat === "date" ? "dateLong" : u.xAxisFormat), p = x(() => u.xAxisFormat === "date" ? "day" : u.xAxisFormat);
24
+ return (w, B) => (l(), c("div", A, [
25
+ e.title ? (l(), c("div", V, [
26
+ o(t(n), { variant: "subtitle2" }, {
27
+ default: r(() => [
28
+ i(s(t(d)(e.title, t(y))), 1)
29
+ ]),
30
+ _: 1
31
+ }),
32
+ o(t(n), {
33
+ class: "tooltip-sub-title",
34
+ variant: "caption"
24
35
  }, {
25
- default: l(() => [
26
- o(r(e(c)(t.title, e(x))), 1)
36
+ default: r(() => [
37
+ i(s(t(d)(e.title, t(p))), 1)
27
38
  ]),
28
39
  _: 1
29
- })) : f("", !0)
30
- ]),
31
- u("ul", p, [
32
- (a(!0), s(h, null, k(t.dataPoints, (n) => (a(), s("li", {
33
- key: n.datasetIndex,
40
+ })
41
+ ])) : m("", !0),
42
+ f("ul", C, [
43
+ (l(!0), c(v, null, F(e.dataPoints, (a) => (l(), c("li", {
44
+ key: a.datasetIndex,
34
45
  class: "list__item"
35
46
  }, [
36
- u("span", {
47
+ f("span", {
37
48
  class: "color-box",
38
- style: v({
39
- backgroundColor: String(n.dataset.pointBackgroundColor)
49
+ style: h({
50
+ backgroundColor: String(a.dataset.pointBackgroundColor)
40
51
  })
41
52
  }, null, 4),
42
- d(e(i), {
43
- variant: "body2",
44
- class: "flex-grow"
45
- }, {
46
- default: l(() => [
47
- o(r(n.dataset.label), 1)
48
- ]),
49
- _: 2
50
- }, 1024),
51
- d(e(i), { variant: "body2" }, {
52
- default: l(() => [
53
- o(r(e(c)(n.parsed.y, t.yAxisFormat)), 1)
53
+ a.dataset.icon ? (l(), g(t(k), {
54
+ key: 0,
55
+ class: "platform-icon",
56
+ type: a.dataset.iconType,
57
+ name: a.dataset.icon,
58
+ size: "16px"
59
+ }, null, 8, ["type", "name"])) : m("", !0),
60
+ f("div", T, [
61
+ o(t(n), {
62
+ variant: "body2",
63
+ class: "flex-grow truncated-label",
64
+ "is-truncated": ""
65
+ }, {
66
+ default: r(() => [
67
+ i(s(a.dataset.label), 1)
68
+ ]),
69
+ _: 2
70
+ }, 1024)
71
+ ]),
72
+ o(t(n), { variant: "body2" }, {
73
+ default: r(() => [
74
+ i(s(t(d)(a.parsed.y, e.yAxisFormat)), 1)
54
75
  ]),
55
76
  _: 2
56
77
  }, 1024)
57
78
  ]))), 128))
58
79
  ]),
59
- t.totalValue !== null ? (a(), s("div", A, [
60
- d(e(i), {
80
+ e.totalValue !== null ? (l(), c("div", _, [
81
+ o(t(n), {
61
82
  variant: "body2",
62
83
  class: "flex-grow"
63
84
  }, {
64
- default: l(() => [
65
- o(r(t.totalLabel), 1)
85
+ default: r(() => [
86
+ i(s(e.totalLabel), 1)
66
87
  ]),
67
88
  _: 1
68
89
  }),
69
- d(e(i), { variant: "body2" }, {
70
- default: l(() => [
71
- o(r(e(c)(t.totalValue, t.yAxisFormat)), 1)
90
+ o(t(n), { variant: "body2" }, {
91
+ default: r(() => [
92
+ i(s(t(d)(e.totalValue, e.yAxisFormat)), 1)
72
93
  ]),
73
94
  _: 1
74
95
  })
75
- ])) : f("", !0)
96
+ ])) : m("", !0)
76
97
  ]));
77
98
  }
78
99
  });
79
100
  export {
80
- T as default
101
+ I as default
81
102
  };