@ironsource/shared-ui 2.1.12-test.98 → 2.1.12

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 (248) 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/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
  11. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  12. package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
  13. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  14. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  15. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  16. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  17. package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
  18. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  19. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  20. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  21. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  22. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  23. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  24. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  25. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  26. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  27. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  28. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  29. 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
  30. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  31. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  32. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  33. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  34. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  35. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  36. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  37. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  38. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  39. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  40. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  41. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  42. package/components/chart/Chart.vue.d.ts +21 -1
  43. package/components/chart/Chart.vue.js +3 -3
  44. package/components/chart/Chart.vue2.js +130 -114
  45. package/components/chart/ChartHeader.vue.d.ts +5 -0
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +49 -44
  48. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  49. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  50. package/components/chart/ChartHeaderTrend.vue2.js +43 -39
  51. package/components/chart/ChartLegend.vue.d.ts +5 -0
  52. package/components/chart/ChartLegend.vue.js +3 -3
  53. package/components/chart/ChartLegend.vue2.js +76 -71
  54. package/components/chart/ChartPlane.vue.d.ts +15 -0
  55. package/components/chart/ChartPlane.vue.js +5 -5
  56. package/components/chart/ChartPlane.vue2.js +173 -156
  57. package/components/chart/ChartStoryArgs.d.ts +17 -0
  58. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  59. package/components/chart/ChartTooltip.vue.js +2 -2
  60. package/components/chart/ChartTooltip.vue2.js +39 -35
  61. package/components/chart/LegendSorting.vue.d.ts +5 -0
  62. package/components/chart/LegendSorting.vue.js +16 -14
  63. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  64. package/components/chart/SettingsHeader.vue.js +3 -3
  65. package/components/chart/SettingsHeader.vue2.js +36 -29
  66. package/components/chart/TooltipHeader.vue.js +3 -3
  67. package/components/chart/TooltipHeader.vue2.js +26 -26
  68. package/components/chart/colorPalette.d.ts +2 -1
  69. package/components/chart/colorPalette.js +47 -33
  70. package/components/chart/composables/useColorsMap.d.ts +3 -1
  71. package/components/chart/composables/useColorsMap.js +32 -30
  72. package/components/chart/consts.d.ts +5 -1
  73. package/components/chart/consts.js +30 -26
  74. package/components/chart/index.d.ts +77 -1
  75. package/components/chart/mockData.d.ts +15 -0
  76. package/components/chart/types.d.ts +3 -1
  77. package/components/chart/types.js +5 -5
  78. package/components/chart/utils/utils.d.ts +1 -1
  79. package/components/chart/utils/utils.js +20 -14
  80. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  81. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  82. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  83. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  84. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  85. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  86. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  87. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  88. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  89. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  90. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  91. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  92. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  93. package/components/columnConfigurator/consts.d.ts +1 -0
  94. package/components/columnConfigurator/consts.js +4 -0
  95. package/components/columnConfigurator/index.d.ts +73 -0
  96. package/components/columnConfigurator/index.js +6 -0
  97. package/components/columnConfigurator/mockData.d.ts +30 -0
  98. package/components/columnConfigurator/utils.d.ts +2 -0
  99. package/components/columnConfigurator/utils.js +18 -0
  100. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  101. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  102. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  103. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  104. package/components/columnPicker/OptionChip.vue.js +7 -0
  105. package/components/columnPicker/OptionChip.vue2.js +46 -0
  106. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  107. package/components/columnPicker/RemoveButton.vue.js +7 -0
  108. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  109. package/components/columnPicker/index.d.ts +388 -0
  110. package/components/columnPicker/index.js +6 -0
  111. package/components/columnPicker/mockData.d.ts +8 -0
  112. package/components/dateRange/common/DateRange.common.js +60 -60
  113. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  114. package/components/dialog/v3/index.d.ts +46 -46
  115. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  116. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  117. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  118. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  119. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  120. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  121. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  122. package/components/dialog/v4/DialogV4.vue.js +3 -3
  123. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  124. package/components/dialog/v4/index.d.ts +157 -157
  125. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  126. package/components/dropdown/v3/index.d.ts +20 -20
  127. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  128. package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
  129. package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
  130. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  131. package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
  132. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  133. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  134. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  135. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  136. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  137. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  138. package/components/dropdown/v4/index.d.ts +81 -3
  139. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  140. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  141. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  142. package/components/emptyState/v4/index.d.ts +20 -1
  143. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  144. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  145. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  146. package/components/includeExclude/index.d.ts +70 -70
  147. package/components/input/v4/TextField.vue.d.ts +12 -0
  148. package/components/input/v4/TextField.vue.js +3 -3
  149. package/components/input/v4/TextField.vue2.js +129 -105
  150. package/components/input/v4/index.d.ts +46 -2
  151. package/components/link/Link.vue.d.ts +95 -0
  152. package/components/link/Link.vue.js +7 -0
  153. package/components/link/Link.vue2.js +65 -0
  154. package/components/link/index.d.ts +296 -0
  155. package/components/link/index.js +6 -0
  156. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  157. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  158. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  159. package/components/radioButton/v3/index.d.ts +20 -1
  160. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  161. package/components/sortableList/LoaderBars.vue.js +7 -0
  162. package/components/sortableList/LoaderBars.vue2.js +25 -0
  163. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  164. package/components/sortableList/SortableItem.vue.js +5 -5
  165. package/components/sortableList/SortableItem.vue2.js +86 -70
  166. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  167. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  168. package/components/sortableList/SortableList.types.d.ts +1 -0
  169. package/components/sortableList/SortableList.vue.d.ts +12 -2
  170. package/components/sortableList/SortableList.vue.js +5 -5
  171. package/components/sortableList/SortableList.vue2.js +111 -113
  172. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  173. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  174. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  175. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  176. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  177. package/components/sortableList/composables/useHoverEffect.js +1 -1
  178. package/components/sortableList/consts.d.ts +2 -0
  179. package/components/sortableList/consts.js +4 -2
  180. package/components/sortableList/index.d.ts +77 -39
  181. package/components/table/common/consts.d.ts +2 -0
  182. package/components/table/common/consts.js +6 -4
  183. package/components/table/v4/DataGrid.vue.d.ts +12 -7
  184. package/components/table/v4/DataGrid.vue.js +4 -4
  185. package/components/table/v4/DataGrid.vue2.js +273 -268
  186. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  187. package/components/table/v4/DataGridContainer.vue.js +7 -0
  188. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  189. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  190. package/components/table/v4/DataGridHeader.vue.js +7 -0
  191. package/components/table/v4/DataGridHeader.vue2.js +84 -0
  192. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  193. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  194. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  195. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  196. package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
  197. package/components/table/v4/index.d.ts +646 -332
  198. package/components/table/v4/index.js +11 -5
  199. package/components/table/v4/storyUtils.d.ts +25 -0
  200. package/components/tagsField/TagsField.types.d.ts +4 -0
  201. package/components/tagsField/TagsField.vue.d.ts +65 -0
  202. package/components/tagsField/TagsField.vue.js +7 -0
  203. package/components/tagsField/TagsField.vue2.js +90 -0
  204. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  205. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  206. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  207. package/components/tagsField/consts.d.ts +1 -0
  208. package/components/tagsField/consts.js +4 -0
  209. package/components/tagsField/index.d.ts +75 -0
  210. package/components/tagsField/index.js +6 -0
  211. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  212. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  213. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  214. package/components/tooltip/v4/index.d.ts +20 -1
  215. package/index.d.ts +2675 -1649
  216. package/index.js +137 -121
  217. package/package.json +18 -1
  218. package/testids/index.d.ts +47 -1
  219. package/testids/index.js +40 -32
  220. package/utils/date.d.ts +1 -0
  221. package/utils/date.js +9 -0
  222. package/utils/formatNumbers.d.ts +1 -1
  223. package/utils/formatNumbers.js +38 -21
  224. package/utils/object.d.ts +2 -0
  225. package/utils/object.js +9 -5
  226. package/utils/search.js +1 -1
  227. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
  228. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  229. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  230. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  231. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  232. package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
  233. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
  234. package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
  235. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  236. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  237. package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
  238. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  239. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  240. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  241. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  242. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  243. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  244. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  245. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  246. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
  247. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
  248. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
