@ironsource/shared-ui 2.1.11-rc.6 → 2.1.11-rc.60

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 (197) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  5. package/ChartLegend.vue_vue_type_style_index_0_scoped_aa32a103_lang.css +1 -0
  6. package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
  7. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  8. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  9. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  10. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2a77c137_lang.css +1 -0
  11. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  12. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  13. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
  14. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
  15. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  16. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  17. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  18. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  19. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  20. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  21. package/IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css +1 -0
  22. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
  23. package/OptionV4.vue_vue_type_style_index_0_scoped_5ff4b654_lang.css +1 -0
  24. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  25. package/README.md +4 -15
  26. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
  27. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  28. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
  29. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  30. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  31. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  32. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  33. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  34. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  35. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  36. package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
  37. package/components/autocomplete/Autocomplete.vue2.js +3 -2
  38. package/components/chart/Chart.vue.d.ts +16 -3
  39. package/components/chart/Chart.vue.js +5 -5
  40. package/components/chart/Chart.vue2.js +145 -123
  41. package/components/chart/ChartHeader.vue.d.ts +13 -6
  42. package/components/chart/ChartHeader.vue.js +2 -2
  43. package/components/chart/ChartHeader.vue2.js +32 -29
  44. package/components/chart/ChartLegend.vue.d.ts +5 -0
  45. package/components/chart/ChartLegend.vue.js +3 -3
  46. package/components/chart/ChartLegend.vue2.js +110 -50
  47. package/components/chart/ChartLoader.vue.js +5 -23
  48. package/components/chart/ChartLoader.vue2.js +15 -0
  49. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  50. package/components/chart/ChartTooltip.vue.js +2 -2
  51. package/components/chart/ChartTooltip.vue2.js +64 -43
  52. package/components/chart/SettingsHeader.vue.js +3 -3
  53. package/components/chart/SettingsHeader.vue2.js +34 -26
  54. package/components/chart/index.d.ts +55 -16
  55. package/components/chart/mockData.d.ts +22 -1
  56. package/components/chart/types.d.ts +15 -1
  57. package/components/chart/utils/utils.js +5 -5
  58. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  59. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  60. package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
  61. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  62. package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
  63. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  64. package/components/dialog/v4/DialogV4.vue.js +3 -3
  65. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  66. package/components/dialog/v4/index.d.ts +58 -1
  67. package/components/dropdown/common/Dropdown.common.js +200 -189
  68. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  69. package/components/dropdown/v3/index.d.ts +39 -39
  70. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  71. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  72. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  73. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  74. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  75. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
  76. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  77. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  78. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
  79. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +133 -0
  80. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  81. package/components/dropdown/v4/ConditionalDropdown.vue2.js +246 -0
  82. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  83. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
  84. package/components/dropdown/v4/DropdownV4.vue.d.ts +26 -6
  85. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  86. package/components/dropdown/v4/DropdownV4.vue2.js +187 -167
  87. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  88. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  89. package/components/dropdown/v4/OptionV4.vue2.js +116 -91
  90. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  91. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  92. package/components/dropdown/v4/TreeDropdown.vue2.js +123 -113
  93. package/components/dropdown/v4/index.d.ts +431 -95
  94. package/components/dropdown/v4/index.js +6 -3
  95. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  96. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  97. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  98. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  99. package/components/forms/FormCard.vue.js +3 -3
  100. package/components/forms/FormCard.vue2.js +1 -1
  101. package/components/icon/v4/IconFlag.vue.js +3 -3
  102. package/components/icon/v4/IconFlag.vue2.js +1 -1
  103. package/components/icon/v4/consts.d.ts +1 -1
  104. package/components/icon/v4/consts.js +1 -1
  105. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  106. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  107. package/components/inlineCopy/InlineCopy.vue2.js +24 -22
  108. package/components/inlineCopy/index.d.ts +9 -0
  109. package/components/input/v4/TextField.vue.js +3 -3
  110. package/components/input/v4/TextField.vue2.js +185 -165
  111. package/components/multibar/MultiBarMenu.vue2.js +3 -2
  112. package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
  113. package/components/popover/v4/PopoverV4.vue.js +4 -3
  114. package/components/popover/v4/PopoverV4.vue2.js +40 -26
  115. package/components/popover/v4/index.d.ts +46 -8
  116. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  117. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  118. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  119. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  120. package/components/sortableList/SortableItem.vue.js +3 -3
  121. package/components/sortableList/SortableItem.vue2.js +86 -70
  122. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  123. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  124. package/components/sortableList/SortableList.vue.d.ts +17 -1
  125. package/components/sortableList/SortableList.vue.js +4 -4
  126. package/components/sortableList/SortableList.vue2.js +113 -94
  127. package/components/sortableList/index.d.ts +63 -5
  128. package/components/table/common/Table.common.d.ts +1 -1
  129. package/components/table/common/Table.common.js +83 -77
  130. package/components/table/common/Table.types.d.ts +1 -1
  131. package/components/table/common/consts.d.ts +4 -0
  132. package/components/table/common/consts.js +7 -0
  133. package/components/table/v3/Table.vue.d.ts +1 -1
  134. package/components/table/v3/index.d.ts +5 -5
  135. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  136. package/components/table/v4/DataGrid.vue.js +2 -2
  137. package/components/table/v4/DataGrid.vue2.js +164 -155
  138. package/components/table/v4/DataGridMenu.vue.js +5 -5
  139. package/components/table/v4/DataGridMenu.vue2.js +4 -3
  140. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  141. package/components/table/v4/index.d.ts +84 -46
  142. package/components/table-cells/common/Editable.common.js +29 -23
  143. package/components/table-cells/common/EditableContext.d.ts +1 -0
  144. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  145. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  146. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  147. package/components/table-cells/v4/index.d.ts +20 -1
  148. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  149. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  150. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  151. package/components/tooltip/v4/index.d.ts +39 -1
  152. package/components/typography/v4/Typography.vue.js +2 -2
  153. package/components/typography/v4/Typography.vue2.js +24 -18
  154. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  155. package/index.d.ts +1570 -328
  156. package/index.js +1 -1
  157. package/mocks/options.d.ts +19 -0
  158. package/mocks/words.d.ts +1 -1
  159. package/package.json +2 -1
  160. package/style/v4/grid.css +1 -1
  161. package/style/v4/grid.css.map +1 -1
  162. package/style/v4/spacings.scss +1 -0
  163. package/testids/index.d.ts +2 -0
  164. package/testids/index.js +13 -13
  165. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  166. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
  167. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  168. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  169. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  170. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
  171. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  172. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  173. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
  174. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  175. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  176. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
  177. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
  178. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  179. package/DropdownV4.vue_vue_type_style_index_0_scoped_111642c6_lang.css +0 -1
  180. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  181. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  182. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  183. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  184. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  185. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
  186. package/OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css +0 -1
  187. package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
  188. package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
  189. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  190. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  191. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  192. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  193. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  194. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  195. package/TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css +0 -1
  196. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
  197. package/consts/configs.js +0 -4
