@perses-dev/components 0.0.0-snapshot-scatter-chart-embed-8efdfab → 0.0.0-snapshot-scatterplot-fix-imports-95e1b59

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 (351) hide show
  1. package/dist/BarChart/BarChart.d.ts +1 -2
  2. package/dist/BarChart/BarChart.d.ts.map +1 -1
  3. package/dist/BarChart/BarChart.js +2 -2
  4. package/dist/BarChart/BarChart.js.map +1 -1
  5. package/dist/ColorPicker/ColorPicker.d.ts +1 -2
  6. package/dist/ColorPicker/ColorPicker.d.ts.map +1 -1
  7. package/dist/ColorPicker/ColorPicker.js +1 -1
  8. package/dist/ColorPicker/ColorPicker.js.map +1 -1
  9. package/dist/ContentWithLegend/ContentWithLegend.d.ts +1 -2
  10. package/dist/ContentWithLegend/ContentWithLegend.d.ts.map +1 -1
  11. package/dist/ContentWithLegend/ContentWithLegend.js +2 -2
  12. package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
  13. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +2 -2
  14. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts.map +1 -1
  15. package/dist/ContentWithLegend/model/content-with-legend-model.js +2 -2
  16. package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
  17. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts +1 -2
  18. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +1 -1
  19. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js +2 -2
  20. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +1 -1
  21. package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -2
  22. package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
  23. package/dist/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  24. package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
  25. package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts +1 -2
  26. package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts.map +1 -1
  27. package/dist/DateTimeRangePicker/TimeRangeSelector.js +2 -2
  28. package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +1 -1
  29. package/dist/DateTimeRangePicker/utils.js.map +1 -1
  30. package/dist/Dialog/Dialog.d.ts +6 -6
  31. package/dist/Dialog/Dialog.d.ts.map +1 -1
  32. package/dist/Dialog/Dialog.js +5 -5
  33. package/dist/Dialog/Dialog.js.map +1 -1
  34. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts +1 -2
  35. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts.map +1 -1
  36. package/dist/Dialog/DiscardChangesConfirmationDialog.js +1 -1
  37. package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
  38. package/dist/Drawer/Drawer.d.ts +1 -2
  39. package/dist/Drawer/Drawer.d.ts.map +1 -1
  40. package/dist/Drawer/Drawer.js +1 -1
  41. package/dist/Drawer/Drawer.js.map +1 -1
  42. package/dist/EChart/EChart.d.ts +7 -7
  43. package/dist/EChart/EChart.d.ts.map +1 -1
  44. package/dist/EChart/EChart.js +1 -1
  45. package/dist/EChart/EChart.js.map +1 -1
  46. package/dist/ErrorAlert.d.ts +1 -2
  47. package/dist/ErrorAlert.d.ts.map +1 -1
  48. package/dist/ErrorAlert.js +1 -1
  49. package/dist/ErrorAlert.js.map +1 -1
  50. package/dist/FontSizeSelector/FontSizeSelector.d.ts +2 -3
  51. package/dist/FontSizeSelector/FontSizeSelector.d.ts.map +1 -1
  52. package/dist/FontSizeSelector/FontSizeSelector.js +2 -2
  53. package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
  54. package/dist/FormatControls/FormatControls.d.ts +1 -2
  55. package/dist/FormatControls/FormatControls.d.ts.map +1 -1
  56. package/dist/FormatControls/FormatControls.js +2 -2
  57. package/dist/FormatControls/FormatControls.js.map +1 -1
  58. package/dist/GaugeChart/GaugeChart.d.ts +3 -4
  59. package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
  60. package/dist/GaugeChart/GaugeChart.js +1 -1
  61. package/dist/GaugeChart/GaugeChart.js.map +1 -1
  62. package/dist/InfoTooltip/InfoTooltip.d.ts +2 -2
  63. package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
  64. package/dist/InfoTooltip/InfoTooltip.js +4 -4
  65. package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
  66. package/dist/JSONEditor.d.ts +2 -3
  67. package/dist/JSONEditor.d.ts.map +1 -1
  68. package/dist/JSONEditor.js.map +1 -1
  69. package/dist/Legend/CompactLegend.d.ts +1 -2
  70. package/dist/Legend/CompactLegend.d.ts.map +1 -1
  71. package/dist/Legend/CompactLegend.js +1 -1
  72. package/dist/Legend/CompactLegend.js.map +1 -1
  73. package/dist/Legend/Legend.d.ts +1 -2
  74. package/dist/Legend/Legend.d.ts.map +1 -1
  75. package/dist/Legend/Legend.js +1 -1
  76. package/dist/Legend/Legend.js.map +1 -1
  77. package/dist/Legend/LegendColorBadge.js +1 -1
  78. package/dist/Legend/LegendColorBadge.js.map +1 -1
  79. package/dist/Legend/ListLegend.d.ts +1 -2
  80. package/dist/Legend/ListLegend.d.ts.map +1 -1
  81. package/dist/Legend/ListLegend.js +1 -1
  82. package/dist/Legend/ListLegend.js.map +1 -1
  83. package/dist/Legend/ListLegendItem.d.ts +2 -2
  84. package/dist/Legend/ListLegendItem.d.ts.map +1 -1
  85. package/dist/Legend/ListLegendItem.js +5 -9
  86. package/dist/Legend/ListLegendItem.js.map +1 -1
  87. package/dist/Legend/TableLegend.d.ts +1 -2
  88. package/dist/Legend/TableLegend.d.ts.map +1 -1
  89. package/dist/Legend/TableLegend.js +2 -2
  90. package/dist/Legend/TableLegend.js.map +1 -1
  91. package/dist/Legend/legend-model.d.ts +2 -2
  92. package/dist/Legend/legend-model.d.ts.map +1 -1
  93. package/dist/Legend/legend-model.js.map +1 -1
  94. package/dist/LineChart/LineChart.js +6 -6
  95. package/dist/LineChart/LineChart.js.map +1 -1
  96. package/dist/ModeSelector/ModeSelector.d.ts +2 -3
  97. package/dist/ModeSelector/ModeSelector.d.ts.map +1 -1
  98. package/dist/ModeSelector/ModeSelector.js +2 -2
  99. package/dist/ModeSelector/ModeSelector.js.map +1 -1
  100. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts +2 -2
  101. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts.map +1 -1
  102. package/dist/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  103. package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
  104. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts +2 -3
  105. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts.map +1 -1
  106. package/dist/OptionsEditorLayout/OptionsEditorControl.js +1 -1
  107. package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
  108. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts +2 -2
  109. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts.map +1 -1
  110. package/dist/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  111. package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
  112. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts +2 -2
  113. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts.map +1 -1
  114. package/dist/OptionsEditorLayout/OptionsEditorGroup.js +1 -1
  115. package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
  116. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts +1 -2
  117. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts.map +1 -1
  118. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +1 -1
  119. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
  120. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts +1 -1
  121. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts.map +1 -1
  122. package/dist/SettingsAutocomplete/SettingsAutocomplete.js +2 -2
  123. package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
  124. package/dist/SortSelector/SortSelector.d.ts +2 -3
  125. package/dist/SortSelector/SortSelector.d.ts.map +1 -1
  126. package/dist/SortSelector/SortSelector.js +2 -2
  127. package/dist/SortSelector/SortSelector.js.map +1 -1
  128. package/dist/StatChart/StatChart.d.ts +1 -2
  129. package/dist/StatChart/StatChart.d.ts.map +1 -1
  130. package/dist/StatChart/StatChart.js +3 -3
  131. package/dist/StatChart/StatChart.js.map +1 -1
  132. package/dist/StatChart/calculateFontSize.js +2 -2
  133. package/dist/StatChart/calculateFontSize.js.map +1 -1
  134. package/dist/Table/InnerTable.d.ts +2 -2
  135. package/dist/Table/InnerTable.d.ts.map +1 -1
  136. package/dist/Table/InnerTable.js +2 -2
  137. package/dist/Table/InnerTable.js.map +1 -1
  138. package/dist/Table/Table.d.ts +1 -2
  139. package/dist/Table/Table.d.ts.map +1 -1
  140. package/dist/Table/Table.js +3 -3
  141. package/dist/Table/Table.js.map +1 -1
  142. package/dist/Table/TableBody.d.ts +2 -2
  143. package/dist/Table/TableBody.d.ts.map +1 -1
  144. package/dist/Table/TableCell.d.ts +1 -1
  145. package/dist/Table/TableCell.d.ts.map +1 -1
  146. package/dist/Table/TableCell.js +2 -2
  147. package/dist/Table/TableCell.js.map +1 -1
  148. package/dist/Table/TableCheckbox.d.ts +1 -2
  149. package/dist/Table/TableCheckbox.d.ts.map +1 -1
  150. package/dist/Table/TableCheckbox.js +1 -1
  151. package/dist/Table/TableCheckbox.js.map +1 -1
  152. package/dist/Table/TableHead.d.ts +2 -2
  153. package/dist/Table/TableHead.d.ts.map +1 -1
  154. package/dist/Table/TableHeaderCell.d.ts +1 -2
  155. package/dist/Table/TableHeaderCell.d.ts.map +1 -1
  156. package/dist/Table/TableHeaderCell.js +1 -1
  157. package/dist/Table/TableHeaderCell.js.map +1 -1
  158. package/dist/Table/TableRow.d.ts +1 -1
  159. package/dist/Table/TableRow.d.ts.map +1 -1
  160. package/dist/Table/TableRow.js.map +1 -1
  161. package/dist/Table/VirtualizedTable.d.ts +2 -2
  162. package/dist/Table/VirtualizedTable.d.ts.map +1 -1
  163. package/dist/Table/VirtualizedTable.js +2 -2
  164. package/dist/Table/VirtualizedTable.js.map +1 -1
  165. package/dist/Table/VirtualizedTableContainer.d.ts +2 -2
  166. package/dist/Table/VirtualizedTableContainer.d.ts.map +1 -1
  167. package/dist/Table/hooks/useTableKeyboardNav.d.ts +1 -1
  168. package/dist/Table/hooks/useTableKeyboardNav.d.ts.map +1 -1
  169. package/dist/Table/hooks/useTableKeyboardNav.js +1 -1
  170. package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
  171. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +1 -1
  172. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
  173. package/dist/Table/model/table-model.d.ts +6 -6
  174. package/dist/Table/model/table-model.d.ts.map +1 -1
  175. package/dist/Table/model/table-model.js +2 -2
  176. package/dist/Table/model/table-model.js.map +1 -1
  177. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts +1 -2
  178. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts.map +1 -1
  179. package/dist/ThresholdsEditor/ThresholdColorPicker.js +3 -3
  180. package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +1 -1
  181. package/dist/ThresholdsEditor/ThresholdInput.d.ts +1 -1
  182. package/dist/ThresholdsEditor/ThresholdInput.d.ts.map +1 -1
  183. package/dist/ThresholdsEditor/ThresholdInput.js +1 -1
  184. package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
  185. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts +1 -2
  186. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
  187. package/dist/ThresholdsEditor/ThresholdsEditor.js +6 -5
  188. package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
  189. package/dist/TimeChart/TimeChart.js +7 -7
  190. package/dist/TimeChart/TimeChart.js.map +1 -1
  191. package/dist/TimeSeriesTooltip/LineChartTooltip.js +3 -3
  192. package/dist/TimeSeriesTooltip/LineChartTooltip.js.map +1 -1
  193. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts +1 -2
  194. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -1
  195. package/dist/TimeSeriesTooltip/SeriesInfo.js +1 -1
  196. package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
  197. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +1 -2
  198. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts.map +1 -1
  199. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
  200. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
  201. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts +1 -2
  202. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts.map +1 -1
  203. package/dist/TimeSeriesTooltip/SeriesMarker.js +1 -1
  204. package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
  205. package/dist/TimeSeriesTooltip/TimeChartTooltip.js +2 -2
  206. package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
  207. package/dist/TimeSeriesTooltip/TooltipContent.d.ts +1 -2
  208. package/dist/TimeSeriesTooltip/TooltipContent.d.ts.map +1 -1
  209. package/dist/TimeSeriesTooltip/TooltipContent.js +2 -2
  210. package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
  211. package/dist/TimeSeriesTooltip/TooltipHeader.js +2 -2
  212. package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
  213. package/dist/TimeSeriesTooltip/nearby-series.d.ts +1 -1
  214. package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
  215. package/dist/TimeSeriesTooltip/nearby-series.js +4 -4
  216. package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
  217. package/dist/TimeSeriesTooltip/tooltip-model.d.ts +3 -3
  218. package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
  219. package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
  220. package/dist/TimeSeriesTooltip/utils.js.map +1 -1
  221. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts +6 -0
  222. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts.map +1 -0
  223. package/dist/ToolbarIconButton/ToolbarIconButton.js +32 -0
  224. package/dist/ToolbarIconButton/ToolbarIconButton.js.map +1 -0
  225. package/dist/ToolbarIconButton/index.d.ts +2 -0
  226. package/dist/ToolbarIconButton/index.d.ts.map +1 -0
  227. package/dist/ToolbarIconButton/index.js +15 -0
  228. package/dist/ToolbarIconButton/index.js.map +1 -0
  229. package/dist/YAxisLabel.d.ts +1 -2
  230. package/dist/YAxisLabel.d.ts.map +1 -1
  231. package/dist/YAxisLabel.js +1 -1
  232. package/dist/YAxisLabel.js.map +1 -1
  233. package/dist/cjs/BarChart/BarChart.js +2 -2
  234. package/dist/cjs/ColorPicker/ColorPicker.js +4 -2
  235. package/dist/cjs/ContentWithLegend/ContentWithLegend.js +2 -2
  236. package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +2 -2
  237. package/dist/cjs/DateTimeRangePicker/AbsoluteTimePicker.js +2 -2
  238. package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  239. package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +2 -2
  240. package/dist/cjs/DateTimeRangePicker/utils.js +3 -3
  241. package/dist/cjs/Dialog/Dialog.js +5 -5
  242. package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +1 -1
  243. package/dist/cjs/Drawer/Drawer.js +1 -1
  244. package/dist/cjs/EChart/EChart.js +4 -2
  245. package/dist/cjs/ErrorAlert.js +1 -1
  246. package/dist/cjs/FontSizeSelector/FontSizeSelector.js +2 -2
  247. package/dist/cjs/FormatControls/FormatControls.js +2 -2
  248. package/dist/cjs/GaugeChart/GaugeChart.js +1 -1
  249. package/dist/cjs/InfoTooltip/InfoTooltip.js +4 -4
  250. package/dist/cjs/Legend/CompactLegend.js +1 -1
  251. package/dist/cjs/Legend/Legend.js +1 -1
  252. package/dist/cjs/Legend/LegendColorBadge.js +1 -1
  253. package/dist/cjs/Legend/ListLegend.js +1 -1
  254. package/dist/cjs/Legend/ListLegendItem.js +8 -10
  255. package/dist/cjs/Legend/TableLegend.js +2 -2
  256. package/dist/cjs/LineChart/LineChart.js +6 -6
  257. package/dist/cjs/ModeSelector/ModeSelector.js +2 -2
  258. package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  259. package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +1 -1
  260. package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  261. package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +1 -1
  262. package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +1 -1
  263. package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +2 -2
  264. package/dist/cjs/SortSelector/SortSelector.js +2 -2
  265. package/dist/cjs/StatChart/StatChart.js +3 -3
  266. package/dist/cjs/StatChart/calculateFontSize.js +2 -2
  267. package/dist/cjs/Table/InnerTable.js +2 -2
  268. package/dist/cjs/Table/Table.js +3 -3
  269. package/dist/cjs/Table/TableCell.js +2 -2
  270. package/dist/cjs/Table/TableCheckbox.js +1 -1
  271. package/dist/cjs/Table/TableHeaderCell.js +1 -1
  272. package/dist/cjs/Table/VirtualizedTable.js +2 -2
  273. package/dist/cjs/Table/hooks/useTableKeyboardNav.js +1 -1
  274. package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +1 -1
  275. package/dist/cjs/Table/model/table-model.js +2 -2
  276. package/dist/cjs/ThresholdsEditor/ThresholdColorPicker.js +3 -3
  277. package/dist/cjs/ThresholdsEditor/ThresholdInput.js +1 -1
  278. package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +9 -6
  279. package/dist/cjs/TimeChart/TimeChart.js +7 -7
  280. package/dist/cjs/TimeSeriesTooltip/LineChartTooltip.js +3 -3
  281. package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +1 -1
  282. package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
  283. package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +1 -1
  284. package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +2 -2
  285. package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +2 -2
  286. package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +2 -2
  287. package/dist/cjs/TimeSeriesTooltip/nearby-series.js +14 -14
  288. package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +27 -27
  289. package/dist/cjs/ToolbarIconButton/ToolbarIconButton.js +40 -0
  290. package/dist/cjs/ToolbarIconButton/index.js +30 -0
  291. package/dist/cjs/YAxisLabel.js +1 -1
  292. package/dist/cjs/context/ChartsProvider.js +4 -2
  293. package/dist/cjs/context/SnackbarProvider.js +1 -1
  294. package/dist/cjs/context/TimeZoneProvider.js +4 -2
  295. package/dist/cjs/index.js +1 -0
  296. package/dist/cjs/model/graph.js +3 -3
  297. package/dist/cjs/test-utils/theme.js +3 -3
  298. package/dist/cjs/theme/component-overrides/alert.js +4 -4
  299. package/dist/cjs/theme/component-overrides/paper.js +1 -1
  300. package/dist/cjs/theme/palette/colors/common.js +3 -3
  301. package/dist/cjs/theme/theme.js +1 -1
  302. package/dist/cjs/utils/axis.js +3 -3
  303. package/dist/cjs/utils/chart-actions.js +12 -12
  304. package/dist/cjs/utils/format.js +3 -3
  305. package/dist/cjs/utils/mathjs.js +1 -1
  306. package/dist/cjs/utils/theme-gen.js +1 -1
  307. package/dist/context/ChartsProvider.d.ts +1 -1
  308. package/dist/context/ChartsProvider.d.ts.map +1 -1
  309. package/dist/context/ChartsProvider.js +1 -1
  310. package/dist/context/ChartsProvider.js.map +1 -1
  311. package/dist/context/SnackbarProvider.d.ts +2 -2
  312. package/dist/context/SnackbarProvider.d.ts.map +1 -1
  313. package/dist/context/SnackbarProvider.js +1 -1
  314. package/dist/context/SnackbarProvider.js.map +1 -1
  315. package/dist/context/TimeZoneProvider.d.ts +1 -1
  316. package/dist/context/TimeZoneProvider.d.ts.map +1 -1
  317. package/dist/context/TimeZoneProvider.js +1 -1
  318. package/dist/context/TimeZoneProvider.js.map +1 -1
  319. package/dist/index.d.ts +1 -0
  320. package/dist/index.d.ts.map +1 -1
  321. package/dist/index.js +1 -0
  322. package/dist/index.js.map +1 -1
  323. package/dist/model/graph.d.ts +8 -8
  324. package/dist/model/graph.d.ts.map +1 -1
  325. package/dist/model/theme.d.ts +1 -1
  326. package/dist/model/theme.d.ts.map +1 -1
  327. package/dist/model/theme.js.map +1 -1
  328. package/dist/model/timeOption.js.map +1 -1
  329. package/dist/test/setup-tests.js.map +1 -1
  330. package/dist/theme/component-overrides/alert.js +4 -4
  331. package/dist/theme/component-overrides/alert.js.map +1 -1
  332. package/dist/theme/component-overrides/paper.js +1 -1
  333. package/dist/theme/component-overrides/paper.js.map +1 -1
  334. package/dist/theme/palette/colors/types.d.ts +1 -1
  335. package/dist/theme/palette/colors/types.d.ts.map +1 -1
  336. package/dist/theme/palette/colors/types.js.map +1 -1
  337. package/dist/theme/theme.js +1 -1
  338. package/dist/theme/theme.js.map +1 -1
  339. package/dist/theme/types/ThemeExtension.d.js.map +1 -1
  340. package/dist/utils/axis.js.map +1 -1
  341. package/dist/utils/chart-actions.js.map +1 -1
  342. package/dist/utils/combine-sx.js.map +1 -1
  343. package/dist/utils/component-ids.js.map +1 -1
  344. package/dist/utils/format.js.map +1 -1
  345. package/dist/utils/mathjs.js +1 -1
  346. package/dist/utils/mathjs.js.map +1 -1
  347. package/dist/utils/theme-gen.d.ts +1 -1
  348. package/dist/utils/theme-gen.d.ts.map +1 -1
  349. package/dist/utils/theme-gen.js +1 -1
  350. package/dist/utils/theme-gen.js.map +1 -1
  351. package/package.json +4 -4
