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

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_2ba23450_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} +60 -0
  66. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  67. package/components/dropdown/v4/ConditionalDropdown.vue2.js +239 -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 +205 -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 +1097 -204
  134. package/index.js +1 -1
  135. package/mocks/words.d.ts +1 -1
  136. package/package.json +1 -1
  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,23 +1,23 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css"; import { defineComponent as X, ref as g, computed as i, onMounted as j, watch as C, nextTick as q, openBlock as d, createElementBlock as k, Fragment as R, createBlock as m, unref as u, isRef as V, withCtx as O, renderSlot as D, createCommentVNode as v, createElementVNode as f, createVNode as F, normalizeStyle as J } from "vue";
2
- import { useVModel as Q } from "@vueuse/core";
3
- import { Chart as N, ArcElement as Y, LineElement as ee, BarElement as te, PointElement as ae, LineController as oe, BarController as re, PieController as ie, ScatterController as le, CategoryScale as ne, LinearScale as se, Filler as de, Tooltip as ue } from "chart.js";
4
- import { HoverVerticalLine as ce } from "./plugins/HoverVerticalLine.js";
5
- import { formatValue as H, calcStepSize as fe } from "./utils/utils.js";
6
- import { DEFAULT_TICK_COUNT as pe, DEFAULT_MIN_VISIBLE as he, DEFAULT_MAX_VISIBLE as me, COLOR_PALETTE as ve, POINT_BORDER_COLOR as be, TICK_LABEL_COLOR as P, TICK_LABEL_FONT as U, GRID_LINE_COLOR as M } from "./consts.js";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css"; import { defineComponent as q, computed as l, ref as g, onMounted as J, watch as T, nextTick as Q, openBlock as d, createElementBlock as C, Fragment as O, createBlock as f, unref as u, isRef as D, withCtx as k, renderSlot as x, createCommentVNode as v, createElementVNode as p, normalizeClass as Y, createVNode as F, normalizeStyle as _ } from "vue";
2
+ import { useVModel as ee } from "@vueuse/core";
3
+ import { Chart as N, ArcElement as te, LineElement as ae, BarElement as oe, PointElement as ie, LineController as le, BarController as re, PieController as ne, ScatterController as se, CategoryScale as de, LinearScale as ue, Filler as ce, Tooltip as pe } from "chart.js";
4
+ import { HoverVerticalLine as me } from "./plugins/HoverVerticalLine.js";
5
+ import { formatValue as H, calcStepSize as he } from "./utils/utils.js";
6
+ import { DEFAULT_TICK_COUNT as fe, DEFAULT_MIN_VISIBLE as ve, DEFAULT_MAX_VISIBLE as ye, COLOR_PALETTE as be, POINT_BORDER_COLOR as ge, TICK_LABEL_COLOR as U, TICK_LABEL_FONT as P, GRID_LINE_COLOR as z } from "./consts.js";
7
7
  import { ChartType as n } from "./types.js";
8
- import { useTooltipPosition as ye } from "./composables/useTooltipPosition.js";
9
- import ge from "./ChartTooltip.vue.js";
10
- import Ce from "./ChartLegend.vue.js";
11
- import ke from "./ChartHeader.vue.js";
12
- import { hexColorToRgba as Te } from "../../utils/color.js";
8
+ import { useTooltipPosition as Te } from "./composables/useTooltipPosition.js";
9
+ import Ce from "./ChartTooltip.vue.js";
10
+ import ke from "./ChartLegend.vue.js";
11
+ import xe from "./ChartHeader.vue.js";
12
+ import { hexColorToRgba as Le } from "../../utils/color.js";
13
13
  import { useChartValues as Se } from "./composables/useChartValues.js";
