@ironsource/shared-ui 2.1.12-rc.5 → 2.1.12-rc.51

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 (358) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  5. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  6. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  8. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  9. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  10. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css +1 -0
  11. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  12. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  13. package/DataGrid.vue_vue_type_style_index_0_scoped_ef67c78e_lang.css +1 -0
  14. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  15. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  16. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  17. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  18. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  19. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  20. package/DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css +1 -0
  21. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  22. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  23. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  24. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  25. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  26. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  27. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  28. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  29. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  30. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  31. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  32. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  33. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  34. package/SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css +1 -0
  35. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  36. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  37. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  38. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  39. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  40. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  41. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  42. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  43. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  44. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  45. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  46. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  47. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  48. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  49. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  50. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
  51. package/components/appIcon/index.d.ts +3 -3
  52. package/components/banner/Banner.vue.d.ts +3 -3
  53. package/components/banner/index.d.ts +7 -7
  54. package/components/button/common/consts.d.ts +1 -0
  55. package/components/button/v3/Button.vue.d.ts +3 -3
  56. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  57. package/components/button/v3/IconButton.vue.d.ts +3 -3
  58. package/components/button/v3/index.d.ts +14 -14
  59. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  60. package/components/button/v4/ButtonV4.vue.js +4 -4
  61. package/components/button/v4/ButtonV4.vue2.js +28 -27
  62. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  63. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  64. package/components/chart/Chart.vue.d.ts +128 -10
  65. package/components/chart/Chart.vue.js +4 -4
  66. package/components/chart/Chart.vue2.js +152 -86
  67. package/components/chart/ChartHeader.vue.d.ts +41 -7
  68. package/components/chart/ChartHeader.vue.js +2 -2
  69. package/components/chart/ChartHeader.vue2.js +67 -65
  70. package/components/chart/ChartHeaderTrend.vue.d.ts +24 -5
  71. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  72. package/components/chart/ChartHeaderTrend.vue2.js +89 -21
  73. package/components/chart/ChartLegend.vue.d.ts +29 -0
  74. package/components/chart/ChartLegend.vue.js +2 -2
  75. package/components/chart/ChartLegend.vue2.js +88 -65
  76. package/components/chart/ChartPlane.vue.d.ts +111 -13
  77. package/components/chart/ChartPlane.vue.js +4 -4
  78. package/components/chart/ChartPlane.vue2.js +321 -240
  79. package/components/chart/ChartStoryArgs.d.ts +63 -2
  80. package/components/chart/ChartTooltip.vue.d.ts +27 -2
  81. package/components/chart/ChartTooltip.vue.js +2 -2
  82. package/components/chart/ChartTooltip.vue2.js +52 -54
  83. package/components/chart/LegendSorting.vue.d.ts +42 -0
  84. package/components/chart/LegendSorting.vue.js +47 -0
  85. package/components/chart/LegendSorting.vue2.js +4 -0
  86. package/components/chart/SettingsHeader.vue.d.ts +20 -3
  87. package/components/chart/SettingsHeader.vue.js +3 -3
  88. package/components/chart/SettingsHeader.vue2.js +39 -31
  89. package/components/chart/SubHeader.vue.d.ts +52 -0
  90. package/components/chart/SubHeader.vue.js +7 -0
  91. package/components/chart/SubHeader.vue2.js +61 -0
  92. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  93. package/components/chart/TooltipHeader.vue.js +7 -0
  94. package/components/chart/TooltipHeader.vue2.js +69 -0
  95. package/components/chart/colorPalette.d.ts +5 -0
  96. package/components/chart/colorPalette.js +68 -0
  97. package/components/chart/composables/useChartHeight.d.ts +2 -2
  98. package/components/chart/composables/useChartHeight.js +16 -14
  99. package/components/chart/composables/useColorsMap.d.ts +5 -3
  100. package/components/chart/composables/useColorsMap.js +43 -12
  101. package/components/chart/consts.d.ts +29 -8
  102. package/components/chart/consts.js +45 -26
  103. package/components/chart/index.d.ts +492 -76
  104. package/components/chart/mockData.d.ts +33 -5
  105. package/components/chart/types.d.ts +35 -6
  106. package/components/chart/types.js +5 -2
  107. package/components/chart/utils/highlightUtils.d.ts +3 -0
  108. package/components/chart/utils/highlightUtils.js +18 -0
  109. package/components/chart/utils/utils.d.ts +3 -3
  110. package/components/chart/utils/utils.js +25 -10
  111. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  112. package/components/checkbox/v3/index.d.ts +7 -7
  113. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  114. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  115. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  116. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  117. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  118. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  119. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  120. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  121. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  122. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  123. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  124. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  125. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  126. package/components/columnConfigurator/consts.d.ts +1 -0
  127. package/components/columnConfigurator/consts.js +4 -0
  128. package/components/columnConfigurator/index.d.ts +73 -0
  129. package/components/columnConfigurator/index.js +6 -0
  130. package/components/columnConfigurator/mockData.d.ts +30 -0
  131. package/components/columnConfigurator/utils.d.ts +2 -0
  132. package/components/columnConfigurator/utils.js +18 -0
  133. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  134. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  135. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  136. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  137. package/components/columnPicker/OptionChip.vue.js +7 -0
  138. package/components/columnPicker/OptionChip.vue2.js +46 -0
  139. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  140. package/components/columnPicker/RemoveButton.vue.js +7 -0
  141. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  142. package/components/columnPicker/index.d.ts +388 -0
  143. package/components/columnPicker/index.js +6 -0
  144. package/components/columnPicker/mockData.d.ts +8 -0
  145. package/components/dateRange/common/DateRange.common.js +100 -94
  146. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  147. package/components/dateRange/common/DateServices.common.js +88 -92
  148. package/components/dateRange/common/consts.common.d.ts +5 -0
  149. package/components/dateRange/common/consts.common.js +9 -3
  150. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  151. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  152. package/components/dateRange/v3/index.d.ts +7 -7
  153. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  154. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  155. package/components/dateRange/v4/index.d.ts +7 -7
  156. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  157. package/components/dialog/v3/index.d.ts +46 -46
  158. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  159. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  160. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  161. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  162. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  163. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  164. package/components/dialog/v4/DialogV4.vue.d.ts +13 -12
  165. package/components/dialog/v4/DialogV4.vue.js +4 -4
  166. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  167. package/components/dialog/v4/index.d.ts +164 -164
  168. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  169. package/components/dropdown/common/Dropdown.common.js +161 -149
  170. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  171. package/components/dropdown/v3/index.d.ts +39 -39
  172. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  173. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  174. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  175. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  176. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  177. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  178. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  179. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  180. package/components/dropdown/v4/ConditionalDropdown.vue2.js +205 -176
  181. package/components/dropdown/v4/DropdownV4.vue.d.ts +36 -1
  182. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  183. package/components/dropdown/v4/DropdownV4.vue2.js +258 -199
  184. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  185. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  186. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  187. package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
  188. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  189. package/components/dropdown/v4/OptionV4.vue2.js +162 -117
  190. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  191. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  192. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  193. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  194. package/components/dropdown/v4/index.d.ts +703 -162
  195. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  196. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  197. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  198. package/components/emptyState/v4/index.d.ts +20 -1
  199. package/components/forms/FormRow.vue.d.ts +9 -2
  200. package/components/forms/FormRow.vue.js +3 -3
  201. package/components/forms/FormRow.vue2.js +25 -14
  202. package/components/forms/index.d.ts +25 -5
  203. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  204. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  205. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  206. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  207. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  208. package/components/includeExclude/index.d.ts +110 -110
  209. package/components/input/v4/TextField.vue.d.ts +12 -0
  210. package/components/input/v4/TextField.vue.js +3 -3
  211. package/components/input/v4/TextField.vue2.js +129 -105
  212. package/components/input/v4/index.d.ts +46 -2
  213. package/components/link/Link.vue.d.ts +95 -0
  214. package/components/link/Link.vue.js +7 -0
  215. package/components/link/Link.vue2.js +65 -0
  216. package/components/link/index.d.ts +296 -0
  217. package/components/link/index.js +6 -0
  218. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  219. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  220. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  221. package/components/radioButton/v3/index.d.ts +20 -1
  222. package/components/search/v3/index.d.ts +3 -3
  223. package/components/shared/FieldLabel.vue.d.ts +19 -7
  224. package/components/shared/FieldLabel.vue.js +3 -3
  225. package/components/shared/FieldLabel.vue2.js +50 -37
  226. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  227. package/components/sortableList/LoaderBars.vue.js +7 -0
  228. package/components/sortableList/LoaderBars.vue2.js +25 -0
  229. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  230. package/components/sortableList/SortableItem.vue.js +5 -5
  231. package/components/sortableList/SortableItem.vue2.js +86 -70
  232. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  233. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  234. package/components/sortableList/SortableList.types.d.ts +1 -0
  235. package/components/sortableList/SortableList.vue.d.ts +12 -2
  236. package/components/sortableList/SortableList.vue.js +5 -5
  237. package/components/sortableList/SortableList.vue2.js +111 -113
  238. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  239. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  240. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  241. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  242. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  243. package/components/sortableList/composables/useHoverEffect.js +1 -1
  244. package/components/sortableList/consts.d.ts +2 -0
  245. package/components/sortableList/consts.js +4 -2
  246. package/components/sortableList/index.d.ts +77 -39
  247. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  248. package/components/switch/v4/SwitchV4.vue.js +3 -3
  249. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  250. package/components/switch/v4/index.d.ts +29 -0
  251. package/components/table/common/Table.common.d.ts +0 -1
  252. package/components/table/common/Table.common.js +38 -39
  253. package/components/table/common/Table.types.d.ts +2 -0
  254. package/components/table/common/consts.d.ts +1 -0
  255. package/components/table/common/consts.js +2 -1
  256. package/components/table/v4/DataGrid.vue.d.ts +19 -7
  257. package/components/table/v4/DataGrid.vue.js +5 -5
  258. package/components/table/v4/DataGrid.vue2.js +375 -307
  259. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  260. package/components/table/v4/DataGridContainer.vue.js +7 -0
  261. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  262. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  263. package/components/table/v4/DataGridHeader.vue.js +7 -0
  264. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  265. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  266. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  267. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  268. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  269. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  270. package/components/table/v4/index.d.ts +581 -298
  271. package/components/table/v4/index.js +7 -4
  272. package/components/table/v4/storyUtils.d.ts +27 -0
  273. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  274. package/components/tabs/v3/index.d.ts +7 -7
  275. package/components/tagsField/TagsField.types.d.ts +4 -0
  276. package/components/tagsField/TagsField.vue.d.ts +65 -0
  277. package/components/tagsField/TagsField.vue.js +7 -0
  278. package/components/tagsField/TagsField.vue2.js +90 -0
  279. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  280. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  281. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  282. package/components/tagsField/consts.d.ts +1 -0
  283. package/components/tagsField/consts.js +4 -0
  284. package/components/tagsField/index.d.ts +75 -0
  285. package/components/tagsField/index.js +6 -0
  286. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  287. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  288. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  289. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  290. package/components/tooltip/v3/index.d.ts +7 -7
  291. package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
  292. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  293. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  294. package/components/tooltip/v4/index.d.ts +27 -8
  295. package/components/typography/Text.vue.d.ts +3 -3
  296. package/components/typography/index.d.ts +7 -7
  297. package/composables/useDateService.d.ts +7 -0
  298. package/composables/useDateService.js +10 -0
  299. package/composables/useFormValidation.d.ts +1 -0
  300. package/composables/useFormValidation.js +32 -27
  301. package/consts/common.d.ts +1 -0
  302. package/consts/common.js +4 -0
  303. package/consts/regex.d.ts +1 -0
  304. package/consts/regex.js +2 -1
  305. package/index.d.ts +10385 -8429
  306. package/index.js +158 -134
  307. package/mocks/apps.d.ts +1 -0
  308. package/mocks/optionsWithIcons.d.ts +2 -0
  309. package/package.json +22 -1
  310. package/testids/index.d.ts +47 -1
  311. package/testids/index.js +40 -32
  312. package/utils/date.d.ts +1 -0
  313. package/utils/date.js +9 -0
  314. package/utils/formatNumbers.d.ts +1 -1
  315. package/utils/formatNumbers.js +39 -8
  316. package/utils/index.js +7 -0
  317. package/utils/object.d.ts +2 -0
  318. package/utils/object.js +9 -5
  319. package/utils/search.js +1 -1
  320. package/utils/text.d.ts +3 -0
  321. package/utils/text.js +24 -5
  322. package/utils/totals.d.ts +5 -0
  323. package/utils/totals.js +9 -0
  324. package/utils/utils.d.ts +1 -0
  325. package/utils/utils.js +4 -0
  326. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  327. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  328. package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +0 -1
  329. package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +0 -1
  330. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +0 -1
  331. package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +0 -1
  332. package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +0 -1
  333. package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +0 -1
  334. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  335. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
  336. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  337. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  338. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  339. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  340. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  341. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  342. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  343. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  344. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  345. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  346. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  347. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  348. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  349. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  350. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  351. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  352. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  353. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  354. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  355. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  356. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  357. package/components/chart/composables/useChartValues.d.ts +0 -12
  358. package/components/chart/composables/useChartValues.js +0 -32
