@perses-dev/components 0.0.0-snapshot-panel-extra-content-3-17f9c42 → 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 (505) hide show
  1. package/dist/BarChart/BarChart.d.ts +3 -4
  2. package/dist/BarChart/BarChart.d.ts.map +1 -1
  3. package/dist/BarChart/BarChart.js +17 -11
  4. package/dist/BarChart/BarChart.js.map +1 -1
  5. package/dist/BarChart/index.js.map +1 -1
  6. package/dist/ColorPicker/ColorPicker.d.ts +1 -2
  7. package/dist/ColorPicker/ColorPicker.d.ts.map +1 -1
  8. package/dist/ColorPicker/ColorPicker.js +1 -1
  9. package/dist/ColorPicker/ColorPicker.js.map +1 -1
  10. package/dist/ColorPicker/index.js.map +1 -1
  11. package/dist/ContentWithLegend/ContentWithLegend.d.ts +1 -2
  12. package/dist/ContentWithLegend/ContentWithLegend.d.ts.map +1 -1
  13. package/dist/ContentWithLegend/ContentWithLegend.js +2 -2
  14. package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
  15. package/dist/ContentWithLegend/index.js.map +1 -1
  16. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +3 -3
  17. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts.map +1 -1
  18. package/dist/ContentWithLegend/model/content-with-legend-model.js +21 -21
  19. package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
  20. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts +1 -2
  21. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +1 -1
  22. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js +8 -24
  23. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +1 -1
  24. package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -2
  25. package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
  26. package/dist/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  27. package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
  28. package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts +1 -2
  29. package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts.map +1 -1
  30. package/dist/DateTimeRangePicker/TimeRangeSelector.js +2 -2
  31. package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +1 -1
  32. package/dist/DateTimeRangePicker/index.js.map +1 -1
  33. package/dist/DateTimeRangePicker/utils.js.map +1 -1
  34. package/dist/Dialog/Dialog.d.ts +6 -6
  35. package/dist/Dialog/Dialog.d.ts.map +1 -1
  36. package/dist/Dialog/Dialog.js +5 -5
  37. package/dist/Dialog/Dialog.js.map +1 -1
  38. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts +1 -2
  39. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts.map +1 -1
  40. package/dist/Dialog/DiscardChangesConfirmationDialog.js +1 -1
  41. package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
  42. package/dist/Dialog/index.js.map +1 -1
  43. package/dist/Drawer/Drawer.d.ts +1 -2
  44. package/dist/Drawer/Drawer.d.ts.map +1 -1
  45. package/dist/Drawer/Drawer.js +4 -3
  46. package/dist/Drawer/Drawer.js.map +1 -1
  47. package/dist/Drawer/index.js.map +1 -1
  48. package/dist/EChart/EChart.d.ts +7 -7
  49. package/dist/EChart/EChart.d.ts.map +1 -1
  50. package/dist/EChart/EChart.js +3 -3
  51. package/dist/EChart/EChart.js.map +1 -1
  52. package/dist/EChart/index.js.map +1 -1
  53. package/dist/ErrorAlert.d.ts +1 -2
  54. package/dist/ErrorAlert.d.ts.map +1 -1
  55. package/dist/ErrorAlert.js +1 -1
  56. package/dist/ErrorAlert.js.map +1 -1
  57. package/dist/ErrorBoundary.js.map +1 -1
  58. package/dist/FontSizeSelector/FontSizeSelector.d.ts +2 -3
  59. package/dist/FontSizeSelector/FontSizeSelector.d.ts.map +1 -1
  60. package/dist/FontSizeSelector/FontSizeSelector.js +2 -2
  61. package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
  62. package/dist/FontSizeSelector/index.js.map +1 -1
  63. package/dist/FormatControls/FormatControls.d.ts +8 -0
  64. package/dist/FormatControls/FormatControls.d.ts.map +1 -0
  65. package/dist/{UnitSelector/UnitSelector.js → FormatControls/FormatControls.js} +26 -26
  66. package/dist/FormatControls/FormatControls.js.map +1 -0
  67. package/dist/FormatControls/index.d.ts +2 -0
  68. package/dist/FormatControls/index.d.ts.map +1 -0
  69. package/dist/{UnitSelector → FormatControls}/index.js +1 -1
  70. package/dist/FormatControls/index.js.map +1 -0
  71. package/dist/GaugeChart/GaugeChart.d.ts +6 -7
  72. package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
  73. package/dist/GaugeChart/GaugeChart.js +12 -12
  74. package/dist/GaugeChart/GaugeChart.js.map +1 -1
  75. package/dist/GaugeChart/index.js.map +1 -1
  76. package/dist/InfoTooltip/InfoTooltip.d.ts +2 -2
  77. package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
  78. package/dist/InfoTooltip/InfoTooltip.js +4 -4
  79. package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
  80. package/dist/InfoTooltip/index.js.map +1 -1
  81. package/dist/JSONEditor.d.ts +4 -4
  82. package/dist/JSONEditor.d.ts.map +1 -1
  83. package/dist/JSONEditor.js +9 -8
  84. package/dist/JSONEditor.js.map +1 -1
  85. package/dist/Legend/CompactLegend.d.ts +1 -2
  86. package/dist/Legend/CompactLegend.d.ts.map +1 -1
  87. package/dist/Legend/CompactLegend.js +1 -1
  88. package/dist/Legend/CompactLegend.js.map +1 -1
  89. package/dist/Legend/Legend.d.ts +1 -2
  90. package/dist/Legend/Legend.d.ts.map +1 -1
  91. package/dist/Legend/Legend.js +4 -4
  92. package/dist/Legend/Legend.js.map +1 -1
  93. package/dist/Legend/LegendColorBadge.js +1 -1
  94. package/dist/Legend/LegendColorBadge.js.map +1 -1
  95. package/dist/Legend/ListLegend.d.ts +1 -2
  96. package/dist/Legend/ListLegend.d.ts.map +1 -1
  97. package/dist/Legend/ListLegend.js +1 -1
  98. package/dist/Legend/ListLegend.js.map +1 -1
  99. package/dist/Legend/ListLegendItem.d.ts +2 -2
  100. package/dist/Legend/ListLegendItem.d.ts.map +1 -1
  101. package/dist/Legend/ListLegendItem.js +7 -11
  102. package/dist/Legend/ListLegendItem.js.map +1 -1
  103. package/dist/Legend/TableLegend.d.ts +1 -2
  104. package/dist/Legend/TableLegend.d.ts.map +1 -1
  105. package/dist/Legend/TableLegend.js +2 -2
  106. package/dist/Legend/TableLegend.js.map +1 -1
  107. package/dist/Legend/index.js.map +1 -1
  108. package/dist/Legend/legend-model.d.ts +2 -2
  109. package/dist/Legend/legend-model.d.ts.map +1 -1
  110. package/dist/Legend/legend-model.js.map +1 -1
  111. package/dist/LineChart/LineChart.d.ts +2 -2
  112. package/dist/LineChart/LineChart.d.ts.map +1 -1
  113. package/dist/LineChart/LineChart.js +22 -24
  114. package/dist/LineChart/LineChart.js.map +1 -1
  115. package/dist/LineChart/index.js.map +1 -1
  116. package/dist/ModeSelector/ModeSelector.d.ts +2 -3
  117. package/dist/ModeSelector/ModeSelector.d.ts.map +1 -1
  118. package/dist/ModeSelector/ModeSelector.js +2 -2
  119. package/dist/ModeSelector/ModeSelector.js.map +1 -1
  120. package/dist/ModeSelector/index.js.map +1 -1
  121. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts +2 -2
  122. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts.map +1 -1
  123. package/dist/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  124. package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
  125. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts +2 -3
  126. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts.map +1 -1
  127. package/dist/OptionsEditorLayout/OptionsEditorControl.js +1 -1
  128. package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
  129. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts +2 -2
  130. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts.map +1 -1
  131. package/dist/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  132. package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
  133. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts +2 -2
  134. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts.map +1 -1
  135. package/dist/OptionsEditorLayout/OptionsEditorGroup.js +1 -1
  136. package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
  137. package/dist/OptionsEditorLayout/index.js.map +1 -1
  138. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts +1 -2
  139. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts.map +1 -1
  140. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +23 -7
  141. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
  142. package/dist/RefreshIntervalPicker/index.js.map +1 -1
  143. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts +1 -1
  144. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts.map +1 -1
  145. package/dist/SettingsAutocomplete/SettingsAutocomplete.js +4 -4
  146. package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
  147. package/dist/SettingsAutocomplete/index.js.map +1 -1
  148. package/dist/SortSelector/SortSelector.d.ts +2 -3
  149. package/dist/SortSelector/SortSelector.d.ts.map +1 -1
  150. package/dist/SortSelector/SortSelector.js +2 -2
  151. package/dist/SortSelector/SortSelector.js.map +1 -1
  152. package/dist/SortSelector/index.js.map +1 -1
  153. package/dist/StatChart/StatChart.d.ts +3 -4
  154. package/dist/StatChart/StatChart.d.ts.map +1 -1
  155. package/dist/StatChart/StatChart.js +10 -10
  156. package/dist/StatChart/StatChart.js.map +1 -1
  157. package/dist/StatChart/calculateFontSize.js +8 -8
  158. package/dist/StatChart/calculateFontSize.js.map +1 -1
  159. package/dist/StatChart/index.js.map +1 -1
  160. package/dist/Table/InnerTable.d.ts +2 -2
  161. package/dist/Table/InnerTable.d.ts.map +1 -1
  162. package/dist/Table/InnerTable.js +2 -2
  163. package/dist/Table/InnerTable.js.map +1 -1
  164. package/dist/Table/Table.d.ts +1 -2
  165. package/dist/Table/Table.d.ts.map +1 -1
  166. package/dist/Table/Table.js +3 -3
  167. package/dist/Table/Table.js.map +1 -1
  168. package/dist/Table/TableBody.d.ts +2 -2
  169. package/dist/Table/TableBody.d.ts.map +1 -1
  170. package/dist/Table/TableBody.js.map +1 -1
  171. package/dist/Table/TableCell.d.ts +1 -1
  172. package/dist/Table/TableCell.d.ts.map +1 -1
  173. package/dist/Table/TableCell.js +4 -4
  174. package/dist/Table/TableCell.js.map +1 -1
  175. package/dist/Table/TableCheckbox.d.ts +1 -2
  176. package/dist/Table/TableCheckbox.d.ts.map +1 -1
  177. package/dist/Table/TableCheckbox.js +1 -1
  178. package/dist/Table/TableCheckbox.js.map +1 -1
  179. package/dist/Table/TableHead.d.ts +2 -2
  180. package/dist/Table/TableHead.d.ts.map +1 -1
  181. package/dist/Table/TableHead.js.map +1 -1
  182. package/dist/Table/TableHeaderCell.d.ts +1 -2
  183. package/dist/Table/TableHeaderCell.d.ts.map +1 -1
  184. package/dist/Table/TableHeaderCell.js +1 -1
  185. package/dist/Table/TableHeaderCell.js.map +1 -1
  186. package/dist/Table/TableRow.d.ts +1 -1
  187. package/dist/Table/TableRow.d.ts.map +1 -1
  188. package/dist/Table/TableRow.js.map +1 -1
  189. package/dist/Table/VirtualizedTable.d.ts +2 -2
  190. package/dist/Table/VirtualizedTable.d.ts.map +1 -1
  191. package/dist/Table/VirtualizedTable.js +8 -8
  192. package/dist/Table/VirtualizedTable.js.map +1 -1
  193. package/dist/Table/VirtualizedTableContainer.d.ts +2 -2
  194. package/dist/Table/VirtualizedTableContainer.d.ts.map +1 -1
  195. package/dist/Table/VirtualizedTableContainer.js.map +1 -1
  196. package/dist/Table/hooks/useTableKeyboardNav.d.ts +1 -1
  197. package/dist/Table/hooks/useTableKeyboardNav.d.ts.map +1 -1
  198. package/dist/Table/hooks/useTableKeyboardNav.js +1 -1
  199. package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
  200. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +21 -21
  201. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
  202. package/dist/Table/index.js.map +1 -1
  203. package/dist/Table/model/table-model.d.ts +6 -6
  204. package/dist/Table/model/table-model.d.ts.map +1 -1
  205. package/dist/Table/model/table-model.js +11 -11
  206. package/dist/Table/model/table-model.js.map +1 -1
  207. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts +1 -2
  208. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts.map +1 -1
  209. package/dist/ThresholdsEditor/ThresholdColorPicker.js +4 -4
  210. package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +1 -1
  211. package/dist/ThresholdsEditor/ThresholdInput.d.ts +1 -1
  212. package/dist/ThresholdsEditor/ThresholdInput.d.ts.map +1 -1
  213. package/dist/ThresholdsEditor/ThresholdInput.js +2 -2
  214. package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
  215. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts +1 -2
  216. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
  217. package/dist/ThresholdsEditor/ThresholdsEditor.js +23 -21
  218. package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
  219. package/dist/ThresholdsEditor/index.js.map +1 -1
  220. package/dist/TimeChart/TimeChart.d.ts +3 -3
  221. package/dist/TimeChart/TimeChart.d.ts.map +1 -1
  222. package/dist/TimeChart/TimeChart.js +110 -67
  223. package/dist/TimeChart/TimeChart.js.map +1 -1
  224. package/dist/TimeChart/index.js.map +1 -1
  225. package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts +2 -2
  226. package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts.map +1 -1
  227. package/dist/TimeSeriesTooltip/LineChartTooltip.js +11 -10
  228. package/dist/TimeSeriesTooltip/LineChartTooltip.js.map +1 -1
  229. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts +1 -2
  230. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -1
  231. package/dist/TimeSeriesTooltip/SeriesInfo.js +3 -3
  232. package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
  233. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +1 -2
  234. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts.map +1 -1
  235. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
  236. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
  237. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts +1 -2
  238. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts.map +1 -1
  239. package/dist/TimeSeriesTooltip/SeriesMarker.js +1 -1
  240. package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
  241. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts +2 -2
  242. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts.map +1 -1
  243. package/dist/TimeSeriesTooltip/TimeChartTooltip.js +6 -6
  244. package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
  245. package/dist/TimeSeriesTooltip/TooltipContent.d.ts +1 -2
  246. package/dist/TimeSeriesTooltip/TooltipContent.d.ts.map +1 -1
  247. package/dist/TimeSeriesTooltip/TooltipContent.js +2 -2
  248. package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
  249. package/dist/TimeSeriesTooltip/TooltipHeader.js +7 -7
  250. package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
  251. package/dist/TimeSeriesTooltip/index.js.map +1 -1
  252. package/dist/TimeSeriesTooltip/nearby-series.d.ts +8 -8
  253. package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
  254. package/dist/TimeSeriesTooltip/nearby-series.js +44 -45
  255. package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
  256. package/dist/TimeSeriesTooltip/tooltip-model.d.ts +13 -26
  257. package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
  258. package/dist/TimeSeriesTooltip/tooltip-model.js +5 -11
  259. package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
  260. package/dist/TimeSeriesTooltip/utils.d.ts +1 -1
  261. package/dist/TimeSeriesTooltip/utils.d.ts.map +1 -1
  262. package/dist/TimeSeriesTooltip/utils.js +5 -4
  263. package/dist/TimeSeriesTooltip/utils.js.map +1 -1
  264. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts +6 -0
  265. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts.map +1 -0
  266. package/dist/ToolbarIconButton/ToolbarIconButton.js +32 -0
  267. package/dist/ToolbarIconButton/ToolbarIconButton.js.map +1 -0
  268. package/dist/ToolbarIconButton/index.d.ts +2 -0
  269. package/dist/ToolbarIconButton/index.d.ts.map +1 -0
  270. package/dist/ToolbarIconButton/index.js +15 -0
  271. package/dist/ToolbarIconButton/index.js.map +1 -0
  272. package/dist/YAxisLabel.d.ts +1 -2
  273. package/dist/YAxisLabel.d.ts.map +1 -1
  274. package/dist/YAxisLabel.js +1 -1
  275. package/dist/YAxisLabel.js.map +1 -1
  276. package/dist/cjs/BarChart/BarChart.js +25 -17
  277. package/dist/cjs/BarChart/index.js +10 -8
  278. package/dist/cjs/ColorPicker/ColorPicker.js +19 -15
  279. package/dist/cjs/ColorPicker/index.js +10 -8
  280. package/dist/cjs/ContentWithLegend/ContentWithLegend.js +13 -11
  281. package/dist/cjs/ContentWithLegend/index.js +10 -8
  282. package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +29 -25
  283. package/dist/cjs/DateTimeRangePicker/AbsoluteTimePicker.js +30 -44
  284. package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +13 -11
  285. package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +14 -12
  286. package/dist/cjs/DateTimeRangePicker/index.js +12 -10
  287. package/dist/cjs/DateTimeRangePicker/utils.js +9 -5
  288. package/dist/cjs/Dialog/Dialog.js +16 -14
  289. package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +12 -10
  290. package/dist/cjs/Dialog/index.js +11 -9
  291. package/dist/cjs/Drawer/Drawer.js +8 -5
  292. package/dist/cjs/Drawer/index.js +10 -8
  293. package/dist/cjs/EChart/EChart.js +16 -12
  294. package/dist/cjs/EChart/index.js +10 -8
  295. package/dist/cjs/ErrorAlert.js +6 -4
  296. package/dist/cjs/ErrorBoundary.js +4 -2
  297. package/dist/cjs/FontSizeSelector/FontSizeSelector.js +10 -8
  298. package/dist/cjs/FontSizeSelector/index.js +10 -8
  299. package/dist/cjs/{UnitSelector/UnitSelector.js → FormatControls/FormatControls.js} +38 -36
  300. package/dist/cjs/{UnitSelector → FormatControls}/index.js +10 -8
  301. package/dist/cjs/GaugeChart/GaugeChart.js +22 -18
  302. package/dist/cjs/GaugeChart/index.js +10 -8
  303. package/dist/cjs/InfoTooltip/InfoTooltip.js +16 -14
  304. package/dist/cjs/InfoTooltip/index.js +10 -8
  305. package/dist/cjs/JSONEditor.js +19 -16
  306. package/dist/cjs/Legend/CompactLegend.js +10 -8
  307. package/dist/cjs/Legend/Legend.js +16 -14
  308. package/dist/cjs/Legend/LegendColorBadge.js +8 -6
  309. package/dist/cjs/Legend/ListLegend.js +11 -9
  310. package/dist/cjs/Legend/ListLegendItem.js +20 -20
  311. package/dist/cjs/Legend/TableLegend.js +8 -6
  312. package/dist/cjs/Legend/index.js +11 -9
  313. package/dist/cjs/Legend/legend-model.js +3 -1
  314. package/dist/cjs/LineChart/LineChart.js +31 -31
  315. package/dist/cjs/LineChart/index.js +10 -8
  316. package/dist/cjs/ModeSelector/ModeSelector.js +10 -8
  317. package/dist/cjs/ModeSelector/index.js +10 -8
  318. package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +7 -5
  319. package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +17 -15
  320. package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +6 -4
  321. package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +12 -10
  322. package/dist/cjs/OptionsEditorLayout/index.js +13 -11
  323. package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +28 -10
  324. package/dist/cjs/RefreshIntervalPicker/index.js +10 -8
  325. package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +13 -11
  326. package/dist/cjs/SettingsAutocomplete/index.js +10 -8
  327. package/dist/cjs/SortSelector/SortSelector.js +10 -8
  328. package/dist/cjs/SortSelector/index.js +10 -8
  329. package/dist/cjs/StatChart/StatChart.js +22 -20
  330. package/dist/cjs/StatChart/calculateFontSize.js +11 -9
  331. package/dist/cjs/StatChart/index.js +10 -8
  332. package/dist/cjs/Table/InnerTable.js +7 -5
  333. package/dist/cjs/Table/Table.js +18 -16
  334. package/dist/cjs/Table/TableBody.js +5 -3
  335. package/dist/cjs/Table/TableCell.js +12 -10
  336. package/dist/cjs/Table/TableCheckbox.js +6 -4
  337. package/dist/cjs/Table/TableHead.js +5 -3
  338. package/dist/cjs/Table/TableHeaderCell.js +9 -7
  339. package/dist/cjs/Table/TableRow.js +5 -3
  340. package/dist/cjs/Table/VirtualizedTable.js +34 -32
  341. package/dist/cjs/Table/VirtualizedTableContainer.js +5 -3
  342. package/dist/cjs/Table/hooks/useTableKeyboardNav.js +4 -2
  343. package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +24 -22
  344. package/dist/cjs/Table/index.js +14 -10
  345. package/dist/cjs/Table/model/table-model.js +17 -13
  346. package/dist/cjs/ThresholdsEditor/ThresholdColorPicker.js +17 -15
  347. package/dist/cjs/ThresholdsEditor/ThresholdInput.js +15 -13
  348. package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +50 -44
  349. package/dist/cjs/ThresholdsEditor/index.js +10 -8
  350. package/dist/cjs/TimeChart/TimeChart.js +123 -78
  351. package/dist/cjs/TimeChart/index.js +10 -8
  352. package/dist/cjs/TimeSeriesTooltip/LineChartTooltip.js +31 -28
  353. package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +18 -16
  354. package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +16 -14
  355. package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +6 -4
  356. package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +23 -21
  357. package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +9 -7
  358. package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +35 -33
  359. package/dist/cjs/TimeSeriesTooltip/index.js +19 -17
  360. package/dist/cjs/TimeSeriesTooltip/nearby-series.js +70 -53
  361. package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +56 -28
  362. package/dist/cjs/TimeSeriesTooltip/utils.js +19 -14
  363. package/dist/cjs/ToolbarIconButton/ToolbarIconButton.js +40 -0
  364. package/dist/cjs/ToolbarIconButton/index.js +30 -0
  365. package/dist/cjs/YAxisLabel.js +7 -5
  366. package/dist/cjs/context/{ChartsThemeProvider.js → ChartsProvider.js} +41 -12
  367. package/dist/cjs/context/SnackbarProvider.js +7 -3
  368. package/dist/cjs/context/TimeZoneProvider.js +17 -9
  369. package/dist/cjs/context/index.js +32 -0
  370. package/dist/cjs/index.js +42 -41
  371. package/dist/cjs/model/graph.js +9 -3
  372. package/dist/cjs/model/index.js +12 -10
  373. package/dist/cjs/test/index.js +10 -8
  374. package/dist/cjs/test/render.js +7 -5
  375. package/dist/cjs/test-utils/index.js +10 -8
  376. package/dist/cjs/test-utils/theme.js +38 -19
  377. package/dist/cjs/theme/component-overrides/alert.js +7 -5
  378. package/dist/cjs/theme/component-overrides/paper.js +4 -2
  379. package/dist/cjs/theme/index.js +10 -8
  380. package/dist/cjs/theme/palette/background.js +6 -2
  381. package/dist/cjs/theme/palette/colors/blue.js +3 -1
  382. package/dist/cjs/theme/palette/colors/common.js +6 -2
  383. package/dist/cjs/theme/palette/colors/green.js +3 -1
  384. package/dist/cjs/theme/palette/colors/grey.js +3 -1
  385. package/dist/cjs/theme/palette/colors/index.js +17 -15
  386. package/dist/cjs/theme/palette/colors/orange.js +3 -1
  387. package/dist/cjs/theme/palette/colors/purple.js +3 -1
  388. package/dist/cjs/theme/palette/colors/red.js +3 -1
  389. package/dist/cjs/theme/palette/error.js +3 -1
  390. package/dist/cjs/theme/palette/grey.js +3 -1
  391. package/dist/cjs/theme/palette/index.js +10 -8
  392. package/dist/cjs/theme/palette/palette-options.js +3 -1
  393. package/dist/cjs/theme/palette/primary.js +3 -1
  394. package/dist/cjs/theme/palette/secondary.js +3 -1
  395. package/dist/cjs/theme/palette/success.js +3 -1
  396. package/dist/cjs/theme/palette/text.js +3 -1
  397. package/dist/cjs/theme/palette/warning.js +3 -1
  398. package/dist/cjs/theme/theme.js +6 -4
  399. package/dist/cjs/theme/typography.js +3 -1
  400. package/dist/cjs/utils/axis.js +11 -7
  401. package/dist/cjs/utils/chart-actions.js +68 -12
  402. package/dist/cjs/utils/combine-sx.js +3 -1
  403. package/dist/cjs/utils/component-ids.js +3 -1
  404. package/dist/cjs/utils/format.js +16 -8
  405. package/dist/cjs/utils/index.js +15 -13
  406. package/dist/cjs/utils/mathjs.js +4 -2
  407. package/dist/cjs/utils/theme-gen.js +16 -18
  408. package/dist/context/ChartsProvider.d.ts +19 -0
  409. package/dist/context/ChartsProvider.d.ts.map +1 -0
  410. package/dist/context/{ChartsThemeProvider.js → ChartsProvider.js} +24 -6
  411. package/dist/context/ChartsProvider.js.map +1 -0
  412. package/dist/context/SnackbarProvider.d.ts +2 -2
  413. package/dist/context/SnackbarProvider.d.ts.map +1 -1
  414. package/dist/context/SnackbarProvider.js +1 -1
  415. package/dist/context/SnackbarProvider.js.map +1 -1
  416. package/dist/context/TimeZoneProvider.d.ts +1 -1
  417. package/dist/context/TimeZoneProvider.d.ts.map +1 -1
  418. package/dist/context/TimeZoneProvider.js +1 -1
  419. package/dist/context/TimeZoneProvider.js.map +1 -1
  420. package/dist/context/index.d.ts +4 -0
  421. package/dist/context/index.d.ts.map +1 -0
  422. package/dist/context/index.js +17 -0
  423. package/dist/context/index.js.map +1 -0
  424. package/dist/index.d.ts +3 -4
  425. package/dist/index.d.ts.map +1 -1
  426. package/dist/index.js +3 -4
  427. package/dist/index.js.map +1 -1
  428. package/dist/model/graph.d.ts +8 -8
  429. package/dist/model/graph.d.ts.map +1 -1
  430. package/dist/model/graph.js.map +1 -1
  431. package/dist/model/index.js.map +1 -1
  432. package/dist/model/theme.d.ts +1 -1
  433. package/dist/model/theme.d.ts.map +1 -1
  434. package/dist/model/theme.js.map +1 -1
  435. package/dist/model/timeOption.js.map +1 -1
  436. package/dist/test/index.js.map +1 -1
  437. package/dist/test/render.js.map +1 -1
  438. package/dist/test/setup-tests.js.map +1 -1
  439. package/dist/test-utils/index.js.map +1 -1
  440. package/dist/test-utils/theme.d.ts +2 -0
  441. package/dist/test-utils/theme.d.ts.map +1 -1
  442. package/dist/test-utils/theme.js +25 -16
  443. package/dist/test-utils/theme.js.map +1 -1
  444. package/dist/theme/component-overrides/alert.js +4 -4
  445. package/dist/theme/component-overrides/alert.js.map +1 -1
  446. package/dist/theme/component-overrides/paper.js +1 -1
  447. package/dist/theme/component-overrides/paper.js.map +1 -1
  448. package/dist/theme/index.d.ts +1 -0
  449. package/dist/theme/index.d.ts.map +1 -1
  450. package/dist/theme/index.js.map +1 -1
  451. package/dist/theme/palette/background.d.ts.map +1 -1
  452. package/dist/theme/palette/background.js +3 -1
  453. package/dist/theme/palette/background.js.map +1 -1
  454. package/dist/theme/palette/colors/blue.js.map +1 -1
  455. package/dist/theme/palette/colors/common.js.map +1 -1
  456. package/dist/theme/palette/colors/green.js.map +1 -1
  457. package/dist/theme/palette/colors/grey.js.map +1 -1
  458. package/dist/theme/palette/colors/index.js.map +1 -1
  459. package/dist/theme/palette/colors/orange.js.map +1 -1
  460. package/dist/theme/palette/colors/purple.js.map +1 -1
  461. package/dist/theme/palette/colors/red.js.map +1 -1
  462. package/dist/theme/palette/colors/types.d.ts +1 -1
  463. package/dist/theme/palette/colors/types.d.ts.map +1 -1
  464. package/dist/theme/palette/colors/types.js.map +1 -1
  465. package/dist/theme/palette/error.js.map +1 -1
  466. package/dist/theme/palette/grey.js.map +1 -1
  467. package/dist/theme/palette/index.js.map +1 -1
  468. package/dist/theme/palette/palette-options.js.map +1 -1
  469. package/dist/theme/palette/primary.js.map +1 -1
  470. package/dist/theme/palette/secondary.js.map +1 -1
  471. package/dist/theme/palette/success.js.map +1 -1
  472. package/dist/theme/palette/text.js.map +1 -1
  473. package/dist/theme/palette/warning.js.map +1 -1
  474. package/dist/theme/theme.js +1 -1
  475. package/dist/theme/theme.js.map +1 -1
  476. package/dist/theme/types/ThemeExtension.d.js.map +1 -1
  477. package/dist/theme/typography.js.map +1 -1
  478. package/dist/utils/axis.d.ts +4 -4
  479. package/dist/utils/axis.d.ts.map +1 -1
  480. package/dist/utils/axis.js +4 -4
  481. package/dist/utils/axis.js.map +1 -1
  482. package/dist/utils/chart-actions.d.ts +6 -2
  483. package/dist/utils/chart-actions.d.ts.map +1 -1
  484. package/dist/utils/chart-actions.js +51 -7
  485. package/dist/utils/chart-actions.js.map +1 -1
  486. package/dist/utils/combine-sx.js.map +1 -1
  487. package/dist/utils/component-ids.js.map +1 -1
  488. package/dist/utils/format.js.map +1 -1
  489. package/dist/utils/index.js.map +1 -1
  490. package/dist/utils/mathjs.js +1 -1
  491. package/dist/utils/mathjs.js.map +1 -1
  492. package/dist/utils/theme-gen.d.ts +3 -8
  493. package/dist/utils/theme-gen.d.ts.map +1 -1
  494. package/dist/utils/theme-gen.js +11 -15
  495. package/dist/utils/theme-gen.js.map +1 -1
  496. package/package.json +8 -7
  497. package/dist/UnitSelector/UnitSelector.d.ts +0 -9
  498. package/dist/UnitSelector/UnitSelector.d.ts.map +0 -1
  499. package/dist/UnitSelector/UnitSelector.js.map +0 -1
  500. package/dist/UnitSelector/index.d.ts +0 -2
  501. package/dist/UnitSelector/index.d.ts.map +0 -1
  502. package/dist/UnitSelector/index.js.map +0 -1
  503. package/dist/context/ChartsThemeProvider.d.ts +0 -10
  504. package/dist/context/ChartsThemeProvider.d.ts.map +0 -1
  505. package/dist/context/ChartsThemeProvider.js.map +0 -1