14
- import Le from "./ChartLoader.vue.js";
15
- import xe from "../emptyState/v4/EmptyStateV4.vue.js";
16
- import Be from "./SettingsHeader.vue.js";
17
- const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = { class: "header-wrapper" }, Ee = { class: "chart" }, Re = {
14
+ import we from "./ChartLoader.vue.js";
15
+ import Be from "../emptyState/v4/EmptyStateV4.vue.js";
16
+ import Ie from "./SettingsHeader.vue.js";
17
+ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve = { class: "chart" }, Re = {
18
18
  key: 0,
19
19
  class: "chart-sidebar"
20
- }, Xe = /* @__PURE__ */ X({
20
+ }, qe = /* @__PURE__ */ q({
21
21
  __name: "Chart",
22
22
  props: {
23
23
  dataSets: { default: () => [] },
@@ -26,75 +26,81 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
26
26
  parsing: { default: void 0 },
27
27
  xAxisFormat: { default: "string" },
28
28
  yAxisFormat: { default: "number" },
29
- tickCount: { default: pe },
29
+ tickCount: { default: fe },
30
30
  header: { default: "" },
31
31
  subheader: { default: "" },
32
- subheaderTooltip: { default: "" },
32
+ withSubheaderTooltip: { type: Boolean, default: !1 },
33
33
  hideLegend: { type: Boolean, default: !1 },
34
- minVisible: { default: he },
35
- maxVisible: { default: me },
34
+ minVisible: { default: ve },
35
+ maxVisible: { default: ye },
36
36
  loading: { type: Boolean, default: !1 },
37
37
  noDataIcon: { default: "file-x" },
38
38
  noDataTitle: { default: "No data to display" },
39
39
  noDataSubtitle: { default: "Search again with different filters" },
40
- withSettingsHeader: { type: Boolean, default: !0 }
40
+ withSettingsHeader: { type: Boolean, default: !0 },
41
+ maxLimitTooltipText: { default: "" },
42
+ withAnimation: { type: Boolean, default: !0 }
41
43
  },
42
44
  emits: ["update:chartType", "update:visibleIds"],
43
- setup(a, { emit: T }) {
45
+ setup(a, { emit: L }) {
44
46
  const t = a;
45
47
  N.register(
46
- Y,
47
- ee,
48
48
  te,
49
49
  ae,
50
50
  oe,
51
- re,
52
51
  ie,
53
52
  le,
53
+ re,
54
54
  ne,
55
55
  se,
56
56
  de,
57
57
  ue,
58
- ce
58
+ ce,
59
+ pe,
60
+ me
59
61
  );
60
- const c = Q(t, "chartType", T), p = g(null);
62
+ const c = ee(t, "chartType", L), M = l(
63
+ () => t.withAnimation ? "" : "none"
64
+ ), m = g(null);
61
65
  let s = null;
62
- const S = i(() => t.dataSets.length === 0), L = i(() => !t.loading && !S.value), b = () => {
63
- p.value && (s && s.destroy(), s = new N(p.value, B.value));
64
- }, z = () => {
65
- s && (s.data.datasets = y.value, s.options = B.value.options, s.update());
66
+ const S = l(() => t.dataSets.length === 0), w = l(() => !t.loading && !S.value), y = () => {
67
+ m.value && (s && s.destroy(), s = new N(m.value, I.value));
68
+ }, $ = () => {
69
+ s && (s.data.datasets = b.value, s.options = I.value.options, s.update(M.value));
66
70
  };
67
- j(b), C(() => t.chartType, b), C(L, async (e) => {
68
- e && (await q(), b());
69
- }), C([() => t.visibleIds, () => t.dataSets], z);
70
- const h = i(
71
+ J(y), T(() => t.chartType, y), T(w, async (e) => {
72
+ e && (await Q(), y());
73
+ }), T([() => t.visibleIds, () => t.dataSets], $);
74
+ const h = l(
71
75
  () => t.chartType === n.StackedLine || t.chartType === n.StackedBar
72
- ), $ = i(
76
+ ), K = l(
73
77
  () => t.chartType === n.Line || t.chartType === n.StackedLine
74
- ), x = i(
78
+ ), B = l(
75
79
  () => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
76
- ), y = i(() => x.value.map((e, o) => {
77
- const r = e.color || ve[o] || "#000000";
80
+ ), b = l(() => B.value.map((e, o) => {
81
+ const i = e.color || be[o] || "#000000";
78
82
  return {
79
83
  ...e,
80
84
  fill: h.value ? "start" : void 0,
81
- backgroundColor: Te(
82
- r,
85
+ backgroundColor: Le(
86
+ i,
83
87
  t.chartType === n.StackedLine ? 10 : 70
84
88
  ),
85
- borderColor: r,
86
- pointBackgroundColor: r,
87
- pointHoverBorderColor: r,
89
+ borderColor: i,
90
+ pointBackgroundColor: i,
91
+ pointHoverBorderColor: i,
88
92
  maxBarThickness: 50,
89
- clip: 5
93
+ clip: 5,
90
94
  // draw a bit outside the chart area
95
+ icon: e.icon || null,
96
+ iconType: e.iconType || "branded"
91
97
  };
92
- })), B = i(
98
+ })), I = l(
93
99
  () => ({
94
100
  type: t.chartType == n.Bar || t.chartType === n.StackedBar ? "bar" : "line",
95
101
  // Chart Data
96
102
  data: {
97
- datasets: y.value
103
+ datasets: b.value
98
104
  },
99
105
  // Chart Options
100
106
  options: {
@@ -108,17 +114,17 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
108
114
  plugins: {
109
115
  legend: { display: !1 },
110
116
  title: { display: !1 },
111
- hoverVerticalLine: $.value,
117
+ hoverVerticalLine: K.value,
112
118
  // tooltip
113
119
  tooltip: {
114
120
  enabled: !1,
115
121
  position: "average",
116
122
  external: ({ tooltip: e }) => {
117
- l.value = { ...e };
123
+ r.value = { ...e };
118
124
  },
119
125
  callbacks: {
120
126
  footer: (e) => {
121
- const o = e.reduce((r, G) => r + (G.parsed.y || 0), 0);
127
+ const o = e.reduce((i, j) => i + (j.parsed.y || 0), 0);
122
128
  return ["Total", String(o)];
123
129
  }
124
130
  }
@@ -146,7 +152,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
146
152
  borderWidth: 0,
147
153
  hoverRadius: 4,
148
154
  hoverBorderWidth: 2,
149
- pointHoverBackgroundColor: be
155
+ pointHoverBackgroundColor: ge
150
156
  },
151
157
  bar: {
152
158
  borderRadius: 4
@@ -161,8 +167,8 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
161
167
  // stack on top of each other
162
168
  // ticks
163
169
  ticks: {
164
- color: P,
165
- font: U,
170
+ color: U,
171
+ font: P,
166
172
  padding: 4,
167
173
  callback: function(e) {
168
174
  return H(
@@ -173,7 +179,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
173
179
  },
174
180
  // grid lines
175
181
  grid: {
176
- color: M,
182
+ color: z,
177
183
  drawOnChartArea: !1,
178
184
  drawTicks: !0,
179
185
  drawBorder: !1,
@@ -189,17 +195,17 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
189
195
  // stack on top of each other
190
196
  // ticks
191
197
  ticks: {
192
- color: P,
193
- font: U,
198
+ color: U,
199
+ font: P,
194
200
  padding: 8,
195
- stepSize: E.value,
196
- min: A.value,
197
- max: E.value * t.tickCount,
201
+ stepSize: R.value,
202
+ min: V.value,
203
+ max: R.value * t.tickCount,
198
204
  callback: (e) => H(e, t.yAxisFormat)
199
205
  },
200
206
  // grid lines
201
207
  grid: {
202
- color: M,
208
+ color: z,
203
209
  drawOnChartArea: !0,
204
210
  drawTicks: !1
205
211
  }
@@ -207,87 +213,98 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
207
213
  }
208
214
  }
209
215
  })
210
- ), K = i(
211
- () => y.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
212
- ), W = i(() => t.dataSets.map((e) => ({
216
+ ), W = l(
217
+ () => b.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
218
+ ), Z = l(() => t.dataSets.map((e) => ({
213
219
  id: e.id,
214
220
  label: e.label,
215
- color: K.value[e.id] || null
216
- }))), I = g(null), l = g(null), { position: w } = ye(
217
- p,
218
- I,
219
- l
220
- ), Z = i(() => ({
221
- left: `${w.value.left}px`,
222
- top: `${w.value.top}px`,
223
- opacity: l.value?.opacity || 0
224
- })), { minValue: A, maxValue: _ } = Se({
221
+ caption: e.caption || null,
222
+ color: W.value[e.id] || null,
223
+ icon: e.icon || null,
224
+ iconType: e.iconType || "branded"
225
+ }))), A = g(null), r = g(null), { position: E } = Te(
226
+ m,
227
+ A,
228
+ r
229
+ ), G = l(() => ({
230
+ left: `${E.value.left}px`,
231
+ top: `${E.value.top}px`,
232
+ opacity: r.value?.opacity || 0
233
+ })), { minValue: V, maxValue: X } = Se({
225
234
  parsingConfig: t.parsing,
226
- dataSets: x,
235
+ dataSets: B,
227
236
  isStacked: h
228
- }), E = i(
229
- () => fe(A.value, _.value, t.tickCount)
237
+ }), R = l(
238
+ () => he(V.value, X.value, t.tickCount)
230
239
  );
231
- return (e, o) => (d(), k(R, null, [
232
- a.withSettingsHeader ? (d(), m(Be, {
240
+ return (e, o) => (d(), C(O, null, [
241
+ a.withSettingsHeader ? (d(), f(Ie, {
233
242
  key: 0,
234
243
  "chart-type": u(c),
235
- "onUpdate:chart-type": o[0] || (o[0] = (r) => V(c) ? c.value = r : null),
244
+ "onUpdate:chart-type": o[0] || (o[0] = (i) => D(c) ? c.value = i : null),
236
245
  "hide-legend": a.hideLegend
237
246
  }, {
238
- metric: O(() => [
239
- D(e.$slots, "metric", {}, void 0, !0)
247
+ metric: k(() => [
248
+ x(e.$slots, "metric", {}, void 0, !0)
240
249
  ]),
241
- breakdowns: O(() => [
242
- D(e.$slots, "breakdowns", {}, void 0, !0)
250
+ breakdowns: k(() => [
251
+ x(e.$slots, "breakdowns", {}, void 0, !0)
243
252
  ]),
244
253
  _: 3
245
254
  }, 8, ["chart-type", "hide-legend"])) : v("", !0),
246
- f("div", Ie, [
247
- u(L) ? (d(), k(R, { key: 0 }, [
248
- f("section", we, [
249
- f("div", Ae, [
250
- F(ke, {
255
+ p("div", Ae, [
256
+ u(w) ? (d(), C(O, { key: 0 }, [
257
+ p("section", {
258
+ class: Y(["chart-content", [{ "with-legend": !a.hideLegend }]])
259
+ }, [
260
+ p("div", Ee, [
261
+ F(xe, {
251
262
  "chart-type": u(c),
252
- "onUpdate:chart-type": o[1] || (o[1] = (r) => V(c) ? c.value = r : null),
263
+ "onUpdate:chart-type": o[1] || (o[1] = (i) => D(c) ? c.value = i : null),
253
264
  "with-settings-header": a.withSettingsHeader,
254
265
  header: a.header,
255
266
  subheader: a.subheader,
256
- "subheader-tooltip": a.subheaderTooltip
257
- }, null, 8, ["chart-type", "with-settings-header", "header", "subheader", "subheader-tooltip"])
267
+ "with-subheader-tooltip": a.withSubheaderTooltip
268
+ }, {
269
+ "subheader-tooltip": k(() => [
270
+ x(e.$slots, "subheader-tooltip", {}, void 0, !0)
271
+ ]),
272
+ _: 3
273
+ }, 8, ["chart-type", "with-settings-header", "header", "subheader", "with-subheader-tooltip"])
258
274
  ]),
259
- f("div", Ee, [
260
- f("canvas", {
275
+ p("div", Ve, [
276
+ p("canvas", {
261
277
  ref_key: "chartRef",
262
- ref: p,
278
+ ref: m,
263
279
  class: "chart__canvas"
264
280
  }, null, 512),
265
- f("div", {
281
+ p("div", {
266
282
  ref_key: "tooltipRef",
267
- ref: I,
283
+ ref: A,
268
284
  class: "chart__tooltip",
269
- style: J(u(Z))
285
+ style: _(u(G))
270
286
  }, [
271
- l.value ? (d(), m(ge, {
287
+ r.value ? (d(), f(Ce, {
272
288
  key: 0,
273
- title: String(l.value.title),
274
- "data-points": l.value.dataPoints,
289
+ title: String(r.value.title),
290
+ "data-points": r.value.dataPoints,
275
291
  "x-axis-format": a.xAxisFormat,
276
292
  "y-axis-format": a.yAxisFormat,
277
- "total-label": l.value.footer[0],
278
- "total-value": Number(l.value.footer[1])
293
+ "total-label": r.value.footer[0],
294
+ "total-value": Number(r.value.footer[1])
279
295
  }, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : v("", !0)
280
296
  ], 4)
281
297
  ])
282
- ]),
283
- a.hideLegend ? v("", !0) : (d(), k("section", Re, [
284
- F(Ce, {
285
- items: u(W),
298
+ ], 2),
299
+ a.hideLegend ? v("", !0) : (d(), C("section", Re, [
300
+ F(ke, {
301
+ items: u(Z),
286
302
  "visible-ids": a.visibleIds,
287
- "onUpdate:visibleIds": o[2] || (o[2] = (r) => T("update:visibleIds", r))
288
- }, null, 8, ["items", "visible-ids"])
303
+ "max-limit-tooltip-text": a.maxLimitTooltipText,
304
+ "onUpdate:visibleIds": o[2] || (o[2] = (i) => L("update:visibleIds", i))
305
+ }, null, 8, ["items", "visible-ids", "max-limit-tooltip-text"])
289
306
  ]))
290
- ], 64)) : a.loading ? (d(), m(Le, { key: 1 })) : u(S) ? (d(), m(u(xe), {
307
+ ], 64)) : a.loading ? (d(), f(we, { key: 1 })) : u(S) ? (d(), f(u(Be), {
291
308
  key: 2,
292
309
  title: a.noDataTitle,
293
310
  subtitle: a.noDataSubtitle,
@@ -298,5 +315,5 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
298
315
  }
299
316
  });
300
317
  export {
301
- Xe as default
318
+ qe as default
302
319
  };
@@ -1,16 +1,16 @@
1
1
  import { ChartType } from '@/components/chart/types';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  chartType: ChartType;
4
4
  withSettingsHeader: boolean;
5
5
  header?: string;
6
6
  subheader?: string;
7
- subheaderTooltip?: string;
7
+ withSubheaderTooltip?: boolean;
8
8
  }>, {
9
9
  chartType: ChartType;
10
10
  withSettingsHeader: boolean;
11
11
  header: string;
12
12
  subheader: string;
13
- subheaderTooltip: string;
13
+ withSubheaderTooltip: boolean;
14
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
15
  "update:chartType": (type: ChartType) => void;
16
16
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -18,13 +18,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
18
18
  withSettingsHeader: boolean;
19
19
  header?: string;
20
20
  subheader?: string;
21
- subheaderTooltip?: string;
21
+ withSubheaderTooltip?: boolean;
22
22
  }>, {
23
23
  chartType: ChartType;
24
24
  withSettingsHeader: boolean;
25
25
  header: string;
26
26
  subheader: string;
27
- subheaderTooltip: string;
27
+ withSubheaderTooltip: boolean;
28
28
  }>>> & {
29
29
  "onUpdate:chartType"?: (type: ChartType) => any;
30
30
  }, {
@@ -32,7 +32,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
32
32
  chartType: ChartType;
33
33
  withSettingsHeader: boolean;
34
34
  subheader: string;
35
- subheaderTooltip: string;
35
+ withSubheaderTooltip: boolean;
36
+ }>, {
37
+ "subheader-tooltip"?(_: {}): any;
36
38
  }>;
37
39
  export default _default;
38
40
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -52,3 +54,8 @@ type __VLS_WithDefaults<P, D> = {
52
54
  type __VLS_Prettify<T> = {
53
55
  [K in keyof T]: T[K];
54
56
  } & {};
57
+ type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartHeader.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4c37736e"]]);
3
+ // import "../../ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-b8213498"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -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
  };