@ironsource/shared-ui 2.1.12-test.53 → 2.1.12-test.55

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 (152) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  7. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
  8. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  9. package/DataGrid.vue_vue_type_style_index_0_scoped_e6cece52_lang.css +1 -0
  10. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  11. package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
  12. package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
  13. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  14. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  15. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  16. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  17. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  18. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  19. package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
  20. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  21. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  22. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  23. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  24. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  25. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  26. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  27. package/components/chart/Chart.vue.d.ts +5 -0
  28. package/components/chart/Chart.vue.js +4 -4
  29. package/components/chart/Chart.vue2.js +122 -112
  30. package/components/chart/ChartHeader.vue.d.ts +5 -0
  31. package/components/chart/ChartHeader.vue.js +3 -3
  32. package/components/chart/ChartHeader.vue2.js +49 -44
  33. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  34. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  35. package/components/chart/ChartHeaderTrend.vue2.js +42 -39
  36. package/components/chart/ChartLegend.vue.d.ts +5 -0
  37. package/components/chart/ChartLegend.vue.js +3 -3
  38. package/components/chart/ChartLegend.vue2.js +76 -71
  39. package/components/chart/ChartPlane.vue.d.ts +5 -0
  40. package/components/chart/ChartPlane.vue.js +3 -3
  41. package/components/chart/ChartPlane.vue2.js +125 -119
  42. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  43. package/components/chart/ChartTooltip.vue.js +2 -2
  44. package/components/chart/ChartTooltip.vue2.js +38 -34
  45. package/components/chart/LegendSorting.vue.d.ts +5 -0
  46. package/components/chart/LegendSorting.vue.js +16 -14
  47. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  48. package/components/chart/SettingsHeader.vue.js +3 -3
  49. package/components/chart/SettingsHeader.vue2.js +36 -29
  50. package/components/chart/index.d.ts +20 -1
  51. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  52. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  53. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  54. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  55. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  56. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  57. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  58. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  59. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  60. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  61. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  62. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  63. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  64. package/components/columnConfigurator/consts.d.ts +1 -0
  65. package/components/columnConfigurator/consts.js +4 -0
  66. package/components/columnConfigurator/index.d.ts +73 -0
  67. package/components/columnConfigurator/index.js +6 -0
  68. package/components/columnConfigurator/mockData.d.ts +30 -0
  69. package/components/columnConfigurator/utils.d.ts +2 -0
  70. package/components/columnConfigurator/utils.js +18 -0
  71. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  72. package/components/columnPicker/index.d.ts +20 -20
  73. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  74. package/components/dropdown/v4/ConditionalDropdown.vue2.js +99 -97
  75. package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
  76. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  77. package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
  78. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  79. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  80. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  81. package/components/dropdown/v4/index.d.ts +61 -2
  82. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  83. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  84. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  85. package/components/emptyState/v4/index.d.ts +20 -1
  86. package/components/link/Link.vue.d.ts +5 -0
  87. package/components/link/Link.vue.js +3 -3
  88. package/components/link/Link.vue2.js +36 -28
  89. package/components/link/index.d.ts +20 -1
  90. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  91. package/components/sortableList/LoaderBars.vue.js +7 -0
  92. package/components/sortableList/LoaderBars.vue2.js +25 -0
  93. package/components/sortableList/SortableItem.vue.js +4 -4
  94. package/components/sortableList/SortableItem.vue2.js +3 -3
  95. package/components/sortableList/SortableList.vue.d.ts +2 -2
  96. package/components/sortableList/SortableList.vue.js +5 -5
  97. package/components/sortableList/SortableList.vue2.js +96 -106
  98. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  99. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  100. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  101. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  102. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  103. package/components/sortableList/consts.d.ts +2 -0
  104. package/components/sortableList/consts.js +4 -2
  105. package/components/sortableList/index.d.ts +39 -39
  106. package/components/table/common/consts.d.ts +2 -0
  107. package/components/table/common/consts.js +6 -4
  108. package/components/table/v4/DataGrid.vue.d.ts +4 -3
  109. package/components/table/v4/DataGrid.vue.js +4 -4
  110. package/components/table/v4/DataGrid.vue2.js +362 -335
  111. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  112. package/components/table/v4/DataGridContainer.vue.js +7 -0
  113. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  114. package/components/table/v4/DataGridHeader.vue.d.ts +1 -1
  115. package/components/table/v4/DataGridHeader.vue.js +2 -2
  116. package/components/table/v4/DataGridHeader.vue2.js +30 -28
  117. package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
  118. package/components/table/v4/index.d.ts +104 -103
  119. package/components/tagsField/TagsField.types.d.ts +4 -0
  120. package/components/tagsField/TagsField.vue.d.ts +65 -0
  121. package/components/tagsField/TagsField.vue.js +7 -0
  122. package/components/tagsField/TagsField.vue2.js +90 -0
  123. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  124. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  125. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  126. package/components/tagsField/consts.d.ts +1 -0
  127. package/components/tagsField/consts.js +4 -0
  128. package/components/tagsField/index.d.ts +75 -0
  129. package/components/tagsField/index.js +6 -0
  130. package/index.d.ts +450 -290
  131. package/index.js +87 -79
  132. package/package.json +10 -1
  133. package/testids/index.d.ts +36 -0
  134. package/testids/index.js +37 -31
  135. package/utils/object.d.ts +2 -0
  136. package/utils/object.js +9 -5
  137. package/utils/search.js +1 -1
  138. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +0 -1
  139. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  140. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +0 -1
  141. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  142. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +0 -1
  143. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +0 -1
  144. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +0 -1
  145. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +0 -1
  146. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +0 -1
  147. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +0 -1
  148. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  149. package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +0 -1
  150. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +0 -1
  151. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +0 -1
  152. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
