@ironsource/shared-ui 2.1.12-rc.12 → 2.1.12-rc.14

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 (105) hide show
  1. package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +1 -0
  4. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +1 -0
  5. package/ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css +1 -0
  6. package/ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css +1 -0
  7. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
  8. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  9. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  10. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  11. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  12. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  13. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
  14. package/components/appIcon/index.d.ts +3 -3
  15. package/components/banner/Banner.vue.d.ts +3 -3
  16. package/components/banner/index.d.ts +7 -7
  17. package/components/button/common/consts.d.ts +1 -0
  18. package/components/button/v3/Button.vue.d.ts +3 -3
  19. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  20. package/components/button/v3/IconButton.vue.d.ts +3 -3
  21. package/components/button/v3/index.d.ts +14 -14
  22. package/components/button/v4/ButtonV4.vue.d.ts +4 -3
  23. package/components/button/v4/ButtonV4.vue.js +3 -3
  24. package/components/button/v4/ButtonV4.vue2.js +1 -1
  25. package/components/chart/Chart.vue.d.ts +55 -2
  26. package/components/chart/Chart.vue.js +5 -5
  27. package/components/chart/Chart.vue2.js +109 -82
  28. package/components/chart/ChartHeader.vue.d.ts +24 -0
  29. package/components/chart/ChartHeader.vue.js +3 -3
  30. package/components/chart/ChartHeader.vue2.js +70 -50
  31. package/components/chart/ChartHeaderTrend.vue.d.ts +13 -0
  32. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  33. package/components/chart/ChartHeaderTrend.vue2.js +80 -18
  34. package/components/chart/ChartLegend.vue.d.ts +17 -0
  35. package/components/chart/ChartLegend.vue.js +3 -3
  36. package/components/chart/ChartLegend.vue2.js +78 -67
  37. package/components/chart/ChartPlane.vue.d.ts +42 -4
  38. package/components/chart/ChartPlane.vue.js +4 -4
  39. package/components/chart/ChartPlane.vue2.js +159 -146
  40. package/components/chart/LegendSorting.vue.d.ts +37 -0
  41. package/components/chart/LegendSorting.vue.js +45 -0
  42. package/components/chart/LegendSorting.vue2.js +4 -0
  43. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  44. package/components/chart/SettingsHeader.vue.js +3 -3
  45. package/components/chart/SettingsHeader.vue2.js +17 -16
  46. package/components/chart/colorPalette.d.ts +4 -0
  47. package/components/chart/colorPalette.js +54 -0
  48. package/components/chart/composables/useColorsMap.d.ts +2 -2
  49. package/components/chart/composables/useColorsMap.js +41 -12
  50. package/components/chart/consts.d.ts +12 -1
  51. package/components/chart/consts.js +31 -26
  52. package/components/chart/index.d.ts +208 -40
  53. package/components/chart/mockData.d.ts +8 -14
  54. package/components/chart/types.d.ts +2 -1
  55. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  56. package/components/checkbox/v3/index.d.ts +7 -7
  57. package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
  58. package/components/dialog/v4/DialogV4.vue.js +4 -4
  59. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  60. package/components/dialog/v4/index.d.ts +7 -7
  61. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  62. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  63. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  64. package/components/dropdown/v4/index.d.ts +18 -0
  65. package/components/forms/FormRow.vue.d.ts +9 -2
  66. package/components/forms/FormRow.vue.js +3 -3
  67. package/components/forms/FormRow.vue2.js +25 -14
  68. package/components/forms/index.d.ts +25 -5
  69. package/components/search/v3/index.d.ts +3 -3
  70. package/components/shared/FieldLabel.vue.d.ts +19 -7
  71. package/components/shared/FieldLabel.vue.js +3 -3
  72. package/components/shared/FieldLabel.vue2.js +50 -37
  73. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  74. package/components/tabs/v3/index.d.ts +7 -7
  75. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  76. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  77. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  78. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  79. package/components/tooltip/v3/index.d.ts +7 -7
  80. package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
  81. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  82. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  83. package/components/tooltip/v4/index.d.ts +7 -7
  84. package/components/typography/Text.vue.d.ts +3 -3
  85. package/components/typography/index.d.ts +7 -7
  86. package/composables/useFormValidation.d.ts +1 -0
  87. package/composables/useFormValidation.js +29 -26
  88. package/index.d.ts +71 -35
  89. package/index.js +1 -1
  90. package/package.json +1 -1
  91. package/utils/totals.d.ts +5 -0
  92. package/utils/totals.js +9 -0
  93. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  94. package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +0 -1
  95. package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +0 -1
  96. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +0 -1
  97. package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +0 -1
  98. package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +0 -1
  99. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  100. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  101. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  102. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  103. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  104. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  105. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
