@perses-dev/components 0.0.0-snapshot-panel-extra-content-3-17f9c42 → 0.0.0-snapshot-scatter-chart-embed-8efdfab

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/dist/BarChart/BarChart.d.ts +2 -2
  2. package/dist/BarChart/BarChart.d.ts.map +1 -1
  3. package/dist/BarChart/BarChart.js +16 -10
  4. package/dist/BarChart/BarChart.js.map +1 -1
  5. package/dist/BarChart/index.js.map +1 -1
  6. package/dist/ColorPicker/ColorPicker.js.map +1 -1
  7. package/dist/ColorPicker/index.js.map +1 -1
  8. package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
  9. package/dist/ContentWithLegend/index.js.map +1 -1
  10. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +1 -1
  11. package/dist/ContentWithLegend/model/content-with-legend-model.js +19 -19
  12. package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
  13. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +1 -1
  14. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js +6 -22
  15. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +1 -1
  16. package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
  17. package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +1 -1
  18. package/dist/DateTimeRangePicker/index.js.map +1 -1
  19. package/dist/DateTimeRangePicker/utils.js.map +1 -1
  20. package/dist/Dialog/Dialog.js.map +1 -1
  21. package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
  22. package/dist/Dialog/index.js.map +1 -1
  23. package/dist/Drawer/Drawer.d.ts.map +1 -1
  24. package/dist/Drawer/Drawer.js +3 -2
  25. package/dist/Drawer/Drawer.js.map +1 -1
  26. package/dist/Drawer/index.js.map +1 -1
  27. package/dist/EChart/EChart.js +2 -2
  28. package/dist/EChart/EChart.js.map +1 -1
  29. package/dist/EChart/index.js.map +1 -1
  30. package/dist/ErrorAlert.js.map +1 -1
  31. package/dist/ErrorBoundary.js.map +1 -1
  32. package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
  33. package/dist/FontSizeSelector/index.js.map +1 -1
  34. package/dist/FormatControls/FormatControls.d.ts +9 -0
  35. package/dist/FormatControls/FormatControls.d.ts.map +1 -0
  36. package/dist/{UnitSelector/UnitSelector.js → FormatControls/FormatControls.js} +26 -26
  37. package/dist/FormatControls/FormatControls.js.map +1 -0
  38. package/dist/FormatControls/index.d.ts +2 -0
  39. package/dist/FormatControls/index.d.ts.map +1 -0
  40. package/dist/{UnitSelector → FormatControls}/index.js +1 -1
  41. package/dist/FormatControls/index.js.map +1 -0
  42. package/dist/GaugeChart/GaugeChart.d.ts +3 -3
  43. package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
  44. package/dist/GaugeChart/GaugeChart.js +12 -12
  45. package/dist/GaugeChart/GaugeChart.js.map +1 -1
  46. package/dist/GaugeChart/index.js.map +1 -1
  47. package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
  48. package/dist/InfoTooltip/index.js.map +1 -1
  49. package/dist/JSONEditor.d.ts +2 -1
  50. package/dist/JSONEditor.d.ts.map +1 -1
  51. package/dist/JSONEditor.js +9 -8
  52. package/dist/JSONEditor.js.map +1 -1
  53. package/dist/Legend/CompactLegend.js.map +1 -1
  54. package/dist/Legend/Legend.js +3 -3
  55. package/dist/Legend/Legend.js.map +1 -1
  56. package/dist/Legend/LegendColorBadge.js.map +1 -1
  57. package/dist/Legend/ListLegend.js.map +1 -1
  58. package/dist/Legend/ListLegendItem.js +2 -2
  59. package/dist/Legend/ListLegendItem.js.map +1 -1
  60. package/dist/Legend/TableLegend.js.map +1 -1
  61. package/dist/Legend/index.js.map +1 -1
  62. package/dist/Legend/legend-model.js.map +1 -1
  63. package/dist/LineChart/LineChart.d.ts +2 -2
  64. package/dist/LineChart/LineChart.d.ts.map +1 -1
  65. package/dist/LineChart/LineChart.js +17 -19
  66. package/dist/LineChart/LineChart.js.map +1 -1
  67. package/dist/LineChart/index.js.map +1 -1
  68. package/dist/ModeSelector/ModeSelector.js.map +1 -1
  69. package/dist/ModeSelector/index.js.map +1 -1
  70. package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
  71. package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
  72. package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
  73. package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
  74. package/dist/OptionsEditorLayout/index.js.map +1 -1
  75. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts.map +1 -1
  76. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +22 -6
  77. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
  78. package/dist/RefreshIntervalPicker/index.js.map +1 -1
  79. package/dist/SettingsAutocomplete/SettingsAutocomplete.js +2 -2
  80. package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
  81. package/dist/SettingsAutocomplete/index.js.map +1 -1
  82. package/dist/SortSelector/SortSelector.js.map +1 -1
  83. package/dist/SortSelector/index.js.map +1 -1
  84. package/dist/StatChart/StatChart.d.ts +2 -2
  85. package/dist/StatChart/StatChart.d.ts.map +1 -1
  86. package/dist/StatChart/StatChart.js +8 -8
  87. package/dist/StatChart/StatChart.js.map +1 -1
  88. package/dist/StatChart/calculateFontSize.js +7 -7
  89. package/dist/StatChart/calculateFontSize.js.map +1 -1
  90. package/dist/StatChart/index.js.map +1 -1
  91. package/dist/Table/InnerTable.js.map +1 -1
  92. package/dist/Table/Table.js.map +1 -1
  93. package/dist/Table/TableBody.js.map +1 -1
  94. package/dist/Table/TableCell.js +2 -2
  95. package/dist/Table/TableCell.js.map +1 -1
  96. package/dist/Table/TableCheckbox.js.map +1 -1
  97. package/dist/Table/TableHead.js.map +1 -1
  98. package/dist/Table/TableHeaderCell.js.map +1 -1
  99. package/dist/Table/TableRow.js.map +1 -1
  100. package/dist/Table/VirtualizedTable.js +6 -6
  101. package/dist/Table/VirtualizedTable.js.map +1 -1
  102. package/dist/Table/VirtualizedTableContainer.js.map +1 -1
  103. package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
  104. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +20 -20
  105. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
  106. package/dist/Table/index.js.map +1 -1
  107. package/dist/Table/model/table-model.js +9 -9
  108. package/dist/Table/model/table-model.js.map +1 -1
  109. package/dist/ThresholdsEditor/ThresholdColorPicker.js +2 -2
  110. package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +1 -1
  111. package/dist/ThresholdsEditor/ThresholdInput.js +1 -1
  112. package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
  113. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
  114. package/dist/ThresholdsEditor/ThresholdsEditor.js +19 -18
  115. package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
  116. package/dist/ThresholdsEditor/index.js.map +1 -1
  117. package/dist/TimeChart/TimeChart.d.ts +3 -3
  118. package/dist/TimeChart/TimeChart.d.ts.map +1 -1
  119. package/dist/TimeChart/TimeChart.js +105 -62
  120. package/dist/TimeChart/TimeChart.js.map +1 -1
  121. package/dist/TimeChart/index.js.map +1 -1
  122. package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts +2 -2
  123. package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts.map +1 -1
  124. package/dist/TimeSeriesTooltip/LineChartTooltip.js +10 -9
  125. package/dist/TimeSeriesTooltip/LineChartTooltip.js.map +1 -1
  126. package/dist/TimeSeriesTooltip/SeriesInfo.js +2 -2
  127. package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
  128. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
  129. package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
  130. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts +2 -2
  131. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts.map +1 -1
  132. package/dist/TimeSeriesTooltip/TimeChartTooltip.js +5 -5
  133. package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
  134. package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
  135. package/dist/TimeSeriesTooltip/TooltipHeader.js +6 -6
  136. package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
  137. package/dist/TimeSeriesTooltip/index.js.map +1 -1
  138. package/dist/TimeSeriesTooltip/nearby-series.d.ts +7 -7
  139. package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
  140. package/dist/TimeSeriesTooltip/nearby-series.js +42 -43
  141. package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
  142. package/dist/TimeSeriesTooltip/tooltip-model.d.ts +10 -23
  143. package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
  144. package/dist/TimeSeriesTooltip/tooltip-model.js +5 -11
  145. package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
  146. package/dist/TimeSeriesTooltip/utils.d.ts +1 -1
  147. package/dist/TimeSeriesTooltip/utils.d.ts.map +1 -1
  148. package/dist/TimeSeriesTooltip/utils.js +5 -4
  149. package/dist/TimeSeriesTooltip/utils.js.map +1 -1
  150. package/dist/YAxisLabel.js.map +1 -1
  151. package/dist/cjs/BarChart/BarChart.js +24 -16
  152. package/dist/cjs/BarChart/index.js +10 -8
  153. package/dist/cjs/ColorPicker/ColorPicker.js +15 -13
  154. package/dist/cjs/ColorPicker/index.js +10 -8
  155. package/dist/cjs/ContentWithLegend/ContentWithLegend.js +12 -10
  156. package/dist/cjs/ContentWithLegend/index.js +10 -8
  157. package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +27 -23
  158. package/dist/cjs/DateTimeRangePicker/AbsoluteTimePicker.js +29 -43
  159. package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +12 -10
  160. package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +13 -11
  161. package/dist/cjs/DateTimeRangePicker/index.js +12 -10
  162. package/dist/cjs/DateTimeRangePicker/utils.js +9 -5
  163. package/dist/cjs/Dialog/Dialog.js +15 -13
  164. package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +11 -9
  165. package/dist/cjs/Dialog/index.js +11 -9
  166. package/dist/cjs/Drawer/Drawer.js +7 -4
  167. package/dist/cjs/Drawer/index.js +10 -8
  168. package/dist/cjs/EChart/EChart.js +12 -10
  169. package/dist/cjs/EChart/index.js +10 -8
  170. package/dist/cjs/ErrorAlert.js +5 -3
  171. package/dist/cjs/ErrorBoundary.js +4 -2
  172. package/dist/cjs/FontSizeSelector/FontSizeSelector.js +8 -6
  173. package/dist/cjs/FontSizeSelector/index.js +10 -8
  174. package/dist/cjs/{UnitSelector/UnitSelector.js → FormatControls/FormatControls.js} +38 -36
  175. package/dist/cjs/{UnitSelector → FormatControls}/index.js +10 -8
  176. package/dist/cjs/GaugeChart/GaugeChart.js +22 -18
  177. package/dist/cjs/GaugeChart/index.js +10 -8
  178. package/dist/cjs/InfoTooltip/InfoTooltip.js +13 -11
  179. package/dist/cjs/InfoTooltip/index.js +10 -8
  180. package/dist/cjs/JSONEditor.js +19 -16
  181. package/dist/cjs/Legend/CompactLegend.js +9 -7
  182. package/dist/cjs/Legend/Legend.js +15 -13
  183. package/dist/cjs/Legend/LegendColorBadge.js +7 -5
  184. package/dist/cjs/Legend/ListLegend.js +10 -8
  185. package/dist/cjs/Legend/ListLegendItem.js +12 -10
  186. package/dist/cjs/Legend/TableLegend.js +7 -5
  187. package/dist/cjs/Legend/index.js +11 -9
  188. package/dist/cjs/Legend/legend-model.js +3 -1
  189. package/dist/cjs/LineChart/LineChart.js +27 -27
  190. package/dist/cjs/LineChart/index.js +10 -8
  191. package/dist/cjs/ModeSelector/ModeSelector.js +8 -6
  192. package/dist/cjs/ModeSelector/index.js +10 -8
  193. package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +6 -4
  194. package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +16 -14
  195. package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +5 -3
  196. package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +11 -9
  197. package/dist/cjs/OptionsEditorLayout/index.js +13 -11
  198. package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +27 -9
  199. package/dist/cjs/RefreshIntervalPicker/index.js +10 -8
  200. package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +12 -10
  201. package/dist/cjs/SettingsAutocomplete/index.js +10 -8
  202. package/dist/cjs/SortSelector/SortSelector.js +8 -6
  203. package/dist/cjs/SortSelector/index.js +10 -8
  204. package/dist/cjs/StatChart/StatChart.js +20 -18
  205. package/dist/cjs/StatChart/calculateFontSize.js +10 -8
  206. package/dist/cjs/StatChart/index.js +10 -8
  207. package/dist/cjs/Table/InnerTable.js +5 -3
  208. package/dist/cjs/Table/Table.js +15 -13
  209. package/dist/cjs/Table/TableBody.js +5 -3
  210. package/dist/cjs/Table/TableCell.js +10 -8
  211. package/dist/cjs/Table/TableCheckbox.js +5 -3
  212. package/dist/cjs/Table/TableHead.js +5 -3
  213. package/dist/cjs/Table/TableHeaderCell.js +8 -6
  214. package/dist/cjs/Table/TableRow.js +5 -3
  215. package/dist/cjs/Table/VirtualizedTable.js +32 -30
  216. package/dist/cjs/Table/VirtualizedTableContainer.js +5 -3
  217. package/dist/cjs/Table/hooks/useTableKeyboardNav.js +3 -1
  218. package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +23 -21
  219. package/dist/cjs/Table/index.js +14 -10
  220. package/dist/cjs/Table/model/table-model.js +15 -11
  221. package/dist/cjs/ThresholdsEditor/ThresholdColorPicker.js +15 -13
  222. package/dist/cjs/ThresholdsEditor/ThresholdInput.js +14 -12
  223. package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +44 -41
  224. package/dist/cjs/ThresholdsEditor/index.js +10 -8
  225. package/dist/cjs/TimeChart/TimeChart.js +119 -74
  226. package/dist/cjs/TimeChart/index.js +10 -8
  227. package/dist/cjs/TimeSeriesTooltip/LineChartTooltip.js +31 -28
  228. package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +17 -15
  229. package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +15 -13
  230. package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +5 -3
  231. package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +23 -21
  232. package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +7 -5
  233. package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +34 -32
  234. package/dist/cjs/TimeSeriesTooltip/index.js +19 -17
  235. package/dist/cjs/TimeSeriesTooltip/nearby-series.js +68 -51
  236. package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +56 -28
  237. package/dist/cjs/TimeSeriesTooltip/utils.js +19 -14
  238. package/dist/cjs/YAxisLabel.js +6 -4
  239. package/dist/cjs/context/{ChartsThemeProvider.js → ChartsProvider.js} +38 -11
  240. package/dist/cjs/context/SnackbarProvider.js +6 -2
  241. package/dist/cjs/context/TimeZoneProvider.js +13 -7
  242. package/dist/cjs/context/index.js +32 -0
  243. package/dist/cjs/index.js +41 -41
  244. package/dist/cjs/model/graph.js +9 -3
  245. package/dist/cjs/model/index.js +12 -10
  246. package/dist/cjs/test/index.js +10 -8
  247. package/dist/cjs/test/render.js +7 -5
  248. package/dist/cjs/test-utils/index.js +10 -8
  249. package/dist/cjs/test-utils/theme.js +38 -19
  250. package/dist/cjs/theme/component-overrides/alert.js +3 -1
  251. package/dist/cjs/theme/component-overrides/paper.js +3 -1
  252. package/dist/cjs/theme/index.js +10 -8
  253. package/dist/cjs/theme/palette/background.js +6 -2
  254. package/dist/cjs/theme/palette/colors/blue.js +3 -1
  255. package/dist/cjs/theme/palette/colors/common.js +6 -2
  256. package/dist/cjs/theme/palette/colors/green.js +3 -1
  257. package/dist/cjs/theme/palette/colors/grey.js +3 -1
  258. package/dist/cjs/theme/palette/colors/index.js +17 -15
  259. package/dist/cjs/theme/palette/colors/orange.js +3 -1
  260. package/dist/cjs/theme/palette/colors/purple.js +3 -1
  261. package/dist/cjs/theme/palette/colors/red.js +3 -1
  262. package/dist/cjs/theme/palette/error.js +3 -1
  263. package/dist/cjs/theme/palette/grey.js +3 -1
  264. package/dist/cjs/theme/palette/index.js +10 -8
  265. package/dist/cjs/theme/palette/palette-options.js +3 -1
  266. package/dist/cjs/theme/palette/primary.js +3 -1
  267. package/dist/cjs/theme/palette/secondary.js +3 -1
  268. package/dist/cjs/theme/palette/success.js +3 -1
  269. package/dist/cjs/theme/palette/text.js +3 -1
  270. package/dist/cjs/theme/palette/warning.js +3 -1
  271. package/dist/cjs/theme/theme.js +5 -3
  272. package/dist/cjs/theme/typography.js +3 -1
  273. package/dist/cjs/utils/axis.js +11 -7
  274. package/dist/cjs/utils/chart-actions.js +68 -12
  275. package/dist/cjs/utils/combine-sx.js +3 -1
  276. package/dist/cjs/utils/component-ids.js +3 -1
  277. package/dist/cjs/utils/format.js +16 -8
  278. package/dist/cjs/utils/index.js +15 -13
  279. package/dist/cjs/utils/mathjs.js +3 -1
  280. package/dist/cjs/utils/theme-gen.js +16 -18
  281. package/dist/context/ChartsProvider.d.ts +19 -0
  282. package/dist/context/ChartsProvider.d.ts.map +1 -0
  283. package/dist/context/{ChartsThemeProvider.js → ChartsProvider.js} +24 -6
  284. package/dist/context/ChartsProvider.js.map +1 -0
  285. package/dist/context/SnackbarProvider.js.map +1 -1
  286. package/dist/context/TimeZoneProvider.js.map +1 -1
  287. package/dist/context/index.d.ts +4 -0
  288. package/dist/context/index.d.ts.map +1 -0
  289. package/dist/context/index.js +17 -0
  290. package/dist/context/index.js.map +1 -0
  291. package/dist/index.d.ts +2 -4
  292. package/dist/index.d.ts.map +1 -1
  293. package/dist/index.js +2 -4
  294. package/dist/index.js.map +1 -1
  295. package/dist/model/graph.js.map +1 -1
  296. package/dist/model/index.js.map +1 -1
  297. package/dist/test/index.js.map +1 -1
  298. package/dist/test/render.js.map +1 -1
  299. package/dist/test/setup-tests.js.map +1 -1
  300. package/dist/test-utils/index.js.map +1 -1
  301. package/dist/test-utils/theme.d.ts +2 -0
  302. package/dist/test-utils/theme.d.ts.map +1 -1
  303. package/dist/test-utils/theme.js +25 -16
  304. package/dist/test-utils/theme.js.map +1 -1
  305. package/dist/theme/component-overrides/alert.js.map +1 -1
  306. package/dist/theme/component-overrides/paper.js.map +1 -1
  307. package/dist/theme/index.d.ts +1 -0
  308. package/dist/theme/index.d.ts.map +1 -1
  309. package/dist/theme/index.js.map +1 -1
  310. package/dist/theme/palette/background.d.ts.map +1 -1
  311. package/dist/theme/palette/background.js +3 -1
  312. package/dist/theme/palette/background.js.map +1 -1
  313. package/dist/theme/palette/colors/blue.js.map +1 -1
  314. package/dist/theme/palette/colors/common.js.map +1 -1
  315. package/dist/theme/palette/colors/green.js.map +1 -1
  316. package/dist/theme/palette/colors/grey.js.map +1 -1
  317. package/dist/theme/palette/colors/index.js.map +1 -1
  318. package/dist/theme/palette/colors/orange.js.map +1 -1
  319. package/dist/theme/palette/colors/purple.js.map +1 -1
  320. package/dist/theme/palette/colors/red.js.map +1 -1
  321. package/dist/theme/palette/error.js.map +1 -1
  322. package/dist/theme/palette/grey.js.map +1 -1
  323. package/dist/theme/palette/index.js.map +1 -1
  324. package/dist/theme/palette/palette-options.js.map +1 -1
  325. package/dist/theme/palette/primary.js.map +1 -1
  326. package/dist/theme/palette/secondary.js.map +1 -1
  327. package/dist/theme/palette/success.js.map +1 -1
  328. package/dist/theme/palette/text.js.map +1 -1
  329. package/dist/theme/palette/warning.js.map +1 -1
  330. package/dist/theme/theme.js.map +1 -1
  331. package/dist/theme/typography.js.map +1 -1
  332. package/dist/utils/axis.d.ts +4 -4
  333. package/dist/utils/axis.d.ts.map +1 -1
  334. package/dist/utils/axis.js +4 -4
  335. package/dist/utils/axis.js.map +1 -1
  336. package/dist/utils/chart-actions.d.ts +6 -2
  337. package/dist/utils/chart-actions.d.ts.map +1 -1
  338. package/dist/utils/chart-actions.js +51 -7
  339. package/dist/utils/chart-actions.js.map +1 -1
  340. package/dist/utils/combine-sx.js.map +1 -1
  341. package/dist/utils/component-ids.js.map +1 -1
  342. package/dist/utils/format.js.map +1 -1
  343. package/dist/utils/index.js.map +1 -1
  344. package/dist/utils/mathjs.js.map +1 -1
  345. package/dist/utils/theme-gen.d.ts +2 -7
  346. package/dist/utils/theme-gen.d.ts.map +1 -1
  347. package/dist/utils/theme-gen.js +11 -15
  348. package/dist/utils/theme-gen.js.map +1 -1
  349. package/package.json +7 -6
  350. package/dist/UnitSelector/UnitSelector.d.ts +0 -9
  351. package/dist/UnitSelector/UnitSelector.d.ts.map +0 -1
  352. package/dist/UnitSelector/UnitSelector.js.map +0 -1
  353. package/dist/UnitSelector/index.d.ts +0 -2
  354. package/dist/UnitSelector/index.d.ts.map +0 -1
  355. package/dist/UnitSelector/index.js.map +0 -1
  356. package/dist/context/ChartsThemeProvider.d.ts +0 -10
  357. package/dist/context/ChartsThemeProvider.d.ts.map +0 -1
  358. package/dist/context/ChartsThemeProvider.js.map +0 -1
