@ironsource/shared-ui 2.1.8 → 2.1.9-test.1

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 (130) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +1 -0
  5. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +1 -0
  7. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +1 -0
  8. package/DropdownV4.vue_vue_type_style_index_0_scoped_360883b1_lang.css +1 -0
  9. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  10. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +1 -0
  11. package/OptionV4.vue_vue_type_style_index_0_scoped_058de532_lang.css +1 -0
  12. package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +1 -0
  13. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +1 -0
  14. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
  15. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +1 -0
  16. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +1 -0
  17. package/components/alert/Alert.vue2.js +3 -2
  18. package/components/autocomplete/Autocomplete.vue.d.ts +1 -1
  19. package/components/autocomplete/index.d.ts +20 -20
  20. package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +65 -0
  21. package/components/button/v4/ToggleButtonGroupAB.vue.js +7 -0
  22. package/components/button/v4/ToggleButtonGroupAB.vue2.js +95 -0
  23. package/components/button/v4/index.d.ts +170 -1
  24. package/components/button/v4/index.js +10 -3
  25. package/components/chart/Chart.vue.d.ts +5 -0
  26. package/components/chart/Chart.vue.js +4 -4
  27. package/components/chart/Chart.vue2.js +51 -49
  28. package/components/chart/ChartHeader.vue.d.ts +5 -0
  29. package/components/chart/ChartHeader.vue.js +2 -2
  30. package/components/chart/ChartHeader.vue2.js +35 -22
  31. package/components/chart/ChartLegend.vue.js +3 -3
  32. package/components/chart/ChartLegend.vue2.js +35 -28
  33. package/components/chart/SettingsHeader.vue.js +3 -3
  34. package/components/chart/SettingsHeader.vue2.js +33 -26
  35. package/components/chart/index.d.ts +20 -1
  36. package/components/dateRange/v4/CalendarMonthV4.vue2.js +9 -8
  37. package/components/dateRange/v4/DateRangeV4.vue2.js +21 -20
  38. package/components/dialog/v3/Dialog.vue.d.ts +1 -1
  39. package/components/dialog/v3/index.d.ts +5 -5
  40. package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
  41. package/components/dialog/v4/DialogV4.vue2.js +6 -5
  42. package/components/dialog/v4/index.d.ts +5 -5
  43. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  44. package/components/dropdown/v3/index.d.ts +51 -51
  45. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +17 -11
  46. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  47. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +17 -9
  48. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  49. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  50. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +23 -22
  51. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +11 -0
  52. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  53. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +59 -45
  54. package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -2
  55. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  56. package/components/dropdown/v4/DropdownV4.vue2.js +121 -109
  57. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +4 -3
  58. package/components/dropdown/v4/OptionV4.vue.d.ts +6 -0
  59. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  60. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  61. package/components/dropdown/v4/index.d.ts +157 -65
  62. package/components/emptyState/v4/EmptyStateV4.vue2.js +13 -12
  63. package/components/forms/FormCard.vue2.js +13 -12
  64. package/components/includeExclude/index.d.ts +56 -56
  65. package/components/input/v3/Input.vue.d.ts +1 -1
  66. package/components/input/v3/index.d.ts +32 -32
  67. package/components/input/v4/TextField.vue.d.ts +1 -1
  68. package/components/input/v4/index.d.ts +20 -20
  69. package/components/menu/Menu.vue.d.ts +1 -1
  70. package/components/menu/index.d.ts +20 -20
  71. package/components/multibar/MultiBar.vue.d.ts +1 -1
  72. package/components/multibar/MultiBar.vue2.js +3 -2
  73. package/components/multibar/index.d.ts +9 -9
  74. package/components/popover/v3/Popover.vue.d.ts +1 -1
  75. package/components/popover/v3/index.d.ts +20 -20
  76. package/components/popover/v4/PopoverV4.vue.d.ts +7 -3
  77. package/components/popover/v4/PopoverV4.vue.js +3 -3
  78. package/components/popover/v4/PopoverV4.vue2.js +23 -20
  79. package/components/popover/v4/index.d.ts +36 -24
  80. package/components/radioButton/v3/RadioButton.vue.d.ts +1 -1
  81. package/components/radioButton/v3/RadioGroup.vue.d.ts +1 -1
  82. package/components/radioButton/v3/index.d.ts +6 -6
  83. package/components/radioButton/v4/RadioButtonV4.vue.d.ts +6 -1
  84. package/components/radioButton/v4/RadioButtonV4.vue.js +2 -2
  85. package/components/radioButton/v4/RadioButtonV4.vue2.js +59 -46
  86. package/components/radioButton/v4/RadioGroupV4.vue.d.ts +1 -1
  87. package/components/radioButton/v4/index.d.ts +26 -7
  88. package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
  89. package/components/sortableList/SortableItem.vue.d.ts +1 -1
  90. package/components/switch/v3/index.d.ts +16 -16
  91. package/components/switch/v4/SwitchV4.vue2.js +6 -5
  92. package/components/switch/v4/index.d.ts +8 -8
  93. package/components/table/v4/DataGrid.vue.d.ts +5 -0
  94. package/components/table/v4/DataGrid.vue.js +4 -4
  95. package/components/table/v4/DataGrid.vue2.js +45 -44
  96. package/components/table/v4/ExpandRowToggle.vue2.js +6 -5
  97. package/components/table/v4/MultipleDataGrid.vue.d.ts +23 -2
  98. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  99. package/components/table/v4/MultipleDataGrid.vue2.js +82 -73
  100. package/components/table/v4/index.d.ts +98 -2
  101. package/components/textArea/v4/TextAreaV4.vue.d.ts +1 -1
  102. package/components/textArea/v4/index.d.ts +9 -9
  103. package/components/toggle/v3/index.d.ts +8 -8
  104. package/components/toggle/v4/index.d.ts +16 -16
  105. package/components/typography/v4/Typography.vue.js +2 -2
  106. package/components/typography/v4/Typography.vue2.js +1 -1
  107. package/consts/configs.d.ts +1 -0
  108. package/consts/configs.js +4 -0
  109. package/index.d.ts +1392 -471
  110. package/index.js +1 -1
  111. package/mocks/options.d.ts +4 -0
  112. package/package.json +2 -2
  113. package/testids/index.d.ts +8 -1
  114. package/testids/index.js +14 -13
  115. package/utils/testIds.d.ts +1 -1
  116. package/utils/testIds.js +6 -6
  117. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +0 -1
  118. package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +0 -1
  119. package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +0 -1
  120. package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +0 -1
  121. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +0 -1
  122. package/DataGrid.vue_vue_type_style_index_0_scoped_d27e1304_lang.css +0 -1
  123. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css +0 -1
  124. package/DropdownV4.vue_vue_type_style_index_0_scoped_62a620ee_lang.css +0 -1
  125. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_cfedf78b_lang.css +0 -1
  126. package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +0 -1
  127. package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +0 -1
  128. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +0 -1
  129. package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
  130. package/Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css +0 -1
