@ironsource/shared-ui 2.1.11-test.9 → 2.1.11-test.91

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 (170) 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_277fde76_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/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  8. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +1 -0
  9. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  10. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  11. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  12. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  13. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  14. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  15. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  16. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  17. package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
  19. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  20. package/README.md +4 -15
  21. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  22. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
  23. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  24. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  25. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  26. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  27. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  28. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  29. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  30. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
  31. package/components/autocomplete/Autocomplete.vue2.js +1 -1
  32. package/components/chart/Chart.vue.d.ts +16 -3
  33. package/components/chart/Chart.vue.js +5 -5
  34. package/components/chart/Chart.vue2.js +127 -110
  35. package/components/chart/ChartHeader.vue.d.ts +13 -6
  36. package/components/chart/ChartHeader.vue.js +2 -2
  37. package/components/chart/ChartHeader.vue2.js +32 -29
  38. package/components/chart/ChartLegend.vue.d.ts +5 -0
  39. package/components/chart/ChartLegend.vue.js +3 -3
  40. package/components/chart/ChartLegend.vue2.js +99 -49
  41. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  42. package/components/chart/ChartTooltip.vue.js +2 -2
  43. package/components/chart/ChartTooltip.vue2.js +64 -43
  44. package/components/chart/SettingsHeader.vue2.js +1 -1
  45. package/components/chart/index.d.ts +55 -16
  46. package/components/chart/mockData.d.ts +15 -2
  47. package/components/chart/types.d.ts +15 -1
  48. package/components/chart/utils/utils.js +5 -5
  49. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  50. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  51. package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
  52. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  53. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  54. package/components/dialog/v4/DialogV4.vue.js +3 -3
  55. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  56. package/components/dialog/v4/index.d.ts +58 -1
  57. package/components/dropdown/common/Dropdown.common.js +180 -169
  58. package/components/dropdown/v3/index.d.ts +12 -12
  59. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  60. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  61. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  62. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  63. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  64. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +59 -40
  65. package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts} +58 -0
  66. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  67. package/components/dropdown/v4/ConditionalDropdown.vue2.js +234 -0
  68. package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -5
  69. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  70. package/components/dropdown/v4/DropdownV4.vue2.js +52 -50
  71. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  72. package/components/dropdown/v4/OptionV4.vue2.js +2 -2
  73. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  74. package/components/dropdown/v4/TreeDropdown.vue2.js +87 -87
  75. package/components/dropdown/v4/index.d.ts +203 -35
  76. package/components/dropdown/v4/index.js +3 -3
  77. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  78. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  79. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  80. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  81. package/components/forms/FormCard.vue.js +3 -3
  82. package/components/forms/FormCard.vue2.js +1 -1
  83. package/components/icon/v4/IconFlag.vue.js +3 -3
  84. package/components/icon/v4/IconFlag.vue2.js +1 -1
  85. package/components/icon/v4/consts.d.ts +1 -1
  86. package/components/icon/v4/consts.js +1 -1
  87. package/components/input/v4/TextField.vue.js +3 -3
  88. package/components/input/v4/TextField.vue2.js +185 -165
  89. package/components/multibar/MultiBarMenu.vue2.js +1 -1
  90. package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
  91. package/components/popover/v4/PopoverV4.vue.js +2 -2
  92. package/components/popover/v4/PopoverV4.vue2.js +40 -26
  93. package/components/popover/v4/index.d.ts +46 -8
  94. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  95. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  96. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  97. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  98. package/components/sortableList/SortableItem.vue.js +2 -2
  99. package/components/sortableList/SortableItem.vue2.js +86 -70
  100. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  101. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  102. package/components/sortableList/SortableList.vue.d.ts +17 -1
  103. package/components/sortableList/SortableList.vue.js +4 -4
  104. package/components/sortableList/SortableList.vue2.js +113 -94
  105. package/components/sortableList/index.d.ts +63 -5
  106. package/components/table/common/Table.common.d.ts +1 -1
  107. package/components/table/common/Table.common.js +82 -74
  108. package/components/table/common/Table.types.d.ts +1 -1
  109. package/components/table/common/consts.d.ts +4 -0
  110. package/components/table/common/consts.js +7 -0
  111. package/components/table/v3/Table.vue.d.ts +1 -1
  112. package/components/table/v3/index.d.ts +5 -5
  113. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  114. package/components/table/v4/DataGrid.vue.js +2 -2
  115. package/components/table/v4/DataGrid.vue2.js +164 -155
  116. package/components/table/v4/DataGridMenu.vue.js +5 -5
  117. package/components/table/v4/DataGridMenu.vue2.js +2 -2
  118. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  119. package/components/table/v4/index.d.ts +84 -46
  120. package/components/table-cells/common/Editable.common.js +29 -23
  121. package/components/table-cells/common/EditableContext.d.ts +1 -0
  122. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  123. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  124. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  125. package/components/table-cells/v4/index.d.ts +20 -1
  126. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  127. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  128. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  129. package/components/tooltip/v4/index.d.ts +39 -1
  130. package/components/typography/v4/Typography.vue.js +3 -3
  131. package/components/typography/v4/Typography.vue2.js +24 -18
  132. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  133. package/index.d.ts +1093 -204
  134. package/index.js +1 -1
  135. package/mocks/words.d.ts +1 -1
  136. package/package.json +3 -3
  137. package/style/v4/grid.css +1 -1
  138. package/style/v4/grid.css.map +1 -1
  139. package/style/v4/spacings.scss +1 -0
  140. package/testids/index.d.ts +2 -0
  141. package/testids/index.js +13 -13
  142. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  143. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  144. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  145. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  146. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  147. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  148. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +0 -1
  149. package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +0 -1
  150. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  151. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  152. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  153. package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +0 -1
  154. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  155. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  156. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  157. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  158. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  159. package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +0 -1
  160. package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
  161. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  162. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  163. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  164. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  165. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  166. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  167. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
  168. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
  169. package/components/dropdown/v4/ConditionalDroprown.vue.js +0 -7
  170. package/components/dropdown/v4/ConditionalDroprown.vue2.js +0 -157
