@ironsource/shared-ui 2.1.12-rc.4 → 2.1.12-rc.40

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 (301) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
  3. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
  4. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  5. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
  6. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  7. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
  8. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
  9. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
  10. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_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_f5204c04_lang.css +1 -0
  13. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
  14. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  15. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  16. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_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_55dd36a7_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_ad98fe7b_lang.css +1 -0
  25. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  26. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  27. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  28. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  29. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  30. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  31. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_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_84dc8525_lang.css +1 -0
  34. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  35. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  36. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  37. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  38. package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_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_4ba9e4bd_lang.css +1 -0
  42. package/components/appIcon/index.d.ts +3 -3
  43. package/components/banner/Banner.vue.d.ts +3 -3
  44. package/components/banner/index.d.ts +7 -7
  45. package/components/button/common/consts.d.ts +1 -0
  46. package/components/button/v3/Button.vue.d.ts +3 -3
  47. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  48. package/components/button/v3/IconButton.vue.d.ts +3 -3
  49. package/components/button/v3/index.d.ts +14 -14
  50. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  51. package/components/button/v4/ButtonV4.vue.js +4 -4
  52. package/components/button/v4/ButtonV4.vue2.js +28 -27
  53. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  54. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  55. package/components/chart/Chart.vue.d.ts +168 -37
  56. package/components/chart/Chart.vue.js +2 -2
  57. package/components/chart/Chart.vue2.js +154 -297
  58. package/components/chart/ChartHeader.vue.d.ts +50 -11
  59. package/components/chart/ChartHeader.vue.js +3 -3
  60. package/components/chart/ChartHeader.vue2.js +73 -54
  61. package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
  62. package/components/chart/ChartHeaderTrend.vue.js +7 -0
  63. package/components/chart/ChartHeaderTrend.vue2.js +97 -0
  64. package/components/chart/ChartLegend.vue.d.ts +24 -0
  65. package/components/chart/ChartLegend.vue.js +3 -3
  66. package/components/chart/ChartLegend.vue2.js +82 -63
  67. package/components/chart/ChartPlane.vue.d.ts +236 -0
  68. package/components/chart/ChartPlane.vue.js +7 -0
  69. package/components/chart/ChartPlane.vue2.js +381 -0
  70. package/components/chart/ChartStoryArgs.d.ts +196 -0
  71. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  72. package/components/chart/ChartTooltip.vue.js +2 -2
  73. package/components/chart/ChartTooltip.vue2.js +51 -56
  74. package/components/chart/LegendSorting.vue.d.ts +37 -0
  75. package/components/chart/LegendSorting.vue.js +45 -0
  76. package/components/chart/LegendSorting.vue2.js +4 -0
  77. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  78. package/components/chart/SettingsHeader.vue.js +3 -3
  79. package/components/chart/SettingsHeader.vue2.js +17 -16
  80. package/components/chart/SubHeader.vue.d.ts +52 -0
  81. package/components/chart/SubHeader.vue.js +7 -0
  82. package/components/chart/SubHeader.vue2.js +61 -0
  83. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  84. package/components/chart/TooltipHeader.vue.js +7 -0
  85. package/components/chart/TooltipHeader.vue2.js +70 -0
  86. package/components/chart/colorPalette.d.ts +5 -0
  87. package/components/chart/colorPalette.js +68 -0
  88. package/components/chart/composables/useChartHeight.d.ts +5 -0
  89. package/components/chart/composables/useChartHeight.js +24 -0
  90. package/components/chart/composables/useColorsMap.d.ts +12 -0
  91. package/components/chart/composables/useColorsMap.js +48 -0
  92. package/components/chart/composables/useTooltipPosition.d.ts +1 -1
  93. package/components/chart/composables/useTooltipPosition.js +11 -15
  94. package/components/chart/consts.d.ts +33 -7
  95. package/components/chart/consts.js +46 -22
  96. package/components/chart/index.d.ts +592 -119
  97. package/components/chart/mockData.d.ts +59 -5
  98. package/components/chart/types.d.ts +39 -6
  99. package/components/chart/types.js +5 -2
  100. package/components/chart/utils/formatNumber.d.ts +0 -1
  101. package/components/chart/utils/highlightUtils.d.ts +3 -0
  102. package/components/chart/utils/highlightUtils.js +18 -0
  103. package/components/chart/utils/utils.d.ts +3 -3
  104. package/components/chart/utils/utils.js +25 -10
  105. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  106. package/components/checkbox/v3/index.d.ts +7 -7
  107. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  108. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  109. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  110. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  111. package/components/columnPicker/OptionChip.vue.js +7 -0
  112. package/components/columnPicker/OptionChip.vue2.js +46 -0
  113. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  114. package/components/columnPicker/RemoveButton.vue.js +7 -0
  115. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  116. package/components/columnPicker/index.d.ts +388 -0
  117. package/components/columnPicker/index.js +6 -0
  118. package/components/columnPicker/mockData.d.ts +8 -0
  119. package/components/dateRange/common/DateRange.common.js +100 -94
  120. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  121. package/components/dateRange/common/DateServices.common.js +88 -92
  122. package/components/dateRange/common/consts.common.d.ts +5 -0
  123. package/components/dateRange/common/consts.common.js +9 -3
  124. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  125. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  126. package/components/dateRange/v3/index.d.ts +7 -7
  127. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  128. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  129. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  130. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  131. package/components/dateRange/v4/index.d.ts +7 -7
  132. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  133. package/components/dialog/v3/index.d.ts +46 -46
  134. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  135. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  136. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  137. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  138. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  139. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  140. package/components/dialog/v4/DialogV4.vue.d.ts +13 -12
  141. package/components/dialog/v4/DialogV4.vue.js +4 -4
  142. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  143. package/components/dialog/v4/index.d.ts +164 -164
  144. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  145. package/components/dropdown/common/Dropdown.common.js +161 -149
  146. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  147. package/components/dropdown/v3/index.d.ts +20 -20
  148. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  149. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  150. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  151. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  152. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
  153. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  154. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  155. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  156. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  157. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  158. package/components/dropdown/v4/ConditionalDropdown.vue2.js +144 -122
  159. package/components/dropdown/v4/DropdownV4.vue.d.ts +34 -1
  160. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  161. package/components/dropdown/v4/DropdownV4.vue2.js +241 -189
  162. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  163. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  164. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  165. package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
  166. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  167. package/components/dropdown/v4/OptionV4.vue2.js +162 -117
  168. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  169. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  170. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  171. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  172. package/components/dropdown/v4/index.d.ts +701 -162
  173. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  174. package/components/emptyState/v4/index.d.ts +7 -7
  175. package/components/forms/FormRow.vue.d.ts +9 -2
  176. package/components/forms/FormRow.vue.js +3 -3
  177. package/components/forms/FormRow.vue2.js +25 -14
  178. package/components/forms/index.d.ts +25 -5
  179. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  180. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  181. package/components/includeExclude/index.d.ts +40 -40
  182. package/components/link/Link.vue.d.ts +70 -0
  183. package/components/link/Link.vue.js +7 -0
  184. package/components/link/Link.vue2.js +43 -0
  185. package/components/link/index.d.ts +201 -0
  186. package/components/link/index.js +6 -0
  187. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  188. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  189. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  190. package/components/radioButton/v3/index.d.ts +20 -1
  191. package/components/search/v3/index.d.ts +3 -3
  192. package/components/shared/FieldLabel.vue.d.ts +19 -7
  193. package/components/shared/FieldLabel.vue.js +3 -3
  194. package/components/shared/FieldLabel.vue2.js +50 -37
  195. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  196. package/components/sortableList/SortableItem.vue.js +3 -3
  197. package/components/sortableList/SortableItem.vue2.js +86 -70
  198. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  199. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  200. package/components/sortableList/SortableList.types.d.ts +1 -0
  201. package/components/sortableList/SortableList.vue.d.ts +10 -0
  202. package/components/sortableList/SortableList.vue.js +3 -3
  203. package/components/sortableList/SortableList.vue2.js +104 -96
  204. package/components/sortableList/composables/useHoverEffect.js +1 -1
  205. package/components/sortableList/index.d.ts +39 -1
  206. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  207. package/components/switch/v4/SwitchV4.vue.js +3 -3
  208. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  209. package/components/switch/v4/index.d.ts +29 -0
  210. package/components/table/common/Table.common.d.ts +0 -1
  211. package/components/table/common/Table.common.js +38 -39
  212. package/components/table/common/Table.types.d.ts +2 -0
  213. package/components/table/common/consts.d.ts +1 -0
  214. package/components/table/common/consts.js +2 -1
  215. package/components/table/v4/DataGrid.vue.d.ts +18 -7
  216. package/components/table/v4/DataGrid.vue.js +3 -3
  217. package/components/table/v4/DataGrid.vue2.js +300 -250
  218. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  219. package/components/table/v4/DataGridHeader.vue.js +7 -0
  220. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  221. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  222. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  223. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  224. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  225. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  226. package/components/table/v4/index.d.ts +575 -293
  227. package/components/table/v4/index.js +7 -4
  228. package/components/table/v4/storyUtils.d.ts +27 -0
  229. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  230. package/components/tabs/v3/index.d.ts +7 -7
  231. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  232. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  233. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  234. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  235. package/components/tooltip/v3/index.d.ts +7 -7
  236. package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
  237. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  238. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  239. package/components/tooltip/v4/index.d.ts +27 -8
  240. package/components/typography/Text.vue.d.ts +3 -3
  241. package/components/typography/index.d.ts +7 -7
  242. package/composables/useDateService.d.ts +7 -0
  243. package/composables/useDateService.js +10 -0
  244. package/composables/useFormValidation.d.ts +1 -0
  245. package/composables/useFormValidation.js +32 -27
  246. package/composables/useFullPageHeight.d.ts +10 -0
  247. package/composables/useFullPageHeight.js +15 -0
  248. package/consts/common.d.ts +1 -0
  249. package/consts/common.js +4 -0
  250. package/consts/regex.d.ts +1 -0
  251. package/consts/regex.js +2 -1
  252. package/index.d.ts +4185 -2363
  253. package/index.js +148 -132
  254. package/mocks/apps.d.ts +1 -0
  255. package/mocks/optionsWithIcons.d.ts +2 -0
  256. package/package.json +13 -1
  257. package/testids/index.d.ts +8 -0
  258. package/testids/index.js +35 -33
  259. package/utils/date.d.ts +1 -0
  260. package/utils/date.js +9 -0
  261. package/utils/formatNumbers.d.ts +1 -1
  262. package/utils/formatNumbers.js +37 -7
  263. package/utils/index.js +7 -0
  264. package/utils/text.d.ts +3 -0
  265. package/utils/text.js +24 -5
  266. package/utils/totals.d.ts +5 -0
  267. package/utils/totals.js +9 -0
  268. package/utils/utils.d.ts +1 -0
  269. package/utils/utils.js +4 -0
  270. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  271. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
  272. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  273. package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
  274. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
  275. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
  276. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
  277. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  278. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
  279. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  280. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  281. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
  282. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  283. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  284. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  285. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  286. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  287. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  288. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  289. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  290. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  291. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  292. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  293. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  294. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  295. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  296. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  297. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  298. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  299. package/components/chart/composables/useChartValues.d.ts +0 -12
  300. package/components/chart/composables/useChartValues.js +0 -32
  301. package/components/chart/utils/formatNumber.js +0 -11