@@ -1,18 +1,31 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  value?: number | string;
3
3
  direction?: 'up' | 'down';
4
+ trendTooltip?: {
5
+ header?: string;
6
+ rangeCurrent?: string;
7
+ rangePrevious?: string;
8
+ };
4
9
  }>, {
5
10
  value: any;
6
11
  direction: string;
12
+ trendTooltip: any;
7
13
  }>, {}, 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<{
8
14
  value?: number | string;
9
15
  direction?: 'up' | 'down';
16
+ trendTooltip?: {
17
+ header?: string;
18
+ rangeCurrent?: string;
19
+ rangePrevious?: string;
20
+ };
10
21
  }>, {
11
22
  value: any;
12
23
  direction: string;
24
+ trendTooltip: any;
13
25
  }>>>, {
14
26
  value: number | string;
15
27
  direction: 'up' | 'down';
28
+ trendTooltip: any;
16
29
  }>;
17
30
  export default _default;
18
31
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartHeaderTrend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e4c673e7"]]);
3
+ // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-21ce0774"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,32 +1,94 @@
1
- import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css"; import { defineComponent as a, openBlock as n, createElementBlock as o, normalizeClass as i, createVNode as t, unref as r, withCtx as c, createTextVNode as l, toDisplayString as d } from "vue";
2
- import m from "../typography/v4/Typography.vue.js";
3
- import p from "../icon/v4/IconV4.vue.js";
1
+ import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css"; import { defineComponent as f, computed as T, openBlock as r, createElementBlock as p, normalizeClass as v, createVNode as l, unref as t, withCtx as o, createElementVNode as s, createBlock as u, createTextVNode as a, toDisplayString as d, createCommentVNode as i, pushScopeId as g, popScopeId as y } from "vue";
2
+ import n from "../typography/v4/Typography.vue.js";
3
+ import C from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
- const y = /* @__PURE__ */ a({
5
+ import x from "../tooltip/v4/TooltipV4.vue.js";
6
+ const h = (e) => (g("data-v-21ce0774"), e = e(), y(), e), b = { class: "trend-tooltip" }, k = {
7
+ key: 2,
8
+ class: "separator"
9
+ }, _ = /* @__PURE__ */ h(() => /* @__PURE__ */ s("hr", null, null, -1)), I = /* @__PURE__ */ h(() => /* @__PURE__ */ s("hr", null, null, -1)), E = /* @__PURE__ */ f({
6
10
  __name: "ChartHeaderTrend",
7
11
  props: {
8
12
  value: { default: null },
9
- direction: { default: "up" }
13
+ direction: { default: "up" },
14
+ trendTooltip: { default: null }
10
15
  },
11
16
  setup(e) {
12
- return (u, s) => (n(), o("div", {
13
- class: i(["chart-trend", [`chart-trend--${e.direction}`]])
17
+ const c = e, m = T(
18
+ () => c.trendTooltip?.header || c.trendTooltip?.rangeCurrent || c.trendTooltip?.rangePrevious
19
+ );
20
+ return (N, P) => (r(), p("div", {
21
+ class: v(["chart-trend", [`chart-trend--${e.direction}`]])
14
22
  }, [
15
- t(r(p), {
16
- class: "trend-icon",
17
- type: "bold",
18
- name: `arrow-${e.direction}`,
19
- size: "13px"
20
- }, null, 8, ["name"]),
21
- t(r(m), { variant: "chipLabel" }, {
22
- default: c(() => [
23
- l(d(e.value), 1)
23
+ l(t(x), {
24
+ disabled: !t(m)
25
+ }, {
26
+ tooltip: o(() => [
27
+ s("div", b, [
28
+ e.trendTooltip?.header ? (r(), u(t(n), {
29
+ key: 0,
30
+ class: "trend-tooltip__header",
31
+ variant: "subtitle2"
32
+ }, {
33
+ default: o(() => [
34
+ a(d(e.trendTooltip.header), 1)
35
+ ]),
36
+ _: 1
37
+ })) : i("", !0),
38
+ e.trendTooltip?.rangeCurrent ? (r(), u(t(n), {
39
+ key: 1,
40
+ variant: "body2",
41
+ class: "trend-tooltip__text"
42
+ }, {
43
+ default: o(() => [
44
+ a(d(e.trendTooltip.rangeCurrent), 1)
45
+ ]),
46
+ _: 1
47
+ })) : i("", !0),
48
+ e.trendTooltip?.rangeCurrent && e.trendTooltip?.rangePrevious ? (r(), p("div", k, [
49
+ _,
50
+ l(t(n), {
51
+ class: "separator__text",
52
+ variant: "caption"
53
+ }, {
54
+ default: o(() => [
55
+ a(" vs. ")
56
+ ]),
57
+ _: 1
58
+ }),
59
+ I
60
+ ])) : i("", !0),
61
+ e.trendTooltip?.rangePrevious ? (r(), u(t(n), {
62
+ key: 3,
63
+ variant: "body2",
64
+ class: "trend-tooltip__text"
65
+ }, {
66
+ default: o(() => [
67
+ a(d(e.trendTooltip.rangePrevious), 1)
68
+ ]),
69
+ _: 1
70
+ })) : i("", !0)
71
+ ])
72
+ ]),
73
+ default: o(() => [
74
+ l(t(C), {
75
+ class: "trend-icon",
76
+ type: "bold",
77
+ name: `arrow-${e.direction}`,
78
+ size: "13px"
79
+ }, null, 8, ["name"]),
80
+ l(t(n), { variant: "chipLabel" }, {
81
+ default: o(() => [
82
+ a(d(e.value), 1)
83
+ ]),
84
+ _: 1
85
+ })
24
86
  ]),
25
87
  _: 1
26
- })
88
+ }, 8, ["disabled"])
27
89
  ], 2));
28
90
  }
29
91
  });
30
92
  export {
31
- y as default
93
+ E as default
32
94
  };
@@ -5,34 +5,51 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
5
5
  minVisible?: number;
6
6
  maxVisible?: number;
7
7
  maxLimitTooltipText?: string;
8
+ sortSelected?: unknown;
9
+ sortOptions?: unknown[];
10
+ sortOptionNameKey?: string;
8
11
  }>, {
9
12
  items: () => any[];
10
13
  visibleIds: () => any[];
11
14
  minVisible: number;
12
15
  maxVisible: number;
13
16
  maxLimitTooltipText: string;
17
+ sortSelected: any;
18
+ sortOptions: () => any[];
19
+ sortOptionNameKey: string;
14
20
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
21
  "update:visibleIds": (visibleIds: unknown[]) => void;
22
+ "update:sortSelected": (sortOption: unknown) => void;
16
23
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
24
  items: LegendItem[];
18
25
  visibleIds: unknown[];
19
26
  minVisible?: number;
20
27
  maxVisible?: number;
21
28
  maxLimitTooltipText?: string;
29
+ sortSelected?: unknown;
30
+ sortOptions?: unknown[];
31
+ sortOptionNameKey?: string;
22
32
  }>, {
23
33
  items: () => any[];
24
34
  visibleIds: () => any[];
25
35
  minVisible: number;
26
36
  maxVisible: number;
27
37
  maxLimitTooltipText: string;
38
+ sortSelected: any;
39
+ sortOptions: () => any[];
40
+ sortOptionNameKey: string;
28
41
  }>>> & {
29
42
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
43
+ "onUpdate:sortSelected"?: (sortOption: unknown) => any;
30
44
  }, {
31
45
  items: LegendItem[];
32
46
  visibleIds: unknown[];
33
47
  minVisible: number;
34
48
  maxVisible: number;
35
49
  maxLimitTooltipText: string;
50
+ sortSelected: any;
51
+ sortOptions: unknown[];
52
+ sortOptionNameKey: string;
36
53
  }>;
37
54
  export default _default;
38
55
  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_532f23bc_lang.css"; //*');
4
- const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-532f23bc"]]);
3
+ // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-da487aba"]]);
5
5
  export {
6
- c as default
6
+ s as default
7
7
  };
@@ -1,124 +1,135 @@
1
- import "../../ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css"; import { defineComponent as S, ref as P, computed as m, openBlock as s, createElementBlock as c, createElementVNode as r, createVNode as d, unref as o, mergeProps as I, withCtx as p, createTextVNode as b, Fragment as A, renderList as F, normalizeClass as H, withModifiers as U, createBlock as k, createCommentVNode as L, toDisplayString as g } from "vue";
2
- import { useVirtualList as z } from "@vueuse/core";
3
- import f from "../typography/v4/Typography.vue.js";
4
- import R from "../checkbox/v4/CheckboxV4.vue.js";
1
+ import "../../ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css"; import { defineComponent as O, ref as P, computed as b, openBlock as s, createElementBlock as p, createElementVNode as d, createVNode as c, unref as o, createBlock as v, isRef as U, createCommentVNode as h, mergeProps as T, withCtx as u, createTextVNode as x, Fragment as A, renderList as F, normalizeClass as H, withModifiers as R, toDisplayString as _ } from "vue";
2
+ import { useVModel as z, useVirtualList as K } from "@vueuse/core";
3
+ import k from "../typography/v4/Typography.vue.js";
4
+ import $ from "../checkbox/v4/CheckboxV4.vue.js";
5
5
  import q from "../search/v4/SearchV4.vue.js";
6
6
  import { DEFAULT_MIN_VISIBLE as G, DEFAULT_MAX_VISIBLE as X } from "./consts.js";
7
- import $ from "../icon/v4/IconV4.vue.js";
7
+ import j from "../icon/v4/IconV4.vue.js";
8
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 = {
9
+ import J from "../tooltip/v4/TooltipV4.vue.js";
10
+ import Q from "./LegendSorting.vue.js";
11
+ const W = { class: "chart-legend" }, Y = { class: "search-box" }, Z = {
11
12
  key: 0,
12
13
  class: "empty-list"
13
- }, Q = ["onClick"], W = { class: "label-container" }, ne = /* @__PURE__ */ S({
14
+ }, ee = ["onClick"], te = { class: "label-container" }, ue = /* @__PURE__ */ O({
14
15
  __name: "ChartLegend",
15
16
  props: {
16
17
  items: { default: () => [] },
17
18
  visibleIds: { default: () => [] },
18
19
  minVisible: { default: G },
19
20
  maxVisible: { default: X },
20
- maxLimitTooltipText: { default: "" }
21
+ maxLimitTooltipText: { default: "" },
22
+ sortSelected: { default: null },
23
+ sortOptions: { default: () => [] },
24
+ sortOptionNameKey: { default: "" }
21
25
  },
22
- emits: ["update:visibleIds"],
23
- setup(h, { emit: T }) {
24
- const l = h, y = 32, u = P(""), C = m(() => {
25
- const t = u.value.toLowerCase();
26
- return l.items.filter(
27
- (i) => i.label.toLowerCase().includes(t)
26
+ emits: ["update:visibleIds", "update:sortSelected"],
27
+ setup(a, { emit: y }) {
28
+ const i = a, V = 32, m = z(i, "sortSelected", y), f = P(""), C = b(() => {
29
+ const t = f.value.toLowerCase();
30
+ return i.items.filter(
31
+ (l) => l.label.toLowerCase().includes(t)
28
32
  );
29
- }), a = (t) => l.visibleIds.includes(t.id), v = m(
30
- () => l.visibleIds.length >= l.maxVisible
31
- ), V = m(
32
- () => l.visibleIds.length <= l.minVisible
33
- ), n = (t) => V.value && a(t) || v.value && !a(t), w = (t) => !l.maxLimitTooltipText || a(t) || !v.value, E = (t, i) => {
34
- T(
33
+ }), n = (t) => i.visibleIds.includes(t.id), I = b(
34
+ () => i.visibleIds.length >= i.maxVisible
35
+ ), w = b(
36
+ () => i.visibleIds.length <= i.minVisible
37
+ ), r = (t) => w.value && n(t) || I.value && !n(t), S = (t) => !i.maxLimitTooltipText || n(t) || !I.value, E = (t, l) => {
38
+ y(
35
39
  "update:visibleIds",
36
- t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
40
+ t ? [...i.visibleIds, l.id] : i.visibleIds.filter((e) => e !== l.id)
37
41
  );
38
- }, { list: x, containerProps: N, wrapperProps: B } = z(C, {
39
- itemHeight: y,
42
+ }, { list: g, containerProps: N, wrapperProps: M } = K(C, {
43
+ itemHeight: V,
40
44
  overscan: 10
41
- }), D = (t) => {
42
- n(t) || E(!a(t), t);
45
+ }), B = (t) => {
46
+ r(t) || E(!n(t), t);
43
47
  };
44
- return (t, i) => (s(), c("div", J, [
45
- r("div", K, [
46
- d(o(q), {
47
- modelValue: u.value,
48
- "onUpdate:modelValue": i[0] || (i[0] = (e) => u.value = e)
49
- }, null, 8, ["modelValue"])
48
+ return (t, l) => (s(), p("div", W, [
49
+ d("div", Y, [
50
+ c(o(q), {
51
+ modelValue: f.value,
52
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => f.value = e)
53
+ }, null, 8, ["modelValue"]),
54
+ a.sortOptions?.length > 0 ? (s(), v(Q, {
55
+ key: 0,
56
+ selected: o(m),
57
+ "onUpdate:selected": l[1] || (l[1] = (e) => U(m) ? m.value = e : null),
58
+ options: a.sortOptions,
59
+ "option-name-key": a.sortOptionNameKey
60
+ }, null, 8, ["selected", "options", "option-name-key"])) : h("", !0)
50
61
  ]),
51
- r("div", I({ class: "legend" }, o(N)), [
52
- r("ul", I({ class: "legend__list" }, o(B)), [
53
- o(x).length === 0 ? (s(), c("li", O, [
54
- d(o(f), { variant: "body2" }, {
55
- default: p(() => [
56
- b("No results")
62
+ d("div", T({ class: "legend" }, o(N)), [
63
+ d("ul", T({ class: "legend__list" }, o(M)), [
64
+ o(g).length === 0 ? (s(), p("li", Z, [
65
+ c(o(k), { variant: "body2" }, {
66
+ default: u(() => [
67
+ x("No results")
57
68
  ]),
58
69
  _: 1
59
70
  })
60
- ])) : (s(!0), c(A, { key: 1 }, F(o(x), ({ data: e, index: M }) => (s(), c("li", {
61
- key: M,
62
- class: H({ "disabled-item": n(e) })
71
+ ])) : (s(!0), p(A, { key: 1 }, F(o(g), ({ data: e, index: D }) => (s(), p("li", {
72
+ key: D,
73
+ class: H({ "disabled-item": r(e) })
63
74
  }, [
64
- d(o(j), {
65
- text: h.maxLimitTooltipText,
66
- disabled: w(e),
75
+ c(o(J), {
76
+ text: a.maxLimitTooltipText,
77
+ disabled: S(e),
67
78
  class: "disabled-tooltip"
68
79
  }, {
69
- default: p(() => [
70
- r("div", {
80
+ default: u(() => [
81
+ d("div", {
71
82
  class: "item-wrapper",
72
- onClick: (_) => D(e)
83
+ onClick: (L) => B(e)
73
84
  }, [
74
- d(o(R), {
85
+ c(o($), {
75
86
  color: e.color,
76
- "is-checked": a(e),
77
- disabled: n(e),
78
- onClick: i[1] || (i[1] = U(
79
- (_) => {
80
- _.stopPropagation();
87
+ "is-checked": n(e),
88
+ disabled: r(e),
89
+ onClick: l[2] || (l[2] = R(
90
+ (L) => {
91
+ L.stopPropagation();
81
92
  },
82
93
  ["stop"]
83
94
  ))
84
95
  }, null, 8, ["color", "is-checked", "disabled"]),
85
- e.icon ? (s(), k(o($), {
96
+ e.icon ? (s(), v(o(j), {
86
97
  key: 0,
87
98
  class: "icon-color",
88
99
  type: e.iconType,
89
100
  name: e.icon,
90
101
  size: "16px"
91
- }, null, 8, ["type", "name"])) : L("", !0),
92
- r("div", W, [
93
- d(o(f), {
102
+ }, null, 8, ["type", "name"])) : h("", !0),
103
+ d("div", te, [
104
+ c(o(k), {
94
105
  variant: "body2",
95
106
  class: "legend-label",
96
107
  "is-truncated": "",
97
- "with-tooltip": !n(e),
108
+ "with-tooltip": !r(e),
98
109
  "tooltip-text": e.label,
99
110
  "tooltip-placement": "left"
100
111
  }, {
101
- default: p(() => [
102
- b(g(e.label), 1)
112
+ default: u(() => [
113
+ x(_(e.label), 1)
103
114
  ]),
104
115
  _: 2
105
116
  }, 1032, ["with-tooltip", "tooltip-text"]),
106
- e.caption ? (s(), k(o(f), {
117
+ e.caption ? (s(), v(o(k), {
107
118
  key: 0,
108
119
  variant: "caption",
109
120
  class: "legend-caption legend-label",
110
121
  "is-truncated": "",
111
- "with-tooltip": !n(e),
122
+ "with-tooltip": !r(e),
112
123
  "tooltip-text": e.caption,
113
124
  "tooltip-placement": "left"
114
125
  }, {
115
- default: p(() => [
116
- b(g(e.caption), 1)
126
+ default: u(() => [
127
+ x(_(e.caption), 1)
117
128
  ]),
118
129
  _: 2
119
- }, 1032, ["with-tooltip", "tooltip-text"])) : L("", !0)
130
+ }, 1032, ["with-tooltip", "tooltip-text"])) : h("", !0)
120
131
  ])
121
- ], 8, Q)
132
+ ], 8, ee)
122
133
  ]),
123
134
  _: 2
124
135
  }, 1032, ["text", "disabled"])
@@ -129,5 +140,5 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
129
140
  }
130
141
  });
131
142
  export {
132
- ne as default
143
+ ue as default
133
144
  };
@@ -1,4 +1,5 @@
1
1
  import { ChartDataSet, ChartParsingConfig, ChartType, ValueFormat } from './types';
2
+ import { TotalType } from '@/utils/totals';
2
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
4
  dataSets: ChartDataSet[];
4
5
  visibleIds: unknown[];
@@ -9,6 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
10
  tickCount?: number;
10
11
  header?: string;
11
12
  subheader?: string;
13
+ subheaderTooltip?: {
14
+ header?: string;
15
+ text?: string;
16
+ };
12
17
  loading?: boolean;
13
18
  noDataIcon?: string;
14
19
  noDataTitle?: string;
@@ -18,9 +23,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
23
  height?: string;
19
24
  compactHeader?: boolean;
20
25
  tooltipRespectsTopEdge?: boolean;
26
+ tooltipTotalType?: TotalType;
27
+ tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
21
28
  trendValue?: string | number;
22
29
  trendDirection?: "up" | "down";
30
+ trendTooltip?: {
31
+ header?: string;
32
+ rangeCurrent?: string;
33
+ rangePrevious?: string;
34
+ };
23
35
  totalsChart?: boolean;
36
+ colorsMap: Record<string, string>;
24
37
  }>, {
25
38
  chartType: ChartType;
26
39
  dataSets: () => any[];
@@ -31,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
31
44
  tickCount: number;
32
45
  header: string;
33
46
  subheader: string;
34
- subheaderTooltip: string;
47
+ subheaderTooltip: any;
35
48
  loading: boolean;
36
49
  noDataIcon: string;
37
50
  noDataTitle: string;
@@ -41,9 +54,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
41
54
  height: string;
42
55
  compactHeader: boolean;
43
56
  tooltipRespectsTopEdge: boolean;
57
+ tooltipTotalType: TotalType;
58
+ tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
44
59
  trendValue: any;
45
60
  trendDirection: string;
61
+ trendTooltip: any;
46
62
  totalsChart: boolean;
63
+ colorsMap: () => {};
47
64
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
65
  "update:chartType": (chartType: ChartType) => void;
49
66
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -56,6 +73,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
56
73
  tickCount?: number;
57
74
  header?: string;
58
75
  subheader?: string;
76
+ subheaderTooltip?: {
77
+ header?: string;
78
+ text?: string;
79
+ };
59
80
  loading?: boolean;
60
81
  noDataIcon?: string;
61
82
  noDataTitle?: string;
@@ -65,9 +86,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
86
  height?: string;
66
87
  compactHeader?: boolean;
67
88
  tooltipRespectsTopEdge?: boolean;
89
+ tooltipTotalType?: TotalType;
90
+ tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
68
91
  trendValue?: string | number;
69
92
  trendDirection?: "up" | "down";
93
+ trendTooltip?: {
94
+ header?: string;
95
+ rangeCurrent?: string;
96
+ rangePrevious?: string;
97
+ };
70
98
  totalsChart?: boolean;
99
+ colorsMap: Record<string, string>;
71
100
  }>, {
72
101
  chartType: ChartType;
73
102
  dataSets: () => any[];
@@ -78,7 +107,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
78
107
  tickCount: number;
79
108
  header: string;
80
109
  subheader: string;
81
- subheaderTooltip: string;
110
+ subheaderTooltip: any;
82
111
  loading: boolean;
83
112
  noDataIcon: string;
84
113
  noDataTitle: string;
@@ -88,9 +117,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
88
117
  height: string;
89
118
  compactHeader: boolean;
90
119
  tooltipRespectsTopEdge: boolean;
120
+ tooltipTotalType: TotalType;
121
+ tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
91
122
  trendValue: any;
92
123
  trendDirection: string;
124
+ trendTooltip: any;
93
125
  totalsChart: boolean;
126
+ colorsMap: () => {};
94
127
  }>>> & {
95
128
  "onUpdate:chartType"?: (chartType: ChartType) => any;
96
129
  }, {
@@ -103,18 +136,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
103
136
  yAxisFormat: ValueFormat;
104
137
  parsing: ChartParsingConfig;
105
138
  dataSets: ChartDataSet[];
139
+ trendTooltip: any;
106
140
  typeSwitcher: boolean;
107
141
  subheader: string;
142
+ subheaderTooltip: any;
108
143
  trendValue: string | number;
109
144
  trendDirection: "up" | "down";
110
145
  tickCount: number;
111
- withAnimation: boolean;
112
- totalsChart: boolean;
113
146
  noDataIcon: string;
114
147
  noDataTitle: string;
115
148
  noDataSubtitle: string;
149
+ withAnimation: boolean;
116
150
  compactHeader: boolean;
117
151
  tooltipRespectsTopEdge: boolean;
152
+ tooltipTotalType: TotalType;
153
+ tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
154
+ totalsChart: boolean;
155
+ colorsMap: Record<string, string>;
118
156
  }>, {
119
157
  "subheader-tooltip"?(_: {}): any;
120
158
  }>;
@@ -1,7 +1,7 @@
1
- import o from "./ChartPlane.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4396faf6"]]);
1
+ import e from "./ChartPlane.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ae87f435"]]);
5
5
  export {
6
6
  s as default
7
7
  };