@@ -1,34 +1,47 @@
1
- import "../../ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css"; import { defineComponent as j, useCssVars as q, unref as s, computed as a, ref as C, onMounted as J, watch as g, nextTick as Q, openBlock as f, createElementBlock as X, createElementVNode as h, createVNode as ee, isRef as te, createSlots as ae, withCtx as oe, renderSlot as re, normalizeStyle as le, createBlock as b, createCommentVNode as I } from "vue";
2
- import { Chart as H, ArcElement as ie, LineElement as ne, BarElement as se, PointElement as ce, LineController as de, BarController as ue, PieController as pe, ScatterController as fe, CategoryScale as he, LinearScale as me, Filler as ve, Tooltip as ye } from "chart.js";
3
- import { HoverVerticalLine as Ce } from "./plugins/HoverVerticalLine.js";
4
- import { formatValue as O, calcStepSize as ge } from "./utils/utils.js";
5
- import { DEFAULT_TICK_COUNT as be, TOTALS_HELPER_KEY as P, POINT_BORDER_COLOR as Te, TICK_LABEL_COLOR as F, TICK_LABEL_FONT as N, GRID_LINE_COLOR as M, HEADER_HEIGHT as ke, COMPACT_HEADER_HEIGHT as xe } from "./consts.js";
6
- import { ChartType as i } from "./types.js";
7
- import { useTooltipPosition as Se } from "./composables/useTooltipPosition.js";
8
- import Le from "./ChartTooltip.vue.js";
9
- import { hexColorToRgba as Ee } from "../../utils/color.js";
10
- import { useChartValues as Be } from "./composables/useChartValues.js";
11
- import Ae from "./ChartHeader.vue.js";
12
- import { useVModel as Re } from "@vueuse/core";
13
- import we from "../emptyState/v4/EmptyStateV4.vue.js";
14
- import Ve from "./ChartLoader.vue.js";
15
- import { useColorsMap as De } from "./composables/useColorsMap.js";
16
- const Ie = {
1
+ import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; import { defineComponent as ne, useCssVars as se, unref as n, computed as i, ref as E, onMounted as de, watch as v, nextTick as ce, openBlock as p, createElementBlock as S, createVNode as ue, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as L, createElementVNode as R, normalizeStyle as Te, createBlock as I, mergeProps as ve } from "vue";
2
+ import { Chart as V, ArcElement as ye, LineElement as Ce, BarElement as ge, PointElement as be, LineController as xe, BarController as Ae, PieController as ke, ScatterController as Ee, CategoryScale as Se, LinearScale as Le, Filler as Re, Tooltip as Ie } from "chart.js";
3
+ import { HoverVerticalLine as De } from "./plugins/HoverVerticalLine.js";
4
+ import { prepareTickLabel as Be, formatValue as Oe } from "./utils/utils.js";
5
+ import { DEFAULT_TICK_COUNT as Pe, TOTALS_HELPER_KEY as F, LINE_DASH_STYLE as Ne, BASE_COLOR_KEY as M, CHART_PADDING as He, POINT_BORDER_COLOR as we, TICK_LABEL_COLOR as Y, TICK_LABEL_FONT as K, TICKS_EXTRA_PADDING as Ve, GRID_LINE_COLOR as U, HEADER_HEIGHT as Fe, COMPACT_HEADER_HEIGHT as Me, HOVER_AREA_TRANSPARENCY as Ye, HOVER_TRANSPARENCY as y, CHART_ITEM_TRANSPARENCY as Ke, INCOMPLETE_DATA_BAR_TRANSPARENCY as Ue, STACKED_LINE_TRANSPARENCY as _e } from "./consts.js";
6
+ import { ChartType as d, DateInterval as Ge, TooltipOrder as _, TrendDirection as $e } from "./types.js";
7
+ import { useTooltipPosition as ze } from "./composables/useTooltipPosition.js";
8
+ import We from "./ChartTooltip.vue.js";
9
+ import { hexColorToRgba as h } from "../../utils/color.js";
10
+ import Ze from "./ChartHeader.vue.js";
11
+ import { useMemoize as Xe, useVModel as je } from "@vueuse/core";
12
+ import qe from "../emptyState/v4/EmptyStateV4.vue.js";
13
+ import Je from "./ChartLoader.vue.js";
14
+ import { DEFAULT_CHART_COLOR as Qe } from "./colorPalette.js";
15
+ import { TotalType as G, calculateTotal as et } from "../../utils/totals.js";
16
+ import { isNullOrUndefined as tt } from "../../utils/utils.js";
17
+ import { storeOriginalDatasetColors as at, restoreOriginalDatasetColors as ot } from "./utils/highlightUtils.js";
18
+ import { useTestIdAttrs as lt } from "../../utils/testIds.js";
19
+ import { ChartTestIdModifiers as $ } from "../../testids/index.js";
20
+ const rt = { class: "chart-plane-container" }, it = {
17
21
  key: 0,
22
+ class: "header-wrapper"
23
+ }, nt = {
24
+ key: 1,
18
25
  class: "chart-plane"
19
- }, He = { class: "header-wrapper" }, Oe = { class: "chart" }, Je = /* @__PURE__ */ j({
26
+ }, st = { class: "chart" }, Rt = /* @__PURE__ */ ne({
20
27
  __name: "ChartPlane",
21
28
  props: {
22
29
  dataSets: { default: () => [] },
23
30
  visibleIds: { default: () => [] },
24
- chartType: { default: i.Line },
31
+ highlightedId: { default: null },
32
+ chartType: { default: d.Line },
25
33
  parsing: { default: void 0 },
26
34
  xAxisFormat: { default: "string" },
27
35
  yAxisFormat: { default: "number" },
28
- tickCount: { default: be },
36
+ xAxisDateInterval: { default: Ge.DAILY },
37
+ tickCount: { default: Pe },
38
+ truncateTickLabels: { type: Boolean, default: !1 },
29
39
  header: { default: "" },
30
40
  subheader: { default: "" },
41
+ subheaderTooltip: { default: null },
42
+ keepSubheaderVisible: { type: Boolean, default: !1 },
31
43
  loading: { type: Boolean, default: !1 },
44
+ empty: { type: Boolean, default: !1 },
32
45
  noDataIcon: { default: "file-search" },
33
46
  noDataTitle: { default: "No data to display" },
34
47
  noDataSubtitle: { default: "Search again with different filters" },
@@ -36,271 +49,339 @@ const Ie = {
36
49
  typeSwitcher: { type: Boolean, default: !0 },
37
50
  height: { default: "100%" },
38
51
  compactHeader: { type: Boolean, default: !1 },
52
+ noteText: { default: "" },
39
53
  tooltipRespectsTopEdge: { type: Boolean, default: !0 },
54
+ tooltipTotalType: { default: G.Total },
55
+ tooltipTotalCalcFn: { type: Function, default: et },
56
+ tooltipOrder: { default: _.Legend },
40
57
  trendValue: { default: null },
41
- trendDirection: { default: "up" },
42
- totalsChart: { type: Boolean, default: !1 }
58
+ trendDirection: { default: $e.UP },
59
+ trendTooltip: { default: null },
60
+ totalsChart: { type: Boolean, default: !1 },
61
+ colorsMap: { default: () => ({}) },
62
+ valueSuffix: { default: "" },
63
+ valuePrefix: { default: "" },
64
+ indicateIncompleteData: { type: Boolean, default: !1 },
65
+ tooltipExcludeTotalItem: { type: Boolean, default: !1 },
66
+ testId: { default: "" }
43
67
  },
44
68
  emits: ["update:chartType"],
45
69
  setup(o, { emit: z }) {
46
70
  const e = o;
47
- q((t) => ({
48
- "86c5ce4e": s(Z),
49
- "27543fc4": o.height
50
- })), H.register(
51
- ie,
52
- ne,
53
- se,
54
- ce,
55
- de,
56
- ue,
57
- pe,
58
- fe,
59
- he,
60
- me,
61
- ve,
71
+ se((t) => ({
72
+ "6a964917": n(oe),
73
+ "322ee3fc": o.height
74
+ }));
75
+ const W = Xe(Be);
76
+ V.register(
62
77
  ye,
63
- Ce
78
+ Ce,
79
+ ge,
80
+ be,
81
+ xe,
82
+ Ae,
83
+ ke,
84
+ Ee,
85
+ Se,
86
+ Le,
87
+ Re,
88
+ Ie,
89
+ De
64
90
  );
65
- const m = Re(e, "chartType", z), K = a(
91
+ const C = je(e, "chartType", z), Z = i(
66
92
  () => e.withAnimation ? "" : "none"
67
- ), c = C(null);
68
- let n = null;
69
- const T = a(() => e.dataSets.length === 0), k = a(() => !e.loading && !T.value), v = () => {
70
- c.value && (n && n.destroy(), n = new H(c.value, A.value));
71
- }, _ = () => {
72
- n && (n.data.datasets = E.value, n.options = A.value.options, n.update(K.value));
93
+ ), T = E(null);
94
+ let s = null;
95
+ const D = i(() => e.empty || e.dataSets.length === 0), u = i(() => !e.loading && !D.value), g = () => {
96
+ T.value && (s && s.destroy(), s = new V(T.value, P.value));
97
+ }, X = () => {
98
+ s && (s.data.datasets = O.value, s.options = P.value.options, s.update(Z.value));
73
99
  };
74
- J(v), g(() => e.chartType, v), g(k, async (t) => {
75
- t && (await Q(), v());
76
- }), g([() => e.visibleIds, () => e.dataSets], _);
77
- const d = a(() => e.totalsChart), u = a(
78
- () => e.chartType === i.StackedLine || e.chartType === i.StackedBar || d.value
79
- ), x = a(
80
- () => e.chartType === i.Line || e.chartType === i.StackedLine
81
- ), S = a(() => d.value ? { ...e.parsing, xAxisKey: P } : e.parsing), L = a(() => d.value ? e.dataSets.map((t) => ({
100
+ de(g), v(() => e.chartType, g), v(u, async (t) => {
101
+ t && (await ce(), g());
102
+ }), v(
103
+ [
104
+ () => e.visibleIds,
105
+ () => e.dataSets,
106
+ () => e.valuePrefix,
107
+ () => e.valueSuffix
108
+ ],
109
+ X
110
+ );
111
+ const f = i(() => e.totalsChart), b = i(
112
+ () => e.chartType === d.StackedLine || e.chartType === d.StackedBar || f.value
113
+ ), x = i(
114
+ () => e.chartType === d.Line || e.chartType === d.StackedLine
115
+ ), j = i(() => f.value && !e.parsing.xAxisKey ? { ...e.parsing, xAxisKey: F } : e.parsing), q = i(() => f.value ? e.dataSets.map((t) => ({
82
116
  ...t,
83
117
  data: t.data.map((r) => ({
84
118
  ...r,
85
- [P]: t.label
119
+ [F]: t.label
86
120
  }))
87
- })) : e.dataSets), U = a(() => e.visibleIds || []), p = a(
88
- () => L.value.filter((t) => e.visibleIds.includes(t.id))
89
- ), { colorsMap: $ } = De({ dataSets: L, visibleIds: U }), E = a(() => p.value.map((t) => {
90
- const r = $.value[t.id];
121
+ })) : e.dataSets), A = i(
122
+ () => q.value.filter((t) => e.visibleIds.includes(t.id))
123
+ ), J = (t) => e.colorsMap[t] || Qe, B = i(
124
+ () => A.value.length && A.value.every(
125
+ (t) => t.data.length === 1
126
+ )
127
+ ), Q = (t) => (r) => {
128
+ const a = r.chart.data.labels.length - 1;
129
+ let l = Ke;
130
+ return e.chartType === d.Bar && e.indicateIncompleteData && r.index === a ? l = Ue : e.chartType === d.StackedLine && (l = _e), h(t, l);
131
+ }, O = i(() => A.value.map((t, r) => {
132
+ const a = J(t.id), l = b.value ? r !== 0 ? "-1" : "start" : void 0, m = e.indicateIncompleteData ? {
133
+ borderDash: (w) => {
134
+ if (w.p1DataIndex === w.chart.data.labels.length - 1)
135
+ return Ne;
136
+ }
137
+ } : void 0, k = Q(a);
91
138
  return {
92
139
  ...t,
93
- fill: u.value ? "start" : void 0,
94
- backgroundColor: Ee(
95
- r,
96
- e.chartType === i.StackedLine ? 10 : 70
97
- ),
98
- borderColor: r,
99
- pointBackgroundColor: r,
100
- pointHoverBorderColor: r,
140
+ fill: l,
141
+ segment: m,
142
+ backgroundColor: k,
143
+ borderColor: a,
144
+ pointBackgroundColor: a,
145
+ pointHoverBorderColor: a,
101
146
  maxBarThickness: 50,
102
147
  clip: 5,
103
148
  // draw a bit outside the chart area
104
149
  icon: t.icon || null,
105
- iconType: t.iconType || "branded"
150
+ iconType: t.iconType || "branded",
151
+ [M]: a
152
+ // store base color for later use
106
153
  };
107
- })), B = a(
108
- () => p.value.length && p.value.every(
109
- (t) => t.data.length === 1
110
- )
111
- ), A = a(
112
- () => ({
113
- type: e.chartType == i.Bar || e.chartType === i.StackedBar ? "bar" : "line",
114
- // Chart Data
115
- data: {
116
- datasets: E.value
154
+ })), ee = i(
155
+ () => e.tooltipTotalType === G.Total ? "Total" : "Mean"
156
+ ), te = (t) => t.filter(
157
+ (r) => !r.dataset.isTotal
158
+ ), P = i(() => ({
159
+ type: e.chartType == d.Bar || e.chartType === d.StackedBar ? "bar" : "line",
160
+ // Chart Data
161
+ data: {
162
+ datasets: O.value
163
+ },
164
+ // Chart Options
165
+ options: {
166
+ parsing: j.value,
167
+ interaction: {
168
+ intersect: !1,
169
+ mode: f.value ? "point" : "index",
170
+ axis: "x"
117
171
  },
118
- // Chart Options
119
- options: {
120
- parsing: S.value,
121
- interaction: {
122
- intersect: !1,
123
- mode: d.value ? "point" : "index",
124
- axis: "x"
125
- },
126
- // plugins
127
- plugins: {
128
- legend: { display: !1 },
129
- title: { display: !1 },
130
- hoverVerticalLine: x.value,
131
- // tooltip
132
- tooltip: {
133
- enabled: !1,
134
- position: "average",
135
- external: ({ tooltip: t }) => {
136
- l.value = { ...t };
137
- },
138
- callbacks: {
139
- footer: (t) => {
140
- const r = t.reduce((y, Y) => y + (Y.parsed.y || 0), 0);
141
- return ["Total", String(r)];
142
- }
172
+ // plugins
173
+ plugins: {
174
+ legend: { display: !1 },
175
+ title: { display: !1 },
176
+ hoverVerticalLine: x.value,
177
+ // tooltip
178
+ tooltip: {
179
+ enabled: !1,
180
+ position: "average",
181
+ external: ({ tooltip: t }) => {
182
+ c.value = { ...t };
183
+ },
184
+ callbacks: {
185
+ footer: (t) => {
186
+ const a = (e.tooltipExcludeTotalItem && t.length > 1 ? te(t) : t).map((m) => m.parsed.y || 0), l = e.tooltipTotalCalcFn(
187
+ a,
188
+ e.tooltipTotalType
189
+ );
190
+ return [ee.value, String(l)];
143
191
  }
192
+ },
193
+ itemSort: (t, r) => {
194
+ if (e.tooltipOrder === _.YAxis) {
195
+ const a = t.parsed.y || 0, l = r.parsed.y || 0;
196
+ return a === l ? 0 : a > l ? -1 : 1;
197
+ }
198
+ return 0;
144
199
  }
200
+ }
201
+ },
202
+ // chart layout
203
+ responsive: !0,
204
+ maintainAspectRatio: !1,
205
+ layout: {
206
+ padding: He
207
+ },
208
+ // basic styles
209
+ elements: {
210
+ line: {
211
+ borderWidth: 2,
212
+ tension: 0
145
213
  },
146
- // chart layout
147
- responsive: !0,
148
- maintainAspectRatio: !1,
149
- layout: {
150
- padding: {
151
- left: 18,
152
- top: 18,
153
- bottom: 11
154
- }
214
+ point: {
215
+ radius: B.value ? 3 : 1,
216
+ hitRadius: 8,
217
+ borderWidth: 0,
218
+ hoverRadius: 4,
219
+ hoverBorderWidth: 2,
220
+ pointHoverBackgroundColor: we
155
221
  },
156
- // basic styles
157
- elements: {
158
- line: {
159
- borderWidth: 2,
160
- tension: 0.3
161
- },
162
- point: {
163
- radius: B.value ? 3 : 1,
164
- hitRadius: 8,
165
- borderWidth: 0,
166
- hoverRadius: 4,
167
- hoverBorderWidth: 2,
168
- pointHoverBackgroundColor: Te
222
+ bar: {
223
+ borderRadius: 4
224
+ }
225
+ },
226
+ scales: {
227
+ // Horizontal Axis (X)
228
+ x: {
229
+ beginAtZero: !0,
230
+ offset: !x.value || B.value,
231
+ border: { display: !1 },
232
+ stacked: b.value,
233
+ // stack on top of each other
234
+ // ticks
235
+ ticks: {
236
+ color: Y,
237
+ font: K,
238
+ padding: 4,
239
+ maxRotation: 0,
240
+ autoSkip: !e.truncateTickLabels,
241
+ autoSkipPadding: 8,
242
+ callback: function(t, r, a) {
243
+ const l = this.getLabelForValue(t), m = x.value && !f.value ? a.length - 1 : a.length, k = this.chart.scales?.x?.width / m - Ve;
244
+ return W({
245
+ label: l,
246
+ format: e.xAxisFormat,
247
+ availableSpace: k,
248
+ truncate: e.truncateTickLabels
249
+ });
250
+ }
169
251
  },
170
- bar: {
171
- borderRadius: 4
252
+ // grid lines
253
+ grid: {
254
+ color: U,
255
+ drawOnChartArea: !1,
256
+ drawTicks: !0,
257
+ drawBorder: !1,
258
+ tickLength: 7
172
259
  }
173
260
  },
174
- scales: {
175
- // Horizontal Axis (X)
176
- x: {
177
- beginAtZero: !0,
178
- offset: !x.value || B.value,
179
- border: { display: !1 },
180
- stacked: u.value,
181
- // stack on top of each other
182
- // ticks
183
- ticks: {
184
- color: F,
185
- font: N,
186
- padding: 4,
187
- callback: function(t) {
188
- return O(
189
- this.getLabelForValue(t),
190
- e.xAxisFormat
191
- );
192
- }
193
- },
194
- // grid lines
195
- grid: {
196
- color: M,
197
- drawOnChartArea: !1,
198
- drawTicks: !0,
199
- drawBorder: !1,
200
- tickLength: 7
201
- }
261
+ // Vertical Axis (Y)
262
+ y: {
263
+ beginAtZero: !0,
264
+ border: { display: !1 },
265
+ // hide left borderline
266
+ stacked: b.value,
267
+ // stack on top of each other
268
+ // ticks
269
+ ticks: {
270
+ color: Y,
271
+ font: K,
272
+ count: e.tickCount + 1,
273
+ padding: 8,
274
+ min: 0,
275
+ callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, !0) + e.valueSuffix
202
276
  },
203
- // Vertical Axis (Y)
204
- y: {
205
- beginAtZero: !0,
206
- border: { display: !1 },
207
- // hide left borderline
208
- stacked: u.value,
209
- // stack on top of each other
210
- // ticks
211
- ticks: {
212
- color: F,
213
- font: N,
214
- padding: 8,
215
- stepSize: D.value,
216
- min: V.value,
217
- max: D.value * e.tickCount,
218
- callback: (t) => O(t, e.yAxisFormat)
219
- },
220
- // grid lines
221
- grid: {
222
- color: M,
223
- drawOnChartArea: !0,
224
- drawTicks: !1
225
- }
277
+ // grid lines
278
+ grid: {
279
+ color: U,
280
+ drawOnChartArea: !0,
281
+ drawTicks: !1
226
282
  }
227
283
  }
228
284
  }
229
- })
230
- ), R = C(null), l = C(null), { position: w } = Se(
285
+ }
286
+ })), N = E(null), c = E(null), { position: H } = ze(
287
+ T,
288
+ N,
231
289
  c,
232
- R,
233
- l,
234
290
  e.tooltipRespectsTopEdge
235
- ), G = a(() => ({
236
- left: `${w.value.left}px`,
237
- top: `${w.value.top}px`,
238
- opacity: l.value?.opacity || 0
239
- })), { minValue: V, maxValue: W } = Be({
240
- parsingConfig: S.value,
241
- dataSets: p,
242
- isStacked: u
243
- }), D = a(
244
- () => ge(V.value, W.value, e.tickCount)
245
- ), Z = a(
246
- () => (e.compactHeader ? xe : ke) + "px"
291
+ ), ae = i(() => ({
292
+ left: `${H.value.left}px`,
293
+ top: `${H.value.top}px`,
294
+ opacity: c.value?.opacity || 0
295
+ })), oe = i(
296
+ () => (e.compactHeader ? Me : Fe) + "px"
297
+ );
298
+ v(
299
+ () => e.highlightedId,
300
+ (t) => {
301
+ s && (tt(t) ? re() : le(t), s.update());
302
+ }
247
303
  );
248
- return (t, r) => s(k) ? (f(), X("section", Ie, [
249
- h("div", He, [
250
- ee(Ae, {
251
- "chart-type": s(m),
252
- "onUpdate:chart-type": r[0] || (r[0] = (y) => te(m) ? m.value = y : null),
253
- "type-switcher": o.typeSwitcher,
254
- header: o.header,
304
+ const le = (t) => {
305
+ (s?.data.datasets || []).forEach((a) => {
306
+ at(a);
307
+ const l = a[M];
308
+ a.id === t ? e.chartType === d.StackedLine && (a.backgroundColor = h(
309
+ l,
310
+ Ye
311
+ )) : (a.backgroundColor = h(l, y), a.borderColor = h(l, y), a.pointBackgroundColor = h(l, y), a.pointHoverBorderColor = h(l, y));
312
+ });
313
+ }, re = () => {
314
+ (s?.data.datasets || []).forEach(ot);
315
+ }, ie = lt(e.testId, $);
316
+ return (t, r) => (p(), S("div", rt, [
317
+ n(u) || o.keepSubheaderVisible ? (p(), S("div", it, [
318
+ ue(Ze, {
319
+ "chart-type": n(C),
320
+ "onUpdate:chart-type": r[0] || (r[0] = (a) => fe(C) ? C.value = a : null),
321
+ "type-switcher": n(u) ? o.typeSwitcher : !1,
322
+ header: n(u) ? o.header : null,
255
323
  subheader: o.subheader,
324
+ "subheader-tooltip": o.subheaderTooltip,
325
+ "trend-tooltip": o.trendTooltip,
256
326
  compact: o.compactHeader,
257
- "trend-value": o.trendValue,
258
- "trend-direction": o.trendDirection
259
- }, ae({ _: 2 }, [
327
+ "trend-value": n(u) ? o.trendValue : null,
328
+ "trend-direction": o.trendDirection,
329
+ "note-text": o.noteText,
330
+ "test-id": o.testId
331
+ }, pe({ _: 2 }, [
260
332
  t.$slots["subheader-tooltip"] ? {
261
333
  name: "subheader-tooltip",
262
- fn: oe(() => [
263
- re(t.$slots, "subheader-tooltip", {}, void 0, !0)
334
+ fn: he(() => [
335
+ me(t.$slots, "subheader-tooltip", {}, void 0, !0)
264
336
  ]),
265
337
  key: "0"
266
338
  } : void 0
267
- ]), 1032, ["chart-type", "type-switcher", "header", "subheader", "compact", "trend-value", "trend-direction"])
268
- ]),
269
- h("div", Oe, [
270
- h("canvas", {
271
- ref_key: "chartRef",
272
- ref: c,
273
- class: "chart__canvas"
274
- }, null, 512),
275
- h("div", {
276
- ref_key: "tooltipRef",
277
- ref: R,
278
- class: "chart__tooltip",
279
- style: le(s(G))
280
- }, [
281
- l.value ? (f(), b(Le, {
282
- key: 0,
283
- title: String(l.value.title),
284
- "data-points": l.value.dataPoints,
285
- "x-axis-format": o.xAxisFormat,
286
- "y-axis-format": o.yAxisFormat,
287
- "total-label": l.value.footer[0],
288
- "total-value": Number(l.value.footer[1])
289
- }, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : I("", !0)
290
- ], 4)
291
- ])
292
- ])) : o.loading ? (f(), b(Ve, {
293
- key: 1,
294
- class: "chart-loading"
295
- })) : s(T) ? (f(), b(s(we), {
296
- key: 2,
297
- class: "chart-empty",
298
- title: o.noDataTitle,
299
- subtitle: o.noDataSubtitle,
300
- "icon-name": o.noDataIcon
301
- }, null, 8, ["title", "subtitle", "icon-name"])) : I("", !0);
339
+ ]), 1032, ["chart-type", "type-switcher", "header", "subheader", "subheader-tooltip", "trend-tooltip", "compact", "trend-value", "trend-direction", "note-text", "test-id"])
340
+ ])) : L("", !0),
341
+ n(u) ? (p(), S("section", nt, [
342
+ R("div", st, [
343
+ R("canvas", {
344
+ ref_key: "chartRef",
345
+ ref: T,
346
+ class: "chart__canvas"
347
+ }, null, 512),
348
+ R("div", {
349
+ ref_key: "tooltipRef",
350
+ ref: N,
351
+ class: "chart__tooltip",
352
+ style: Te(n(ae))
353
+ }, [
354
+ c.value ? (p(), I(We, {
355
+ key: 0,
356
+ "totals-chart": n(f),
357
+ title: String(c.value.title),
358
+ "data-points": c.value.dataPoints,
359
+ "x-axis-format": o.xAxisFormat,
360
+ "y-axis-format": o.yAxisFormat,
361
+ "x-axis-date-interval": o.xAxisDateInterval,
362
+ "total-label": c.value.footer?.[0],
363
+ "total-value": Number(c.value.footer?.[1]),
364
+ "value-suffix": o.valueSuffix,
365
+ "value-prefix": o.valuePrefix,
366
+ "test-id": o.testId
367
+ }, null, 8, ["totals-chart", "title", "data-points", "x-axis-format", "y-axis-format", "x-axis-date-interval", "total-label", "total-value", "value-suffix", "value-prefix", "test-id"])) : L("", !0)
368
+ ], 4)
369
+ ])
370
+ ])) : o.loading ? (p(), I(Je, ve({
371
+ key: 2,
372
+ class: "chart-loading"
373
+ }, n(ie)[n($).LOADER]), null, 16)) : n(D) ? (p(), I(n(qe), {
374
+ key: 3,
375
+ class: "chart-empty",
376
+ variant: null,
377
+ title: o.noDataTitle,
378
+ subtitle: o.noDataSubtitle,
379
+ "icon-name": o.noDataIcon,
380
+ "test-id": o.testId
381
+ }, null, 8, ["title", "subtitle", "icon-name", "test-id"])) : L("", !0)
382
+ ]));
302
383
  }
303
384
  });
304
385
  export {
305
- Je as default
386
+ Rt as default
306
387
  };