@@ -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
  };
@@ -8,7 +8,7 @@ import k 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
- import "../dropdown/v4/ConditionalDroprown.vue.js";
11
+ import "../dropdown/v4/ConditionalDropdown.vue.js";
12
12
  import { DROPDOWN_TYPE_OPTIONS as c } from "./consts.js";
13
13
  const _ = { class: "settings-header-container" }, B = { class: "chart-type-selection" }, x = /* @__PURE__ */ h({
14
14
  __name: "SettingsHeader",
@@ -12,16 +12,18 @@ declare const ChartTypes: () => ({
12
12
  visibleIds: unknown[];
13
13
  minVisible: number;
14
14
  maxVisible: number;
15
+ maxLimitTooltipText: string;
15
16
  chartType: import("./types").ChartType;
16
17
  withSettingsHeader: boolean;
17
18
  subheader: string;
18
- subheaderTooltip: string;
19
+ withSubheaderTooltip: boolean;
19
20
  dataSets: import("./types").ChartDataSet[];
20
21
  hideLegend: boolean;
21
22
  tickCount: number;
22
23
  noDataIcon: string;
23
24
  noDataTitle: string;
24
25
  noDataSubtitle: string;
26
+ withAnimation: boolean;
25
27
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
26
28
  header: {
27
29
  type: import("vue").PropType<string>;
@@ -56,6 +58,10 @@ declare const ChartTypes: () => ({
56
58
  type: import("vue").PropType<number>;
57
59
  default: number;
58
60
  };
61
+ maxLimitTooltipText: {
62
+ type: import("vue").PropType<string>;
63
+ default: string;
64
+ };
59
65
  chartType: {
60
66
  type: import("vue").PropType<import("./types").ChartType>;
61
67
  default: import("./types").ChartType;
@@ -68,9 +74,9 @@ declare const ChartTypes: () => ({
68
74
  type: import("vue").PropType<string>;
69
75
  default: string;
70
76
  };
71
- subheaderTooltip: {
72
- type: import("vue").PropType<string>;
73
- default: string;
77
+ withSubheaderTooltip: {
78
+ type: import("vue").PropType<boolean>;
79
+ default: boolean;
74
80
  };
75
81
  dataSets: {
76
82
  type: import("vue").PropType<import("./types").ChartDataSet[]>;
@@ -97,10 +103,14 @@ declare const ChartTypes: () => ({
97
103
  type: import("vue").PropType<string>;
98
104
  default: string;
99
105
  };
106
+ withAnimation: {
107
+ type: import("vue").PropType<boolean>;
108
+ default: boolean;
109
+ };
100
110
  }>> & {
101
111
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
102
112
  "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
103
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "xAxisFormat" | "yAxisFormat" | "parsing" | "visibleIds" | "minVisible" | "maxVisible" | "chartType" | "withSettingsHeader" | "subheader" | "subheaderTooltip" | "dataSets" | "hideLegend" | "tickCount" | "noDataIcon" | "noDataTitle" | "noDataSubtitle">;
113
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "xAxisFormat" | "yAxisFormat" | "parsing" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "chartType" | "withSettingsHeader" | "subheader" | "withSubheaderTooltip" | "dataSets" | "hideLegend" | "tickCount" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation">;
104
114
  $attrs: {
105
115
  [x: string]: unknown;
106
116
  };
@@ -148,6 +158,10 @@ declare const ChartTypes: () => ({
148
158
  type: import("vue").PropType<number>;
149
159
  default: number;
150
160
  };
161
+ maxLimitTooltipText: {
162
+ type: import("vue").PropType<string>;
163
+ default: string;
164
+ };
151
165
  chartType: {
152
166
  type: import("vue").PropType<import("./types").ChartType>;
153
167
  default: import("./types").ChartType;
@@ -160,9 +174,9 @@ declare const ChartTypes: () => ({
160
174
  type: import("vue").PropType<string>;
161
175
  default: string;
162
176
  };
163
- subheaderTooltip: {
164
- type: import("vue").PropType<string>;
165
- default: string;
177
+ withSubheaderTooltip: {
178
+ type: import("vue").PropType<boolean>;
179
+ default: boolean;
166
180
  };
167
181
  dataSets: {
168
182
  type: import("vue").PropType<import("./types").ChartDataSet[]>;
@@ -189,6 +203,10 @@ declare const ChartTypes: () => ({
189
203
  type: import("vue").PropType<string>;
190
204
  default: string;
191
205
  };
206
+ withAnimation: {
207
+ type: import("vue").PropType<boolean>;
208
+ default: boolean;
209
+ };
192
210
  }>> & {
193
211
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
194
212
  "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
@@ -204,16 +222,18 @@ declare const ChartTypes: () => ({
204
222
  visibleIds: unknown[];
205
223
  minVisible: number;
206
224
  maxVisible: number;
225
+ maxLimitTooltipText: string;
207
226
  chartType: import("./types").ChartType;
208
227
  withSettingsHeader: boolean;
209
228
  subheader: string;
210
- subheaderTooltip: string;
229
+ withSubheaderTooltip: boolean;
211
230
  dataSets: import("./types").ChartDataSet[];
212
231
  hideLegend: boolean;
213
232
  tickCount: number;
214
233
  noDataIcon: string;
215
234
  noDataTitle: string;
216
235
  noDataSubtitle: string;
236
+ withAnimation: boolean;
217
237
  }, {}, string> & {
218
238
  beforeCreate?: (() => void) | (() => void)[];
219
239
  created?: (() => void) | (() => void)[];
@@ -268,6 +288,10 @@ declare const ChartTypes: () => ({
268
288
  type: import("vue").PropType<number>;
269
289
  default: number;
270
290
  };
291
+ maxLimitTooltipText: {
292
+ type: import("vue").PropType<string>;
293
+ default: string;
294
+ };
271
295
  chartType: {
272
296
  type: import("vue").PropType<import("./types").ChartType>;
273
297
  default: import("./types").ChartType;
@@ -280,9 +304,9 @@ declare const ChartTypes: () => ({
280
304
  type: import("vue").PropType<string>;
281
305
  default: string;
282
306
  };
283
- subheaderTooltip: {
284
- type: import("vue").PropType<string>;
285
- default: string;
307
+ withSubheaderTooltip: {
308
+ type: import("vue").PropType<boolean>;
309
+ default: boolean;
286
310
  };
287
311
  dataSets: {
288
312
  type: import("vue").PropType<import("./types").ChartDataSet[]>;
@@ -309,6 +333,10 @@ declare const ChartTypes: () => ({
309
333
  type: import("vue").PropType<string>;
310
334
  default: string;
311
335
  };
336
+ withAnimation: {
337
+ type: import("vue").PropType<boolean>;
338
+ default: boolean;
339
+ };
312
340
  }>> & {
313
341
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
314
342
  "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
@@ -350,6 +378,10 @@ declare const ChartTypes: () => ({
350
378
  type: import("vue").PropType<number>;
351
379
  default: number;
352
380
  };
381
+ maxLimitTooltipText: {
382
+ type: import("vue").PropType<string>;
383
+ default: string;
384
+ };
353
385
  chartType: {
354
386
  type: import("vue").PropType<import("./types").ChartType>;
355
387
  default: import("./types").ChartType;
@@ -362,9 +394,9 @@ declare const ChartTypes: () => ({
362
394
  type: import("vue").PropType<string>;
363
395
  default: string;
364
396
  };
365
- subheaderTooltip: {
366
- type: import("vue").PropType<string>;
367
- default: string;
397
+ withSubheaderTooltip: {
398
+ type: import("vue").PropType<boolean>;
399
+ default: boolean;
368
400
  };
369
401
  dataSets: {
370
402
  type: import("vue").PropType<import("./types").ChartDataSet[]>;
@@ -391,6 +423,10 @@ declare const ChartTypes: () => ({
391
423
  type: import("vue").PropType<string>;
392
424
  default: string;
393
425
  };
426
+ withAnimation: {
427
+ type: import("vue").PropType<boolean>;
428
+ default: boolean;
429
+ };
394
430
  }>> & {
395
431
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
396
432
  "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
@@ -406,20 +442,23 @@ declare const ChartTypes: () => ({
406
442
  visibleIds: unknown[];
407
443
  minVisible: number;
408
444
  maxVisible: number;
445
+ maxLimitTooltipText: string;
409
446
  chartType: import("./types").ChartType;
410
447
  withSettingsHeader: boolean;
411
448
  subheader: string;
412
- subheaderTooltip: string;
449
+ withSubheaderTooltip: boolean;
413
450
  dataSets: import("./types").ChartDataSet[];
414
451
  hideLegend: boolean;
415
452
  tickCount: number;
416
453
  noDataIcon: string;
417
454
  noDataTitle: string;
418
455
  noDataSubtitle: string;
456
+ withAnimation: boolean;
419
457
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
420
458
  $slots: {
421
459
  metric?(_: {}): any;
422
460
  breakdowns?(_: {}): any;
461
+ "subheader-tooltip"?(_: {}): any;
423
462
  };
424
463
  }))[];
425
464
  export type { ChartType, ChartDataRecord, ChartDataSet, ChartParsingConfig, } from './types';
@@ -13,12 +13,25 @@ export declare const SINGLE_DATASET_COUNTRY: {
13
13
  value: number;
14
14
  }[];
15
15
  }[];
16
- export declare const MULTIPLE_DATASETS_DATE: {
16
+ export declare const MULTIPLE_DATASETS_DATE: ({
17
17
  id: string;
18
18
  label: string;
19
+ caption: string;
20
+ icon: string;
19
21
  data: {
20
22
  date: string;
21
23
  value: number;
22
24
  }[];
23
- }[];
25
+ iconType?: undefined;
26
+ } | {
27
+ id: string;
28
+ label: string;
29
+ caption: string;
30
+ icon: string;
31
+ iconType: string;
32
+ data: {
33
+ date: string;
34
+ value: number;
35
+ }[];
36
+ })[];
24
37
  export declare const generateMockData: (numSeries?: number) => any[];
@@ -1,5 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { UseVirtualListItem } from '@vueuse/core';
3
+ import { IconTypes } from '../icon/v4/Icon.types';
4
+ import { ChartTypeRegistry, TooltipItem } from 'chart.js';
3
5
  export declare enum ChartType {
4
6
  Line = "line",
5
7
  Bar = "bar",
@@ -11,18 +13,30 @@ export type ChartDataSet = {
11
13
  id: string | number;
12
14
  label: string;
13
15
  data: ChartDataRecord[];
16
+ caption?: string;
14
17
  color?: string;
18
+ icon?: string;
19
+ iconType?: IconTypes;
15
20
  };
16
21
  export type ChartParsingConfig = {
17
22
  xAxisKey: string;
18
23
  yAxisKey: string;
19
24
  };
20
- export type ValueFormat = 'date' | 'dateLong' | 'number' | 'percent' | 'string';
25
+ export type ValueFormat = 'date' | 'dateLong' | 'number' | 'percent' | 'string' | 'day';
21
26
  export type LegendItem = {
22
27
  id: string | number;
23
28
  label: string;
29
+ caption?: string;
24
30
  color?: string;
31
+ icon?: string;
32
+ iconType?: IconTypes;
25
33
  };
34
+ export interface MyTooltipItem<T extends keyof ChartTypeRegistry = keyof ChartTypeRegistry> extends TooltipItem<T> {
35
+ dataset: {
36
+ icon?: string;
37
+ iconType?: IconTypes;
38
+ } & TooltipItem<T>['dataset'];
39
+ }
26
40
  export type UseVirtualListResult = {
27
41
  list: Ref<UseVirtualListItem<LegendItem>[]>;
28
42
  containerProps: {