@@ -16,15 +16,17 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "Table", {
18
18
  enumerable: true,
19
- get: ()=>Table
19
+ get: function() {
20
+ return Table;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
22
- const _reactTable = require("@tanstack/react-table");
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _reacttable = require("@tanstack/react-table");
23
25
  const _material = require("@mui/material");
24
26
  const _react = require("react");
25
- const _virtualizedTable = require("./VirtualizedTable");
26
- const _tableCheckbox = require("./TableCheckbox");
27
- const _tableModel = require("./model/table-model");
27
+ const _VirtualizedTable = require("./VirtualizedTable");
28
+ const _TableCheckbox = require("./TableCheckbox");
29
+ const _tablemodel = require("./model/table-model");
28
30
  const DEFAULT_GET_ROW_ID = (data, index)=>{
29
31
  return `${index}`;
30
32
  };
@@ -33,7 +35,7 @@ const DEFAULT_GET_ROW_ID = (data, index)=>{
33
35
  // does not do deep equality checking for objects and arrays.
34
36
  const DEFAULT_ROW_SELECTION = {};
35
37
  const DEFAULT_SORTING = [];
36
- 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 }) {
37
39
  const theme = (0, _material.useTheme)();
38
40
  const handleRowSelectionChange = (rowSelectionUpdater)=>{
39
41
  const newRowSelection = typeof rowSelectionUpdater === 'function' ? rowSelectionUpdater(rowSelection) : rowSelectionUpdater;
@@ -75,8 +77,8 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
75
77
  return {
76
78
  id: 'checkboxRowSelect',
77
79
  size: 28,
78
- header: ({ table })=>{
79
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_tableCheckbox.TableCheckbox, {
80
+ header: ({ table })=>{
81
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCheckbox.TableCheckbox, {
80
82
  checked: table.getIsAllRowsSelected(),
81
83
  indeterminate: table.getIsSomeRowsSelected(),
82
84
  onChange: table.getToggleAllRowsSelectedHandler(),
@@ -84,8 +86,8 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
84
86
  density: density
85
87
  });
86
88
  },
87
- cell: ({ row , table })=>{
88
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_tableCheckbox.TableCheckbox, {
89
+ cell: ({ row, table })=>{
90
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCheckbox.TableCheckbox, {
89
91
  checked: row.getIsSelected(),
90
92
  indeterminate: row.getIsSomeSelected(),
91
93
  onChange: (e)=>{
@@ -104,7 +106,7 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
104
106
  handleCheckboxChange
105
107
  ]);
106
108
  const tableColumns = (0, _react.useMemo)(()=>{
107
- const initTableColumns = (0, _tableModel.persesColumnsToTanstackColumns)(columns);
109
+ const initTableColumns = (0, _tablemodel.persesColumnsToTanstackColumns)(columns);
108
110
  if (checkboxSelection) {
109
111
  initTableColumns.unshift(checkboxColumn);
110
112
  }
@@ -114,12 +116,12 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
114
116
  checkboxSelection,
115
117
  columns
116
118
  ]);
117
- const table = (0, _reactTable.useReactTable)({
119
+ const table = (0, _reacttable.useReactTable)({
118
120
  data,
119
121
  columns: tableColumns,
120
122
  getRowId,
121
- getCoreRowModel: (0, _reactTable.getCoreRowModel)(),
122
- getSortedRowModel: (0, _reactTable.getSortedRowModel)(),
123
+ getCoreRowModel: (0, _reacttable.getCoreRowModel)(),
124
+ getSortedRowModel: (0, _reacttable.getSortedRowModel)(),
123
125
  enableRowSelection: !!checkboxSelection,
124
126
  onRowSelectionChange: handleRowSelectionChange,
125
127
  onSortingChange: handleSortingChange,
@@ -139,7 +141,7 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
139
141
  handleRowSelectionEvent,
140
142
  table
141
143
  ]);
142
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_virtualizedTable.VirtualizedTable, {
144
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_VirtualizedTable.VirtualizedTable, {
143
145
  ...otherProps,
144
146
  density: density,
145
147
  onRowClick: handleRowClick,
@@ -16,13 +16,15 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "TableBody", {
18
18
  enumerable: true,
19
- get: ()=>TableBody
19
+ get: function() {
20
+ return TableBody;
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 _react = require("react");
24
26
  const TableBody = /*#__PURE__*/ (0, _react.forwardRef)(function TableBody(props, ref) {
25
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.TableBody, {
27
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableBody, {
26
28
  ...props,
27
29
  ref: ref
28
30
  });
@@ -16,13 +16,15 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "TableCell", {
18
18
  enumerable: true,
19
- get: ()=>TableCell
19
+ get: function() {
20
+ return TableCell;
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 _react = require("react");
24
- const _tableModel = require("./model/table-model");
25
- const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme })=>({
26
+ const _tablemodel = require("./model/table-model");
27
+ const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme })=>({
26
28
  padding: 0,
27
29
  backgroundColor: 'inherit',
28
30
  '&.MuiTableCell-head': {
@@ -37,7 +39,7 @@ const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme
37
39
  borderRadius: 0
38
40
  }
39
41
  }));
40
- 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 }) {
41
43
  const theme = (0, _material.useTheme)();
42
44
  const elRef = (0, _react.useRef)();
43
45
  const isHeader = variant === 'head';
@@ -49,9 +51,9 @@ function TableCell({ children , density , variant , width , focusState ='none' ,
49
51
  focusState
50
52
  ]);
51
53
  const handleFocus = (e)=>{
52
- var ref;
54
+ var _e_currentTarget;
53
55
  // From https://zellwk.com/blog/keyboard-focusable-elements/
54
- const nestedFocusTarget = (ref = e.currentTarget) === null || ref === void 0 ? void 0 : ref.querySelector('a[href], button, input, textarea, select, details,[role="button"]');
56
+ const nestedFocusTarget = (_e_currentTarget = e.currentTarget) === null || _e_currentTarget === void 0 ? void 0 : _e_currentTarget.querySelector('a[href], button, input, textarea, select, details,[role="button"]');
55
57
  if (nestedFocusTarget) {
56
58
  // If the cell has a focusable child, focus it instead. Mostly used for
57
59
  // checkbox cells, but could have other uses.
@@ -66,7 +68,7 @@ function TableCell({ children , density , variant , width , focusState ='none' ,
66
68
  // tabindex and focuses to the right cell.
67
69
  onFocusTrigger === null || onFocusTrigger === void 0 ? void 0 : onFocusTrigger(e);
68
70
  };
69
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(StyledMuiTableCell, {
71
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(StyledMuiTableCell, {
70
72
  ...otherProps,
71
73
  // Modify the tab index based on the currently focused cell. It's important
72
74
  // to avoid having tabindex 0 on everything because it essentially traps
@@ -81,9 +83,9 @@ function TableCell({ children , density , variant , width , focusState ='none' ,
81
83
  borderBottom: isHeader ? (theme)=>`solid 1px ${theme.palette.grey[100]}` : `solid 1px ${theme.palette.grey[50]}`
82
84
  },
83
85
  ref: elRef,
84
- children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Box, {
86
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
85
87
  sx: {
86
- ...(0, _tableModel.getTableCellLayout)(theme, density, {
88
+ ...(0, _tablemodel.getTableCellLayout)(theme, density, {
87
89
  isLastColumn,
88
90
  isFirstColumn
89
91
  }),
@@ -16,13 +16,15 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "TableCheckbox", {
18
18
  enumerable: true,
19
- get: ()=>TableCheckbox
19
+ get: function() {
20
+ return TableCheckbox;
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 TableCheckbox({ color , density , ...otherProps }) {
25
+ function TableCheckbox({ color, density, ...otherProps }) {
24
26
  const isCompact = density === 'compact';
25
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Checkbox, {
27
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Checkbox, {
26
28
  size: isCompact ? 'small' : 'medium',
27
29
  ...otherProps,
28
30
  // Disable ripple and set background color below because of some issues
@@ -16,13 +16,15 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "TableHead", {
18
18
  enumerable: true,
19
- get: ()=>TableHead
19
+ get: function() {
20
+ return TableHead;
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 _react = require("react");
24
26
  const TableHead = /*#__PURE__*/ (0, _react.forwardRef)(function TableHead(props, ref) {
25
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.TableHead, {
27
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableHead, {
26
28
  ...props,
27
29
  ref: ref
28
30
  });
@@ -16,14 +16,16 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "TableHeaderCell", {
18
18
  enumerable: true,
19
- get: ()=>TableHeaderCell
19
+ get: function() {
20
+ return TableHeaderCell;
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 _tableCell = require("./TableCell");
24
- function TableHeaderCell({ onSort , sortDirection , nextSortDirection , children , ...cellProps }) {
25
+ const _TableCell = require("./TableCell");
26
+ function TableHeaderCell({ onSort, sortDirection, nextSortDirection, children, ...cellProps }) {
25
27
  const showSortLabel = !!onSort;
26
- const headerText = /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Typography, {
28
+ const headerText = /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
27
29
  noWrap: true,
28
30
  variant: "inherit",
29
31
  component: "div",
@@ -32,9 +34,9 @@ function TableHeaderCell({ onSort , sortDirection , nextSortDirection , children
32
34
  });
33
35
  const isActive = !!sortDirection;
34
36
  const direction = isActive ? sortDirection : nextSortDirection;
35
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_tableCell.TableCell, {
37
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCell.TableCell, {
36
38
  ...cellProps,
37
- children: showSortLabel ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.TableSortLabel, {
39
+ children: showSortLabel ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableSortLabel, {
38
40
  onClick: onSort,
39
41
  direction: direction,
40
42
  active: isActive,
@@ -16,13 +16,15 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "TableRow", {
18
18
  enumerable: true,
19
- get: ()=>TableRow
19
+ get: function() {
20
+ return TableRow;
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 _react = require("react");
24
26
  const TableRow = /*#__PURE__*/ (0, _react.forwardRef)(function TableRow(props, ref) {
25
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.TableRow, {
27
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableRow, {
26
28
  ...props,
27
29
  ref: ref,
28
30
  sx: {
@@ -16,22 +16,24 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "VirtualizedTable", {
18
18
  enumerable: true,
19
- get: ()=>VirtualizedTable
19
+ get: function() {
20
+ return VirtualizedTable;
21
+ }
20
22
  });
21
- const _jsxRuntime = require("react/jsx-runtime");
22
- const _reactTable = require("@tanstack/react-table");
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _reacttable = require("@tanstack/react-table");
23
25
  const _material = require("@mui/material");
24
- const _reactVirtuoso = require("react-virtuoso");
26
+ const _reactvirtuoso = require("react-virtuoso");
25
27
  const _react = require("react");
26
- const _tableRow = require("./TableRow");
27
- const _tableBody = require("./TableBody");
28
- const _innerTable = require("./InnerTable");
29
- const _tableHead = require("./TableHead");
30
- const _tableHeaderCell = require("./TableHeaderCell");
31
- const _tableCell = require("./TableCell");
32
- const _virtualizedTableContainer = require("./VirtualizedTableContainer");
28
+ const _TableRow = require("./TableRow");
29
+ const _TableBody = require("./TableBody");
30
+ const _InnerTable = require("./InnerTable");
31
+ const _TableHead = require("./TableHead");
32
+ const _TableHeaderCell = require("./TableHeaderCell");
33
+ const _TableCell = require("./TableCell");
34
+ const _VirtualizedTableContainer = require("./VirtualizedTableContainer");
33
35
  const _useVirtualizedTableKeyboardNav = require("./hooks/useVirtualizedTableKeyboardNav");
34
- function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOver , onRowMouseOut , rows , columns , headers }) {
36
+ function VirtualizedTable({ width, height, density, onRowClick, onRowMouseOver, onRowMouseOut, rows, columns, headers }) {
35
37
  const virtuosoRef = (0, _react.useRef)(null);
36
38
  // Use a ref for these values because they are only needed for keyboard
37
39
  // focus interactions and setting them on state will lead to a significant
@@ -58,18 +60,18 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
58
60
  };
59
61
  const VirtuosoTableComponents = (0, _react.useMemo)(()=>{
60
62
  return {
61
- Scroller: _virtualizedTableContainer.VirtualizedTableContainer,
63
+ Scroller: _VirtualizedTableContainer.VirtualizedTableContainer,
62
64
  Table: (props)=>{
63
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_innerTable.InnerTable, {
65
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_InnerTable.InnerTable, {
64
66
  ...props,
65
67
  width: width,
66
68
  density: density,
67
69
  onKeyDown: keyboardNav.onTableKeyDown
68
70
  });
69
71
  },
70
- TableHead: _tableHead.TableHead,
72
+ TableHead: _TableHead.TableHead,
71
73
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
72
- TableRow: ({ item , ...props })=>{
74
+ TableRow: ({ item, ...props })=>{
73
75
  const index = props['data-index'];
74
76
  const row = rows[index];
75
77
  if (!row) {
@@ -79,7 +81,7 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
79
81
  id: row.id,
80
82
  index: row.index
81
83
  };
82
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_tableRow.TableRow, {
84
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableRow.TableRow, {
83
85
  ...props,
84
86
  onClick: (e)=>onRowClick(e, row.id),
85
87
  density: density,
@@ -91,7 +93,7 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
91
93
  }
92
94
  });
93
95
  },
94
- TableBody: _tableBody.TableBody
96
+ TableBody: _TableBody.TableBody
95
97
  };
96
98
  }, [
97
99
  density,
@@ -102,12 +104,12 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
102
104
  rows,
103
105
  width
104
106
  ]);
105
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.Box, {
107
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
106
108
  sx: {
107
109
  width,
108
110
  height
109
111
  },
110
- children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_reactVirtuoso.TableVirtuoso, {
112
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactvirtuoso.TableVirtuoso, {
111
113
  ref: virtuosoRef,
112
114
  totalCount: rows.length,
113
115
  components: VirtuosoTableComponents,
@@ -116,12 +118,12 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
116
118
  // https://github.com/petyosi/react-virtuoso/issues/118#issuecomment-642156138
117
119
  rangeChanged: setVisibleRange,
118
120
  fixedHeaderContent: ()=>{
119
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
121
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
120
122
  children: headers.map((headerGroup)=>{
121
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_tableRow.TableRow, {
123
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableRow.TableRow, {
122
124
  density: density,
123
125
  children: headerGroup.headers.map((header, i, headers)=>{
124
- var ref, ref1;
126
+ var _column_columnDef_meta, _column_columnDef_meta1;
125
127
  const column = header.column;
126
128
  const position = {
127
129
  row: 0,
@@ -129,20 +131,20 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
129
131
  };
130
132
  const isSorted = column.getIsSorted();
131
133
  const nextSorting = column.getNextSortingOrder();
132
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_tableHeaderCell.TableHeaderCell, {
134
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableHeaderCell.TableHeaderCell, {
133
135
  onSort: column.getCanSort() ? column.getToggleSortingHandler() : undefined,
134
136
  sortDirection: typeof isSorted === 'string' ? isSorted : undefined,
135
137
  nextSortDirection: typeof nextSorting === 'string' ? nextSorting : undefined,
136
138
  width: column.getSize() || 'auto',
137
- align: (ref = column.columnDef.meta) === null || ref === void 0 ? void 0 : ref.align,
139
+ align: (_column_columnDef_meta = column.columnDef.meta) === null || _column_columnDef_meta === void 0 ? void 0 : _column_columnDef_meta.align,
138
140
  variant: "head",
139
141
  density: density,
140
- description: (ref1 = column.columnDef.meta) === null || ref1 === void 0 ? void 0 : ref1.headerDescription,
142
+ description: (_column_columnDef_meta1 = column.columnDef.meta) === null || _column_columnDef_meta1 === void 0 ? void 0 : _column_columnDef_meta1.headerDescription,
141
143
  focusState: getFocusState(position),
142
144
  onFocusTrigger: ()=>keyboardNav.onCellFocus(position),
143
145
  isFirstColumn: i === 0,
144
146
  isLastColumn: i === headers.length - 1,
145
- children: (0, _reactTable.flexRender)(column.columnDef.header, header.getContext())
147
+ children: (0, _reacttable.flexRender)(column.columnDef.header, header.getContext())
146
148
  }, header.id);
147
149
  })
148
150
  }, headerGroup.id);
@@ -154,9 +156,9 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
154
156
  if (!row) {
155
157
  return null;
156
158
  }
157
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
159
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
158
160
  children: row.getVisibleCells().map((cell, i, cells)=>{
159
- var ref, ref1;
161
+ var _cell_column_columnDef_meta, _cell_column_columnDef_meta1;
160
162
  const position = {
161
163
  // Add 1 to the row index because the header is row 0
162
164
  row: index + 1,
@@ -165,7 +167,7 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
165
167
  const cellContext = cell.getContext();
166
168
  const cellRenderFn = cell.column.columnDef.cell;
167
169
  const cellContent = typeof cellRenderFn == 'function' ? cellRenderFn(cellContext) : null;
168
- const cellDescriptionDef = (ref = cell.column.columnDef.meta) === null || ref === void 0 ? void 0 : ref.cellDescription;
170
+ const cellDescriptionDef = (_cell_column_columnDef_meta = cell.column.columnDef.meta) === null || _cell_column_columnDef_meta === void 0 ? void 0 : _cell_column_columnDef_meta.cellDescription;
169
171
  let description = undefined;
170
172
  if (typeof cellDescriptionDef === 'function') {
171
173
  // If the cell description is a function, set the value using
@@ -177,9 +179,9 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
177
179
  // cell content.
178
180
  description = cellContent;
179
181
  }
180
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_tableCell.TableCell, {
182
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCell.TableCell, {
181
183
  width: cell.column.getSize() || 'auto',
182
- align: (ref1 = cell.column.columnDef.meta) === null || ref1 === void 0 ? void 0 : ref1.align,
184
+ align: (_cell_column_columnDef_meta1 = cell.column.columnDef.meta) === null || _cell_column_columnDef_meta1 === void 0 ? void 0 : _cell_column_columnDef_meta1.align,
183
185
  density: density,
184
186
  focusState: getFocusState(position),
185
187
  onFocusTrigger: ()=>keyboardNav.onCellFocus(position),
@@ -16,13 +16,15 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "VirtualizedTableContainer", {
18
18
  enumerable: true,
19
- get: ()=>VirtualizedTableContainer
19
+ get: function() {
20
+ return VirtualizedTableContainer;
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 _react = require("react");
24
26
  const VirtualizedTableContainer = /*#__PURE__*/ (0, _react.forwardRef)(function VirtualizedTableContainer(props, ref) {
25
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_material.TableContainer, {
27
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableContainer, {
26
28
  ...props,
27
29
  tabIndex: -1,
28
30
  ref: ref
@@ -16,7 +16,9 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "useTableKeyboardNav", {
18
18
  enumerable: true,
19
- get: ()=>useTableKeyboardNav
19
+ get: function() {
20
+ return useTableKeyboardNav;
21
+ }
20
22
  });
21
23
  const _react = require("react");
22
24
  const DEFAULT_ACTIVE_CELL = {
@@ -32,7 +34,7 @@ const ARROW_KEYS = [
32
34
  function isArrowKey(key) {
33
35
  return ARROW_KEYS.includes(key);
34
36
  }
35
- function useTableKeyboardNav({ maxRows , maxColumns , onActiveCellChange }) {
37
+ function useTableKeyboardNav({ maxRows, maxColumns, onActiveCellChange }) {
36
38
  const [activeCell, setActiveCell] = (0, _react.useState)(DEFAULT_ACTIVE_CELL);
37
39
  const [isActive, setIsActive] = (0, _react.useState)(false);
38
40
  const handleCellFocus = (cellPosition)=>{
@@ -16,24 +16,26 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "useVirtualizedTableKeyboardNav", {
18
18
  enumerable: true,
19
- get: ()=>useVirtualizedTableKeyboardNav
19
+ get: function() {
20
+ return useVirtualizedTableKeyboardNav;
21
+ }
20
22
  });
21
23
  const _useTableKeyboardNav = require("./useTableKeyboardNav");
22
- function useVirtualizedTableKeyboardNav({ visibleRange , virtualTable , maxRows , maxColumns }) {
24
+ function useVirtualizedTableKeyboardNav({ visibleRange, virtualTable, maxRows, maxColumns }) {
23
25
  const baseKeyboard = (0, _useTableKeyboardNav.useTableKeyboardNav)({
24
26
  maxRows,
25
27
  maxColumns,
26
28
  onActiveCellChange: (e, currentPosition, defaultNewPosition)=>{
27
29
  const key = e.key;
28
30
  const defaultValueChanged = defaultNewPosition && (currentPosition.column !== defaultNewPosition.column || currentPosition.row !== defaultNewPosition.row);
29
- var ref;
30
- const nextRow = (ref = defaultNewPosition === null || defaultNewPosition === void 0 ? void 0 : defaultNewPosition.row) !== null && ref !== void 0 ? ref : currentPosition.row;
31
+ var _defaultNewPosition_row;
32
+ const nextRow = (_defaultNewPosition_row = defaultNewPosition === null || defaultNewPosition === void 0 ? void 0 : defaultNewPosition.row) !== null && _defaultNewPosition_row !== void 0 ? _defaultNewPosition_row : currentPosition.row;
31
33
  if (key === 'ArrowDown' && defaultValueChanged) {
32
34
  // Use default cell position. Shift the virtual table scroll position
33
35
  // when needed to make the active cell visible.
34
36
  if (nextRow - 1 < visibleRange.current.startIndex || nextRow - 1 > visibleRange.current.endIndex) {
35
- var ref1;
36
- (ref1 = virtualTable.current) === null || ref1 === void 0 ? void 0 : ref1.scrollToIndex({
37
+ var _virtualTable_current;
38
+ (_virtualTable_current = virtualTable.current) === null || _virtualTable_current === void 0 ? void 0 : _virtualTable_current.scrollToIndex({
37
39
  index: nextRow - 1,
38
40
  align: 'end'
39
41
  });
@@ -42,8 +44,8 @@ function useVirtualizedTableKeyboardNav({ visibleRange , virtualTable , maxRows
42
44
  // Use default cell position. Shift the virtual table scroll position
43
45
  // when needed to make the active cell visible.
44
46
  if (nextRow - 1 < visibleRange.current.startIndex || nextRow - 1 > visibleRange.current.endIndex) {
45
- var ref2;
46
- (ref2 = virtualTable.current) === null || ref2 === void 0 ? void 0 : ref2.scrollToIndex({
47
+ var _virtualTable_current1;
48
+ (_virtualTable_current1 = virtualTable.current) === null || _virtualTable_current1 === void 0 ? void 0 : _virtualTable_current1.scrollToIndex({
47
49
  index: nextRow - 1,
48
50
  align: 'start'
49
51
  });
@@ -51,38 +53,38 @@ function useVirtualizedTableKeyboardNav({ visibleRange , virtualTable , maxRows
51
53
  } else if (defaultValueChanged && (key === 'Home' || key === 'End')) {
52
54
  var // Use default cell position. Shift the virtual table scroll position
53
55
  // when needed to make the active cell visible.
54
- ref3;
55
- (ref3 = virtualTable.current) === null || ref3 === void 0 ? void 0 : ref3.scrollToIndex({
56
+ _virtualTable_current2;
57
+ (_virtualTable_current2 = virtualTable.current) === null || _virtualTable_current2 === void 0 ? void 0 : _virtualTable_current2.scrollToIndex({
56
58
  index: Math.max(nextRow - 1, 0),
57
59
  align: 'start'
58
60
  });
59
61
  } else if (key === 'PageDown') {
60
- var ref4;
62
+ var _virtualTable_current3;
61
63
  // Full handling of logic for `PageDown` because there is no default.
62
64
  e.preventDefault();
63
- let nextRow1 = currentPosition.row;
65
+ let nextRow = currentPosition.row;
64
66
  // Add 1 to account for header
65
- nextRow1 = Math.min(maxRows - 1, visibleRange.current.endIndex + 1);
66
- (ref4 = virtualTable.current) === null || ref4 === void 0 ? void 0 : ref4.scrollToIndex({
67
- index: nextRow1 - 1,
67
+ nextRow = Math.min(maxRows - 1, visibleRange.current.endIndex + 1);
68
+ (_virtualTable_current3 = virtualTable.current) === null || _virtualTable_current3 === void 0 ? void 0 : _virtualTable_current3.scrollToIndex({
69
+ index: nextRow - 1,
68
70
  align: 'start'
69
71
  });
70
72
  return {
71
- row: nextRow1,
73
+ row: nextRow,
72
74
  column: currentPosition.column
73
75
  };
74
76
  } else if (key === 'PageUp') {
75
- var ref5;
77
+ var _virtualTable_current4;
76
78
  // Full handling of logic for `PageUp` because there is no default.
77
- let nextRow2 = currentPosition.row;
79
+ let nextRow = currentPosition.row;
78
80
  // Minus 1 to account for header
79
- nextRow2 = Math.max(0, visibleRange.current.startIndex - 1);
80
- (ref5 = virtualTable.current) === null || ref5 === void 0 ? void 0 : ref5.scrollToIndex({
81
- index: nextRow2 - 1,
81
+ nextRow = Math.max(0, visibleRange.current.startIndex - 1);
82
+ (_virtualTable_current4 = virtualTable.current) === null || _virtualTable_current4 === void 0 ? void 0 : _virtualTable_current4.scrollToIndex({
83
+ index: nextRow - 1,
82
84
  align: 'end'
83
85
  });
84
86
  return {
85
- row: nextRow2,
87
+ row: nextRow,
86
88
  column: currentPosition.column
87
89
  };
88
90
  }
@@ -16,18 +16,22 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  Object.defineProperty(exports, "getTableCellLayout", {
18
18
  enumerable: true,
19
- get: ()=>_tableModel.getTableCellLayout
19
+ get: function() {
20
+ return _tablemodel.getTableCellLayout;
21
+ }
20
22
  });
21
- _exportStar(require("./Table"), exports);
22
- const _tableModel = require("./model/table-model");
23
- function _exportStar(from, to) {
23
+ _export_star(require("./Table"), exports);
24
+ const _tablemodel = require("./model/table-model");
25
+ function _export_star(from, to) {
24
26
  Object.keys(from).forEach(function(k) {
25
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
26
- enumerable: true,
27
- get: function() {
28
- return from[k];
29
- }
30
- });
27
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
28
+ Object.defineProperty(to, k, {
29
+ enumerable: true,
30
+ get: function() {
31
+ return from[k];
32
+ }
33
+ });
34
+ }
31
35
  });
32
36
  return from;
33
37
  }