@@ -1,10 +1,17 @@
1
1
  import o from "./ButtonV4.vue.js";
2
2
  import t from "./IconButtonV4.vue.js";
3
3
  import r from "./ButtonGroup.vue.js";
4
- const u = () => [o, t, r];
4
+ import m from "./ToggleButtonGroupAB.vue.js";
5
+ const f = () => [
6
+ o,
7
+ t,
8
+ r,
9
+ m
10
+ ];
5
11
  export {
6
12
  o as Button,
7
13
  r as ButtonGroup,
8
- u as ButtonTypes,
9
- t as IconButton
14
+ f as ButtonTypes,
15
+ t as IconButton,
16
+ m as ToggleButtonGroupAB
10
17
  };
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
9
  tickCount?: number;
10
10
  header?: string;
11
11
  subheader?: string;
12
+ subheaderTooltip?: string;
12
13
  hideLegend?: boolean;
13
14
  minVisible?: number;
14
15
  maxVisible?: number;
@@ -27,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
28
  tickCount: number;
28
29
  header: string;
29
30
  subheader: string;
31
+ subheaderTooltip: string;
30
32
  hideLegend: boolean;
31
33
  minVisible: number;
32
34
  maxVisible: number;
@@ -48,6 +50,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
48
50
  tickCount?: number;