@@ -1,11 +1,13 @@
1
- import "../../ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css"; import { defineComponent as k, computed as m, openBlock as r, createElementBlock as C, normalizeClass as S, createElementVNode as c, createVNode as p, createSlots as w, withCtx as f, renderSlot as x, unref as a, createTextVNode as B, toDisplayString as N, createBlock as l, normalizeProps as y, mergeProps as T, createCommentVNode as d, isRef as g } from "vue";
2
- import D from "../typography/v4/Typography.vue.js";
3
- import P from "../switch/v4/SwitchV4.vue.js";
4
- import H from "../chip/v4/ChipV4.vue.js";
5
- import { ChartType as n, TrendDirection as L } from "./types.js";
6
- import b from "./ChartHeaderTrend.vue.js";
7
- import $ from "./SubHeader.vue.js";
8
- const z = { class: "header-texts" }, E = { class: "header-row" }, U = { class: "header-actions" }, I = /* @__PURE__ */ k({
1
+ import "../../ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css"; import { defineComponent as I, computed as p, openBlock as o, createElementBlock as S, mergeProps as u, unref as t, createElementVNode as c, createVNode as T, createSlots as w, withCtx as y, renderSlot as x, createTextVNode as B, toDisplayString as E, createBlock as d, normalizeProps as b, createCommentVNode as l, isRef as D } from "vue";
2
+ import H from "../typography/v4/Typography.vue.js";
3
+ import N from "../switch/v4/SwitchV4.vue.js";
4
+ import P from "../chip/v4/ChipV4.vue.js";
5
+ import { ChartType as n, TrendDirection as $ } from "./types.js";
6
+ import V from "./ChartHeaderTrend.vue.js";
7
+ import g from "./SubHeader.vue.js";
8
+ import { useTestIdAttrs as A } from "../../utils/testIds.js";
9
+ import { ChartTestIdModifiers as s } from "../../testids/index.js";
10
+ const L = { class: "header-texts" }, R = { class: "header-row" }, U = { class: "header-actions" }, J = /* @__PURE__ */ I({
9
11
  __name: "ChartHeader",
10
12
  props: {
11
13
  chartType: { default: n.Line },
@@ -16,73 +18,76 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, U = { class: "
16
18
  trendTooltip: { default: null },
17
19
  compact: { type: Boolean, default: !1 },
18
20
  trendValue: { default: null },
19
- trendDirection: { default: L.UP },
20
- noteText: { default: "" }
21
+ trendDirection: { default: $.UP },
22
+ noteText: { default: "" },
23
+ testId: { default: "" }
21
24
  },
22
25
  emits: ["update:chartType"],
23
- setup(e, { emit: V }) {
24
- const o = e, u = [
26
+ setup(e, { emit: v }) {
27
+ const a = e, h = [
25
28
  { id: n.Line, icon: "chart-line-up" },
26
29
  { id: n.Bar, icon: "chart-bar" },
27
30
  { id: n.StackedLine, icon: "chart-line" }
28
- ], i = m({
31
+ ], i = p({
29
32
  get() {
30
- return u.find(({ id: t }) => t === o.chartType);
33
+ return h.find(({ id: r }) => r === a.chartType);
31
34
  },
32
- set(t) {
33
- V("update:chartType", t.id);
35
+ set(r) {
36
+ v("update:chartType", r.id);
34
37
  }
35
- }), s = m(() => ({
36
- value: o.trendValue,
37
- direction: o.trendDirection,
38
- trendTooltip: o.trendTooltip
39
- }));
40
- return (t, h) => (r(), C("div", {
41
- class: S(["chart-header", { "chart-header--compact": e.compact }])
42
- }, [
43
- c("div", z, [
44
- p($, {
38
+ }), m = p(() => ({
39
+ value: a.trendValue,
40
+ direction: a.trendDirection,
41
+ trendTooltip: a.trendTooltip,
42
+ testId: a.testId
43
+ })), k = A(a.testId, s);
44
+ return (r, f) => (o(), S("div", u({
45
+ class: ["chart-header", { "chart-header--compact": e.compact }]
46
+ }, t(k)[t(s).HEADER]), [
47
+ c("div", L, [
48
+ T(g, {
45
49
  subheader: e.subheader,
46
50
  "subheader-tooltip": e.subheaderTooltip,
47
51
  "show-separator": e.compact && (!!e.header || !!e.trendValue)
48
52
  }, w({ _: 2 }, [
49
- t.$slots["subheader-tooltip"] ? {
53
+ r.$slots["subheader-tooltip"] ? {
50
54
  name: "subheader-tooltip",
51
- fn: f(() => [
52
- x(t.$slots, "subheader-tooltip", {}, void 0, !0)
55
+ fn: y(() => [
56
+ x(r.$slots, "subheader-tooltip", {}, void 0, !0)
53
57
  ]),
54
58
  key: "0"
55
59
  } : void 0
56
60
  ]), 1032, ["subheader", "subheader-tooltip", "show-separator"]),
57
- c("div", E, [
58
- p(a(D), {
61
+ c("div", R, [
62
+ T(t(H), {
59
63
  class: "header-text",
60
64
  variant: e.compact ? "h5" : "chart2"
61
65
  }, {
62
- default: f(() => [
63
- B(N(e.header), 1)
66
+ default: y(() => [
67
+ B(E(e.header), 1)
64
68
  ]),
65
69
  _: 1
66
70
  }, 8, ["variant"]),
67
- !e.compact && e.trendValue !== null ? (r(), l(b, y(T({ key: 0 }, a(s))), null, 16)) : d("", !0)
71
+ !e.compact && e.trendValue !== null ? (o(), d(V, b(u({ key: 0 }, t(m))), null, 16)) : l("", !0)
68
72
  ]),
69
- e.compact && e.trendValue !== null ? (r(), l(b, y(T({ key: 0 }, a(s))), null, 16)) : d("", !0)
73
+ e.compact && e.trendValue !== null ? (o(), d(V, b(u({ key: 0 }, t(m))), null, 16)) : l("", !0)
70
74
  ]),
71
75
  c("div", U, [
72
- e.noteText ? (r(), l(a(H), {
76
+ e.noteText ? (o(), d(t(P), {
73
77
  key: 0,
74
78
  label: `Note: ${e.noteText}`
75
- }, null, 8, ["label"])) : d("", !0),
76
- e.typeSwitcher ? (r(), l(a(P), {
79
+ }, null, 8, ["label"])) : l("", !0),
80
+ e.typeSwitcher ? (o(), d(t(N), {
77
81
  key: 1,
78
- modelValue: a(i),
79
- "onUpdate:modelValue": h[0] || (h[0] = (v) => g(i) ? i.value = v : null),
80
- options: u
81
- }, null, 8, ["modelValue"])) : d("", !0)
82
+ modelValue: t(i),
83
+ "onUpdate:modelValue": f[0] || (f[0] = (C) => D(i) ? i.value = C : null),
84
+ options: h,
85
+ "test-id": `${e.testId}-${t(s).TYPE_SWITCHER}`
86
+ }, null, 8, ["modelValue", "test-id"])) : l("", !0)
82
87
  ])
83
- ], 2));
88
+ ], 16));
84
89
  }
85
90
  });
86
91
  export {
87
- I as default
92
+ J as default
88
93
  };
@@ -7,10 +7,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  rangeCurrent?: string;
8
8
  rangePrevious?: string;
9
9
  };
10
+ testId?: string;
10
11
  }>, {
11
12
  value: any;
12
13
  direction: TrendDirection;
13
14
  trendTooltip: any;
15
+ testId: string;
14
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
17
  value?: number | string;
16
18
  direction?: TrendDirection;
@@ -19,12 +21,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
21
  rangeCurrent?: string;
20
22
  rangePrevious?: string;
21
23
  };
24
+ testId?: string;
22
25
  }>, {
23
26
  value: any;
24
27
  direction: TrendDirection;
25
28
  trendTooltip: any;
29
+ testId: string;
26
30
  }>>>, {
27
31
  value: number | string;
32
+ testId: string;
28
33
  direction: TrendDirection;
29
34
  trendTooltip: any;
30
35
  }>;
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartHeaderTrend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-2f916aeb"]]);
3
+ // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ca558859"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,56 +1,59 @@
1
- import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css"; import { defineComponent as g, computed as p, openBlock as n, createElementBlock as m, normalizeClass as y, createVNode as l, unref as t, withCtx as o, createElementVNode as u, createBlock as s, createTextVNode as a, toDisplayString as d, createCommentVNode as c, pushScopeId as C, popScopeId as _ } from "vue";
2
- import i from "../typography/v4/Typography.vue.js";
1
+ import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css"; import { defineComponent as I, computed as p, openBlock as n, createElementBlock as m, mergeProps as C, unref as e, createVNode as i, withCtx as o, createElementVNode as u, createBlock as c, createTextVNode as a, toDisplayString as l, createCommentVNode as s, pushScopeId as _, popScopeId as x } from "vue";
2
+ import d from "../typography/v4/Typography.vue.js";
3
3
  import b from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
- import x from "../tooltip/v4/TooltipV4.vue.js";
6
- import { TrendDirection as h } from "./types.js";
7
- const f = (e) => (C("data-v-2f916aeb"), e = e(), _(), e), k = { class: "trend-tooltip" }, N = {
5
+ import k from "../tooltip/v4/TooltipV4.vue.js";
6
+ import { TrendDirection as f } from "./types.js";
7
+ import { useTestIdAttrs as N } from "../../utils/testIds.js";
8
+ import { ChartTestIdModifiers as T } from "../../testids/index.js";
9
+ const h = (t) => (_("data-v-ca558859"), t = t(), x(), t), P = { class: "trend-tooltip" }, E = {
8
10
  key: 2,
9
11
  class: "separator"
10
- }, I = /* @__PURE__ */ f(() => /* @__PURE__ */ u("hr", null, null, -1)), P = /* @__PURE__ */ f(() => /* @__PURE__ */ u("hr", null, null, -1)), U = /* @__PURE__ */ g({
12
+ }, S = /* @__PURE__ */ h(() => /* @__PURE__ */ u("hr", null, null, -1)), V = /* @__PURE__ */ h(() => /* @__PURE__ */ u("hr", null, null, -1)), M = /* @__PURE__ */ I({
11
13
  __name: "ChartHeaderTrend",
12
14
  props: {
13
15
  value: { default: null },
14
- direction: { default: h.UP },
15
- trendTooltip: { default: null }
16
+ direction: { default: f.UP },
17
+ trendTooltip: { default: null },
18
+ testId: { default: "" }
16
19
  },
17
- setup(e) {
18
- const r = e, T = p(
20
+ setup(t) {
21
+ const r = t, v = p(
19
22
  () => r.trendTooltip?.header || r.trendTooltip?.rangeCurrent || r.trendTooltip?.rangePrevious
20
- ), v = p(
21
- () => r.direction === h.NEUTRAL ? "minus" : `arrow-${r.direction}`
22
- );
23
- return (S, V) => (n(), m("div", {
24
- class: y(["chart-trend", [`chart-trend--${e.direction}`]])
25
- }, [
26
- l(t(x), {
27
- disabled: !t(T)
23
+ ), g = p(
24
+ () => r.direction === f.NEUTRAL ? "minus" : `arrow-${r.direction}`
25
+ ), y = N(r.testId, T);
26
+ return (w, A) => (n(), m("div", C({
27
+ class: ["chart-trend", [`chart-trend--${t.direction}`]]
28
+ }, e(y)[e(T).TREND]), [
29
+ i(e(k), {
30
+ disabled: !e(v)
28
31
  }, {
29
32
  tooltip: o(() => [
30
- u("div", k, [
31
- e.trendTooltip?.header ? (n(), s(t(i), {
33
+ u("div", P, [
34
+ t.trendTooltip?.header ? (n(), c(e(d), {
32
35
  key: 0,
33
36
  class: "trend-tooltip__header",
34
37
  variant: "subtitle2"
35
38
  }, {
36
39
  default: o(() => [
37
- a(d(e.trendTooltip.header), 1)
40
+ a(l(t.trendTooltip.header), 1)
38
41
  ]),
39
42
  _: 1
40
- })) : c("", !0),
41
- e.trendTooltip?.rangeCurrent ? (n(), s(t(i), {
43
+ })) : s("", !0),
44
+ t.trendTooltip?.rangeCurrent ? (n(), c(e(d), {
42
45
  key: 1,
43
46
  variant: "body2",
44
47
  class: "trend-tooltip__text"
45
48
  }, {
46
49
  default: o(() => [
47
- a(d(e.trendTooltip.rangeCurrent), 1)
50
+ a(l(t.trendTooltip.rangeCurrent), 1)
48
51
  ]),
49
52
  _: 1
50
- })) : c("", !0),
51
- e.trendTooltip?.rangeCurrent && e.trendTooltip?.rangePrevious ? (n(), m("div", N, [
52
- I,
53
- l(t(i), {
53
+ })) : s("", !0),
54
+ t.trendTooltip?.rangeCurrent && t.trendTooltip?.rangePrevious ? (n(), m("div", E, [
55
+ S,
56
+ i(e(d), {
54
57
  class: "separator__text",
55
58
  variant: "caption"
56
59
  }, {
@@ -59,39 +62,39 @@ const f = (e) => (C("data-v-2f916aeb"), e = e(), _(), e), k = { class: "trend-to
59
62
  ]),
60
63
  _: 1
61
64
  }),
62
- P
63
- ])) : c("", !0),
64
- e.trendTooltip?.rangePrevious ? (n(), s(t(i), {
65
+ V
66
+ ])) : s("", !0),
67
+ t.trendTooltip?.rangePrevious ? (n(), c(e(d), {
65
68
  key: 3,
66
69
  variant: "body2",
67
70
  class: "trend-tooltip__text"
68
71
  }, {
69
72
  default: o(() => [
70
- a(d(e.trendTooltip.rangePrevious), 1)
73
+ a(l(t.trendTooltip.rangePrevious), 1)
71
74
  ]),
72
75
  _: 1
73
- })) : c("", !0)
76
+ })) : s("", !0)
74
77
  ])
75
78
  ]),
76
79
  default: o(() => [
77
- l(t(b), {
80
+ i(e(b), {
78
81
  class: "trend-icon",
79
82
  type: "bold",
80
- name: t(v),
83
+ name: e(g),
81
84
  size: "15px"
82
85
  }, null, 8, ["name"]),
83
- l(t(i), { variant: "chipLabel" }, {
86
+ i(e(d), { variant: "chipLabel" }, {
84
87
  default: o(() => [
85
- a(d(e.value), 1)
88
+ a(l(t.value), 1)
86
89
  ]),
87
90
  _: 1
88
91
  })
89
92
  ]),
90
93
  _: 1
91
94
  }, 8, ["disabled"])
92
- ], 2));
95
+ ], 16));
93
96
  }
94
97
  });
95
98
  export {
96
- U as default
99
+ M as default
97
100
  };
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
9
9
  sortSelected?: unknown;
10
10
  sortOptions?: unknown[];
11
11
  sortOptionNameKey?: string;
12
+ testId?: string;
12
13
  }>, {
13
14
  items: () => any[];
14
15
  visibleIds: () => any[];
@@ -19,6 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
20
  sortSelected: any;
20
21
  sortOptions: () => any[];
21
22
  sortOptionNameKey: string;
23
+ testId: string;
22
24
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
25
  "update:visibleIds": (visibleIds: unknown[]) => void;
24
26
  "update:sortSelected": (sortOption: unknown) => void;
@@ -33,6 +35,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
33
35
  sortSelected?: unknown;
34
36
  sortOptions?: unknown[];
35
37
  sortOptionNameKey?: string;
38
+ testId?: string;
36
39
  }>, {
37
40
  items: () => any[];
38
41
  visibleIds: () => any[];
@@ -43,11 +46,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
43
46
  sortSelected: any;
44
47
  sortOptions: () => any[];
45
48
  sortOptionNameKey: string;
49
+ testId: string;
46
50
  }>>> & {
47
51
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
48
52
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
49
53
  "onUpdate:highlightedId"?: (id: string | number) => any;
50
54
  }, {
55
+ testId: string;
51
56
  items: LegendItem[];
52
57
  visibleIds: unknown[];
53
58
  highlightedId: string | number;
@@ -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_6103d8bd_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-6103d8bd"]]);
3
+ // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9c4df598"]]);
5
5
  export {
6
- s as default
6
+ c as default
7
7
  };
@@ -1,114 +1,119 @@
1
- import "../../ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css"; import { defineComponent as F, ref as H, computed as v, openBlock as s, createElementBlock as u, createElementVNode as r, createVNode as c, unref as o, createBlock as g, isRef as R, createCommentVNode as x, mergeProps as T, withCtx as p, createTextVNode as I, Fragment as $, renderList as z, normalizeClass as K, withModifiers as q, toDisplayString as V } from "vue";
2
- import { useVModel as C, useVirtualList as G } from "@vueuse/core";
3
- import k from "../typography/v4/Typography.vue.js";
4
- import X from "../checkbox/v4/CheckboxV4.vue.js";
5
- import j from "../search/v4/SearchV4.vue.js";
6
- import { DEFAULT_MIN_VISIBLE as J, DEFAULT_MAX_VISIBLE as Q } from "./consts.js";
7
- import W from "../icon/v4/IconV4.vue.js";
1
+ import "../../ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css"; import { defineComponent as F, ref as G, computed as b, openBlock as n, createElementBlock as u, mergeProps as v, unref as o, createElementVNode as r, createVNode as c, createBlock as g, isRef as H, createCommentVNode as x, withCtx as p, createTextVNode as k, Fragment as z, renderList as K, normalizeClass as q, withModifiers as X, toDisplayString as E } from "vue";
2
+ import { useVModel as _, useVirtualList as j } from "@vueuse/core";
3
+ import y from "../typography/v4/Typography.vue.js";
4
+ import J from "../checkbox/v4/CheckboxV4.vue.js";
5
+ import Q from "../search/v4/SearchV4.vue.js";
6
+ import { DEFAULT_MIN_VISIBLE as W, DEFAULT_MAX_VISIBLE as Y } from "./consts.js";
7
+ import Z from "../icon/v4/IconV4.vue.js";
8
8
  import "../icon/v4/IconFlag.vue.js";
9
- import Y from "../tooltip/v4/TooltipV4.vue.js";
10
- import Z from "./LegendSorting.vue.js";
11
- const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
9
+ import ee from "../tooltip/v4/TooltipV4.vue.js";
10
+ import te from "./LegendSorting.vue.js";
11
+ import { useTestIdAttrs as oe } from "../../utils/testIds.js";
12
+ import { ChartTestIdModifiers as L } from "../../testids/index.js";
13
+ const le = { class: "search-box" }, se = {
12
14
  key: 0,
13
15
  class: "empty-list"
14
- }, le = ["onMouseenter"], ie = ["onClick"], se = { class: "label-container" }, be = /* @__PURE__ */ F({
16
+ }, ie = ["onMouseenter"], ne = ["onClick"], ae = { class: "label-container" }, xe = /* @__PURE__ */ F({
15
17
  __name: "ChartLegend",
16
18
  props: {
17
19
  items: { default: () => [] },
18
20
  visibleIds: { default: () => [] },
19
21
  highlightedId: { default: null },
20
- minVisible: { default: J },
21
- maxVisible: { default: Q },
22
+ minVisible: { default: W },
23
+ maxVisible: { default: Y },
22
24
  maxLimitTooltipText: { default: "" },
23
25
  sortSelected: { default: null },
24
26
  sortOptions: { default: () => [] },
25
- sortOptionNameKey: { default: "" }
27
+ sortOptionNameKey: { default: "" },
28
+ testId: { default: "" }
26
29
  },
27
30
  emits: ["update:visibleIds", "update:sortSelected", "update:highlightedId"],
28
- setup(a, { emit: m }) {
29
- const l = a, M = 32, h = C(l, "sortSelected", m), y = C(l, "highlightedId", m), w = (t) => {
30
- y.value = n(t) ? t.id : null;
31
- }, E = () => {
32
- y.value = null;
33
- }, f = H(""), S = v(() => {
34
- const t = f.value.toLowerCase();
31
+ setup(i, { emit: m }) {
32
+ const l = i, M = 32, f = _(l, "sortSelected", m), T = _(l, "highlightedId", m), N = (t) => {
33
+ T.value = a(t) ? t.id : null;
34
+ }, w = () => {
35
+ T.value = null;
36
+ }, h = G(""), S = b(() => {
37
+ const t = h.value.toLowerCase();
35
38
  return l.items.filter(
36
- (i) => i.label.toLowerCase().includes(t)
39
+ (s) => s.label.toLowerCase().includes(t)
37
40
  );
38
- }), n = (t) => l.visibleIds.includes(t.id), L = v(
41
+ }), a = (t) => l.visibleIds.includes(t.id), C = b(
39
42
  () => l.visibleIds.length >= l.maxVisible
40
- ), N = v(
43
+ ), D = b(
41
44
  () => l.visibleIds.length <= l.minVisible
42
- ), d = (t) => N.value && n(t) || L.value && !n(t), B = (t) => !l.maxLimitTooltipText || n(t) || !L.value, D = (t, i) => {
45
+ ), d = (t) => D.value && a(t) || C.value && !a(t), O = (t) => !l.maxLimitTooltipText || a(t) || !C.value, A = (t, s) => {
43
46
  m(
44
47
  "update:visibleIds",
45
- t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
48
+ t ? [...l.visibleIds, s.id] : l.visibleIds.filter((e) => e !== s.id)
46
49
  );
47
- }, { list: _, containerProps: O, wrapperProps: P } = G(S, {
50
+ }, { list: V, containerProps: B, wrapperProps: R } = j(S, {
48
51
  itemHeight: M,
49
52
  overscan: 10
50
- }), U = (t) => {
51
- d(t) || D(!n(t), t);
52
- };
53
- return (t, i) => (s(), u("div", ee, [
54
- r("div", te, [
55
- c(o(j), {
56
- modelValue: f.value,
57
- "onUpdate:modelValue": i[0] || (i[0] = (e) => f.value = e)
58
- }, null, 8, ["modelValue"]),
59
- a.sortOptions?.length > 0 ? (s(), g(Z, {
53
+ }), $ = (t) => {
54
+ d(t) || A(!a(t), t);
55
+ }, P = oe(l.testId, L);
56
+ return (t, s) => (n(), u("div", v({ class: "chart-legend" }, o(P)[o(L).LEGEND_CONTAINER]), [
57
+ r("div", le, [
58
+ c(o(Q), {
59
+ modelValue: h.value,
60
+ "onUpdate:modelValue": s[0] || (s[0] = (e) => h.value = e),
61
+ "test-id": i.testId
62
+ }, null, 8, ["modelValue", "test-id"]),
63
+ i.sortOptions?.length > 0 ? (n(), g(te, {
60
64
  key: 0,
61
- selected: o(h),
62
- "onUpdate:selected": i[1] || (i[1] = (e) => R(h) ? h.value = e : null),
63
- options: a.sortOptions,
64
- "option-name-key": a.sortOptionNameKey
65
- }, null, 8, ["selected", "options", "option-name-key"])) : x("", !0)
65
+ selected: o(f),
66
+ "onUpdate:selected": s[1] || (s[1] = (e) => H(f) ? f.value = e : null),
67
+ options: i.sortOptions,
68
+ "option-name-key": i.sortOptionNameKey,
69
+ "test-id": `${i.testId}-${o(L).LEGEND_SORT}`
70
+ }, null, 8, ["selected", "options", "option-name-key", "test-id"])) : x("", !0)
66
71
  ]),
67
- r("div", T({ class: "legend" }, o(O)), [
68
- r("ul", T({ class: "legend__list" }, o(P)), [
69
- o(_).length === 0 ? (s(), u("li", oe, [
70
- c(o(k), { variant: "body2" }, {
72
+ r("div", v({ class: "legend" }, o(B)), [
73
+ r("ul", v({ class: "legend__list" }, o(R)), [
74
+ o(V).length === 0 ? (n(), u("li", se, [
75
+ c(o(y), { variant: "body2" }, {
71
76
  default: p(() => [
72
- I("No results")
77
+ k("No results")
73
78
  ]),
74
79
  _: 1
75
80
  })
76
- ])) : (s(!0), u($, { key: 1 }, z(o(_), ({ data: e, index: A }) => (s(), u("li", {
77
- key: A,
78
- class: K({ "disabled-item": d(e) }),
79
- onMouseenter: (b) => w(e),
80
- onMouseleave: E
81
+ ])) : (n(!0), u(z, { key: 1 }, K(o(V), ({ data: e, index: U }) => (n(), u("li", {
82
+ key: U,
83
+ class: q({ "disabled-item": d(e) }),
84
+ onMouseenter: (I) => N(e),
85
+ onMouseleave: w
81
86
  }, [
82
- c(o(Y), {
83
- text: a.maxLimitTooltipText,
84
- disabled: B(e),
87
+ c(o(ee), {
88
+ text: i.maxLimitTooltipText,
89
+ disabled: O(e),
85
90
  class: "disabled-tooltip"
86
91
  }, {
87
92
  default: p(() => [
88
93
  r("div", {
89
94
  class: "item-wrapper",
90
- onClick: (b) => U(e)
95
+ onClick: (I) => $(e)
91
96
  }, [
92
- c(o(X), {
97
+ c(o(J), {
93
98
  color: e.color,
94
- "is-checked": n(e),
99
+ "is-checked": a(e),
95
100
  disabled: d(e),
96
- onClick: i[2] || (i[2] = q(
97
- (b) => {
98
- b.stopPropagation();
101
+ onClick: s[2] || (s[2] = X(
102
+ (I) => {
103
+ I.stopPropagation();
99
104
  },
100
105
  ["stop"]
101
106
  ))
102
107
  }, null, 8, ["color", "is-checked", "disabled"]),
103
- e.icon ? (s(), g(o(W), {
108
+ e.icon ? (n(), g(o(Z), {
104
109
  key: 0,
105
110
  class: "icon-color",
106
111
  type: e.iconType,
107
112
  name: e.icon,
108
113
  size: "16px"
109
114
  }, null, 8, ["type", "name"])) : x("", !0),
110
- r("div", se, [
111
- c(o(k), {
115
+ r("div", ae, [
116
+ c(o(y), {
112
117
  variant: "body2",
113
118
  class: "legend-label",
114
119
  "is-truncated": "",
@@ -117,11 +122,11 @@ const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
117
122
  "tooltip-placement": "left"
118
123
  }, {
119
124
  default: p(() => [
120
- I(V(e.label), 1)
125
+ k(E(e.label), 1)
121
126
  ]),
122
127
  _: 2
123
128
  }, 1032, ["with-tooltip", "tooltip-text"]),
124
- e.caption ? (s(), g(o(k), {
129
+ e.caption ? (n(), g(o(y), {
125
130
  key: 0,
126
131
  variant: "caption",
127
132
  class: "legend-caption legend-label",
@@ -131,21 +136,21 @@ const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
131
136
  "tooltip-placement": "left"
132
137
  }, {
133
138
  default: p(() => [
134
- I(V(e.caption), 1)
139
+ k(E(e.caption), 1)
135
140
  ]),
136
141
  _: 2
137
142
  }, 1032, ["with-tooltip", "tooltip-text"])) : x("", !0)
138
143
  ])
139
- ], 8, ie)
144
+ ], 8, ne)
140
145
  ]),
141
146
  _: 2
142
147
  }, 1032, ["text", "disabled"])
143
- ], 42, le))), 128))
148
+ ], 42, ie))), 128))
144
149
  ], 16)
145
150
  ], 16)
146
- ]));
151
+ ], 16));
147
152
  }
148
153
  });
149
154
  export {
150
- be as default
155
+ xe as default
151
156
  };
@@ -45,6 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
45
45
  valuePrefix?: string;
46
46
  indicateIncompleteData?: boolean;
47
47
  tooltipExcludeTotalItem?: boolean;
48
+ testId?: string;
48
49
  }>, {
49
50
  chartType: ChartType;
50
51
  dataSets: () => any[];
@@ -83,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
83
84
  valuePrefix: string;
84
85
  indicateIncompleteData: boolean;
85
86
  tooltipExcludeTotalItem: boolean;
87
+ testId: string;
86
88
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
87
89
  "update:chartType": (chartType: ChartType) => void;
88
90
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -130,6 +132,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
130
132
  valuePrefix?: string;
131
133
  indicateIncompleteData?: boolean;
132
134
  tooltipExcludeTotalItem?: boolean;
135
+ testId?: string;
133
136
  }>, {
134
137
  chartType: ChartType;
135
138
  dataSets: () => any[];
@@ -168,10 +171,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
168
171
  valuePrefix: string;
169
172
  indicateIncompleteData: boolean;
170
173
  tooltipExcludeTotalItem: boolean;
174
+ testId: string;
171
175
  }>>> & {
172
176
  "onUpdate:chartType"?: (chartType: ChartType) => any;
173
177
  }, {
174
178
  header: string;
179
+ testId: string;
175
180
  height: string;
176
181
  loading: boolean;
177
182
  visibleIds: unknown[];
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartPlane.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-dd60ff0e"]]);
3
+ // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a685cf5e"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };