@perses-dev/components 0.0.0-snapshot-scatter-chart-embed-8efdfab → 0.0.0-snapshot-scatterplot-fix-imports-95e1b59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BarChart/BarChart.d.ts +1 -2
- package/dist/BarChart/BarChart.d.ts.map +1 -1
- package/dist/BarChart/BarChart.js +2 -2
- package/dist/BarChart/BarChart.js.map +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +1 -2
- package/dist/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/ColorPicker/ColorPicker.js +1 -1
- package/dist/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/ContentWithLegend/ContentWithLegend.d.ts +1 -2
- package/dist/ContentWithLegend/ContentWithLegend.d.ts.map +1 -1
- package/dist/ContentWithLegend/ContentWithLegend.js +2 -2
- package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
- package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +2 -2
- package/dist/ContentWithLegend/model/content-with-legend-model.d.ts.map +1 -1
- package/dist/ContentWithLegend/model/content-with-legend-model.js +2 -2
- package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts +1 -2
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +1 -1
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.js +2 -2
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +1 -1
- package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -2
- package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
- package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
- package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts +1 -2
- package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts.map +1 -1
- package/dist/DateTimeRangePicker/TimeRangeSelector.js +2 -2
- package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +1 -1
- package/dist/DateTimeRangePicker/utils.js.map +1 -1
- package/dist/Dialog/Dialog.d.ts +6 -6
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +5 -5
- package/dist/Dialog/Dialog.js.map +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts +1 -2
- package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts.map +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.js +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
- package/dist/Drawer/Drawer.d.ts +1 -2
- package/dist/Drawer/Drawer.d.ts.map +1 -1
- package/dist/Drawer/Drawer.js +1 -1
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/EChart/EChart.d.ts +7 -7
- package/dist/EChart/EChart.d.ts.map +1 -1
- package/dist/EChart/EChart.js +1 -1
- package/dist/EChart/EChart.js.map +1 -1
- package/dist/ErrorAlert.d.ts +1 -2
- package/dist/ErrorAlert.d.ts.map +1 -1
- package/dist/ErrorAlert.js +1 -1
- package/dist/ErrorAlert.js.map +1 -1
- package/dist/FontSizeSelector/FontSizeSelector.d.ts +2 -3
- package/dist/FontSizeSelector/FontSizeSelector.d.ts.map +1 -1
- package/dist/FontSizeSelector/FontSizeSelector.js +2 -2
- package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
- package/dist/FormatControls/FormatControls.d.ts +1 -2
- package/dist/FormatControls/FormatControls.d.ts.map +1 -1
- package/dist/FormatControls/FormatControls.js +2 -2
- package/dist/FormatControls/FormatControls.js.map +1 -1
- package/dist/GaugeChart/GaugeChart.d.ts +3 -4
- package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
- package/dist/GaugeChart/GaugeChart.js +1 -1
- package/dist/GaugeChart/GaugeChart.js.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.d.ts +2 -2
- package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.js +4 -4
- package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
- package/dist/JSONEditor.d.ts +2 -3
- package/dist/JSONEditor.d.ts.map +1 -1
- package/dist/JSONEditor.js.map +1 -1
- package/dist/Legend/CompactLegend.d.ts +1 -2
- package/dist/Legend/CompactLegend.d.ts.map +1 -1
- package/dist/Legend/CompactLegend.js +1 -1
- package/dist/Legend/CompactLegend.js.map +1 -1
- package/dist/Legend/Legend.d.ts +1 -2
- package/dist/Legend/Legend.d.ts.map +1 -1
- package/dist/Legend/Legend.js +1 -1
- package/dist/Legend/Legend.js.map +1 -1
- package/dist/Legend/LegendColorBadge.js +1 -1
- package/dist/Legend/LegendColorBadge.js.map +1 -1
- package/dist/Legend/ListLegend.d.ts +1 -2
- package/dist/Legend/ListLegend.d.ts.map +1 -1
- package/dist/Legend/ListLegend.js +1 -1
- package/dist/Legend/ListLegend.js.map +1 -1
- package/dist/Legend/ListLegendItem.d.ts +2 -2
- package/dist/Legend/ListLegendItem.d.ts.map +1 -1
- package/dist/Legend/ListLegendItem.js +5 -9
- package/dist/Legend/ListLegendItem.js.map +1 -1
- package/dist/Legend/TableLegend.d.ts +1 -2
- package/dist/Legend/TableLegend.d.ts.map +1 -1
- package/dist/Legend/TableLegend.js +2 -2
- package/dist/Legend/TableLegend.js.map +1 -1
- package/dist/Legend/legend-model.d.ts +2 -2
- package/dist/Legend/legend-model.d.ts.map +1 -1
- package/dist/Legend/legend-model.js.map +1 -1
- package/dist/LineChart/LineChart.js +6 -6
- package/dist/LineChart/LineChart.js.map +1 -1
- package/dist/ModeSelector/ModeSelector.d.ts +2 -3
- package/dist/ModeSelector/ModeSelector.d.ts.map +1 -1
- package/dist/ModeSelector/ModeSelector.js +2 -2
- package/dist/ModeSelector/ModeSelector.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts +2 -2
- package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts +2 -3
- package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorControl.js +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts +2 -2
- package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts +2 -2
- package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.js +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts +1 -2
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts.map +1 -1
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +1 -1
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
- package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts +1 -1
- package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts.map +1 -1
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js +2 -2
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
- package/dist/SortSelector/SortSelector.d.ts +2 -3
- package/dist/SortSelector/SortSelector.d.ts.map +1 -1
- package/dist/SortSelector/SortSelector.js +2 -2
- package/dist/SortSelector/SortSelector.js.map +1 -1
- package/dist/StatChart/StatChart.d.ts +1 -2
- package/dist/StatChart/StatChart.d.ts.map +1 -1
- package/dist/StatChart/StatChart.js +3 -3
- package/dist/StatChart/StatChart.js.map +1 -1
- package/dist/StatChart/calculateFontSize.js +2 -2
- package/dist/StatChart/calculateFontSize.js.map +1 -1
- package/dist/Table/InnerTable.d.ts +2 -2
- package/dist/Table/InnerTable.d.ts.map +1 -1
- package/dist/Table/InnerTable.js +2 -2
- package/dist/Table/InnerTable.js.map +1 -1
- package/dist/Table/Table.d.ts +1 -2
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/Table.js +3 -3
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/TableBody.d.ts +2 -2
- package/dist/Table/TableBody.d.ts.map +1 -1
- package/dist/Table/TableCell.d.ts +1 -1
- package/dist/Table/TableCell.d.ts.map +1 -1
- package/dist/Table/TableCell.js +2 -2
- package/dist/Table/TableCell.js.map +1 -1
- package/dist/Table/TableCheckbox.d.ts +1 -2
- package/dist/Table/TableCheckbox.d.ts.map +1 -1
- package/dist/Table/TableCheckbox.js +1 -1
- package/dist/Table/TableCheckbox.js.map +1 -1
- package/dist/Table/TableHead.d.ts +2 -2
- package/dist/Table/TableHead.d.ts.map +1 -1
- package/dist/Table/TableHeaderCell.d.ts +1 -2
- package/dist/Table/TableHeaderCell.d.ts.map +1 -1
- package/dist/Table/TableHeaderCell.js +1 -1
- package/dist/Table/TableHeaderCell.js.map +1 -1
- package/dist/Table/TableRow.d.ts +1 -1
- package/dist/Table/TableRow.d.ts.map +1 -1
- package/dist/Table/TableRow.js.map +1 -1
- package/dist/Table/VirtualizedTable.d.ts +2 -2
- package/dist/Table/VirtualizedTable.d.ts.map +1 -1
- package/dist/Table/VirtualizedTable.js +2 -2
- package/dist/Table/VirtualizedTable.js.map +1 -1
- package/dist/Table/VirtualizedTableContainer.d.ts +2 -2
- package/dist/Table/VirtualizedTableContainer.d.ts.map +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.d.ts +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.d.ts.map +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.js +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
- package/dist/Table/model/table-model.d.ts +6 -6
- package/dist/Table/model/table-model.d.ts.map +1 -1
- package/dist/Table/model/table-model.js +2 -2
- package/dist/Table/model/table-model.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts +1 -2
- package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts.map +1 -1
- package/dist/ThresholdsEditor/ThresholdColorPicker.js +3 -3
- package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.d.ts +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.d.ts.map +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.js +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdsEditor.d.ts +1 -2
- package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
- package/dist/ThresholdsEditor/ThresholdsEditor.js +6 -5
- package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
- package/dist/TimeChart/TimeChart.js +7 -7
- package/dist/TimeChart/TimeChart.js.map +1 -1
- package/dist/TimeSeriesTooltip/LineChartTooltip.js +3 -3
- package/dist/TimeSeriesTooltip/LineChartTooltip.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.d.ts +1 -2
- package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.js +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +1 -2
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesMarker.d.ts +1 -2
- package/dist/TimeSeriesTooltip/SeriesMarker.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesMarker.js +1 -1
- package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js +2 -2
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipContent.d.ts +1 -2
- package/dist/TimeSeriesTooltip/TooltipContent.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipContent.js +2 -2
- package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.js +2 -2
- package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
- package/dist/TimeSeriesTooltip/nearby-series.d.ts +1 -1
- package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/nearby-series.js +4 -4
- package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts +3 -3
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
- package/dist/TimeSeriesTooltip/utils.js.map +1 -1
- package/dist/ToolbarIconButton/ToolbarIconButton.d.ts +6 -0
- package/dist/ToolbarIconButton/ToolbarIconButton.d.ts.map +1 -0
- package/dist/ToolbarIconButton/ToolbarIconButton.js +32 -0
- package/dist/ToolbarIconButton/ToolbarIconButton.js.map +1 -0
- package/dist/ToolbarIconButton/index.d.ts +2 -0
- package/dist/ToolbarIconButton/index.d.ts.map +1 -0
- package/dist/ToolbarIconButton/index.js +15 -0
- package/dist/ToolbarIconButton/index.js.map +1 -0
- package/dist/YAxisLabel.d.ts +1 -2
- package/dist/YAxisLabel.d.ts.map +1 -1
- package/dist/YAxisLabel.js +1 -1
- package/dist/YAxisLabel.js.map +1 -1
- package/dist/cjs/BarChart/BarChart.js +2 -2
- package/dist/cjs/ColorPicker/ColorPicker.js +4 -2
- package/dist/cjs/ContentWithLegend/ContentWithLegend.js +2 -2
- package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +2 -2
- package/dist/cjs/DateTimeRangePicker/AbsoluteTimePicker.js +2 -2
- package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
- package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +2 -2
- package/dist/cjs/DateTimeRangePicker/utils.js +3 -3
- package/dist/cjs/Dialog/Dialog.js +5 -5
- package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +1 -1
- package/dist/cjs/Drawer/Drawer.js +1 -1
- package/dist/cjs/EChart/EChart.js +4 -2
- package/dist/cjs/ErrorAlert.js +1 -1
- package/dist/cjs/FontSizeSelector/FontSizeSelector.js +2 -2
- package/dist/cjs/FormatControls/FormatControls.js +2 -2
- package/dist/cjs/GaugeChart/GaugeChart.js +1 -1
- package/dist/cjs/InfoTooltip/InfoTooltip.js +4 -4
- package/dist/cjs/Legend/CompactLegend.js +1 -1
- package/dist/cjs/Legend/Legend.js +1 -1
- package/dist/cjs/Legend/LegendColorBadge.js +1 -1
- package/dist/cjs/Legend/ListLegend.js +1 -1
- package/dist/cjs/Legend/ListLegendItem.js +8 -10
- package/dist/cjs/Legend/TableLegend.js +2 -2
- package/dist/cjs/LineChart/LineChart.js +6 -6
- package/dist/cjs/ModeSelector/ModeSelector.js +2 -2
- package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
- package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +1 -1
- package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
- package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +1 -1
- package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +1 -1
- package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +2 -2
- package/dist/cjs/SortSelector/SortSelector.js +2 -2
- package/dist/cjs/StatChart/StatChart.js +3 -3
- package/dist/cjs/StatChart/calculateFontSize.js +2 -2
- package/dist/cjs/Table/InnerTable.js +2 -2
- package/dist/cjs/Table/Table.js +3 -3
- package/dist/cjs/Table/TableCell.js +2 -2
- package/dist/cjs/Table/TableCheckbox.js +1 -1
- package/dist/cjs/Table/TableHeaderCell.js +1 -1
- package/dist/cjs/Table/VirtualizedTable.js +2 -2
- package/dist/cjs/Table/hooks/useTableKeyboardNav.js +1 -1
- package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +1 -1
- package/dist/cjs/Table/model/table-model.js +2 -2
- package/dist/cjs/ThresholdsEditor/ThresholdColorPicker.js +3 -3
- package/dist/cjs/ThresholdsEditor/ThresholdInput.js +1 -1
- package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +9 -6
- package/dist/cjs/TimeChart/TimeChart.js +7 -7
- package/dist/cjs/TimeSeriesTooltip/LineChartTooltip.js +3 -3
- package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +1 -1
- package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
- package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +1 -1
- package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +2 -2
- package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +2 -2
- package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +2 -2
- package/dist/cjs/TimeSeriesTooltip/nearby-series.js +14 -14
- package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +27 -27
- package/dist/cjs/ToolbarIconButton/ToolbarIconButton.js +40 -0
- package/dist/cjs/ToolbarIconButton/index.js +30 -0
- package/dist/cjs/YAxisLabel.js +1 -1
- package/dist/cjs/context/ChartsProvider.js +4 -2
- package/dist/cjs/context/SnackbarProvider.js +1 -1
- package/dist/cjs/context/TimeZoneProvider.js +4 -2
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/model/graph.js +3 -3
- package/dist/cjs/test-utils/theme.js +3 -3
- package/dist/cjs/theme/component-overrides/alert.js +4 -4
- package/dist/cjs/theme/component-overrides/paper.js +1 -1
- package/dist/cjs/theme/palette/colors/common.js +3 -3
- package/dist/cjs/theme/theme.js +1 -1
- package/dist/cjs/utils/axis.js +3 -3
- package/dist/cjs/utils/chart-actions.js +12 -12
- package/dist/cjs/utils/format.js +3 -3
- package/dist/cjs/utils/mathjs.js +1 -1
- package/dist/cjs/utils/theme-gen.js +1 -1
- package/dist/context/ChartsProvider.d.ts +1 -1
- package/dist/context/ChartsProvider.d.ts.map +1 -1
- package/dist/context/ChartsProvider.js +1 -1
- package/dist/context/ChartsProvider.js.map +1 -1
- package/dist/context/SnackbarProvider.d.ts +2 -2
- package/dist/context/SnackbarProvider.d.ts.map +1 -1
- package/dist/context/SnackbarProvider.js +1 -1
- package/dist/context/SnackbarProvider.js.map +1 -1
- package/dist/context/TimeZoneProvider.d.ts +1 -1
- package/dist/context/TimeZoneProvider.d.ts.map +1 -1
- package/dist/context/TimeZoneProvider.js +1 -1
- package/dist/context/TimeZoneProvider.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/model/graph.d.ts +8 -8
- package/dist/model/graph.d.ts.map +1 -1
- package/dist/model/theme.d.ts +1 -1
- package/dist/model/theme.d.ts.map +1 -1
- package/dist/model/theme.js.map +1 -1
- package/dist/model/timeOption.js.map +1 -1
- package/dist/test/setup-tests.js.map +1 -1
- package/dist/theme/component-overrides/alert.js +4 -4
- package/dist/theme/component-overrides/alert.js.map +1 -1
- package/dist/theme/component-overrides/paper.js +1 -1
- package/dist/theme/component-overrides/paper.js.map +1 -1
- package/dist/theme/palette/colors/types.d.ts +1 -1
- package/dist/theme/palette/colors/types.d.ts.map +1 -1
- package/dist/theme/palette/colors/types.js.map +1 -1
- package/dist/theme/theme.js +1 -1
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/types/ThemeExtension.d.js.map +1 -1
- package/dist/utils/axis.js.map +1 -1
- package/dist/utils/chart-actions.js.map +1 -1
- package/dist/utils/combine-sx.js.map +1 -1
- package/dist/utils/component-ids.js.map +1 -1
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/mathjs.js +1 -1
- package/dist/utils/mathjs.js.map +1 -1
- package/dist/utils/theme-gen.d.ts +1 -1
- package/dist/utils/theme-gen.d.ts.map +1 -1
- package/dist/utils/theme-gen.js +1 -1
- package/dist/utils/theme-gen.js.map +1 -1
- package/package.json +4 -4
package/dist/cjs/Table/Table.js
CHANGED
|
@@ -35,7 +35,7 @@ const DEFAULT_GET_ROW_ID = (data, index)=>{
|
|
|
35
35
|
// does not do deep equality checking for objects and arrays.
|
|
36
36
|
const DEFAULT_ROW_SELECTION = {};
|
|
37
37
|
const DEFAULT_SORTING = [];
|
|
38
|
-
function Table({ data
|
|
38
|
+
function Table({ data, columns, density = 'standard', checkboxSelection, onRowSelectionChange, onSortingChange, getCheckboxColor, getRowId = DEFAULT_GET_ROW_ID, rowSelection = DEFAULT_ROW_SELECTION, sorting = DEFAULT_SORTING, rowSelectionVariant = 'standard', ...otherProps }) {
|
|
39
39
|
const theme = (0, _material.useTheme)();
|
|
40
40
|
const handleRowSelectionChange = (rowSelectionUpdater)=>{
|
|
41
41
|
const newRowSelection = typeof rowSelectionUpdater === 'function' ? rowSelectionUpdater(rowSelection) : rowSelectionUpdater;
|
|
@@ -77,7 +77,7 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
|
|
|
77
77
|
return {
|
|
78
78
|
id: 'checkboxRowSelect',
|
|
79
79
|
size: 28,
|
|
80
|
-
header: ({ table
|
|
80
|
+
header: ({ table })=>{
|
|
81
81
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCheckbox.TableCheckbox, {
|
|
82
82
|
checked: table.getIsAllRowsSelected(),
|
|
83
83
|
indeterminate: table.getIsSomeRowsSelected(),
|
|
@@ -86,7 +86,7 @@ function Table({ data , columns , density ='standard' , checkboxSelection , onRo
|
|
|
86
86
|
density: density
|
|
87
87
|
});
|
|
88
88
|
},
|
|
89
|
-
cell: ({ row
|
|
89
|
+
cell: ({ row, table })=>{
|
|
90
90
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TableCheckbox.TableCheckbox, {
|
|
91
91
|
checked: row.getIsSelected(),
|
|
92
92
|
indeterminate: row.getIsSomeSelected(),
|
|
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
const _react = require("react");
|
|
26
26
|
const _tablemodel = require("./model/table-model");
|
|
27
|
-
const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme
|
|
27
|
+
const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme })=>({
|
|
28
28
|
padding: 0,
|
|
29
29
|
backgroundColor: 'inherit',
|
|
30
30
|
'&.MuiTableCell-head': {
|
|
@@ -39,7 +39,7 @@ const StyledMuiTableCell = (0, _material.styled)(_material.TableCell)(({ theme
|
|
|
39
39
|
borderRadius: 0
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
|
-
function TableCell({ children
|
|
42
|
+
function TableCell({ children, density, variant, width, focusState = 'none', onFocusTrigger, isFirstColumn, isLastColumn, description, ...otherProps }) {
|
|
43
43
|
const theme = (0, _material.useTheme)();
|
|
44
44
|
const elRef = (0, _react.useRef)();
|
|
45
45
|
const isHeader = variant === 'head';
|
|
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "TableCheckbox", {
|
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
|
-
function TableCheckbox({ color
|
|
25
|
+
function TableCheckbox({ color, density, ...otherProps }) {
|
|
26
26
|
const isCompact = density === 'compact';
|
|
27
27
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Checkbox, {
|
|
28
28
|
size: isCompact ? 'small' : 'medium',
|
|
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "TableHeaderCell", {
|
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
const _TableCell = require("./TableCell");
|
|
26
|
-
function TableHeaderCell({ onSort
|
|
26
|
+
function TableHeaderCell({ onSort, sortDirection, nextSortDirection, children, ...cellProps }) {
|
|
27
27
|
const showSortLabel = !!onSort;
|
|
28
28
|
const headerText = /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
29
29
|
noWrap: true,
|
|
@@ -33,7 +33,7 @@ const _TableHeaderCell = require("./TableHeaderCell");
|
|
|
33
33
|
const _TableCell = require("./TableCell");
|
|
34
34
|
const _VirtualizedTableContainer = require("./VirtualizedTableContainer");
|
|
35
35
|
const _useVirtualizedTableKeyboardNav = require("./hooks/useVirtualizedTableKeyboardNav");
|
|
36
|
-
function VirtualizedTable({ width
|
|
36
|
+
function VirtualizedTable({ width, height, density, onRowClick, onRowMouseOver, onRowMouseOut, rows, columns, headers }) {
|
|
37
37
|
const virtuosoRef = (0, _react.useRef)(null);
|
|
38
38
|
// Use a ref for these values because they are only needed for keyboard
|
|
39
39
|
// focus interactions and setting them on state will lead to a significant
|
|
@@ -71,7 +71,7 @@ function VirtualizedTable({ width , height , density , onRowClick , onRowMouseOv
|
|
|
71
71
|
},
|
|
72
72
|
TableHead: _TableHead.TableHead,
|
|
73
73
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
74
|
-
TableRow: ({ item
|
|
74
|
+
TableRow: ({ item, ...props })=>{
|
|
75
75
|
const index = props['data-index'];
|
|
76
76
|
const row = rows[index];
|
|
77
77
|
if (!row) {
|
|
@@ -34,7 +34,7 @@ const ARROW_KEYS = [
|
|
|
34
34
|
function isArrowKey(key) {
|
|
35
35
|
return ARROW_KEYS.includes(key);
|
|
36
36
|
}
|
|
37
|
-
function useTableKeyboardNav({ maxRows
|
|
37
|
+
function useTableKeyboardNav({ maxRows, maxColumns, onActiveCellChange }) {
|
|
38
38
|
const [activeCell, setActiveCell] = (0, _react.useState)(DEFAULT_ACTIVE_CELL);
|
|
39
39
|
const [isActive, setIsActive] = (0, _react.useState)(false);
|
|
40
40
|
const handleCellFocus = (cellPosition)=>{
|
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "useVirtualizedTableKeyboardNav", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _useTableKeyboardNav = require("./useTableKeyboardNav");
|
|
24
|
-
function useVirtualizedTableKeyboardNav({ visibleRange
|
|
24
|
+
function useVirtualizedTableKeyboardNav({ visibleRange, virtualTable, maxRows, maxColumns }) {
|
|
25
25
|
const baseKeyboard = (0, _useTableKeyboardNav.useTableKeyboardNav)({
|
|
26
26
|
maxRows,
|
|
27
27
|
maxColumns,
|
|
@@ -35,7 +35,7 @@ function calculateTableCellHeight(lineHeight, paddingY) {
|
|
|
35
35
|
const verticalPaddingNum = typeof paddingY === 'string' ? parseInt(paddingY, 10) : paddingY;
|
|
36
36
|
return lineHeightNum + verticalPaddingNum * 2;
|
|
37
37
|
}
|
|
38
|
-
function getTableCellLayout(theme, density, { isLastColumn
|
|
38
|
+
function getTableCellLayout(theme, density, { isLastColumn, isFirstColumn } = {}) {
|
|
39
39
|
if (density === 'compact') {
|
|
40
40
|
const paddingY = theme.spacing(0.5);
|
|
41
41
|
const basePaddingX = theme.spacing(0.5);
|
|
@@ -65,7 +65,7 @@ function getTableCellLayout(theme, density, { isLastColumn , isFirstColumn } =
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function persesColumnsToTanstackColumns(columns) {
|
|
68
|
-
const tableCols = columns.map(({ width
|
|
68
|
+
const tableCols = columns.map(({ width, align, headerDescription, cellDescription, enableSorting, ...otherProps })=>{
|
|
69
69
|
// Tanstack Table does not support an "auto" value to naturally size to fit
|
|
70
70
|
// the space in a table. We translate our custom "auto" setting to 0 size
|
|
71
71
|
// for these columns, so it is easy to fall back to auto when rendering.
|
|
@@ -31,7 +31,7 @@ function _interop_require_default(obj) {
|
|
|
31
31
|
default: obj
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function ThresholdColorPicker({ color
|
|
34
|
+
function ThresholdColorPicker({ color, onColorChange, label }) {
|
|
35
35
|
const [anchorEl, setAnchorEl] = _react.default.useState(null);
|
|
36
36
|
const isOpen = Boolean(anchorEl);
|
|
37
37
|
const openColorPicker = (event)=>{
|
|
@@ -40,7 +40,7 @@ function ThresholdColorPicker({ color , onColorChange , label }) {
|
|
|
40
40
|
const closeColorPicker = ()=>{
|
|
41
41
|
setAnchorEl(null);
|
|
42
42
|
};
|
|
43
|
-
const { thresholds: { defaultColor
|
|
43
|
+
const { thresholds: { defaultColor, palette } } = (0, _ChartsProvider.useChartsTheme)();
|
|
44
44
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
45
45
|
children: [
|
|
46
46
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(ColorIconButton, {
|
|
@@ -83,7 +83,7 @@ function ThresholdColorPicker({ color , onColorChange , label }) {
|
|
|
83
83
|
}
|
|
84
84
|
const ColorIconButton = (0, _material.styled)(_material.IconButton, {
|
|
85
85
|
shouldForwardProp: (props)=>props !== 'isSelected' && props !== 'iconColor'
|
|
86
|
-
})(({ iconColor
|
|
86
|
+
})(({ iconColor, isSelected })=>({
|
|
87
87
|
backgroundColor: isSelected && iconColor ? `${iconColor}3F` : 'undefined',
|
|
88
88
|
color: iconColor
|
|
89
89
|
}));
|
|
@@ -30,7 +30,7 @@ function _interop_require_default(obj) {
|
|
|
30
30
|
default: obj
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function ThresholdInput({ inputRef
|
|
33
|
+
function ThresholdInput({ inputRef, label, color, value, mode, onChange, onColorChange, onBlur, onDelete }) {
|
|
34
34
|
const [key, setKey] = (0, _react.useState)(0); // use key to cause input to lose focus when pressing enter
|
|
35
35
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
36
36
|
flex: 1,
|
|
@@ -57,7 +57,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
57
57
|
if (cache && cache.has(obj)) {
|
|
58
58
|
return cache.get(obj);
|
|
59
59
|
}
|
|
60
|
-
var newObj = {
|
|
60
|
+
var newObj = {
|
|
61
|
+
__proto__: null
|
|
62
|
+
};
|
|
61
63
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
62
64
|
for(var key in obj){
|
|
63
65
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -76,9 +78,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
76
78
|
return newObj;
|
|
77
79
|
}
|
|
78
80
|
const DEFAULT_STEP = 10;
|
|
79
|
-
function ThresholdsEditor({ thresholds
|
|
81
|
+
function ThresholdsEditor({ thresholds, onChange, hideDefault, disablePercentMode }) {
|
|
80
82
|
const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
|
|
81
|
-
const { thresholds: { defaultColor
|
|
83
|
+
const { thresholds: { defaultColor, palette } } = chartsTheme;
|
|
82
84
|
var _thresholds_defaultColor;
|
|
83
85
|
const defaultThresholdColor = (_thresholds_defaultColor = thresholds === null || thresholds === void 0 ? void 0 : thresholds.defaultColor) !== null && _thresholds_defaultColor !== void 0 ? _thresholds_defaultColor : defaultColor;
|
|
84
86
|
const [steps, setSteps] = (0, _react.useState)(thresholds === null || thresholds === void 0 ? void 0 : thresholds.steps);
|
|
@@ -203,7 +205,7 @@ function ThresholdsEditor({ thresholds , onChange , hideDefault , disablePercent
|
|
|
203
205
|
});
|
|
204
206
|
}
|
|
205
207
|
};
|
|
206
|
-
var _thresholds_mode
|
|
208
|
+
var _thresholds_mode;
|
|
207
209
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_OptionsEditorLayout.OptionsEditorGroup, {
|
|
208
210
|
title: "Thresholds",
|
|
209
211
|
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoTooltip.InfoTooltip, {
|
|
@@ -248,8 +250,9 @@ function ThresholdsEditor({ thresholds , onChange , hideDefault , disablePercent
|
|
|
248
250
|
]
|
|
249
251
|
})
|
|
250
252
|
}),
|
|
251
|
-
steps && steps.map((step, i)
|
|
252
|
-
|
|
253
|
+
steps && steps.map((step, i)=>/*#__PURE__*/ {
|
|
254
|
+
var _step_color, _ref;
|
|
255
|
+
return (0, _jsxruntime.jsx)(_ThresholdInput.ThresholdInput, {
|
|
253
256
|
inputRef: i === steps.length - 1 ? recentlyAddedInputRef : undefined,
|
|
254
257
|
label: `T${i + 1}`,
|
|
255
258
|
color: (_ref = (_step_color = step.color) !== null && _step_color !== void 0 ? _step_color : palette[i]) !== null && _ref !== void 0 ? _ref : defaultThresholdColor,
|
|
@@ -56,9 +56,9 @@ function _interop_require_default(obj) {
|
|
|
56
56
|
_components.TooltipComponent,
|
|
57
57
|
_renderers.CanvasRenderer
|
|
58
58
|
]);
|
|
59
|
-
const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ height
|
|
59
|
+
const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ height, data, seriesMapping, timeScale: timeScaleProp, yAxis, format, grid, isStackedBar = false, tooltipConfig = _TimeSeriesTooltip.DEFAULT_TOOLTIP_CONFIG, noDataVariant = 'message', syncGroup, onDataZoom, onDoubleClick, __experimentalEChartsOptionsOverride }, ref) {
|
|
60
60
|
var _option_tooltip;
|
|
61
|
-
const { chartsTheme
|
|
61
|
+
const { chartsTheme, enablePinning, lastTooltipPinnedCoords, setLastTooltipPinnedCoords } = (0, _ChartsProvider.useChartsContext)();
|
|
62
62
|
const isPinningEnabled = tooltipConfig.enablePinning && enablePinning;
|
|
63
63
|
const chartRef = (0, _react.useRef)();
|
|
64
64
|
const [showTooltip, setShowTooltip] = (0, _react.useState)(true);
|
|
@@ -66,7 +66,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
|
|
|
66
66
|
const [pinnedCrosshair, setPinnedCrosshair] = (0, _react.useState)(null);
|
|
67
67
|
const [isDragging, setIsDragging] = (0, _react.useState)(false);
|
|
68
68
|
const [startX, setStartX] = (0, _react.useState)(0);
|
|
69
|
-
const { timeZone
|
|
69
|
+
const { timeZone } = (0, _TimeZoneProvider.useTimeZone)();
|
|
70
70
|
let timeScale;
|
|
71
71
|
if (timeScaleProp === undefined) {
|
|
72
72
|
const commonTimeScale = (0, _core.getCommonTimeScale)(data);
|
|
@@ -91,7 +91,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
|
|
|
91
91
|
}
|
|
92
92
|
(0, _react.useImperativeHandle)(ref, ()=>{
|
|
93
93
|
return {
|
|
94
|
-
highlightSeries ({ name
|
|
94
|
+
highlightSeries ({ name }) {
|
|
95
95
|
if (!chartRef.current) {
|
|
96
96
|
// when chart undef, do not highlight series when hovering over legend
|
|
97
97
|
return;
|
|
@@ -140,7 +140,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
|
|
|
140
140
|
onDataZoom,
|
|
141
141
|
setTooltipPinnedCoords
|
|
142
142
|
]);
|
|
143
|
-
const { noDataOption
|
|
143
|
+
const { noDataOption } = chartsTheme;
|
|
144
144
|
const option = (0, _react.useMemo)(()=>{
|
|
145
145
|
// The "chart" `noDataVariant` is only used when the `timeSeries` is an
|
|
146
146
|
// empty array because a `null` value will throw an error.
|
|
@@ -329,7 +329,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
|
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
onMouseDown: (e)=>{
|
|
332
|
-
const { clientX
|
|
332
|
+
const { clientX } = e;
|
|
333
333
|
setIsDragging(true);
|
|
334
334
|
setStartX(clientX);
|
|
335
335
|
},
|
|
@@ -338,7 +338,7 @@ const TimeChart = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ heig
|
|
|
338
338
|
if (!(e.target instanceof HTMLCanvasElement)) {
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
-
const { clientX
|
|
341
|
+
const { clientX } = e;
|
|
342
342
|
if (isDragging) {
|
|
343
343
|
const deltaX = clientX - startX;
|
|
344
344
|
if (deltaX > 0) {
|
|
@@ -34,10 +34,10 @@ function _interop_require_default(obj) {
|
|
|
34
34
|
default: obj
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
const LineChartTooltip = /*#__PURE__*/ (0, _react.memo)(function LineChartTooltip({ chartRef
|
|
37
|
+
const LineChartTooltip = /*#__PURE__*/ (0, _react.memo)(function LineChartTooltip({ chartRef, chartData, enablePinning = true, wrapLabels, format, onUnpinClick, pinnedPos, containerId }) {
|
|
38
38
|
const [showAllSeries, setShowAllSeries] = (0, _react.useState)(false);
|
|
39
39
|
const mousePos = (0, _tooltipmodel.useMousePosition)();
|
|
40
|
-
const { height
|
|
40
|
+
const { height, width, ref: tooltipRef } = (0, _useresizeobserver.default)();
|
|
41
41
|
const transform = (0, _react.useRef)();
|
|
42
42
|
const isTooltipPinned = pinnedPos !== null && enablePinning;
|
|
43
43
|
if (mousePos === null || mousePos.target === null) return null;
|
|
@@ -65,13 +65,13 @@ const LineChartTooltip = /*#__PURE__*/ (0, _react.memo)(function LineChartToolti
|
|
|
65
65
|
if (!isTooltipPinned) {
|
|
66
66
|
transform.current = (0, _utils.assembleTransform)(mousePos, chartWidth, pinnedPos, height !== null && height !== void 0 ? height : 0, width !== null && width !== void 0 ? width : 0, containerElement);
|
|
67
67
|
}
|
|
68
|
-
var _theme_palette_designSystem_grey_;
|
|
69
68
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Portal, {
|
|
70
69
|
container: containerElement,
|
|
71
70
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
72
71
|
ref: tooltipRef,
|
|
73
72
|
sx: (theme)=>{
|
|
74
73
|
var _theme_palette_designSystem;
|
|
74
|
+
var _theme_palette_designSystem_grey_;
|
|
75
75
|
return {
|
|
76
76
|
minWidth: _tooltipmodel.TOOLTIP_MIN_WIDTH,
|
|
77
77
|
maxWidth: _tooltipmodel.TOOLTIP_MAX_WIDTH,
|
|
@@ -26,7 +26,7 @@ const _SeriesMarker = require("./SeriesMarker");
|
|
|
26
26
|
const _SeriesLabelsStack = require("./SeriesLabelsStack");
|
|
27
27
|
const _tooltipmodel = require("./tooltip-model");
|
|
28
28
|
function SeriesInfo(props) {
|
|
29
|
-
const { seriesName
|
|
29
|
+
const { seriesName, formattedY, markerColor, totalSeries, emphasizeText = false, wrapLabels = true } = props;
|
|
30
30
|
// metric __name__ comes before opening curly brace, ignore if not populated
|
|
31
31
|
// ex with metric name: node_load15{env="demo",job="node"}
|
|
32
32
|
// ex without metric name: {env="demo",job="node"}
|
|
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
const _SeriesMarker = require("./SeriesMarker");
|
|
26
26
|
function SeriesLabelsStack(props) {
|
|
27
|
-
const { formattedY
|
|
27
|
+
const { formattedY, markerColor, metricName, metricLabels } = props;
|
|
28
28
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
29
29
|
spacing: 0.5,
|
|
30
30
|
children: [
|
|
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
const _utils = require("../utils");
|
|
26
26
|
function SeriesMarker(props) {
|
|
27
|
-
const { markerColor
|
|
27
|
+
const { markerColor, sx } = props;
|
|
28
28
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
29
29
|
sx: (0, _utils.combineSx)({
|
|
30
30
|
display: 'inline-block',
|
|
@@ -34,11 +34,11 @@ function _interop_require_default(obj) {
|
|
|
34
34
|
default: obj
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
const TimeChartTooltip = /*#__PURE__*/ (0, _react.memo)(function TimeChartTooltip({ containerId
|
|
37
|
+
const TimeChartTooltip = /*#__PURE__*/ (0, _react.memo)(function TimeChartTooltip({ containerId, chartRef, data, seriesMapping, enablePinning = true, wrapLabels, format, onUnpinClick, pinnedPos }) {
|
|
38
38
|
const [showAllSeries, setShowAllSeries] = (0, _react.useState)(false);
|
|
39
39
|
const transform = (0, _react.useRef)();
|
|
40
40
|
const mousePos = (0, _tooltipmodel.useMousePosition)();
|
|
41
|
-
const { height
|
|
41
|
+
const { height, width, ref: tooltipRef } = (0, _useresizeobserver.default)();
|
|
42
42
|
const isTooltipPinned = pinnedPos !== null && enablePinning;
|
|
43
43
|
if (mousePos === null || mousePos.target === null || data === null) return null;
|
|
44
44
|
// Ensure user is hovering over a chart before checking for nearby series.
|
|
@@ -25,7 +25,7 @@ const _react = require("react");
|
|
|
25
25
|
const _material = require("@mui/material");
|
|
26
26
|
const _SeriesInfo = require("./SeriesInfo");
|
|
27
27
|
function TooltipContent(props) {
|
|
28
|
-
const { series
|
|
28
|
+
const { series, wrapLabels } = props;
|
|
29
29
|
const sortedFocusedSeries = (0, _react.useMemo)(()=>{
|
|
30
30
|
if (series === null) return null;
|
|
31
31
|
return series.sort((a, b)=>a.y > b.y ? -1 : 1);
|
|
@@ -41,7 +41,7 @@ function TooltipContent(props) {
|
|
|
41
41
|
display: 'table',
|
|
42
42
|
padding: theme.spacing(0.5, 2)
|
|
43
43
|
}),
|
|
44
|
-
children: sortedFocusedSeries.map(({ datumIdx
|
|
44
|
+
children: sortedFocusedSeries.map(({ datumIdx, seriesIdx, seriesName, y, formattedY, markerColor, isClosestToCursor })=>{
|
|
45
45
|
if (datumIdx === null || seriesIdx === null) return null;
|
|
46
46
|
const key = seriesIdx.toString() + datumIdx.toString();
|
|
47
47
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_SeriesInfo.SeriesInfo, {
|
|
@@ -32,7 +32,7 @@ function _interop_require_default(obj) {
|
|
|
32
32
|
default: obj
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
const TooltipHeader = /*#__PURE__*/ (0, _react.memo)(function TooltipHeader({ nearbySeries
|
|
35
|
+
const TooltipHeader = /*#__PURE__*/ (0, _react.memo)(function TooltipHeader({ nearbySeries, totalSeries, isTooltipPinned, showAllSeries, enablePinning = true, onShowAllClick, onUnpinClick }) {
|
|
36
36
|
var _nearbySeries_;
|
|
37
37
|
var _nearbySeries__date;
|
|
38
38
|
const seriesTimeMs = (_nearbySeries__date = (_nearbySeries_ = nearbySeries[0]) === null || _nearbySeries_ === void 0 ? void 0 : _nearbySeries_.date) !== null && _nearbySeries__date !== void 0 ? _nearbySeries__date : null;
|
|
@@ -64,10 +64,10 @@ const TooltipHeader = /*#__PURE__*/ (0, _react.memo)(function TooltipHeader({ ne
|
|
|
64
64
|
// TODO: accurately calc whether more series are outside scrollable region using yBuffer, avg series name length, TOOLTIP_MAX_HEIGHT
|
|
65
65
|
const showAllSeriesToggle = enablePinning && totalSeries > 5;
|
|
66
66
|
const pinTooltipHelpText = isTooltipPinned ? _tooltipmodel.UNPIN_TOOLTIP_HELP_TEXT : _tooltipmodel.PIN_TOOLTIP_HELP_TEXT;
|
|
67
|
-
var _theme_palette_designSystem_grey_;
|
|
68
67
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
69
68
|
sx: (theme)=>{
|
|
70
69
|
var _theme_palette_designSystem;
|
|
70
|
+
var _theme_palette_designSystem_grey_;
|
|
71
71
|
return {
|
|
72
72
|
width: '100%',
|
|
73
73
|
maxWidth: _tooltipmodel.TOOLTIP_MAX_WIDTH,
|
|
@@ -21,32 +21,32 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
INCREASE_NEARBY_SERIES_MULTIPLIER: function() {
|
|
25
|
-
return INCREASE_NEARBY_SERIES_MULTIPLIER;
|
|
26
|
-
},
|
|
27
24
|
DYNAMIC_NEARBY_SERIES_MULTIPLIER: function() {
|
|
28
25
|
return DYNAMIC_NEARBY_SERIES_MULTIPLIER;
|
|
29
26
|
},
|
|
27
|
+
INCREASE_NEARBY_SERIES_MULTIPLIER: function() {
|
|
28
|
+
return INCREASE_NEARBY_SERIES_MULTIPLIER;
|
|
29
|
+
},
|
|
30
30
|
SHOW_FEWER_SERIES_LIMIT: function() {
|
|
31
31
|
return SHOW_FEWER_SERIES_LIMIT;
|
|
32
32
|
},
|
|
33
33
|
checkforNearbyTimeSeries: function() {
|
|
34
34
|
return checkforNearbyTimeSeries;
|
|
35
35
|
},
|
|
36
|
-
legacyCheckforNearbySeries: function() {
|
|
37
|
-
return legacyCheckforNearbySeries;
|
|
38
|
-
},
|
|
39
36
|
getNearbySeriesData: function() {
|
|
40
37
|
return getNearbySeriesData;
|
|
41
38
|
},
|
|
42
|
-
|
|
43
|
-
return
|
|
39
|
+
getYBuffer: function() {
|
|
40
|
+
return getYBuffer;
|
|
44
41
|
},
|
|
45
42
|
isWithinPercentageRange: function() {
|
|
46
43
|
return isWithinPercentageRange;
|
|
47
44
|
},
|
|
48
|
-
|
|
49
|
-
return
|
|
45
|
+
legacyCheckforNearbySeries: function() {
|
|
46
|
+
return legacyCheckforNearbySeries;
|
|
47
|
+
},
|
|
48
|
+
legacyGetNearbySeriesData: function() {
|
|
49
|
+
return legacyGetNearbySeriesData;
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
const _core = require("@perses-dev/core");
|
|
@@ -260,7 +260,7 @@ function legacyCheckforNearbySeries(data, pointInGrid, yBuffer, chart, format) {
|
|
|
260
260
|
}
|
|
261
261
|
return currentNearbySeriesData;
|
|
262
262
|
}
|
|
263
|
-
function getNearbySeriesData({ mousePos
|
|
263
|
+
function getNearbySeriesData({ mousePos, pinnedPos, data, seriesMapping, chart, format, showAllSeries = false }) {
|
|
264
264
|
if (chart === undefined || mousePos === null) return _tooltipmodel.EMPTY_TOOLTIP_DATA;
|
|
265
265
|
// prevents multiple tooltips showing from adjacent charts unless tooltip is pinned
|
|
266
266
|
let cursorTargetMatchesChart = false;
|
|
@@ -299,7 +299,7 @@ function getNearbySeriesData({ mousePos , pinnedPos , data , seriesMapping , cha
|
|
|
299
299
|
// no nearby series found
|
|
300
300
|
return _tooltipmodel.EMPTY_TOOLTIP_DATA;
|
|
301
301
|
}
|
|
302
|
-
function legacyGetNearbySeriesData({ mousePos
|
|
302
|
+
function legacyGetNearbySeriesData({ mousePos, pinnedPos, chartData, chart, format, showAllSeries = false }) {
|
|
303
303
|
if (chart === undefined || mousePos === null) return [];
|
|
304
304
|
// prevents multiple tooltips showing from adjacent charts unless tooltip is pinned
|
|
305
305
|
let cursorTargetMatchesChart = false;
|
|
@@ -343,13 +343,13 @@ function legacyGetNearbySeriesData({ mousePos , pinnedPos , chartData , chart ,
|
|
|
343
343
|
}
|
|
344
344
|
return [];
|
|
345
345
|
}
|
|
346
|
-
function isWithinPercentageRange({ valueToCheck
|
|
346
|
+
function isWithinPercentageRange({ valueToCheck, baseValue, percentage }) {
|
|
347
347
|
const range = percentage / 100 * baseValue;
|
|
348
348
|
const lowerBound = baseValue - range;
|
|
349
349
|
const upperBound = baseValue + range;
|
|
350
350
|
return valueToCheck >= lowerBound && valueToCheck <= upperBound;
|
|
351
351
|
}
|
|
352
|
-
function getYBuffer({ yInterval
|
|
352
|
+
function getYBuffer({ yInterval, totalSeries, showAllSeries = false }) {
|
|
353
353
|
if (showAllSeries) {
|
|
354
354
|
return yInterval * 10; // roughly correlates with grid so entire canvas is searched
|
|
355
355
|
}
|
|
@@ -21,23 +21,14 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
|
|
25
|
-
return
|
|
26
|
-
},
|
|
27
|
-
TOOLTIP_MAX_WIDTH: function() {
|
|
28
|
-
return TOOLTIP_MAX_WIDTH;
|
|
29
|
-
},
|
|
30
|
-
TOOLTIP_MAX_HEIGHT: function() {
|
|
31
|
-
return TOOLTIP_MAX_HEIGHT;
|
|
32
|
-
},
|
|
33
|
-
TOOLTIP_LABELS_MAX_WIDTH: function() {
|
|
34
|
-
return TOOLTIP_LABELS_MAX_WIDTH;
|
|
24
|
+
DEFAULT_TOOLTIP_CONFIG: function() {
|
|
25
|
+
return DEFAULT_TOOLTIP_CONFIG;
|
|
35
26
|
},
|
|
36
|
-
|
|
37
|
-
return
|
|
27
|
+
EMPHASIZED_SERIES_DESCRIPTION: function() {
|
|
28
|
+
return EMPHASIZED_SERIES_DESCRIPTION;
|
|
38
29
|
},
|
|
39
|
-
|
|
40
|
-
return
|
|
30
|
+
EMPTY_TOOLTIP_DATA: function() {
|
|
31
|
+
return EMPTY_TOOLTIP_DATA;
|
|
41
32
|
},
|
|
42
33
|
FALLBACK_CHART_WIDTH: function() {
|
|
43
34
|
return FALLBACK_CHART_WIDTH;
|
|
@@ -45,8 +36,11 @@ _export(exports, {
|
|
|
45
36
|
NEARBY_SERIES_DESCRIPTION: function() {
|
|
46
37
|
return NEARBY_SERIES_DESCRIPTION;
|
|
47
38
|
},
|
|
48
|
-
|
|
49
|
-
return
|
|
39
|
+
PIN_TOOLTIP_HELP_TEXT: function() {
|
|
40
|
+
return PIN_TOOLTIP_HELP_TEXT;
|
|
41
|
+
},
|
|
42
|
+
TOOLTIP_ADJUST_Y_POS_MULTIPLIER: function() {
|
|
43
|
+
return TOOLTIP_ADJUST_Y_POS_MULTIPLIER;
|
|
50
44
|
},
|
|
51
45
|
TOOLTIP_BG_COLOR_FALLBACK: function() {
|
|
52
46
|
return TOOLTIP_BG_COLOR_FALLBACK;
|
|
@@ -54,23 +48,29 @@ _export(exports, {
|
|
|
54
48
|
TOOLTIP_DATE_FORMAT: function() {
|
|
55
49
|
return TOOLTIP_DATE_FORMAT;
|
|
56
50
|
},
|
|
57
|
-
|
|
58
|
-
return
|
|
51
|
+
TOOLTIP_LABELS_MAX_WIDTH: function() {
|
|
52
|
+
return TOOLTIP_LABELS_MAX_WIDTH;
|
|
59
53
|
},
|
|
60
|
-
|
|
61
|
-
return
|
|
54
|
+
TOOLTIP_MAX_HEIGHT: function() {
|
|
55
|
+
return TOOLTIP_MAX_HEIGHT;
|
|
62
56
|
},
|
|
63
|
-
|
|
64
|
-
return
|
|
57
|
+
TOOLTIP_MAX_WIDTH: function() {
|
|
58
|
+
return TOOLTIP_MAX_WIDTH;
|
|
65
59
|
},
|
|
66
|
-
|
|
67
|
-
return
|
|
60
|
+
TOOLTIP_MIN_WIDTH: function() {
|
|
61
|
+
return TOOLTIP_MIN_WIDTH;
|
|
68
62
|
},
|
|
69
|
-
|
|
70
|
-
return
|
|
63
|
+
TOOLTIP_PADDING: function() {
|
|
64
|
+
return TOOLTIP_PADDING;
|
|
71
65
|
},
|
|
72
66
|
UNPIN_TOOLTIP_HELP_TEXT: function() {
|
|
73
67
|
return UNPIN_TOOLTIP_HELP_TEXT;
|
|
68
|
+
},
|
|
69
|
+
defaultCursorData: function() {
|
|
70
|
+
return defaultCursorData;
|
|
71
|
+
},
|
|
72
|
+
useMousePosition: function() {
|
|
73
|
+
return useMousePosition;
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
const _react = require("react");
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright 2023 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "ToolbarIconButton", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return ToolbarIconButton;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
+
const _react = require("react");
|
|
25
|
+
const _material = require("@mui/material");
|
|
26
|
+
function IconButton(props, ref) {
|
|
27
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(StyledIconButton, {
|
|
28
|
+
ref: ref,
|
|
29
|
+
variant: "outlined",
|
|
30
|
+
color: "secondary",
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const StyledIconButton = (0, _material.styled)(_material.Button)(({ theme })=>({
|
|
35
|
+
// Using a button with some adjusted styles because it is easier to inherit
|
|
36
|
+
// styling and variants from themes than with an IconButton.
|
|
37
|
+
padding: theme.spacing(0.5),
|
|
38
|
+
minWidth: 'auto'
|
|
39
|
+
}));
|
|
40
|
+
const ToolbarIconButton = /*#__PURE__*/ (0, _react.forwardRef)(IconButton);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Copyright 2023 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
_export_star(require("./ToolbarIconButton"), exports);
|
|
18
|
+
function _export_star(from, to) {
|
|
19
|
+
Object.keys(from).forEach(function(k) {
|
|
20
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
+
Object.defineProperty(to, k, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return from;
|
|
30
|
+
}
|
package/dist/cjs/YAxisLabel.js
CHANGED
|
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "YAxisLabel", {
|
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
|
-
function YAxisLabel({ name
|
|
25
|
+
function YAxisLabel({ name, height }) {
|
|
26
26
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
27
27
|
sx: {
|
|
28
28
|
display: 'inline-block',
|