49
51
  header?: string;
50
52
  subheader?: string;
53
+ subheaderTooltip?: string;
51
54
  hideLegend?: boolean;
52
55
  minVisible?: number;
53
56
  maxVisible?: number;
@@ -66,6 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
66
69
  tickCount: number;
67
70
  header: string;
68
71
  subheader: string;
72
+ subheaderTooltip: string;
69
73
  hideLegend: boolean;
70
74
  minVisible: number;
71
75
  maxVisible: number;
@@ -89,6 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
93
  chartType: ChartType;
90
94
  withSettingsHeader: boolean;
91
95
  subheader: string;
96
+ subheaderTooltip: string;
92
97
  dataSets: ChartDataSet[];
93
98
  hideLegend: boolean;
94
99
  tickCount: number;
@@ -1,7 +1,7 @@
1
- import o from "./Chart.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-df85e0af"]]);
1
+ import e from "./Chart.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ea1e5c3e"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,16 +1,16 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_df85e0af_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 h, unref as c, isRef as V, withCtx as O, renderSlot as D, createCommentVNode as v, createElementVNode as f, createVNode as F, normalizeStyle as J } from "vue";
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
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 ce } from "chart.js";
4
- import { HoverVerticalLine as ue } from "./plugins/HoverVerticalLine.js";
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
5
  import { formatValue as H, calcStepSize as fe } from "./utils/utils.js";
6
- import { DEFAULT_TICK_COUNT as pe, DEFAULT_MIN_VISIBLE as me, DEFAULT_MAX_VISIBLE as he, COLOR_PALETTE as ve, POINT_BORDER_COLOR as ye, TICK_LABEL_COLOR as P, TICK_LABEL_FONT as U, GRID_LINE_COLOR as M } from "./consts.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";
7
7
  import { ChartType as n } from "./types.js";
8
- import { useTooltipPosition as be } from "./composables/useTooltipPosition.js";
8
+ import { useTooltipPosition as ye } from "./composables/useTooltipPosition.js";
9
9
  import ge from "./ChartTooltip.vue.js";
10
10
  import Ce from "./ChartLegend.vue.js";
11
11
  import ke from "./ChartHeader.vue.js";
12
- import { hexColorToRgba as Se } from "../../utils/color.js";
13
- import { useChartValues as Te } from "./composables/useChartValues.js";
12
+ import { hexColorToRgba as Te } from "../../utils/color.js";
13
+ import { useChartValues as Se } from "./composables/useChartValues.js";
14
14
  import Le from "./ChartLoader.vue.js";
15
15
  import xe from "../emptyState/v4/EmptyStateV4.vue.js";
16
16
  import Be from "./SettingsHeader.vue.js";
@@ -29,9 +29,10 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
29
29
  tickCount: { default: pe },
30
30
  header: { default: "" },
31
31
  subheader: { default: "" },
32
+ subheaderTooltip: { default: "" },
32
33
  hideLegend: { type: Boolean, default: !1 },
33
- minVisible: { default: me },
34
- maxVisible: { default: he },
34
+ minVisible: { default: he },
35
+ maxVisible: { default: me },
35
36
  loading: { type: Boolean, default: !1 },
36
37
  noDataIcon: { default: "file-x" },
37
38
  noDataTitle: { default: "No data to display" },
@@ -39,7 +40,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
39
40
  withSettingsHeader: { type: Boolean, default: !0 }
40
41
  },
41
42
  emits: ["update:chartType", "update:visibleIds"],