@@ -35,7 +35,7 @@ const DEFAULT_GET_ROW_ID = (data, index)=>{
35
35
  // does not do deep equality checking for objects and arrays.
36
36
  const DEFAULT_ROW_SELECTION = {};
37
37
  const DEFAULT_SORTING = [];
38
- function Table({ data , columns , density ='standard' , checkboxSelection , onRowSelectionChange , onSortingChange , getCheckboxColor , getRowId =DEFAULT_GET_ROW_ID , rowSelection =DEFAULT_ROW_SELECTION , sorting =DEFAULT_SORTING , rowSelectionVariant ='standard' , ...otherProps }) {
38
+ function Table({ data, columns, density = 'standard', checkboxSelection, onRowSelectionChange, onSortingChange, getCheckboxColor, getRowId = DEFAULT_GET_ROW_ID, rowSelection = DEFAULT_ROW_SELECTION, sorting = DEFAULT_SORTING, rowSelectionVariant = 'standard', ...otherProps }) {
39
39
  const theme = (0, _material.useTheme)();
40
40
  const handleRowSelectionChange = (rowSelectionUpdater)=>{
41
41
  const newRowSelection = typeof rowSelectionUpdater === 'function' ? rowSelectionUpdater(rowSelection) : rowSelectionUpdater;
@@ -77,7 +77,7 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
77
77
  return {
78
78
  id: 'checkboxRowSelect',
79
79
  size: 28,
80
- header: ({ table })=>{
80
+ header: ({ table })=>{
81
81
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCheckbox.TableCheckbox, {
82
82
  checked: table.getIsAllRowsSelected(),
83
83
  indeterminate: table.getIsSomeRowsSelected(),
@@ -86,7 +86,7 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
86
86
  density: density
87
87
  });
88
88
  },
89
- cell: ({ row , table })=>{
89
+ cell: ({ row, table })=>{
90
90
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCheckbox.TableCheckbox, {
91
91
  checked: row.getIsSelected(),
92
92
  indeterminate: row.getIsSomeSelected(),
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
24
24
  const _material = require("@mui/material");
25
25
  const _react = require("react");
26
26
  const _tablemodel = require("./model/table-model");
27
- const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme })=>({
27
+ const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme })=>({
28
28
  padding: 0,
29
29
  backgroundColor: 'inherit',
30
30
  '&.MuiTableCell-head': {
@@ -39,7 +39,7 @@ const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme
39
39
  borderRadius: 0
40
40
  }
41
41
  }));
42
- function TableCell({ children , density , variant , width , focusState ='none' , onFocusTrigger , isFirstColumn , isLastColumn , description , ...otherProps }) {
42
+ function TableCell({ children, density, variant, width, focusState = 'none', onFocusTrigger, isFirstColumn, isLastColumn, description, ...otherProps }) {
43
43
  const theme = (0, _material.useTheme)();
44
44
  const elRef = (0, _react.useRef)();
45
45
  const isHeader = variant === 'head';
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "TableCheckbox", {
22
22
  });
23
23
  const _jsxruntime = require("react/jsx-runtime");
24
24
  const _material = require("@mui/material");
25
- function TableCheckbox({ color , density , ...otherProps }) {
25
+ function TableCheckbox({ color, density, ...otherProps }) {
26
26
  const isCompact = density === 'compact';
27
27
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Checkbox, {
28
28
  size: isCompact ? 'small' : 'medium',
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "TableHeaderCell", {
23
23
  const _jsxruntime = require("react/jsx-runtime");
24
24
  const _material = require("@mui/material");
25
25
  const _TableCell = require("./TableCell");
26
- function TableHeaderCell({ onSort , sortDirection , nextSortDirection , children , ...cellProps }) {
26
+ function TableHeaderCell({ onSort, sortDirection, nextSortDirection, children, ...cellProps }) {
27
27
  const showSortLabel = !!onSort;
28
28
  const headerText = /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
29
29
  noWrap: true,
@@ -33,7 +33,7 @@ const _TableHeaderCell = require("./TableHeaderCell");
33
33
  const _TableCell = require("./TableCell");
34
34
  const _VirtualizedTableContainer = require("./VirtualizedTableContainer");
35
35
  const _useVirtualizedTableKeyboardNav = require("./hooks/useVirtualizedTableKeyboardNav");
36
- function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOver , onRowMouseOut , rows , columns , headers }) {
36
+ function VirtualizedTable({ width, height, density, onRowClick, onRowMouseOver, onRowMouseOut, rows, columns, headers }) {
37
37
  const virtuosoRef = (0, _react.useRef)(null);
38
38
  // Use a ref for these values because they are only needed for keyboard
39
39
  // focus interactions and setting them on state will lead to a significant
@@ -71,7 +71,7 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
71
71
  },
72
72
  TableHead: _TableHead.TableHead,
73
73
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
74
- TableRow: ({ item , ...props })=>{
74
+ TableRow: ({ item, ...props })=>{
75
75
  const index = props['data-index'];
76
76
  const row = rows[index];
77
77
  if (!row) {
@@ -34,7 +34,7 @@ const ARROW_KEYS = [
34
34
  function isArrowKey(key) {
35
35
  return ARROW_KEYS.includes(key);
36
36
  }
37
- function useTableKeyboardNav({ maxRows , maxColumns , onActiveCellChange }) {
37
+ function useTableKeyboardNav({ maxRows, maxColumns, onActiveCellChange }) {
38
38
  const [activeCell, setActiveCell] = (0, _react.useState)(DEFAULT_ACTIVE_CELL);
39
39
  const [isActive, setIsActive] = (0, _react.useState)(false);
40
40
  const handleCellFocus = (cellPosition)=>{
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "useVirtualizedTableKeyboardNav", {
21
21
  }
22
22
  });
23
23
  const _useTableKeyboardNav = require("./useTableKeyboardNav");
24
- function useVirtualizedTableKeyboardNav({ visibleRange , virtualTable , maxRows , maxColumns }) {
24
+ function useVirtualizedTableKeyboardNav({ visibleRange, virtualTable, maxRows, maxColumns }) {
25
25
  const baseKeyboard = (0, _useTableKeyboardNav.useTableKeyboardNav)({
26
26
  maxRows,
27
27
  maxColumns,
@@ -35,7 +35,7 @@ function calculateTableCellHeight(lineHeight, paddingY) {
35
35
  const verticalPaddingNum = typeof paddingY === 'string' ? parseInt(paddingY, 10) : paddingY;
36
36
  return lineHeightNum + verticalPaddingNum * 2;
37
37
  }
38
- function getTableCellLayout(theme, density, { isLastColumn , isFirstColumn } = {}) {
38
+ function getTableCellLayout(theme, density, { isLastColumn, isFirstColumn } = {}) {
39
39
  if (density === 'compact') {
40
40
  const paddingY = theme.spacing(0.5);
41
41
  const basePaddingX = theme.spacing(0.5);
@@ -65,7 +65,7 @@ function getTableCellLayout(theme, density, { isLastColumn , isFirstColumn } =
65
65
  };
66
66
  }
67
67
  function persesColumnsToTanstackColumns(columns) {
68
- const tableCols = columns.map(({ width , align , headerDescription , cellDescription , enableSorting , ...otherProps })=>{
68
+ const tableCols = columns.map(({ width, align, headerDescription, cellDescription, enableSorting, ...otherProps })=>{
69
69
  // Tanstack Table does not support an "auto" value to naturally size to fit
70
70
  // the space in a table. We translate our custom "auto" setting to 0 size
71
71
  // for these columns, so it is easy to fall back to auto when rendering.
@@ -31,7 +31,7 @@ function _interop_require_default(obj) {
31
31
  default: obj
32
32
  };
33
33
  }
34
- function ThresholdColorPicker({ color , onColorChange , label }) {
34
+ function ThresholdColorPicker({ color, onColorChange, label }) {
35
35
  const [anchorEl, setAnchorEl] = _react.default.useState(null);
36
36
  const isOpen = Boolean(anchorEl);
37
37
  const openColorPicker = (event)=>{
@@ -40,7 +40,7 @@ function ThresholdColorPicker({ color , onColorChange , label }) {
40
40
  const closeColorPicker = ()=>{
41
41
  setAnchorEl(null);
42
42
  };
43
- const { thresholds: { defaultColor , palette } } = (0, _ChartsProvider.useChartsTheme)();
43
+ const { thresholds: { defaultColor, palette } } = (0, _ChartsProvider.useChartsTheme)();
44
44
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
45
45
  children: [
46
46
  /*#__PURE__*/ (0, _jsxruntime.jsx)(ColorIconButton, {
@@ -83,7 +83,7 @@ function ThresholdColorPicker({ color , onColorChange , label }) {
83
83
  }
84
84
  const ColorIconButton = (0, _material.styled)(_material.IconButton, {
85
85
  shouldForwardProp: (props)=>props !== 'isSelected' && props !== 'iconColor'
86
- })(({ iconColor , isSelected })=>({
86
+ })(({ iconColor, isSelected })=>({
87
87
  backgroundColor: isSelected && iconColor ? `${iconColor}3F` : 'undefined',
88
88
  color: iconColor
89
89
  }));
@@ -30,7 +30,7 @@ function _interop_require_default(obj) {
30
30
  default: obj
31
31
  };
32
32
  }
33
- function ThresholdInput({ inputRef , label , color , value , mode , onChange , onColorChange , onBlur , onDelete }) {
33
+ function ThresholdInput({ inputRef, label, color, value, mode, onChange, onColorChange, onBlur, onDelete }) {
34
34
  const [key, setKey] = (0, _react.useState)(0); // use key to cause input to lose focus when pressing enter
35
35
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
36
36
  flex: 1,
@@ -57,7 +57,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
57
57
  if (cache && cache.has(obj)) {
58
58
  return cache.get(obj);
59
59
  }
60
- var newObj = {};
60
+ var newObj = {
61
+ __proto__: null
62
+ };
61
63
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
62
64
  for(var key in obj){
63
65
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -76,9 +78,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
76
78
  return newObj;
77
79
  }
78
80
  const DEFAULT_STEP = 10;
79
- function ThresholdsEditor({ thresholds , onChange , hideDefault , disablePercentMode }) {
81
+ function ThresholdsEditor({ thresholds, onChange, hideDefault, disablePercentMode }) {
80
82
  const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
81
- const { thresholds: { defaultColor , palette } } = chartsTheme;
83
+ const { thresholds: { defaultColor, palette } } = chartsTheme;
82
84
  var _thresholds_defaultColor;
83
85
  const defaultThresholdColor = (_thresholds_defaultColor = thresholds === null || thresholds === void 0 ? void 0 : thresholds.defaultColor) !== null && _thresholds_defaultColor !== void 0 ? _thresholds_defaultColor : defaultColor;
84
86
  const [steps, setSteps] = (0, _react.useState)(thresholds === null || thresholds === void 0 ? void 0 : thresholds.steps);
@@ -203,7 +205,7 @@ function ThresholdsEditor({ thresholds , onChange , hideDefault , disablePercent
203
205
  });
204
206
  }
205
207
  };
206
- var _thresholds_mode, _step_color, _ref;
208
+ var _thresholds_mode;
207
209
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_OptionsEditorLayout.OptionsEditorGroup, {
208
210
  title: "Thresholds",
209
211
  icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoTooltip.InfoTooltip, {
@@ -248,8 +250,9 @@ function ThresholdsEditor({ thresholds , onChange , hideDefault , disablePercent
248
250
  ]
249
251
  })
250
252
  }),
251
- steps && steps.map((step, i)=>{
252
- /*#__PURE__*/ return (0, _jsxruntime.jsx)(_ThresholdInput.ThresholdInput, {
253
+ steps && steps.map((step, i)=>/*#__PURE__*/ {
254
+ var _step_color, _ref;
255
+ return (0, _jsxruntime.jsx)(_ThresholdInput.ThresholdInput, {
253
256
  inputRef: i === steps.length - 1 ? recentlyAddedInputRef : undefined,
254
257
  label: `T${i + 1}`,
255
258
  color: (_ref = (_step_color = step.color) !== null && _step_color !== void 0 ? _step_color : palette[i]) !== null && _ref !== void 0 ? _ref : defaultThresholdColor,
@@ -56,9 +56,9 @@ function _interop_require_default(obj) {
56
56
  _components.TooltipComponent,
57
57
  _renderers.CanvasRenderer
58
58
  ]);
59
- const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ height , data , seriesMapping , timeScale: timeScaleProp , yAxis , format , grid , isStackedBar =false , tooltipConfig =_TimeSeriesTooltip.DEFAULT_TOOLTIP_CONFIG , noDataVariant ='message' , syncGroup , onDataZoom , onDoubleClick , __experimentalEChartsOptionsOverride }, ref) {
59
+ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ height, data, seriesMapping, timeScale: timeScaleProp, yAxis, format, grid, isStackedBar = false, tooltipConfig = _TimeSeriesTooltip.DEFAULT_TOOLTIP_CONFIG, noDataVariant = 'message', syncGroup, onDataZoom, onDoubleClick, __experimentalEChartsOptionsOverride }, ref) {
60
60
  var _option_tooltip;
61
- const { chartsTheme , enablePinning , lastTooltipPinnedCoords , setLastTooltipPinnedCoords } = (0, _ChartsProvider.useChartsContext)();
61
+ const { chartsTheme, enablePinning, lastTooltipPinnedCoords, setLastTooltipPinnedCoords } = (0, _ChartsProvider.useChartsContext)();
62
62
  const isPinningEnabled = tooltipConfig.enablePinning && enablePinning;
63
63
  const chartRef = (0, _react.useRef)();
64
64
  const [showTooltip, setShowTooltip] = (0, _react.useState)(true);
@@ -66,7 +66,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
66
66
  const [pinnedCrosshair, setPinnedCrosshair] = (0, _react.useState)(null);
67
67
  const [isDragging, setIsDragging] = (0, _react.useState)(false);
68
68
  const [startX, setStartX] = (0, _react.useState)(0);
69
- const { timeZone } = (0, _TimeZoneProvider.useTimeZone)();
69
+ const { timeZone } = (0, _TimeZoneProvider.useTimeZone)();
70
70
  let timeScale;
71
71
  if (timeScaleProp === undefined) {
72
72
  const commonTimeScale = (0, _core.getCommonTimeScale)(data);
@@ -91,7 +91,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
91
91
  }
92
92
  (0, _react.useImperativeHandle)(ref, ()=>{
93
93
  return {
94
- highlightSeries ({ name }) {
94
+ highlightSeries ({ name }) {
95
95
  if (!chartRef.current) {
96
96
  // when chart undef, do not highlight series when hovering over legend
97
97
  return;
@@ -140,7 +140,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
140
140
  onDataZoom,
141
141
  setTooltipPinnedCoords
142
142
  ]);
143
- const { noDataOption } = chartsTheme;
143
+ const { noDataOption } = chartsTheme;
144
144
  const option = (0, _react.useMemo)(()=>{
145
145
  // The "chart" `noDataVariant` is only used when the `timeSeries` is an
146
146
  // empty array because a `null` value will throw an error.
@@ -329,7 +329,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
329
329
  }
330
330
  },
331
331
  onMouseDown: (e)=>{
332
- const { clientX } = e;
332
+ const { clientX } = e;
333
333
  setIsDragging(true);
334
334
  setStartX(clientX);
335
335
  },
@@ -338,7 +338,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
338
338
  if (!(e.target instanceof HTMLCanvasElement)) {
339
339
  return;
340
340
  }
341
- const { clientX } = e;
341
+ const { clientX } = e;
342
342
  if (isDragging) {
343
343
  const deltaX = clientX - startX;
344
344
  if (deltaX > 0) {
@@ -34,10 +34,10 @@ function _interop_require_default(obj) {
34
34
  default: obj
35
35
  };
36
36
  }
37
- const LineChartTooltip = /*#__PURE__*/ (0, _react.memo)(function LineChartTooltip({ chartRef , chartData , enablePinning =true , wrapLabels , format , onUnpinClick , pinnedPos , containerId }) {
37
+ const LineChartTooltip = /*#__PURE__*/ (0, _react.memo)(function LineChartTooltip({ chartRef, chartData, enablePinning = true, wrapLabels, format, onUnpinClick, pinnedPos, containerId }) {
38
38
  const [showAllSeries, setShowAllSeries] = (0, _react.useState)(false);
39
39
  const mousePos = (0, _tooltipmodel.useMousePosition)();
40
- const { height , width , ref: tooltipRef } = (0, _useresizeobserver.default)();
40
+ const { height, width, ref: tooltipRef } = (0, _useresizeobserver.default)();
41
41
  const transform = (0, _react.useRef)();
42
42
  const isTooltipPinned = pinnedPos !== null && enablePinning;
43
43
  if (mousePos === null || mousePos.target === null) return null;
@@ -65,13 +65,13 @@ const LineChartTooltip = /*#__PURE__*/ (0, _react.memo)(function LineChartToolti
65
65
  if (!isTooltipPinned) {
66
66
  transform.current = (0, _utils.assembleTransform)(mousePos, chartWidth, pinnedPos, height !== null && height !== void 0 ? height : 0, width !== null && width !== void 0 ? width : 0, containerElement);
67
67
  }
68
- var _theme_palette_designSystem_grey_;
69
68
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Portal, {
70
69
  container: containerElement,
71
70
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
72
71
  ref: tooltipRef,
73
72
  sx: (theme)=>{
74
73
  var _theme_palette_designSystem;
74
+ var _theme_palette_designSystem_grey_;
75
75
  return {
76
76
  minWidth: _tooltipmodel.TOOLTIP_MIN_WIDTH,
77
77
  maxWidth: _tooltipmodel.TOOLTIP_MAX_WIDTH,
@@ -26,7 +26,7 @@ const _SeriesMarker = require("./SeriesMarker");
26
26
  const _SeriesLabelsStack = require("./SeriesLabelsStack");
27
27
  const _tooltipmodel = require("./tooltip-model");
28
28
  function SeriesInfo(props) {
29
- const { seriesName , formattedY , markerColor , totalSeries , emphasizeText =false , wrapLabels =true } = props;
29
+ const { seriesName, formattedY, markerColor, totalSeries, emphasizeText = false, wrapLabels = true } = props;
30
30
  // metric __name__ comes before opening curly brace, ignore if not populated
31
31
  // ex with metric name: node_load15{env="demo",job="node"}
32
32
  // ex without metric name: {env="demo",job="node"}
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
24
24
  const _material = require("@mui/material");
25
25
  const _SeriesMarker = require("./SeriesMarker");
26
26
  function SeriesLabelsStack(props) {
27
- const { formattedY , markerColor , metricName , metricLabels } = props;
27
+ const { formattedY, markerColor, metricName, metricLabels } = props;
28
28
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
29
29
  spacing: 0.5,
30
30
  children: [
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
24
24
  const _material = require("@mui/material");
25
25
  const _utils = require("../utils");
26
26
  function SeriesMarker(props) {
27
- const { markerColor , sx } = props;
27
+ const { markerColor, sx } = props;
28
28
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
29
29
  sx: (0, _utils.combineSx)({
30
30
  display: 'inline-block',
@@ -34,11 +34,11 @@ function _interop_require_default(obj) {
34
34
  default: obj
35
35
  };
36
36
  }
37
- const TimeChartTooltip = /*#__PURE__*/ (0, _react.memo)(function TimeChartTooltip({ containerId , chartRef , data , seriesMapping , enablePinning =true , wrapLabels , format , onUnpinClick , pinnedPos }) {
37
+ const TimeChartTooltip = /*#__PURE__*/ (0, _react.memo)(function TimeChartTooltip({ containerId, chartRef, data, seriesMapping, enablePinning = true, wrapLabels, format, onUnpinClick, pinnedPos }) {
38
38
  const [showAllSeries, setShowAllSeries] = (0, _react.useState)(false);
39
39
  const transform = (0, _react.useRef)();
40
40
  const mousePos = (0, _tooltipmodel.useMousePosition)();
41
- const { height , width , ref: tooltipRef } = (0, _useresizeobserver.default)();
41
+ const { height, width, ref: tooltipRef } = (0, _useresizeobserver.default)();
42
42
  const isTooltipPinned = pinnedPos !== null && enablePinning;
43
43
  if (mousePos === null || mousePos.target === null || data === null) return null;
44
44
  // Ensure user is hovering over a chart before checking for nearby series.
@@ -25,7 +25,7 @@ const _react = require("react");
25
25
  const _material = require("@mui/material");
26
26
  const _SeriesInfo = require("./SeriesInfo");
27
27
  function TooltipContent(props) {
28
- const { series , wrapLabels } = props;
28
+ const { series, wrapLabels } = props;
29
29
  const sortedFocusedSeries = (0, _react.useMemo)(()=>{
30
30
  if (series === null) return null;
31
31
  return series.sort((a, b)=>a.y > b.y ? -1 : 1);
@@ -41,7 +41,7 @@ function TooltipContent(props) {
41
41
  display: 'table',
42
42
  padding: theme.spacing(0.5, 2)
43
43
  }),
44
- children: sortedFocusedSeries.map(({ datumIdx , seriesIdx , seriesName , y , formattedY , markerColor , isClosestToCursor })=>{
44
+ children: sortedFocusedSeries.map(({ datumIdx, seriesIdx, seriesName, y, formattedY, markerColor, isClosestToCursor })=>{
45
45
  if (datumIdx === null || seriesIdx === null) return null;
46
46
  const key = seriesIdx.toString() + datumIdx.toString();
47
47
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_SeriesInfo.SeriesInfo, {
@@ -32,7 +32,7 @@ function _interop_require_default(obj) {
32
32
  default: obj
33
33
  };
34
34
  }
35
- const TooltipHeader = /*#__PURE__*/ (0, _react.memo)(function TooltipHeader({ nearbySeries , totalSeries , isTooltipPinned , showAllSeries , enablePinning =true , onShowAllClick , onUnpinClick }) {
35
+ const TooltipHeader = /*#__PURE__*/ (0, _react.memo)(function TooltipHeader({ nearbySeries, totalSeries, isTooltipPinned, showAllSeries, enablePinning = true, onShowAllClick, onUnpinClick }) {
36
36
  var _nearbySeries_;
37
37
  var _nearbySeries__date;
38
38
  const seriesTimeMs = (_nearbySeries__date = (_nearbySeries_ = nearbySeries[0]) === null || _nearbySeries_ === void 0 ? void 0 : _nearbySeries_.date) !== null && _nearbySeries__date !== void 0 ? _nearbySeries__date : null;
@@ -64,10 +64,10 @@ const TooltipHeader = /*#__PURE__*/ (0, _react.memo)(function TooltipHeader({ ne
64
64
  // TODO: accurately calc whether more series are outside scrollable region using yBuffer, avg series name length, TOOLTIP_MAX_HEIGHT
65
65
  const showAllSeriesToggle = enablePinning && totalSeries > 5;
66
66
  const pinTooltipHelpText = isTooltipPinned ? _tooltipmodel.UNPIN_TOOLTIP_HELP_TEXT : _tooltipmodel.PIN_TOOLTIP_HELP_TEXT;
67
- var _theme_palette_designSystem_grey_;
68
67
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
69
68
  sx: (theme)=>{
70
69
  var _theme_palette_designSystem;
70
+ var _theme_palette_designSystem_grey_;
71
71
  return {
72
72
  width: '100%',
73
73
  maxWidth: _tooltipmodel.TOOLTIP_MAX_WIDTH,
@@ -21,32 +21,32 @@ function _export(target, all) {
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- INCREASE_NEARBY_SERIES_MULTIPLIER: function() {
25
- return INCREASE_NEARBY_SERIES_MULTIPLIER;
26
- },
27
24
  DYNAMIC_NEARBY_SERIES_MULTIPLIER: function() {
28
25
  return DYNAMIC_NEARBY_SERIES_MULTIPLIER;
29
26
  },
27
+ INCREASE_NEARBY_SERIES_MULTIPLIER: function() {
28
+ return INCREASE_NEARBY_SERIES_MULTIPLIER;
29
+ },
30
30
  SHOW_FEWER_SERIES_LIMIT: function() {
31
31
  return SHOW_FEWER_SERIES_LIMIT;
32
32
  },
33
33
  checkforNearbyTimeSeries: function() {
34
34
  return checkforNearbyTimeSeries;
35
35
  },
36
- legacyCheckforNearbySeries: function() {
37
- return legacyCheckforNearbySeries;
38
- },
39
36
  getNearbySeriesData: function() {
40
37
  return getNearbySeriesData;
41
38
  },
42
- legacyGetNearbySeriesData: function() {
43
- return legacyGetNearbySeriesData;
39
+ getYBuffer: function() {
40
+ return getYBuffer;
44
41
  },
45
42
  isWithinPercentageRange: function() {
46
43
  return isWithinPercentageRange;
47
44
  },
48
- getYBuffer: function() {
49
- return getYBuffer;
45
+ legacyCheckforNearbySeries: function() {
46
+ return legacyCheckforNearbySeries;
47
+ },
48
+ legacyGetNearbySeriesData: function() {
49
+ return legacyGetNearbySeriesData;
50
50
  }
51
51
  });
52
52
  const _core = require("@perses-dev/core");
@@ -260,7 +260,7 @@ function legacyCheckforNearbySeries(data, pointInGrid, yBuffer, chart, format) {
260
260
  }
261
261
  return currentNearbySeriesData;
262
262
  }
263
- function getNearbySeriesData({ mousePos , pinnedPos , data , seriesMapping , chart , format , showAllSeries =false }) {
263
+ function getNearbySeriesData({ mousePos, pinnedPos, data, seriesMapping, chart, format, showAllSeries = false }) {
264
264
  if (chart === undefined || mousePos === null) return _tooltipmodel.EMPTY_TOOLTIP_DATA;
265
265
  // prevents multiple tooltips showing from adjacent charts unless tooltip is pinned
266
266
  let cursorTargetMatchesChart = false;
@@ -299,7 +299,7 @@ function getNearbySeriesData({ mousePos , pinnedPos , data , seriesMapping , cha
299
299
  // no nearby series found
300
300
  return _tooltipmodel.EMPTY_TOOLTIP_DATA;
301
301
  }
302
- function legacyGetNearbySeriesData({ mousePos , pinnedPos , chartData , chart , format , showAllSeries =false }) {
302
+ function legacyGetNearbySeriesData({ mousePos, pinnedPos, chartData, chart, format, showAllSeries = false }) {
303
303
  if (chart === undefined || mousePos === null) return [];
304
304
  // prevents multiple tooltips showing from adjacent charts unless tooltip is pinned
305
305
  let cursorTargetMatchesChart = false;
@@ -343,13 +343,13 @@ function legacyGetNearbySeriesData({ mousePos , pinnedPos , chartData , chart ,
343
343
  }
344
344
  return [];
345
345
  }
346
- function isWithinPercentageRange({ valueToCheck , baseValue , percentage }) {
346
+ function isWithinPercentageRange({ valueToCheck, baseValue, percentage }) {
347
347
  const range = percentage / 100 * baseValue;
348
348
  const lowerBound = baseValue - range;
349
349
  const upperBound = baseValue + range;
350
350
  return valueToCheck >= lowerBound && valueToCheck <= upperBound;
351
351
  }
352
- function getYBuffer({ yInterval , totalSeries , showAllSeries =false }) {
352
+ function getYBuffer({ yInterval, totalSeries, showAllSeries = false }) {
353
353
  if (showAllSeries) {
354
354
  return yInterval * 10; // roughly correlates with grid so entire canvas is searched
355
355
  }
@@ -21,23 +21,14 @@ function _export(target, all) {
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- TOOLTIP_MIN_WIDTH: function() {
25
- return TOOLTIP_MIN_WIDTH;
26
- },
27
- TOOLTIP_MAX_WIDTH: function() {
28
- return TOOLTIP_MAX_WIDTH;
29
- },
30
- TOOLTIP_MAX_HEIGHT: function() {
31
- return TOOLTIP_MAX_HEIGHT;
32
- },
33
- TOOLTIP_LABELS_MAX_WIDTH: function() {
34
- return TOOLTIP_LABELS_MAX_WIDTH;
24
+ DEFAULT_TOOLTIP_CONFIG: function() {
25
+ return DEFAULT_TOOLTIP_CONFIG;
35
26
  },
36
- TOOLTIP_ADJUST_Y_POS_MULTIPLIER: function() {
37
- return TOOLTIP_ADJUST_Y_POS_MULTIPLIER;
27
+ EMPHASIZED_SERIES_DESCRIPTION: function() {
28
+ return EMPHASIZED_SERIES_DESCRIPTION;
38
29
  },
39
- TOOLTIP_PADDING: function() {
40
- return TOOLTIP_PADDING;
30
+ EMPTY_TOOLTIP_DATA: function() {
31
+ return EMPTY_TOOLTIP_DATA;
41
32
  },
42
33
  FALLBACK_CHART_WIDTH: function() {
43
34
  return FALLBACK_CHART_WIDTH;
@@ -45,8 +36,11 @@ _export(exports, {
45
36
  NEARBY_SERIES_DESCRIPTION: function() {
46
37
  return NEARBY_SERIES_DESCRIPTION;
47
38
  },
48
- EMPHASIZED_SERIES_DESCRIPTION: function() {
49
- return EMPHASIZED_SERIES_DESCRIPTION;
39
+ PIN_TOOLTIP_HELP_TEXT: function() {
40
+ return PIN_TOOLTIP_HELP_TEXT;
41
+ },
42
+ TOOLTIP_ADJUST_Y_POS_MULTIPLIER: function() {
43
+ return TOOLTIP_ADJUST_Y_POS_MULTIPLIER;
50
44
  },
51
45
  TOOLTIP_BG_COLOR_FALLBACK: function() {
52
46
  return TOOLTIP_BG_COLOR_FALLBACK;
@@ -54,23 +48,29 @@ _export(exports, {
54
48
  TOOLTIP_DATE_FORMAT: function() {
55
49
  return TOOLTIP_DATE_FORMAT;
56
50
  },
57
- defaultCursorData: function() {
58
- return defaultCursorData;
51
+ TOOLTIP_LABELS_MAX_WIDTH: function() {
52
+ return TOOLTIP_LABELS_MAX_WIDTH;
59
53
  },
60
- EMPTY_TOOLTIP_DATA: function() {
61
- return EMPTY_TOOLTIP_DATA;
54
+ TOOLTIP_MAX_HEIGHT: function() {
55
+ return TOOLTIP_MAX_HEIGHT;
62
56
  },
63
- useMousePosition: function() {
64
- return useMousePosition;
57
+ TOOLTIP_MAX_WIDTH: function() {
58
+ return TOOLTIP_MAX_WIDTH;
65
59
  },
66
- DEFAULT_TOOLTIP_CONFIG: function() {
67
- return DEFAULT_TOOLTIP_CONFIG;
60
+ TOOLTIP_MIN_WIDTH: function() {
61
+ return TOOLTIP_MIN_WIDTH;
68
62
  },
69
- PIN_TOOLTIP_HELP_TEXT: function() {
70
- return PIN_TOOLTIP_HELP_TEXT;
63
+ TOOLTIP_PADDING: function() {
64
+ return TOOLTIP_PADDING;
71
65
  },
72
66
  UNPIN_TOOLTIP_HELP_TEXT: function() {
73
67
  return UNPIN_TOOLTIP_HELP_TEXT;
68
+ },
69
+ defaultCursorData: function() {
70
+ return defaultCursorData;
71
+ },
72
+ useMousePosition: function() {
73
+ return useMousePosition;
74
74
  }
75
75
  });
76
76
  const _react = require("react");
@@ -0,0 +1,40 @@
1
+ // Copyright 2023 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "ToolbarIconButton", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return ToolbarIconButton;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = require("react");
25
+ const _material = require("@mui/material");
26
+ function IconButton(props, ref) {
27
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(StyledIconButton, {
28
+ ref: ref,
29
+ variant: "outlined",
30
+ color: "secondary",
31
+ ...props
32
+ });
33
+ }
34
+ const StyledIconButton = (0, _material.styled)(_material.Button)(({ theme })=>({
35
+ // Using a button with some adjusted styles because it is easier to inherit
36
+ // styling and variants from themes than with an IconButton.
37
+ padding: theme.spacing(0.5),
38
+ minWidth: 'auto'
39
+ }));
40
+ const ToolbarIconButton = /*#__PURE__*/ (0, _react.forwardRef)(IconButton);
@@ -0,0 +1,30 @@
1
+ // Copyright 2023 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ _export_star(require("./ToolbarIconButton"), exports);
18
+ function _export_star(from, to) {
19
+ Object.keys(from).forEach(function(k) {
20
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
21
+ Object.defineProperty(to, k, {
22
+ enumerable: true,
23
+ get: function() {
24
+ return from[k];
25
+ }
26
+ });
27
+ }
28
+ });
29
+ return from;
30
+ }
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "YAxisLabel", {
22
22
  });
23
23
  const _jsxruntime = require("react/jsx-runtime");
24
24
  const _material = require("@mui/material");
25
- function YAxisLabel({ name , height }) {
25
+ function YAxisLabel({ name, height }) {
26
26
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
27
27
  sx: {
28
28
  display: 'inline-block',