@@ -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_026d82c5_lang.css"; import { defineComponent as J, computed as i, ref as T, onMounted as Q, watch as C, nextTick as Y, openBlock as d, createElementBlock as k, Fragment as F, createBlock as v, unref as u, isRef as N, withCtx as x, renderSlot as L, createCommentVNode as y, createElementVNode as p, normalizeClass as _, createVNode as H, normalizeStyle as ee } from "vue";
2
+ import { useVModel as te } from "@vueuse/core";
3
+ import { Chart as P, ArcElement as ae, LineElement as oe, BarElement as ie, PointElement as le, LineController as re, BarController as ne, PieController as se, ScatterController as de, CategoryScale as ue, LinearScale as ce, Filler as pe, Tooltip as he } from "chart.js";
4
+ import { HoverVerticalLine as me } from "./plugins/HoverVerticalLine.js";
5
+ import { formatValue as U, calcStepSize as fe } from "./utils/utils.js";
6
+ import { DEFAULT_TICK_COUNT as ve, DEFAULT_MIN_VISIBLE as ye, DEFAULT_MAX_VISIBLE as be, COLOR_PALETTE as ge, POINT_BORDER_COLOR as Te, TICK_LABEL_COLOR as z, TICK_LABEL_FONT as M, GRID_LINE_COLOR as $ } 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";
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 = {
8
+ import { useTooltipPosition as Ce } from "./composables/useTooltipPosition.js";
9
+ import ke from "./ChartTooltip.vue.js";
10
+ import xe from "./ChartLegend.vue.js";
11
+ import Le from "./ChartHeader.vue.js";
12
+ import { hexColorToRgba as Se } from "../../utils/color.js";
13
+ import { useChartValues as we } from "./composables/useChartValues.js";
14
+ import Be from "./ChartLoader.vue.js";
15
+ import Ie from "../emptyState/v4/EmptyStateV4.vue.js";
16
+ import Ae from "./SettingsHeader.vue.js";
17
+ const Ee = { class: "chart-container" }, Ve = { class: "header-wrapper" }, Re = { class: "chart" }, De = {
18
18
  key: 0,
19
19
  class: "chart-sidebar"
20
- }, Xe = /* @__PURE__ */ X({
20
+ }, Je = /* @__PURE__ */ J({
21
21
  __name: "Chart",
22
22
  props: {
23
23
  dataSets: { default: () => [] },
@@ -26,75 +26,85 @@ 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: ve },
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: ye },
35
+ maxVisible: { default: be },
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: S }) {
44
46
  const t = a;
45
- N.register(
46
- Y,
47
- ee,
48
- te,
47
+ P.register(
49
48
  ae,
50
49
  oe,
51
- re,
52
50
  ie,
53
51
  le,
52
+ re,
54
53
  ne,
55
54
  se,
56
55
  de,
57
56
  ue,
58
- ce
57
+ ce,
58
+ pe,
59
+ he,
60
+ me
59
61
  );
60
- const c = Q(t, "chartType", T), p = g(null);
62
+ const c = te(t, "chartType", S), K = i(
63
+ () => t.withAnimation ? "" : "none"
64
+ ), h = T(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 w = i(() => t.dataSets.length === 0), B = i(() => !t.loading && !w.value), b = () => {
67
+ h.value && (s && s.destroy(), s = new P(h.value, E.value));
68
+ }, W = () => {
69
+ s && (s.data.datasets = g.value, s.options = E.value.options, s.update(K.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
+ Q(b), C(() => t.chartType, b), C(B, async (e) => {
72
+ e && (await Y(), b());
73
+ }), C([() => t.visibleIds, () => t.dataSets], W);
74
+ const m = i(
71
75
  () => t.chartType === n.StackedLine || t.chartType === n.StackedBar
72
- ), $ = i(
76
+ ), I = i(
73
77
  () => t.chartType === n.Line || t.chartType === n.StackedLine
74
- ), x = i(
78
+ ), f = i(
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
+ ), g = i(() => f.value.map((e, o) => {
81
+ const l = e.color || ge[o] || "#000000";
78
82
  return {
79
83
  ...e,
80
- fill: h.value ? "start" : void 0,
81
- backgroundColor: Te(
82
- r,
84
+ fill: m.value ? "start" : void 0,
85
+ backgroundColor: Se(
86
+ l,
83
87
  t.chartType === n.StackedLine ? 10 : 70
84
88
  ),
85
- borderColor: r,
86
- pointBackgroundColor: r,
87
- pointHoverBorderColor: r,
89
+ borderColor: l,
90
+ pointBackgroundColor: l,
91
+ pointHoverBorderColor: l,
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
+ })), A = i(
99
+ () => f.value.length && f.value.every(
100
+ (e) => e.data.length === 1
101
+ )
102
+ ), E = i(
93
103
  () => ({
94
104
  type: t.chartType == n.Bar || t.chartType === n.StackedBar ? "bar" : "line",
95
105
  // Chart Data
96
106
  data: {
97
- datasets: y.value
107
+ datasets: g.value
98
108
  },
99
109
  // Chart Options
100
110
  options: {
@@ -108,17 +118,17 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
108
118
  plugins: {
109
119
  legend: { display: !1 },
110
120
  title: { display: !1 },
111
- hoverVerticalLine: $.value,
121
+ hoverVerticalLine: I.value,
112
122
  // tooltip
113
123
  tooltip: {
114
124
  enabled: !1,
115
125
  position: "average",
116
126
  external: ({ tooltip: e }) => {
117
- l.value = { ...e };
127
+ r.value = { ...e };
118
128
  },
119
129
  callbacks: {
120
130
  footer: (e) => {
121
- const o = e.reduce((r, G) => r + (G.parsed.y || 0), 0);
131
+ const o = e.reduce((l, q) => l + (q.parsed.y || 0), 0);
122
132
  return ["Total", String(o)];
123
133
  }
124
134
  }
@@ -141,12 +151,12 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
141
151
  tension: 0.3
142
152
  },
143
153
  point: {
144
- radius: 1,
154
+ radius: A.value ? 3 : 1,
145
155
  hitRadius: 8,
146
156
  borderWidth: 0,
147
157
  hoverRadius: 4,
148
158
  hoverBorderWidth: 2,
149
- pointHoverBackgroundColor: be
159
+ pointHoverBackgroundColor: Te
150
160
  },
151
161
  bar: {
152
162
  borderRadius: 4
@@ -156,16 +166,17 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
156
166
  // Horizontal Axis (X)
157
167
  x: {
158
168
  beginAtZero: !0,
169
+ offset: !I.value || A.value,
159
170
  border: { display: !1 },
160
- stacked: h.value,
171
+ stacked: m.value,
161
172
  // stack on top of each other
162
173
  // ticks
163
174
  ticks: {
164
- color: P,
165
- font: U,
175
+ color: z,
176
+ font: M,
166
177
  padding: 4,
167
178
  callback: function(e) {
168
- return H(
179
+ return U(
169
180
  this.getLabelForValue(e),
170
181
  t.xAxisFormat
171
182
  );
@@ -173,7 +184,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
173
184
  },
174
185
  // grid lines
175
186
  grid: {
176
- color: M,
187
+ color: $,
177
188
  drawOnChartArea: !1,
178
189
  drawTicks: !0,
179
190
  drawBorder: !1,
@@ -185,21 +196,21 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
185
196
  beginAtZero: !0,
186
197
  border: { display: !1 },
187
198
  // hide left borderline
188
- stacked: h.value,
199
+ stacked: m.value,
189
200
  // stack on top of each other
190
201
  // ticks
191
202
  ticks: {
192
- color: P,
193
- font: U,
203
+ color: z,
204
+ font: M,
194
205
  padding: 8,
195
- stepSize: E.value,
196
- min: A.value,
197
- max: E.value * t.tickCount,
198
- callback: (e) => H(e, t.yAxisFormat)
206
+ stepSize: O.value,
207
+ min: D.value,
208
+ max: O.value * t.tickCount,
209
+ callback: (e) => U(e, t.yAxisFormat)
199
210
  },
200
211
  // grid lines
201
212
  grid: {
202
- color: M,
213
+ color: $,
203
214
  drawOnChartArea: !0,
204
215
  drawTicks: !1
205
216
  }
@@ -207,96 +218,107 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
207
218
  }
208
219
  }
209
220
  })
210
- ), K = i(
211
- () => y.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
212
- ), W = i(() => t.dataSets.map((e) => ({
221
+ ), Z = i(
222
+ () => g.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
223
+ ), G = i(() => t.dataSets.map((e) => ({
213
224
  id: e.id,
214
225
  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({
226
+ caption: e.caption || null,
227
+ color: Z.value[e.id] || null,
228
+ icon: e.icon || null,
229
+ iconType: e.iconType || "branded"
230
+ }))), V = T(null), r = T(null), { position: R } = Ce(
231
+ h,
232
+ V,
233
+ r
234
+ ), X = i(() => ({
235
+ left: `${R.value.left}px`,
236
+ top: `${R.value.top}px`,
237
+ opacity: r.value?.opacity || 0
238
+ })), { minValue: D, maxValue: j } = we({
225
239
  parsingConfig: t.parsing,
226
- dataSets: x,
227
- isStacked: h
228
- }), E = i(
229
- () => fe(A.value, _.value, t.tickCount)
240
+ dataSets: f,
241
+ isStacked: m
242
+ }), O = i(
243
+ () => fe(D.value, j.value, t.tickCount)
230
244
  );
231
- return (e, o) => (d(), k(R, null, [
232
- a.withSettingsHeader ? (d(), m(Be, {
245
+ return (e, o) => (d(), k(F, null, [
246
+ a.withSettingsHeader ? (d(), v(Ae, {
233
247
  key: 0,
234
248
  "chart-type": u(c),
235
- "onUpdate:chart-type": o[0] || (o[0] = (r) => V(c) ? c.value = r : null),
249
+ "onUpdate:chart-type": o[0] || (o[0] = (l) => N(c) ? c.value = l : null),
236
250
  "hide-legend": a.hideLegend
237
251
  }, {
238
- metric: O(() => [
239
- D(e.$slots, "metric", {}, void 0, !0)
252
+ metric: x(() => [
253
+ L(e.$slots, "metric", {}, void 0, !0)
240
254
  ]),
241
- breakdowns: O(() => [
242
- D(e.$slots, "breakdowns", {}, void 0, !0)
255
+ breakdowns: x(() => [
256
+ L(e.$slots, "breakdowns", {}, void 0, !0)
243
257
  ]),
244
258
  _: 3
245
- }, 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, {
259
+ }, 8, ["chart-type", "hide-legend"])) : y("", !0),
260
+ p("div", Ee, [
261
+ u(B) ? (d(), k(F, { key: 0 }, [
262
+ p("section", {
263
+ class: _(["chart-content", [{ "with-legend": !a.hideLegend }]])
264
+ }, [
265
+ p("div", Ve, [
266
+ H(Le, {
251
267
  "chart-type": u(c),
252
- "onUpdate:chart-type": o[1] || (o[1] = (r) => V(c) ? c.value = r : null),
268
+ "onUpdate:chart-type": o[1] || (o[1] = (l) => N(c) ? c.value = l : null),
253
269
  "with-settings-header": a.withSettingsHeader,
254
270
  header: a.header,
255
271
  subheader: a.subheader,
256
- "subheader-tooltip": a.subheaderTooltip
257
- }, null, 8, ["chart-type", "with-settings-header", "header", "subheader", "subheader-tooltip"])
272
+ "with-subheader-tooltip": a.withSubheaderTooltip
273
+ }, {
274
+ "subheader-tooltip": x(() => [
275
+ L(e.$slots, "subheader-tooltip", {}, void 0, !0)
276
+ ]),
277
+ _: 3
278
+ }, 8, ["chart-type", "with-settings-header", "header", "subheader", "with-subheader-tooltip"])
258
279
  ]),
259
- f("div", Ee, [
260
- f("canvas", {
280
+ p("div", Re, [
281
+ p("canvas", {
261
282
  ref_key: "chartRef",
262
- ref: p,
283
+ ref: h,
263
284
  class: "chart__canvas"
264
285
  }, null, 512),
265
- f("div", {
286
+ p("div", {
266
287
  ref_key: "tooltipRef",
267
- ref: I,
288
+ ref: V,
268
289
  class: "chart__tooltip",
269
- style: J(u(Z))
290
+ style: ee(u(X))
270
291
  }, [
271
- l.value ? (d(), m(ge, {
292
+ r.value ? (d(), v(ke, {
272
293
  key: 0,
273
- title: String(l.value.title),
274
- "data-points": l.value.dataPoints,
294
+ title: String(r.value.title),
295
+ "data-points": r.value.dataPoints,
275
296
  "x-axis-format": a.xAxisFormat,
276
297
  "y-axis-format": a.yAxisFormat,
277
- "total-label": l.value.footer[0],
278
- "total-value": Number(l.value.footer[1])
279
- }, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : v("", !0)
298
+ "total-label": r.value.footer[0],
299
+ "total-value": Number(r.value.footer[1])
300
+ }, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : y("", !0)
280
301
  ], 4)
281
302
  ])
282
- ]),
283
- a.hideLegend ? v("", !0) : (d(), k("section", Re, [
284
- F(Ce, {
285
- items: u(W),
303
+ ], 2),
304
+ a.hideLegend ? y("", !0) : (d(), k("section", De, [
305
+ H(xe, {
306
+ items: u(G),
286
307
  "visible-ids": a.visibleIds,
287
- "onUpdate:visibleIds": o[2] || (o[2] = (r) => T("update:visibleIds", r))
288
- }, null, 8, ["items", "visible-ids"])
308
+ "max-limit-tooltip-text": a.maxLimitTooltipText,
309
+ "onUpdate:visibleIds": o[2] || (o[2] = (l) => S("update:visibleIds", l))
310
+ }, null, 8, ["items", "visible-ids", "max-limit-tooltip-text"])
289
311
  ]))
290
- ], 64)) : a.loading ? (d(), m(Le, { key: 1 })) : u(S) ? (d(), m(u(xe), {
312
+ ], 64)) : a.loading ? (d(), v(Be, { key: 1 })) : u(w) ? (d(), v(u(Ie), {
291
313
  key: 2,
292
314
  title: a.noDataTitle,
293
315
  subtitle: a.noDataSubtitle,
294
316
  "icon-name": a.noDataIcon
295
- }, null, 8, ["title", "subtitle", "icon-name"])) : v("", !0)
317
+ }, null, 8, ["title", "subtitle", "icon-name"])) : y("", !0)
296
318
  ])
297
319
  ], 64));
298
320
  }
299
321
  });
300
322
  export {
301
- Xe as default
323
+ Je as default
302
324
  };
@@ -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_aa32a103_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-aa32a103"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };