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

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