@@ -16,19 +16,21 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "LineChart", {
18
18
  enumerable: true,
19
- get: ()=>LineChart
19
+ get: function() {
20
+ return LineChart;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
23
+ const _jsxruntime = require("react/jsx-runtime");
22
24
  const _react = require("react");
23
25
  const _material = require("@mui/material");
24
26
  const _core = require("echarts/core");
25
27
  const _charts = require("echarts/charts");
26
28
  const _components = require("echarts/components");
27
29
  const _renderers = require("echarts/renderers");
28
- const _echart = require("../EChart");
29
- const _chartsThemeProvider = require("../context/ChartsThemeProvider");
30
- const _timeSeriesTooltip = require("../TimeSeriesTooltip");
31
- const _timeZoneProvider = require("../context/TimeZoneProvider");
30
+ const _EChart = require("../EChart");
31
+ const _ChartsProvider = require("../context/ChartsProvider");
32
+ const _TimeSeriesTooltip = require("../TimeSeriesTooltip");
33
+ const _TimeZoneProvider = require("../context/TimeZoneProvider");
32
34
  const _utils = require("../utils");
33
35
  (0, _core.use)([
34
36
  _charts.LineChart,
@@ -43,13 +45,13 @@ const _utils = require("../utils");
43
45
  _components.LegendComponent,
44
46
  _renderers.CanvasRenderer
45
47
  ]);
46
- const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ height , data , yAxis , unit , grid , legend , tooltipConfig =_timeSeriesTooltip.DEFAULT_TOOLTIP_CONFIG , noDataVariant ='message' , syncGroup , onDataZoom , onDoubleClick , __experimentalEChartsOptionsOverride , }, ref) {
47
- var ref1;
48
- const chartsTheme = (0, _chartsThemeProvider.useChartsTheme)();
48
+ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ height , data , yAxis , format , grid , legend , tooltipConfig =_TimeSeriesTooltip.DEFAULT_TOOLTIP_CONFIG , noDataVariant ='message' , syncGroup , onDataZoom , onDoubleClick , __experimentalEChartsOptionsOverride }, ref) {
49
+ var _option_tooltip;
50
+ const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
49
51
  const chartRef = (0, _react.useRef)();
50
52
  const [showTooltip, setShowTooltip] = (0, _react.useState)(true);
51
53
  const [tooltipPinnedCoords, setTooltipPinnedCoords] = (0, _react.useState)(null);
52
- const { timeZone } = (0, _timeZoneProvider.useTimeZone)();
54
+ const { timeZone } = (0, _TimeZoneProvider.useTimeZone)();
53
55
  const [isDragging, setIsDragging] = (0, _react.useState)(false);
54
56
  const [startX, setStartX] = (0, _react.useState)(0);
55
57
  (0, _react.useImperativeHandle)(ref, ()=>{
@@ -69,12 +71,10 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
69
71
  // when chart undef, do not clear highlight series
70
72
  return;
71
73
  }
72
- (0, _utils.clearHighlightedSeries)(chartRef.current, data.timeSeries.length);
74
+ (0, _utils.clearHighlightedSeries)(chartRef.current);
73
75
  }
74
76
  };