@@ -1,54 +1,59 @@
1
- import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css"; import { defineComponent as f, computed as v, openBlock as r, createElementBlock as p, normalizeClass as y, createVNode as u, unref as t, withCtx as o, createElementVNode as s, createBlock as d, createTextVNode as a, toDisplayString as i, createCommentVNode as n, pushScopeId as g, popScopeId as C } from "vue";
2
- import l 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
5
  import k from "../tooltip/v4/TooltipV4.vue.js";
6
- import { TrendDirection as m } from "./types.js";
7
- const h = (e) => (g("data-v-db8a902c"), e = e(), C(), e), x = { class: "trend-tooltip" }, N = {
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
- }, P = /* @__PURE__ */ h(() => /* @__PURE__ */ s("hr", null, null, -1)), _ = /* @__PURE__ */ h(() => /* @__PURE__ */ s("hr", null, null, -1)), L = /* @__PURE__ */ f({
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: m.UP },
15
- trendTooltip: { default: null }
16
+ direction: { default: f.UP },
17
+ trendTooltip: { default: null },
18
+ testId: { default: "" }
16
19
  },
17
- setup(e) {
18
- const c = e, T = v(
19
- () => c.trendTooltip?.header || c.trendTooltip?.rangeCurrent || c.trendTooltip?.rangePrevious
20
- );
21
- return (I, S) => (r(), p("div", {
22
- class: y(["chart-trend", [`chart-trend--${e.direction}`]])
23
- }, [
24
- u(t(k), {
25
- disabled: !t(T)
20
+ setup(t) {
21
+ const r = t, v = p(
22
+ () => r.trendTooltip?.header || r.trendTooltip?.rangeCurrent || r.trendTooltip?.rangePrevious
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)
26
31
  }, {
27
32
  tooltip: o(() => [
28
- s("div", x, [
29
- e.trendTooltip?.header ? (r(), d(t(l), {
33
+ u("div", P, [
34
+ t.trendTooltip?.header ? (n(), c(e(d), {
30
35
  key: 0,
31
36
  class: "trend-tooltip__header",
32
37
  variant: "subtitle2"
33
38
  }, {
34
39
  default: o(() => [
35
- a(i(e.trendTooltip.header), 1)
40
+ a(l(t.trendTooltip.header), 1)
36
41
  ]),
37
42
  _: 1
38
- })) : n("", !0),
39
- e.trendTooltip?.rangeCurrent ? (r(), d(t(l), {
43
+ })) : s("", !0),
44
+ t.trendTooltip?.rangeCurrent ? (n(), c(e(d), {
40
45
  key: 1,
41
46
  variant: "body2",
42
47
  class: "trend-tooltip__text"
43
48
  }, {
44
49
  default: o(() => [
45
- a(i(e.trendTooltip.rangeCurrent), 1)
50
+ a(l(t.trendTooltip.rangeCurrent), 1)
46
51
  ]),
47
52
  _: 1
48
- })) : n("", !0),
49
- e.trendTooltip?.rangeCurrent && e.trendTooltip?.rangePrevious ? (r(), p("div", N, [
50
- P,
51
- u(t(l), {
53
+ })) : s("", !0),
54
+ t.trendTooltip?.rangeCurrent && t.trendTooltip?.rangePrevious ? (n(), m("div", E, [
55
+ S,
56
+ i(e(d), {
52
57
  class: "separator__text",
53
58
  variant: "caption"
54
59
  }, {
@@ -57,40 +62,39 @@ const h = (e) => (g("data-v-db8a902c"), e = e(), C(), e), x = { class: "trend-to
57
62
  ]),
58
63
  _: 1
59
64
  }),
60
- _
61
- ])) : n("", !0),
62
- e.trendTooltip?.rangePrevious ? (r(), d(t(l), {
65
+ V
66
+ ])) : s("", !0),
67
+ t.trendTooltip?.rangePrevious ? (n(), c(e(d), {
63
68
  key: 3,
64
69
  variant: "body2",
65
70
  class: "trend-tooltip__text"
66
71
  }, {
67
72
  default: o(() => [
68
- a(i(e.trendTooltip.rangePrevious), 1)
73
+ a(l(t.trendTooltip.rangePrevious), 1)
69
74
  ]),
70
75
  _: 1
71
- })) : n("", !0)
76
+ })) : s("", !0)
72
77
  ])
73
78
  ]),
74
79
  default: o(() => [
75
- e.direction !== t(m).NEUTRAL ? (r(), d(t(b), {
76
- key: 0,
80
+ i(e(b), {
77
81
  class: "trend-icon",
78
82
  type: "bold",
79
- name: `arrow-${e.direction}`,
83
+ name: e(g),
80
84
  size: "15px"
81
- }, null, 8, ["name"])) : n("", !0),
82
- u(t(l), { variant: "chipLabel" }, {
85
+ }, null, 8, ["name"]),
86
+ i(e(d), { variant: "chipLabel" }, {
83
87
  default: o(() => [
84
- a(i(e.value), 1)
88
+ a(l(t.value), 1)
85
89
  ]),
86
90
  _: 1
87
91
  })
88
92
  ]),
89
93
  _: 1
90
94
  }, 8, ["disabled"])
91
- ], 2));
95
+ ], 16));
92
96
  }
93
97
  });
94
98
  export {
95
- L as default
99
+ M as default
96
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
  };
@@ -43,6 +43,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
43
43
  colorsMap: Record<string, string>;
44
44
  valueSuffix?: string;
45
45
  valuePrefix?: string;
46
+ indicateIncompleteData?: boolean;
47
+ tooltipExcludeTotalItem?: boolean;
48
+ testId?: string;
46
49
  }>, {
47
50
  chartType: ChartType;
48
51
  dataSets: () => any[];
@@ -79,6 +82,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
79
82
  colorsMap: () => {};
80
83
  valueSuffix: string;
81
84
  valuePrefix: string;
85
+ indicateIncompleteData: boolean;
86
+ tooltipExcludeTotalItem: boolean;
87
+ testId: string;
82
88
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
89
  "update:chartType": (chartType: ChartType) => void;
84
90
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -124,6 +130,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
124
130
  colorsMap: Record<string, string>;
125
131
  valueSuffix?: string;
126
132
  valuePrefix?: string;
133
+ indicateIncompleteData?: boolean;
134
+ tooltipExcludeTotalItem?: boolean;
135
+ testId?: string;
127
136
  }>, {
128
137
  chartType: ChartType;
129
138
  dataSets: () => any[];
@@ -160,10 +169,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
160
169
  colorsMap: () => {};
161
170
  valueSuffix: string;
162
171
  valuePrefix: string;
172
+ indicateIncompleteData: boolean;
173
+ tooltipExcludeTotalItem: boolean;
174
+ testId: string;
163
175
  }>>> & {
164
176
  "onUpdate:chartType"?: (chartType: ChartType) => any;
165
177
  }, {
166
178
  header: string;
179
+ testId: string;
167
180
  height: string;
168
181
  loading: boolean;
169
182
  visibleIds: unknown[];
@@ -198,6 +211,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
198
211
  tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
199
212
  tooltipOrder: TooltipOrder;
200
213
  colorsMap: Record<string, string>;
214
+ indicateIncompleteData: boolean;
215
+ tooltipExcludeTotalItem: boolean;
201
216
  }>, {
202
217
  "subheader-tooltip"?(_: {}): any;
203
218
  }>;
@@ -1,7 +1,7 @@
1
- import o from "./ChartPlane.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4f67d41d"]]);
1
+ import e from "./ChartPlane.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
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
  };