42
- setup(a, { emit: S }) {
43
+ setup(a, { emit: T }) {
43
44
  const t = a;
44
45
  N.register(
45
46
  Y,
@@ -53,31 +54,31 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
53
54
  ne,
54
55
  se,
55
56
  de,
56
- ce,
57
- ue
57
+ ue,
58
+ ce
58
59
  );
59
- const u = Q(t, "chartType", S), p = g(null);
60
+ const c = Q(t, "chartType", T), p = g(null);
60
61
  let s = null;
61
- const T = i(() => t.dataSets.length === 0), L = i(() => !t.loading && !T.value), y = () => {
62
+ const S = i(() => t.dataSets.length === 0), L = i(() => !t.loading && !S.value), b = () => {
62
63
  p.value && (s && s.destroy(), s = new N(p.value, B.value));
63
64
  }, z = () => {
64
- s && (s.data.datasets = b.value, s.options = B.value.options, s.update());
65
+ s && (s.data.datasets = y.value, s.options = B.value.options, s.update());
65
66
  };
66
- j(y), C(() => t.chartType, y), C(L, async (e) => {
67
- e && (await q(), y());
67
+ j(b), C(() => t.chartType, b), C(L, async (e) => {
68
+ e && (await q(), b());
68
69
  }), C([() => t.visibleIds, () => t.dataSets], z);
69
- const m = i(
70
+ const h = i(
70
71
  () => t.chartType === n.StackedLine || t.chartType === n.StackedBar
71
- ), _ = i(
72
+ ), $ = i(
72
73
  () => t.chartType === n.Line || t.chartType === n.StackedLine
73
74
  ), x = i(
74
75
  () => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
75
- ), b = i(() => x.value.map((e, o) => {
76
+ ), y = i(() => x.value.map((e, o) => {
76
77
  const r = e.color || ve[o] || "#000000";
77
78
  return {
78
79
  ...e,
79
- fill: m.value ? "start" : void 0,
80
- backgroundColor: Se(
80
+ fill: h.value ? "start" : void 0,
81
+ backgroundColor: Te(
81
82
  r,
82
83
  t.chartType === n.StackedLine ? 10 : 70
83
84
  ),
@@ -93,7 +94,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
93
94
  type: t.chartType == n.Bar || t.chartType === n.StackedBar ? "bar" : "line",
94
95
  // Chart Data
95
96
  data: {
96
- datasets: b.value
97
+ datasets: y.value
97
98
  },
98
99
  // Chart Options
99
100
  options: {
@@ -107,7 +108,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
107
108
  plugins: {
108
109
  legend: { display: !1 },
109
110
  title: { display: !1 },
110
- hoverVerticalLine: _.value,
111
+ hoverVerticalLine: $.value,
111
112
  // tooltip
112
113
  tooltip: {
113
114
  enabled: !1,
@@ -145,7 +146,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
145
146
  borderWidth: 0,
146
147
  hoverRadius: 4,
147
148
  hoverBorderWidth: 2,
148
- pointHoverBackgroundColor: ye
149
+ pointHoverBackgroundColor: be
149
150
  },
150
151
  bar: {
151
152
  borderRadius: 4
@@ -156,7 +157,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
156
157
  x: {
157
158
  beginAtZero: !0,
158
159
  border: { display: !1 },
159
- stacked: m.value,
160
+ stacked: h.value,
160
161
  // stack on top of each other
161
162
  // ticks
162
163
  ticks: {
@@ -184,7 +185,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
184
185
  beginAtZero: !0,
185
186
  border: { display: !1 },
186
187
  // hide left borderline
187
- stacked: m.value,
188
+ stacked: h.value,
188
189
  // stack on top of each other
189
190
  // ticks
190
191
  ticks: {
@@ -206,32 +207,32 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
206
207
  }
207
208
  }
208
209
  })
209
- ), $ = i(
210
- () => b.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
211
- ), K = i(() => t.dataSets.map((e) => ({
210
+ ), K = i(
211
+ () => y.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
212
+ ), W = i(() => t.dataSets.map((e) => ({
212
213
  id: e.id,
213
214
  label: e.label,
214
- color: $.value[e.id] || null
215
- }))), I = g(null), l = g(null), { position: w } = be(
215
+ color: K.value[e.id] || null
216
+ }))), I = g(null), l = g(null), { position: w } = ye(
216
217
  p,
217
218
  I,
218
219
  l
219
- ), W = i(() => ({
220
+ ), Z = i(() => ({
220
221
  left: `${w.value.left}px`,
221
222
  top: `${w.value.top}px`,
222
223
  opacity: l.value?.opacity || 0
223
- })), { minValue: A, maxValue: Z } = Te({
224
+ })), { minValue: A, maxValue: _ } = Se({
224
225
  parsingConfig: t.parsing,
225
226
  dataSets: x,
226
- isStacked: m
227
+ isStacked: h
227
228
  }), E = i(
228
- () => fe(A.value, Z.value, t.tickCount)
229
+ () => fe(A.value, _.value, t.tickCount)
229
230
  );
230
231
  return (e, o) => (d(), k(R, null, [
231
- a.withSettingsHeader ? (d(), h(Be, {
232
+ a.withSettingsHeader ? (d(), m(Be, {
232
233
  key: 0,
233
- "chart-type": c(u),
234
- "onUpdate:chart-type": o[0] || (o[0] = (r) => V(u) ? u.value = r : null),
234
+ "chart-type": u(c),
235
+ "onUpdate:chart-type": o[0] || (o[0] = (r) => V(c) ? c.value = r : null),
235
236
  "hide-legend": a.hideLegend
236
237
  }, {
237
238
  metric: O(() => [
@@ -243,16 +244,17 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
243
244
  _: 3
244
245
  }, 8, ["chart-type", "hide-legend"])) : v("", !0),
245
246
  f("div", Ie, [
246
- c(L) ? (d(), k(R, { key: 0 }, [
247
+ u(L) ? (d(), k(R, { key: 0 }, [
247
248
  f("section", we, [
248
249
  f("div", Ae, [
249
250
  F(ke, {
250
- "chart-type": c(u),
251
- "onUpdate:chart-type": o[1] || (o[1] = (r) => V(u) ? u.value = r : null),
251
+ "chart-type": u(c),
252
+ "onUpdate:chart-type": o[1] || (o[1] = (r) => V(c) ? c.value = r : null),
252
253
  "with-settings-header": a.withSettingsHeader,
253
254
  header: a.header,
254
- subheader: a.subheader
255
- }, null, 8, ["chart-type", "with-settings-header", "header", "subheader"])
255
+ subheader: a.subheader,
256
+ "subheader-tooltip": a.subheaderTooltip
257
+ }, null, 8, ["chart-type", "with-settings-header", "header", "subheader", "subheader-tooltip"])
256
258
  ]),
257
259
  f("div", Ee, [
258
260
  f("canvas", {
@@ -264,9 +266,9 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
264
266
  ref_key: "tooltipRef",
265
267
  ref: I,
266
268
  class: "chart__tooltip",
267
- style: J(c(W))
269
+ style: J(u(Z))
268
270
  }, [
269
- l.value ? (d(), h(ge, {
271
+ l.value ? (d(), m(ge, {
270
272
  key: 0,
271
273
  title: String(l.value.title),
272
274
  "data-points": l.value.dataPoints,
@@ -280,12 +282,12 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
280
282
  ]),
281
283
  a.hideLegend ? v("", !0) : (d(), k("section", Re, [
282
284
  F(Ce, {
283
- items: c(K),
285
+ items: u(W),
284
286
  "visible-ids": a.visibleIds,
285
- "onUpdate:visibleIds": o[2] || (o[2] = (r) => S("update:visibleIds", r))
287
+ "onUpdate:visibleIds": o[2] || (o[2] = (r) => T("update:visibleIds", r))
286
288
  }, null, 8, ["items", "visible-ids"])
287
289
  ]))
288
- ], 64)) : a.loading ? (d(), h(Le, { key: 1 })) : c(T) ? (d(), h(c(xe), {
290
+ ], 64)) : a.loading ? (d(), m(Le, { key: 1 })) : u(S) ? (d(), m(u(xe), {
289
291
  key: 2,
290
292
  title: a.noDataTitle,
291
293
  subtitle: a.noDataSubtitle,
@@ -4,11 +4,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  withSettingsHeader: boolean;
5
5
  header?: string;
6
6
  subheader?: string;
7
+ subheaderTooltip?: string;
7
8
  }>, {
8
9
  chartType: ChartType;
9
10
  withSettingsHeader: boolean;
10
11
  header: string;
11
12
  subheader: string;
13
+ subheaderTooltip: string;
12
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
15
  "update:chartType": (type: ChartType) => 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
  withSettingsHeader: boolean;
17
19
  header?: string;
18
20
  subheader?: string;
21
+ subheaderTooltip?: string;
19
22
  }>, {
20
23
  chartType: ChartType;
21
24
  withSettingsHeader: boolean;
22
25
  header: string;
23
26
  subheader: string;
27
+ subheaderTooltip: string;
24
28
  }>>> & {
25
29
  "onUpdate:chartType"?: (type: ChartType) => any;
26
30
  }, {
@@ -28,6 +32,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
32
  chartType: ChartType;
29
33
  withSettingsHeader: boolean;
30
34
  subheader: string;
35
+ subheaderTooltip: 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 "./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_2e3de9c5_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-2e3de9c5"]]);
3
+ // import "../../ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4c37736e"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,53 +1,66 @@
1
- import "../../ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css"; import { defineComponent as y, computed as T, openBlock as i, createElementBlock as V, createElementVNode as g, createVNode as c, unref as a, withCtx as l, createTextVNode as s, toDisplayString as u, createBlock as k, isRef as v, createCommentVNode as x } from "vue";
2
- import p from "../typography/v4/Typography.vue.js";
3
- import B from "../switch/v4/SwitchV4.vue.js";
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";
2
+ import h from "../typography/v4/Typography.vue.js";
3
+ import v from "../switch/v4/SwitchV4.vue.js";
4
4
  import { ChartType as r } from "./types.js";
5
- const C = { class: "chart-header" }, S = { class: "header-texts" }, H = /* @__PURE__ */ y({
5
+ import B from "../tooltip/v4/TooltipV4.vue.js";
6
+ const C = { class: "chart-header" }, S = { class: "header-texts" }, E = /* @__PURE__ */ y({
6
7
  __name: "ChartHeader",
7
8
  props: {
8
9
  chartType: { default: r.Line },
9
10
  withSettingsHeader: { type: Boolean, default: !0 },
10
11
  header: { default: "" },
11
- subheader: { default: "" }
12
+ subheader: { default: "" },
13
+ subheaderTooltip: { default: "" }
12
14
  },
13
15
  emits: ["update:chartType"],
14
- setup(e, { emit: h }) {
16
+ setup(e, { emit: p }) {
15
17
  const m = e, n = [
16
18
  { id: r.Line, icon: "chart-line-up" },
17
19
  { id: r.Bar, icon: "chart-bar" },
18
20
  { id: r.StackedLine, icon: "chart-line" }
19
21
  ], o = T({
20
22
  get() {
21
- return n.find(({ id: t }) => t === m.chartType);
23
+ return n.find(({ id: a }) => a === m.chartType);
22
24
  },
23
- set(t) {
24
- h("update:chartType", t.id);
25
+ set(a) {
26
+ p("update:chartType", a.id);
25
27
  }
26
28
  });
27
- return (t, d) => (i(), V("div", C, [
28
- g("div", S, [
29
- c(a(p), { variant: "chart2" }, {
30
- default: l(() => [
31
- s(u(e.header), 1)
29
+ return (a, l) => (c(), x("div", C, [
30
+ V("div", S, [
31
+ d(t(B), {
32
+ text: e.subheaderTooltip,
33
+ placement: "right"
34
+ }, {
35
+ default: i(() => [
36
+ d(t(h), {
37
+ class: "subheader",
38
+ variant: "h5"
39
+ }, {
40
+ default: i(() => [
41
+ u(s(e.subheader), 1)
42
+ ]),
43
+ _: 1
44
+ })
32
45
  ]),
33
46
  _: 1
34
- }),
35
- c(a(p), { variant: "caption" }, {
36
- default: l(() => [
37
- s(u(e.subheader), 1)
47
+ }, 8, ["text"]),
48
+ d(t(h), { variant: "chart2" }, {
49
+ default: i(() => [
50
+ u(s(e.header), 1)
38
51
  ]),
39
52
  _: 1
40
53
  })
41
54
  ]),
42
- e.withSettingsHeader ? x("", !0) : (i(), k(a(B), {
55
+ e.withSettingsHeader ? k("", !0) : (c(), b(t(v), {
43
56
  key: 0,
44
- modelValue: a(o),
45
- "onUpdate:modelValue": d[0] || (d[0] = (f) => v(o) ? o.value = f : null),
57
+ modelValue: t(o),
58
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => g(o) ? o.value = f : null),
46
59
  options: n
47
60
  }, null, 8, ["modelValue"]))
48
61
  ]));
49
62
  }
50
63
  });
51
64
  export {
52
- H as default
65
+ E as default
53
66
  };
@@ -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_efc608f9_lang.css"; //*');
4
- const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-efc608f9"]]);
3
+ // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-c0f71a49"]]);
5
5
  export {
6
- c as default
6
+ a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css"; import { defineComponent as E, ref as T, computed as a, openBlock as d, createElementBlock as n, createElementVNode as c, createVNode as u, unref as l, mergeProps as m, Fragment as y, renderList as S, withCtx as U, createTextVNode as w, toDisplayString as B } from "vue";
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
2
  import { useVirtualList as D } from "@vueuse/core";
3
3
  import N from "../typography/v4/Typography.vue.js";
4
4
  import A from "../checkbox/v4/CheckboxV4.vue.js";
@@ -13,47 +13,54 @@ const P = { class: "chart-legend" }, R = { class: "search-box" }, K = /* @__PURE
13
13
  maxVisible: { default: M }
14
14
  },
15
15
  emits: ["update:visibleIds"],
16
- setup(p, { emit: b }) {
17
- const t = p, h = 32, o = T(""), f = a(() => {
18
- const e = o.value.toLowerCase();
19
- return t.items.filter(
20
- (i) => i.label.toLowerCase().includes(e)
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
+ (l) => l.label.toLowerCase().includes(t)
21
21
  );
22
- }), r = (e) => t.visibleIds.includes(e.id), v = a(
23
- () => t.visibleIds.length >= t.maxVisible
24
- ), I = a(
25
- () => t.visibleIds.length <= t.minVisible
26
- ), _ = (e) => I.value && r(e) || v.value && !r(e), V = (e, i) => {
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
27
  b(
28
28
  "update:visibleIds",
29
- e ? [...t.visibleIds, i.id] : t.visibleIds.filter((s) => s !== i.id)
29
+ t ? [...s.visibleIds, l.id] : s.visibleIds.filter((e) => e !== l.id)
30
30
  );
31
- }, { list: L, containerProps: g, wrapperProps: k } = D(f, {
31
+ }, { list: g, containerProps: L, wrapperProps: x } = D(f, {
32
32
  itemHeight: h,
33
33
  overscan: 10
34
34
  });
35
- return (e, i) => (d(), n("div", P, [
35
+ return (t, l) => (d(), n("div", P, [
36
36
  c("div", R, [
37
- u(l(F), {
37
+ u(i(F), {
38
38
  modelValue: o.value,
39
- "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s)
39
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => o.value = e)
40
40
  }, null, 8, ["modelValue"])
41
41
  ]),
42
- c("div", m({ class: "legend" }, l(g)), [
43
- c("ul", m({ class: "legend__list" }, l(k)), [
44
- (d(!0), n(y, null, S(l(L), ({ data: s, index: C }) => (d(), n("li", { key: C }, [
45
- u(l(A), {
46
- color: s.color,
47
- "is-checked": r(s),
48
- disabled: _(s),
49
- "onUpdate:isChecked": (x) => V(x, s)
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
50
  }, null, 8, ["color", "is-checked", "disabled", "onUpdate:isChecked"]),
51
- u(l(N), { variant: "body2" }, {
52
- default: U(() => [
53
- w(B(s.label), 1)
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"
58
+ }, {
59
+ default: S(() => [
60
+ U(B(e.label), 1)
54
61
  ]),
55
62
  _: 2
56
- }, 1024)
63
+ }, 1032, ["tooltip-text"])
57
64
  ]))), 128))
58
65
  ], 16)
59
66
  ], 16)
@@ -1,7 +1,7 @@
1
1
  import e from "./SettingsHeader.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css"; //*');
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1791e4fe"]]);
3
+ // import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css"; //*');
4
+ const d = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9b6cd9d9"]]);
5
5
  export {
6
- p as default
6
+ d as default
7
7
  };
@@ -1,57 +1,64 @@
1
- import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css"; import { defineComponent as u, computed as h, openBlock as y, createElementBlock as f, createElementVNode as t, normalizeClass as i, createVNode as v, unref as r, isRef as g, renderSlot as a } from "vue";
2
- import T from "../dropdown/v4/DropdownV4.vue.js";
1
+ import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css"; import { defineComponent as h, computed as g, openBlock as y, createElementBlock as f, createElementVNode as r, normalizeClass as a, createVNode as l, unref as t, isRef as v, withCtx as T, mergeProps as w, renderSlot as p } from "vue";
2
+ import b from "../dropdown/v4/DropdownV4.vue.js";
3
3
  import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
4
4
  import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
5
5
  import "../dropdown/v4/ChipDropdownTrigger.vue.js";
6
6
  import "../dropdown/v4/AppDropdownTrigger.vue.js";
7
- import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
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_TYPE_OPTIONS as d } from "./consts.js";
12
- const k = { class: "settings-header-container" }, b = { class: "chart-type-selection" }, V = /* @__PURE__ */ u({
11
+ import { DROPDOWN_TYPE_OPTIONS as c } from "./consts.js";
12
+ const _ = { class: "settings-header-container" }, B = { class: "chart-type-selection" }, R = /* @__PURE__ */ h({
13
13
  __name: "SettingsHeader",
14
14
  props: {
15
15
  chartType: null,
16
16
  hideLegend: { type: Boolean }
17
17
  },
18
18
  emits: ["update:chartType"],
19
- setup(o, { emit: l }) {
20
- const p = o, s = h({
19
+ setup(s, { emit: m }) {
20
+ const u = s, o = g({
21
21
  get() {
22
- return d.find(({ id: e }) => e === p.chartType);
22
+ return c.find(({ id: e }) => e === u.chartType);
23
23
  },
24
24
  set(e) {
25
- l("update:chartType", e.id);
25
+ m("update:chartType", e.id);
26
26
  }
27
- }), c = (e) => `Chart: ${e.name}`;
28
- return (e, n) => (y(), f("div", k, [
29
- t("div", {
30
- class: i(["settings", { "settings-spacer": !o.hideLegend }])
27
+ }), i = (e) => `Chart: ${e.name}`;
28
+ return (e, d) => (y(), f("div", _, [
29
+ r("div", {
30
+ class: a(["settings", { "settings-spacer": !s.hideLegend }])
31
31
  }, [
32
- t("div", b, [
33
- v(r(T), {
34
- selected: r(s),
35
- "onUpdate:selected": n[0] || (n[0] = (m) => g(s) ? s.value = m : null),
36
- options: r(d),
32
+ r("div", B, [
33
+ l(t(b), {
34
+ selected: t(o),
35
+ "onUpdate:selected": d[0] || (d[0] = (n) => v(o) ? o.value = n : null),
36
+ options: t(c),
37
37
  "option-name-key": "name",
38
- "display-value": c,
38
+ "display-value": i,
39
39
  placeholder: "Select chart type",
40
40
  size: "small"
41
- }, null, 8, ["selected", "options"])
41
+ }, {
42
+ "dropdown-trigger": T(({ buttonTriggerProps: n }) => [
43
+ l(t(k), w(n, {
44
+ label: i(t(o))
45
+ }), null, 16, ["label"])
46
+ ]),
47
+ _: 1
48
+ }, 8, ["selected", "options"])
42
49
  ]),
43
- t("div", null, [
44
- a(e.$slots, "metric", {}, void 0, !0)
50
+ r("div", null, [
51
+ p(e.$slots, "metric", {}, void 0, !0)
45
52
  ])
46
53
  ], 2),
47
- t("div", {
48
- class: i(["breakdowns", { "breakdowns-border": !o.hideLegend }])
54
+ r("div", {
55
+ class: a(["breakdowns", { "breakdowns-border": !s.hideLegend }])
49
56
  }, [
50
- a(e.$slots, "breakdowns", {}, void 0, !0)
57
+ p(e.$slots, "breakdowns", {}, void 0, !0)
51
58
  ], 2)
52
59
  ]));
53
60
  }
54
61
  });
55
62
  export {
56
- V as default
63
+ R as default
57
64
  };