@@ -0,0 +1,236 @@
1
+ import { ChartDataSet, ChartParsingConfig, ChartType, DateInterval, TooltipOrder, TrendDirection, ValueFormat } from './types';
2
+ import { TotalType } from '@/utils/totals';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ dataSets: ChartDataSet[];
5
+ visibleIds: unknown[];
6
+ highlightedId?: string | number;
7
+ chartType?: ChartType;
8
+ parsing?: ChartParsingConfig;
9
+ xAxisFormat?: ValueFormat;
10
+ yAxisFormat?: ValueFormat;
11
+ xAxisDateInterval?: DateInterval;
12
+ tickCount?: number;
13
+ truncateTickLabels?: boolean;
14
+ header?: string;
15
+ subheader?: string;
16
+ subheaderTooltip?: {
17
+ header?: string;
18
+ text?: string;
19
+ };
20
+ keepSubheaderVisible?: boolean;
21
+ loading?: boolean;
22
+ empty?: boolean;
23
+ noDataIcon?: string;
24
+ noDataTitle?: string;
25
+ noDataSubtitle?: string;
26
+ withAnimation?: boolean;
27
+ typeSwitcher?: boolean;
28
+ height?: string;
29
+ compactHeader?: boolean;
30
+ noteText?: string;
31
+ tooltipRespectsTopEdge?: boolean;
32
+ tooltipTotalType?: TotalType;
33
+ tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
34
+ tooltipOrder?: TooltipOrder;
35
+ trendValue?: string | number;
36
+ trendDirection?: TrendDirection;
37
+ trendTooltip?: {
38
+ header?: string;
39
+ rangeCurrent?: string;
40
+ rangePrevious?: string;
41
+ };
42
+ totalsChart?: boolean;
43
+ colorsMap: Record<string, string>;
44
+ valueSuffix?: string;
45
+ valuePrefix?: string;
46
+ indicateIncompleteData?: boolean;
47
+ tooltipExcludeTotalItem?: boolean;
48
+ }>, {
49
+ chartType: ChartType;
50
+ dataSets: () => any[];
51
+ visibleIds: () => any[];
52
+ highlightedId: any;
53
+ xAxisFormat: string;
54
+ yAxisFormat: string;
55
+ xAxisDateInterval: DateInterval;
56
+ parsing: any;
57
+ tickCount: number;
58
+ truncateTickLabels: boolean;
59
+ header: string;
60
+ subheader: string;
61
+ subheaderTooltip: any;
62
+ keepSubheaderVisible: boolean;
63
+ loading: boolean;
64
+ empty: boolean;
65
+ noDataIcon: string;
66
+ noDataTitle: string;
67
+ noDataSubtitle: string;
68
+ withAnimation: boolean;
69
+ typeSwitcher: boolean;
70
+ height: string;
71
+ compactHeader: boolean;
72
+ noteText: string;
73
+ tooltipRespectsTopEdge: boolean;
74
+ tooltipTotalType: TotalType;
75
+ tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
76
+ tooltipOrder: TooltipOrder;
77
+ trendValue: any;
78
+ trendDirection: TrendDirection;
79
+ trendTooltip: any;
80
+ totalsChart: boolean;
81
+ colorsMap: () => {};
82
+ valueSuffix: string;
83
+ valuePrefix: string;
84
+ indicateIncompleteData: boolean;
85
+ tooltipExcludeTotalItem: boolean;
86
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
87
+ "update:chartType": (chartType: ChartType) => void;
88
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
89
+ dataSets: ChartDataSet[];
90
+ visibleIds: unknown[];
91
+ highlightedId?: string | number;
92
+ chartType?: ChartType;
93
+ parsing?: ChartParsingConfig;
94
+ xAxisFormat?: ValueFormat;
95
+ yAxisFormat?: ValueFormat;
96
+ xAxisDateInterval?: DateInterval;
97
+ tickCount?: number;
98
+ truncateTickLabels?: boolean;
99
+ header?: string;
100
+ subheader?: string;
101
+ subheaderTooltip?: {
102
+ header?: string;
103
+ text?: string;
104
+ };
105
+ keepSubheaderVisible?: boolean;
106
+ loading?: boolean;
107
+ empty?: boolean;
108
+ noDataIcon?: string;
109
+ noDataTitle?: string;
110
+ noDataSubtitle?: string;
111
+ withAnimation?: boolean;
112
+ typeSwitcher?: boolean;
113
+ height?: string;
114
+ compactHeader?: boolean;
115
+ noteText?: string;
116
+ tooltipRespectsTopEdge?: boolean;
117
+ tooltipTotalType?: TotalType;
118
+ tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
119
+ tooltipOrder?: TooltipOrder;
120
+ trendValue?: string | number;
121
+ trendDirection?: TrendDirection;
122
+ trendTooltip?: {
123
+ header?: string;
124
+ rangeCurrent?: string;
125
+ rangePrevious?: string;
126
+ };
127
+ totalsChart?: boolean;
128
+ colorsMap: Record<string, string>;
129
+ valueSuffix?: string;
130
+ valuePrefix?: string;
131
+ indicateIncompleteData?: boolean;
132
+ tooltipExcludeTotalItem?: boolean;
133
+ }>, {
134
+ chartType: ChartType;
135
+ dataSets: () => any[];
136
+ visibleIds: () => any[];
137
+ highlightedId: any;
138
+ xAxisFormat: string;
139
+ yAxisFormat: string;
140
+ xAxisDateInterval: DateInterval;
141
+ parsing: any;
142
+ tickCount: number;
143
+ truncateTickLabels: boolean;
144
+ header: string;
145
+ subheader: string;
146
+ subheaderTooltip: any;
147
+ keepSubheaderVisible: boolean;
148
+ loading: boolean;
149
+ empty: boolean;
150
+ noDataIcon: string;
151
+ noDataTitle: string;
152
+ noDataSubtitle: string;
153
+ withAnimation: boolean;
154
+ typeSwitcher: boolean;
155
+ height: string;
156
+ compactHeader: boolean;
157
+ noteText: string;
158
+ tooltipRespectsTopEdge: boolean;
159
+ tooltipTotalType: TotalType;
160
+ tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
161
+ tooltipOrder: TooltipOrder;
162
+ trendValue: any;
163
+ trendDirection: TrendDirection;
164
+ trendTooltip: any;
165
+ totalsChart: boolean;
166
+ colorsMap: () => {};
167
+ valueSuffix: string;
168
+ valuePrefix: string;
169
+ indicateIncompleteData: boolean;
170
+ tooltipExcludeTotalItem: boolean;
171
+ }>>> & {
172
+ "onUpdate:chartType"?: (chartType: ChartType) => any;
173
+ }, {
174
+ header: string;
175
+ height: string;
176
+ loading: boolean;
177
+ visibleIds: unknown[];
178
+ highlightedId: string | number;
179
+ chartType: ChartType;
180
+ xAxisFormat: ValueFormat;
181
+ xAxisDateInterval: DateInterval;
182
+ totalsChart: boolean;
183
+ parsing: ChartParsingConfig;
184
+ yAxisFormat: ValueFormat;
185
+ valueSuffix: string;
186
+ valuePrefix: string;
187
+ trendTooltip: any;
188
+ subheader: string;
189
+ subheaderTooltip: any;
190
+ typeSwitcher: boolean;
191
+ trendValue: string | number;
192
+ trendDirection: TrendDirection;
193
+ noteText: string;
194
+ dataSets: ChartDataSet[];
195
+ tickCount: number;
196
+ truncateTickLabels: boolean;
197
+ keepSubheaderVisible: boolean;
198
+ empty: boolean;
199
+ noDataIcon: string;
200
+ noDataTitle: string;
201
+ noDataSubtitle: string;
202
+ withAnimation: boolean;
203
+ compactHeader: boolean;
204
+ tooltipRespectsTopEdge: boolean;
205
+ tooltipTotalType: TotalType;
206
+ tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
207
+ tooltipOrder: TooltipOrder;
208
+ colorsMap: Record<string, string>;
209
+ indicateIncompleteData: boolean;
210
+ tooltipExcludeTotalItem: boolean;
211
+ }>, {
212
+ "subheader-tooltip"?(_: {}): any;
213
+ }>;
214
+ export default _default;
215
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
216
+ type __VLS_TypePropsToRuntimeProps<T> = {
217
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
218
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
219
+ } : {
220
+ type: import('vue').PropType<T[K]>;
221
+ required: true;
222
+ };
223
+ };
224
+ type __VLS_WithDefaults<P, D> = {
225
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
226
+ default: D[K];
227
+ }> : P[K];
228
+ };
229
+ type __VLS_Prettify<T> = {
230
+ [K in keyof T]: T[K];
231
+ } & {};
232
+ type __VLS_WithTemplateSlots<T, S> = T & {
233
+ new (): {
234
+ $slots: S;
235
+ };
236
+ };
@@ -0,0 +1,7 @@
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_dd60ff0e_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-dd60ff0e"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,381 @@
1
+ import "../../ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_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 = {
19
+ key: 0,
20
+ class: "header-wrapper"
21
+ }, ot = {
22
+ key: 1,
23
+ class: "chart-plane"
24
+ }, lt = { class: "chart" }, xt = /* @__PURE__ */ re({
25
+ __name: "ChartPlane",
26
+ props: {
27
+ dataSets: { default: () => [] },
28
+ visibleIds: { default: () => [] },
29
+ highlightedId: { default: null },
30
+ chartType: { default: d.Line },
31
+ parsing: { default: void 0 },
32
+ xAxisFormat: { default: "string" },
33
+ yAxisFormat: { default: "number" },
34
+ xAxisDateInterval: { default: Ye.DAILY },
35
+ tickCount: { default: Be },
36
+ truncateTickLabels: { type: Boolean, default: !1 },
37
+ header: { default: "" },
38
+ subheader: { default: "" },
39
+ subheaderTooltip: { default: null },
40
+ keepSubheaderVisible: { type: Boolean, default: !1 },
41
+ loading: { type: Boolean, default: !1 },
42
+ empty: { type: Boolean, default: !1 },
43
+ noDataIcon: { default: "file-search" },
44
+ noDataTitle: { default: "No data to display" },
45
+ noDataSubtitle: { default: "Search again with different filters" },
46
+ withAnimation: { type: Boolean, default: !0 },
47
+ typeSwitcher: { type: Boolean, default: !0 },
48
+ height: { default: "100%" },
49
+ compactHeader: { type: Boolean, default: !1 },
50
+ noteText: { default: "" },
51
+ tooltipRespectsTopEdge: { type: Boolean, default: !0 },
52
+ tooltipTotalType: { default: G.Total },
53
+ tooltipTotalCalcFn: { type: Function, default: qe },
54
+ tooltipOrder: { default: U.Legend },
55
+ trendValue: { default: null },
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 }
64
+ },
65
+ emits: ["update:chartType"],
66
+ setup(o, { emit: $ }) {
67
+ const e = o;
68
+ ie((t) => ({
69
+ "53e851a1": s(ae),
70
+ "45a8c08c": o.height
71
+ }));
72
+ const z = ze(Re);
73
+ V.register(
74
+ me,
75
+ ve,
76
+ Te,
77
+ ye,
78
+ Ce,
79
+ ge,
80
+ be,
81
+ xe,
82
+ Ae,
83
+ ke,
84
+ Se,
85
+ Ee,
86
+ Le
87
+ );
88
+ const C = We(e, "chartType", $), W = i(
89
+ () => e.withAnimation ? "" : "none"
90
+ ), v = S(null);
91
+ let n = null;
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));
96
+ };
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) => ({
113
+ ...t,
114
+ data: t.data.map((r) => ({
115
+ ...r,
116
+ [F]: t.label
117
+ }))
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);
135
+ return {
136
+ ...t,
137
+ fill: l,
138
+ segment: m,
139
+ backgroundColor: k,
140
+ borderColor: a,
141
+ pointBackgroundColor: a,
142
+ pointHoverBorderColor: a,
143
+ maxBarThickness: 50,
144
+ clip: 5,
145
+ // draw a bit outside the chart area
146
+ icon: t.icon || null,
147
+ iconType: t.iconType || "branded",
148
+ [_]: a
149
+ // store base color for later use
150
+ };
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"
168
+ },
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)];
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;
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
210
+ },
211
+ point: {
212
+ radius: I.value ? 3 : 1,
213
+ hitRadius: 8,
214
+ borderWidth: 0,
215
+ hoverRadius: 4,
216
+ hoverBorderWidth: 2,
217
+ pointHoverBackgroundColor: Ne
218
+ },
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
+ }
248
+ },
249
+ // grid lines
250
+ grid: {
251
+ color: K,
252
+ drawOnChartArea: !1,
253
+ drawTicks: !0,
254
+ drawBorder: !1,
255
+ tickLength: 7
256
+ }
257
+ },
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) + e.valueSuffix
273
+ },
274
+ // grid lines
275
+ grid: {
276
+ color: K,
277
+ drawOnChartArea: !0,
278
+ drawTicks: !1
279
+ }
280
+ }
281
+ }
282
+ }
283
+ })), P = S(null), c = S(null), { position: H } = Ue(
284
+ v,
285
+ P,
286
+ c,
287
+ e.tooltipRespectsTopEdge
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"
294
+ );
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,
320
+ subheader: o.subheader,
321
+ "subheader-tooltip": o.subheaderTooltip,
322
+ "trend-tooltip": o.trendTooltip,
323
+ compact: o.compactHeader,
324
+ "trend-value": s(u) ? o.trendValue : null,
325
+ "trend-direction": o.trendDirection,
326
+ "note-text": o.noteText
327
+ }, ue({ _: 2 }, [
328
+ t.$slots["subheader-tooltip"] ? {
329
+ name: "subheader-tooltip",
330
+ fn: fe(() => [
331
+ pe(t.$slots, "subheader-tooltip", {}, void 0, !0)
332
+ ]),
333
+ key: "0"
334
+ } : void 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
+ ]));
377
+ }
378
+ });
379
+ export {
380
+ xt as default
381
+ };