75
- }, [
76
- data.timeSeries.length
77
- ]);
77
+ }, []);
78
78
  const handleEvents = (0, _react.useMemo)(()=>{
79
79
  return {
80
80
  datazoom: (params)=>{
@@ -85,10 +85,10 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
85
85
  }, 10);
86
86
  }
87
87
  if (onDataZoom === undefined || params.batch[0] === undefined) return;
88
- var _startValue;
89
- const startIndex = (_startValue = params.batch[0].startValue) !== null && _startValue !== void 0 ? _startValue : 0;
90
- var _endValue;
91
- const endIndex = (_endValue = params.batch[0].endValue) !== null && _endValue !== void 0 ? _endValue : data.xAxis.length - 1;
88
+ var _params_batch__startValue;
89
+ const startIndex = (_params_batch__startValue = params.batch[0].startValue) !== null && _params_batch__startValue !== void 0 ? _params_batch__startValue : 0;
90
+ var _params_batch__endValue;
91
+ const endIndex = (_params_batch__endValue = params.batch[0].endValue) !== null && _params_batch__endValue !== void 0 ? _params_batch__endValue : data.xAxis.length - 1;
92
92
  const xAxisStartValue = data.xAxis[startIndex];
93
93
  const xAxisEndValue = data.xAxis[endIndex];
94
94
  if (xAxisStartValue !== undefined && xAxisEndValue !== undefined) {
@@ -116,8 +116,8 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
116
116
  // The "chart" `noDataVariant` is only used when the `timeSeries` is an
117
117
  // empty array because a `null` value will throw an error.
118
118
  if (data.timeSeries === null || data.timeSeries.length === 0 && noDataVariant === 'message') return noDataOption;
119
- var _rangeMs;
120
- const rangeMs = (_rangeMs = data.rangeMs) !== null && _rangeMs !== void 0 ? _rangeMs : (0, _utils.getDateRange)(data.xAxis);
119
+ var _data_rangeMs;
120
+ const rangeMs = (_data_rangeMs = data.rangeMs) !== null && _data_rangeMs !== void 0 ? _data_rangeMs : (0, _utils.getDateRange)(data.xAxis);
121
121
  const option = {
122
122
  series: data.timeSeries,
123
123
  xAxis: {
@@ -130,7 +130,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
130
130
  }
131
131
  }
132
132
  },
133
- yAxis: (0, _utils.getYAxes)(yAxis, unit),
133
+ yAxis: (0, _utils.getFormattedAxis)(yAxis, format),
134
134
  animation: false,
135
135
  tooltip: {
136
136
  show: true,
@@ -163,7 +163,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
163
163
  }, [
164
164
  data,
165
165
  yAxis,
166
- unit,
166
+ format,
167
167
  grid,
168
168
  legend,
169
169
  noDataOption,
@@ -171,7 +171,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
171
171
  __experimentalEChartsOptionsOverride,
172
172
  noDataVariant
173
173
  ]);
174
- return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_material.Box, {
174
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
175
175
  sx: {
176
176
  height
177
177
  },
@@ -230,7 +230,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
230
230
  setShowTooltip(false);
231
231
  }
232
232
  if (chartRef.current !== undefined) {
233
- (0, _utils.clearHighlightedSeries)(chartRef.current, data.timeSeries.length);
233
+ (0, _utils.clearHighlightedSeries)(chartRef.current);
234
234
  }
235
235
  },
236
236
  onMouseEnter: ()=>{
@@ -251,19 +251,19 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
251
251
  }
252
252
  },
253
253
  children: [
254
- showTooltip === true && ((ref1 = option.tooltip) === null || ref1 === void 0 ? void 0 : ref1.showContent) === false && tooltipConfig.hidden !== true && /*#__PURE__*/ (0, _jsxRuntime.jsx)(_timeSeriesTooltip.LineChartTooltip, {
254
+ showTooltip === true && ((_option_tooltip = option.tooltip) === null || _option_tooltip === void 0 ? void 0 : _option_tooltip.showContent) === false && tooltipConfig.hidden !== true && /*#__PURE__*/ (0, _jsxruntime.jsx)(_TimeSeriesTooltip.LineChartTooltip, {
255
255
  chartRef: chartRef,
256
256
  chartData: data,
257
257
  wrapLabels: tooltipConfig.wrapLabels,
258
258
  enablePinning: tooltipConfig.enablePinning,
259
259
  pinnedPos: tooltipPinnedCoords,
260
- unit: unit,
260
+ format: format,
261
261
  onUnpinClick: ()=>{
262
262
  setTooltipPinnedCoords(null);
263
263
  },
264
264
  containerId: chartsTheme.tooltipPortalContainerId
265
265
  }),
266
- /*#__PURE__*/ (0, _jsxRuntime.jsx)(_echart.EChart, {
266
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_EChart.EChart, {
267
267
  sx: {
268
268
  width: '100%',
269
269
  height: '100%'
@@ -14,15 +14,17 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
- _exportStar(require("./LineChart"), exports);
18
- function _exportStar(from, to) {
17
+ _export_star(require("./LineChart"), exports);
18
+ function _export_star(from, to) {
19
19
  Object.keys(from).forEach(function(k) {
20
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
21
- enumerable: true,
22
- get: function() {
23
- return from[k];
24
- }
25
- });
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
+ }
26
28
  });
27
29
  return from;
28
30
  }
@@ -16,11 +16,13 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "ModeSelector", {
18
18
  enumerable: true,
19
- get: ()=>ModeSelector
19
+ get: function() {
20
+ return ModeSelector;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
22
- const _optionsEditorLayout = require("../OptionsEditorLayout");
23
- const _settingsAutocomplete = require("../SettingsAutocomplete");
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _OptionsEditorLayout = require("../OptionsEditorLayout");
25
+ const _SettingsAutocomplete = require("../SettingsAutocomplete");
24
26
  const MODE_OPTIONS = [
25
27
  {
26
28
  id: 'value',
@@ -35,9 +37,9 @@ function ModeSelector({ disablePercentageMode , onChange , value ='value' }) {
35
37
  const handleModeChange = (_, { id })=>{
36
38
  onChange(id);
37
39
  };
38
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_optionsEditorLayout.OptionsEditorControl, {
40
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsEditorLayout.OptionsEditorControl, {
39
41
  label: "Mode",
40
- control: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_settingsAutocomplete.SettingsAutocomplete, {
42
+ control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_SettingsAutocomplete.SettingsAutocomplete, {
41
43
  value: MODE_OPTIONS.find((o)=>o.id === value),
42
44
  options: MODE_OPTIONS,
43
45
  getOptionLabel: (o)=>o.label,
@@ -14,15 +14,17 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
- _exportStar(require("./ModeSelector"), exports);
18
- function _exportStar(from, to) {
17
+ _export_star(require("./ModeSelector"), exports);
18
+ function _export_star(from, to) {
19
19
  Object.keys(from).forEach(function(k) {
20
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
21
- enumerable: true,
22
- get: function() {
23
- return from[k];
24
- }
25
- });
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
+ }
26
28
  });
27
29
  return from;
28
30
  }
@@ -16,15 +16,17 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "OptionsEditorColumn", {
18
18
  enumerable: true,
19
- get: ()=>OptionsEditorColumn
19
+ get: function() {
20
+ return OptionsEditorColumn;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
23
+ const _jsxruntime = require("react/jsx-runtime");
22
24
  const _material = require("@mui/material");
23
25
  const OptionsEditorColumn = ({ children })=>{
24
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Grid, {
26
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Grid, {
25
27
  item: true,
26
28
  xs: 4,
27
- children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Stack, {
29
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Stack, {
28
30
  spacing: 3,
29
31
  children: children
30
32
  })
@@ -16,15 +16,17 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "OptionsEditorControl", {
18
18
  enumerable: true,
19
- get: ()=>OptionsEditorControl
19
+ get: function() {
20
+ return OptionsEditorControl;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
23
+ const _jsxruntime = require("react/jsx-runtime");
22
24
  const _material = require("@mui/material");
23
- const _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
24
- const _informationOutline = /*#__PURE__*/ _interopRequireDefault(require("mdi-material-ui/InformationOutline"));
25
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
26
+ const _InformationOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/InformationOutline"));
25
27
  const _utils = require("../utils");
26
- const _infoTooltip = require("../InfoTooltip");
27
- function _interopRequireDefault(obj) {
28
+ const _InfoTooltip = require("../InfoTooltip");
29
+ function _interop_require_default(obj) {
28
30
  return obj && obj.__esModule ? obj : {
29
31
  default: obj
30
32
  };
@@ -37,32 +39,32 @@ const OptionsEditorControl = ({ label , control , description })=>{
37
39
  const controlProps = {
38
40
  id: controlId
39
41
  };
40
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.FormControl, {
41
- children: /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_material.Stack, {
42
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormControl, {
43
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
42
44
  direction: "row",
43
45
  alignItems: "center",
44
46
  justifyContent: "space-between",
45
47
  children: [
46
- /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_material.Stack, {
48
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
47
49
  direction: "row",
48
50
  alignItems: "center",
49
51
  justifyContent: "center",
50
52
  children: [
51
- /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.FormLabel, {
53
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormLabel, {
52
54
  htmlFor: controlId,
53
55
  children: label
54
56
  }),
55
- description && /*#__PURE__*/ (0, _jsxRuntime.jsx)(_infoTooltip.InfoTooltip, {
57
+ description && /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoTooltip.InfoTooltip, {
56
58
  description: description,
57
59
  enterDelay: 100,
58
- children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.IconButton, {
60
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
59
61
  size: "small",
60
62
  sx: (theme)=>({
61
63
  borderRadius: theme.shape.borderRadius,
62
64
  padding: '4x',
63
65
  margin: '0 2px'
64
66
  }),
65
- children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_informationOutline.default, {
67
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InformationOutline.default, {
66
68
  "aria-describedby": "info-tooltip",
67
69
  "aria-hidden": false,
68
70
  fontSize: "inherit",
@@ -74,7 +76,7 @@ const OptionsEditorControl = ({ label , control , description })=>{
74
76
  })
75
77
  ]
76
78
  }),
77
- /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_material.Box, {
79
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
78
80
  sx: {
79
81
  width: '180px',
80
82
  textAlign: 'right'
@@ -16,12 +16,14 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "OptionsEditorGrid", {
18
18
  enumerable: true,
19
- get: ()=>OptionsEditorGrid
19
+ get: function() {
20
+ return OptionsEditorGrid;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
23
+ const _jsxruntime = require("react/jsx-runtime");
22
24
  const _material = require("@mui/material");
23
25
  const OptionsEditorGrid = ({ children })=>{
24
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Grid, {
26
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Grid, {
25
27
  container: true,
26
28
  spacing: 8,
27
29
  children: children
@@ -16,31 +16,33 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "OptionsEditorGroup", {
18
18
  enumerable: true,
19
- get: ()=>OptionsEditorGroup
19
+ get: function() {
20
+ return OptionsEditorGroup;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
23
+ const _jsxruntime = require("react/jsx-runtime");
22
24
  const _material = require("@mui/material");
23
- const _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
24
- function _interopRequireDefault(obj) {
25
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
26
+ function _interop_require_default(obj) {
25
27
  return obj && obj.__esModule ? obj : {
26
28
  default: obj
27
29
  };
28
30
  }
29
31
  const OptionsEditorGroup = ({ title , children , icon })=>{
30
- return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_material.Box, {
32
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
31
33
  children: [
32
- /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_material.Box, {
34
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
33
35
  display: "flex",
34
36
  borderBottom: 1,
35
37
  borderColor: "grey.300",
36
38
  marginBottom: (theme)=>theme.spacing(1),
37
39
  children: [
38
- /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Typography, {
40
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
39
41
  variant: "overline",
40
42
  component: "h4",
41
43
  children: title
42
44
  }),
43
- icon && /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Box, {
45
+ icon && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
44
46
  sx: {
45
47
  marginLeft: 'auto'
46
48
  },
@@ -48,7 +50,7 @@ const OptionsEditorGroup = ({ title , children , icon })=>{
48
50
  })
49
51
  ]
50
52
  }),
51
- /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Stack, {
53
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Stack, {
52
54
  spacing: 1,
53
55
  children: children
54
56
  })
@@ -14,18 +14,20 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
- _exportStar(require("./OptionsEditorColumn"), exports);
18
- _exportStar(require("./OptionsEditorControl"), exports);
19
- _exportStar(require("./OptionsEditorGrid"), exports);
20
- _exportStar(require("./OptionsEditorGroup"), exports);
21
- function _exportStar(from, to) {
17
+ _export_star(require("./OptionsEditorColumn"), exports);
18
+ _export_star(require("./OptionsEditorControl"), exports);
19
+ _export_star(require("./OptionsEditorGrid"), exports);
20
+ _export_star(require("./OptionsEditorGroup"), exports);
21
+ function _export_star(from, to) {
22
22
  Object.keys(from).forEach(function(k) {
23
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
24
- enumerable: true,
25
- get: function() {
26
- return from[k];
27
- }
28
- });
23
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
24
+ Object.defineProperty(to, k, {
25
+ enumerable: true,
26
+ get: function() {
27
+ return from[k];
28
+ }
29
+ });
30
+ }
29
31
  });
30
32
  return from;
31
33
  }
@@ -16,16 +16,31 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "RefreshIntervalPicker", {
18
18
  enumerable: true,
19
- get: ()=>RefreshIntervalPicker
19
+ get: function() {
20
+ return RefreshIntervalPicker;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
23
+ const _jsxruntime = require("react/jsx-runtime");
22
24
  const _material = require("@mui/material");
25
+ const _react = require("react");
23
26
  function RefreshIntervalPicker(props) {
24
27
  const { value , onChange , timeOptions , height } = props;
25
28
  const formattedValue = value;
26
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.FormControl, {
27
- children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Box, {
28
- children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Select, {
29
+ // If the dashboard refresh interval is not provided in timeOptions, it will create a specific option for the select
30
+ const customInterval = (0, _react.useMemo)(()=>{
31
+ if (value && !timeOptions.some((option)=>option.value.pastDuration === value)) {
32
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
33
+ value: value,
34
+ children: value
35
+ });
36
+ }
37
+ }, [
38
+ timeOptions,
39
+ value
40
+ ]);
41
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormControl, {
42
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
43
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Select, {
29
44
  id: "refreshInterval",
30
45
  value: formattedValue,
31
46
  onChange: (event)=>{
@@ -41,10 +56,13 @@ function RefreshIntervalPicker(props) {
41
56
  paddingY: 0
42
57
  } : {}
43
58
  },
44
- children: timeOptions.map((item, idx)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.MenuItem, {
45
- value: item.value.pastDuration,
46
- children: item.display
47
- }, idx))
59
+ children: [
60
+ timeOptions.map((item, idx)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
61
+ value: item.value.pastDuration,
62
+ children: item.display
63
+ }, idx)),
64
+ customInterval
65
+ ]
48
66
  })
49
67
  })
50
68
  });
@@ -14,15 +14,17 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
- _exportStar(require("./RefreshIntervalPicker"), exports);
18
- function _exportStar(from, to) {
17
+ _export_star(require("./RefreshIntervalPicker"), exports);
18
+ function _export_star(from, to) {
19
19
  Object.keys(from).forEach(function(k) {
20
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
21
- enumerable: true,
22
- get: function() {
23
- return from[k];
24
- }
25
- });
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
+ }
26
28
  });
27
29
  return from;
28
30
  }
@@ -16,38 +16,40 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "SettingsAutocomplete", {
18
18
  enumerable: true,
19
- get: ()=>SettingsAutocomplete
19
+ get: function() {
20
+ return SettingsAutocomplete;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
23
+ const _jsxruntime = require("react/jsx-runtime");
22
24
  const _material = require("@mui/material");
23
- function SettingsAutocomplete({ options , renderInput =(params)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.TextField, {
25
+ function SettingsAutocomplete({ options , renderInput =(params)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
24
26
  ...params
25
27
  }) , ...otherProps }) {
26
28
  const getOptionLabel = (option)=>{
27
- var _label;
28
- return (_label = option.label) !== null && _label !== void 0 ? _label : option.id;
29
+ var _option_label;
30
+ return (_option_label = option.label) !== null && _option_label !== void 0 ? _option_label : option.id;
29
31
  };
30
32
  // Note: this component currently is not virtualized because it is specific
31
33
  // to being used for settings, which generally have a pretty small list of
32
34
  // options. If this changes to include values with many options, virtualization
33
35
  // should be added using react-virtuoso.
34
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Autocomplete, {
36
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Autocomplete, {
35
37
  isOptionEqualToValue: (option, value)=>option.id === value.id,
36
38
  getOptionDisabled: (option)=>!!option.disabled,
37
39
  getOptionLabel: getOptionLabel,
38
40
  options: options,
39
41
  renderInput: renderInput,
40
42
  renderOption: (props, option)=>{
41
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)("li", {
43
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("li", {
42
44
  ...props,
43
- children: /*#__PURE__*/ (0, _jsxRuntime.jsxs)("div", {
45
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
44
46
  children: [
45
- /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Typography, {
47
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
46
48
  variant: "body1",
47
49
  component: "div",
48
50
  children: getOptionLabel(option)
49
51
  }),
50
- option.description && /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Typography, {
52
+ option.description && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
51
53
  variant: "body2",
52
54
  component: "div",
53
55
  color: (theme)=>theme.palette.text.secondary,
@@ -14,15 +14,17 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
- _exportStar(require("./SettingsAutocomplete"), exports);
18
- function _exportStar(from, to) {
17
+ _export_star(require("./SettingsAutocomplete"), exports);
18
+ function _export_star(from, to) {
19
19
  Object.keys(from).forEach(function(k) {
20
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
21
- enumerable: true,
22
- get: function() {
23
- return from[k];
24
- }
25
- });
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
+ }
26
28
  });
27
29
  return from;
28
30
  }
@@ -16,11 +16,13 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "SortSelector", {
18
18
  enumerable: true,
19
- get: ()=>SortSelector
19
+ get: function() {
20
+ return SortSelector;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
22
- const _optionsEditorLayout = require("../OptionsEditorLayout");
23
- const _settingsAutocomplete = require("../SettingsAutocomplete");
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _OptionsEditorLayout = require("../OptionsEditorLayout");
25
+ const _SettingsAutocomplete = require("../SettingsAutocomplete");
24
26
  const SORT_OPTIONS = [
25
27
  {
26
28
  id: 'asc',
@@ -35,9 +37,9 @@ function SortSelector({ onChange , value ='desc' }) {
35
37
  const handleSortChange = (_, { id })=>{
36
38
  onChange(id);
37
39
  };
38
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_optionsEditorLayout.OptionsEditorControl, {
40
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsEditorLayout.OptionsEditorControl, {
39
41
  label: "Sort",
40
- control: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_settingsAutocomplete.SettingsAutocomplete, {
42
+ control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_SettingsAutocomplete.SettingsAutocomplete, {
41
43
  value: SORT_OPTIONS.find((o)=>o.id === value),
42
44
  options: SORT_OPTIONS,
43
45
  getOptionLabel: (o)=>o.label,