@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/YAxisLabel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/YAxisLabel.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Box, Typography } from '@mui/material';\n\ninterface YAxisLabelProps {\n name: string;\n height: number;\n}\n\nexport function YAxisLabel({ name, height }: YAxisLabelProps) {\n return (\n <Box\n sx={{\n display: 'inline-block',\n maxWidth: height, // allows rotated text to truncate instead of causing overlap\n position: 'absolute',\n top: `calc(${height}px / 2)`,\n transform: 'translateX(-50%) rotate(-90deg)',\n transformOrigin: 'top',\n textAlign: 'center',\n zIndex: 1,\n }}\n >\n <Typography\n variant=\"body1\"\n aria-label=\"y axis label\"\n sx={{\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }}\n >\n {name}\n </Typography>\n </Box>\n );\n}\n"],"names":["Box","Typography","YAxisLabel","name","height","sx","display","maxWidth","position","top","transform","transformOrigin","textAlign","zIndex","variant","aria-label","whiteSpace","overflow","textOverflow"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SAASA,GAAG,EAAEC,UAAU,QAAQ,gBAAgB;AAOhD,OAAO,SAASC,WAAW,EAAEC,
|
|
1
|
+
{"version":3,"sources":["../src/YAxisLabel.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Box, Typography } from '@mui/material';\n\ninterface YAxisLabelProps {\n name: string;\n height: number;\n}\n\nexport function YAxisLabel({ name, height }: YAxisLabelProps) {\n return (\n <Box\n sx={{\n display: 'inline-block',\n maxWidth: height, // allows rotated text to truncate instead of causing overlap\n position: 'absolute',\n top: `calc(${height}px / 2)`,\n transform: 'translateX(-50%) rotate(-90deg)',\n transformOrigin: 'top',\n textAlign: 'center',\n zIndex: 1,\n }}\n >\n <Typography\n variant=\"body1\"\n aria-label=\"y axis label\"\n sx={{\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }}\n >\n {name}\n </Typography>\n </Box>\n );\n}\n"],"names":["Box","Typography","YAxisLabel","name","height","sx","display","maxWidth","position","top","transform","transformOrigin","textAlign","zIndex","variant","aria-label","whiteSpace","overflow","textOverflow"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SAASA,GAAG,EAAEC,UAAU,QAAQ,gBAAgB;AAOhD,OAAO,SAASC,WAAW,EAAEC,IAAI,EAAEC,MAAM,EAAmB;IAC1D,qBACE,KAACJ;QACCK,IAAI;YACFC,SAAS;YACTC,UAAUH;YACVI,UAAU;YACVC,KAAK,CAAC,KAAK,EAAEL,OAAO,OAAO,CAAC;YAC5BM,WAAW;YACXC,iBAAiB;YACjBC,WAAW;YACXC,QAAQ;QACV;kBAEA,cAAA,KAACZ;YACCa,SAAQ;YACRC,cAAW;YACXV,IAAI;gBACFW,YAAY;gBACZC,UAAU;gBACVC,cAAc;YAChB;sBAECf;;;AAIT"}
|
|
@@ -42,9 +42,9 @@ const _utils = require("../utils");
|
|
|
42
42
|
const BAR_WIN_WIDTH = 14;
|
|
43
43
|
const BAR_GAP = 6;
|
|
44
44
|
function BarChart(props) {
|
|
45
|
-
const { width
|
|
45
|
+
const { width, height, data, format = {
|
|
46
46
|
unit: 'decimal'
|
|
47
|
-
}
|
|
47
|
+
}, mode = 'value' } = props;
|
|
48
48
|
const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
|
|
49
49
|
const option = (0, _react.useMemo)(()=>{
|
|
50
50
|
if (data == null || !data.length) return chartsTheme.noDataOption;
|
|
@@ -51,7 +51,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
51
51
|
if (cache && cache.has(obj)) {
|
|
52
52
|
return cache.get(obj);
|
|
53
53
|
}
|
|
54
|
-
var newObj = {
|
|
54
|
+
var newObj = {
|
|
55
|
+
__proto__: null
|
|
56
|
+
};
|
|
55
57
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
56
58
|
for(var key in obj){
|
|
57
59
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -69,7 +71,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
69
71
|
}
|
|
70
72
|
return newObj;
|
|
71
73
|
}
|
|
72
|
-
const ColorPicker = ({ color
|
|
74
|
+
const ColorPicker = ({ color, onChange, palette })=>{
|
|
73
75
|
// value is the visible value for the controlled text input
|
|
74
76
|
const [value, setValue] = (0, _react.useState)(color);
|
|
75
77
|
const handleColorChange = (color)=>{
|
|
@@ -31,9 +31,9 @@ function _interop_require_default(obj) {
|
|
|
31
31
|
default: obj
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function ContentWithLegend({ children
|
|
34
|
+
function ContentWithLegend({ children, legendProps, width, height, spacing = 0, legendSize, minChildrenWidth = 100, minChildrenHeight = 100 }) {
|
|
35
35
|
const theme = (0, _material.useTheme)();
|
|
36
|
-
const { content
|
|
36
|
+
const { content, legend, margin } = (0, _contentwithlegendmodel.getContentWithLegendLayout)({
|
|
37
37
|
width,
|
|
38
38
|
height,
|
|
39
39
|
legendProps,
|
|
@@ -47,7 +47,7 @@ const TABLE_LEGEND_SIZE = {
|
|
|
47
47
|
const PANEL_HEIGHT_LG_BREAKPOINT = 300;
|
|
48
48
|
const LEGEND_HEIGHT_SM = 40;
|
|
49
49
|
const LEGEND_HEIGHT_LG = 100;
|
|
50
|
-
function getContentWithLegendLayout({ width
|
|
50
|
+
function getContentWithLegendLayout({ width, height, legendProps, legendSize, minChildrenHeight, minChildrenWidth, spacing, theme }) {
|
|
51
51
|
const legendOptions = legendProps === null || legendProps === void 0 ? void 0 : legendProps.options;
|
|
52
52
|
const hasLegend = !!legendOptions;
|
|
53
53
|
const noLegendLayout = {
|
|
@@ -68,7 +68,7 @@ function getContentWithLegendLayout({ width , height , legendProps , legendSize
|
|
|
68
68
|
if (!hasLegend) {
|
|
69
69
|
return noLegendLayout;
|
|
70
70
|
}
|
|
71
|
-
const { position
|
|
71
|
+
const { position } = legendOptions;
|
|
72
72
|
const mode = (0, _core.getLegendMode)(legendOptions.mode);
|
|
73
73
|
let legendWidth;
|
|
74
74
|
let legendHeight;
|
|
@@ -28,8 +28,8 @@ const _AdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
|
|
|
28
28
|
const _TimeZoneProvider = require("../context/TimeZoneProvider");
|
|
29
29
|
const _utils = require("./utils");
|
|
30
30
|
const DATE_TIME_FORMAT = 'yyyy-MM-dd HH:mm:ss';
|
|
31
|
-
const AbsoluteTimePicker = ({ initialTimeRange
|
|
32
|
-
const { formatWithUserTimeZone
|
|
31
|
+
const AbsoluteTimePicker = ({ initialTimeRange, onChange, onCancel })=>{
|
|
32
|
+
const { formatWithUserTimeZone } = (0, _TimeZoneProvider.useTimeZone)();
|
|
33
33
|
// Time range values as dates that can be used as a time range.
|
|
34
34
|
const [timeRange, setTimeRange] = (0, _react.useState)(initialTimeRange);
|
|
35
35
|
// Time range values as strings used to populate the text inputs. May not
|
|
@@ -27,7 +27,7 @@ const _core = require("@perses-dev/core");
|
|
|
27
27
|
const _AbsoluteTimePicker = require("./AbsoluteTimePicker");
|
|
28
28
|
const _TimeRangeSelector = require("./TimeRangeSelector");
|
|
29
29
|
function DateTimeRangePicker(props) {
|
|
30
|
-
const { value
|
|
30
|
+
const { value, onChange, timeOptions, height } = props;
|
|
31
31
|
const [showCustomDateSelector, setShowCustomDateSelector] = (0, _react.useState)(false);
|
|
32
32
|
const anchorEl = (0, _react.useRef)();
|
|
33
33
|
const convertedTimeRange = (0, _react.useMemo)(()=>{
|
|
@@ -33,8 +33,8 @@ function _interop_require_default(obj) {
|
|
|
33
33
|
}
|
|
34
34
|
const DATE_TIME_FORMAT = 'yyyy-MM-dd HH:mm:ss';
|
|
35
35
|
function TimeRangeSelector(props) {
|
|
36
|
-
const { value
|
|
37
|
-
const { timeZone
|
|
36
|
+
const { value, timeOptions, onSelectChange, onCustomClick, height } = props;
|
|
37
|
+
const { timeZone } = (0, _TimeZoneProvider.useTimeZone)();
|
|
38
38
|
const formattedValue = !(0, _core.isRelativeTimeRange)(value) ? (0, _utils.formatAbsoluteRange)(value, DATE_TIME_FORMAT, timeZone) : value.pastDuration;
|
|
39
39
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Select, {
|
|
40
40
|
value: formattedValue,
|
|
@@ -21,11 +21,11 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
validateDateRange: function() {
|
|
25
|
-
return validateDateRange;
|
|
26
|
-
},
|
|
27
24
|
formatAbsoluteRange: function() {
|
|
28
25
|
return formatAbsoluteRange;
|
|
26
|
+
},
|
|
27
|
+
validateDateRange: function() {
|
|
28
|
+
return validateDateRange;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
const _datefns = require("date-fns");
|
|
@@ -30,7 +30,7 @@ function _interop_require_default(obj) {
|
|
|
30
30
|
default: obj
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
const Header = ({ children
|
|
33
|
+
const Header = ({ children, onClose, ...props })=>{
|
|
34
34
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
35
35
|
children: [
|
|
36
36
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.DialogTitle, {
|
|
@@ -46,7 +46,7 @@ const Header = ({ children , onClose , ...props })=>{
|
|
|
46
46
|
]
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
const Content = ({ children
|
|
49
|
+
const Content = ({ children, width = 500, sx, ...props })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.DialogContent, {
|
|
50
50
|
dividers: true,
|
|
51
51
|
...props,
|
|
52
52
|
sx: (0, _utils.combineSx)({
|
|
@@ -54,13 +54,13 @@ const Content = ({ children , width =500 , sx , ...props })=>/*#__PURE__*/ (0, _
|
|
|
54
54
|
}, sx),
|
|
55
55
|
children: children
|
|
56
56
|
});
|
|
57
|
-
const PrimaryButton = ({ children
|
|
57
|
+
const PrimaryButton = ({ children, ...props })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
|
|
58
58
|
variant: "contained",
|
|
59
59
|
type: "submit",
|
|
60
60
|
...props,
|
|
61
61
|
children: children
|
|
62
62
|
});
|
|
63
|
-
const SecondaryButton = ({ children
|
|
63
|
+
const SecondaryButton = ({ children, ...props })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
|
|
64
64
|
variant: "outlined",
|
|
65
65
|
color: "secondary",
|
|
66
66
|
...props,
|
|
@@ -86,7 +86,7 @@ const SecondaryButton = ({ children , ...props })=>/*#__PURE__*/ (0, _jsxruntime
|
|
|
86
86
|
right: theme.spacing(0.5)
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
const Dialog = ({ children
|
|
89
|
+
const Dialog = ({ children, ...props })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Dialog, {
|
|
90
90
|
...props,
|
|
91
91
|
children: children
|
|
92
92
|
});
|
|
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
const _Dialog = require("./Dialog");
|
|
26
26
|
const DiscardChangesConfirmationDialog = (props)=>{
|
|
27
|
-
const { description
|
|
27
|
+
const { description, isOpen, onCancel, onDiscardChanges } = props;
|
|
28
28
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Dialog.Dialog, {
|
|
29
29
|
open: isOpen,
|
|
30
30
|
"aria-labelledby": "discard-dialog",
|
|
@@ -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
|
const DRAWER_DEFAULT_WIDTH = 1080;
|
|
27
|
-
const Drawer = ({ anchor ='right'
|
|
27
|
+
const Drawer = ({ anchor = 'right', isOpen, onClose, PaperProps, children, ...rest })=>{
|
|
28
28
|
const isSmaller = (0, _material.useMediaQuery)(`(max-width:${DRAWER_DEFAULT_WIDTH}px)`);
|
|
29
29
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Drawer, {
|
|
30
30
|
...rest,
|
|
@@ -52,7 +52,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
52
52
|
if (cache && cache.has(obj)) {
|
|
53
53
|
return cache.get(obj);
|
|
54
54
|
}
|
|
55
|
-
var newObj = {
|
|
55
|
+
var newObj = {
|
|
56
|
+
__proto__: null
|
|
57
|
+
};
|
|
56
58
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
57
59
|
for(var key in obj){
|
|
58
60
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -86,7 +88,7 @@ const batchEvents = [
|
|
|
86
88
|
'downplay',
|
|
87
89
|
'highlight'
|
|
88
90
|
];
|
|
89
|
-
const EChart = /*#__PURE__*/ _react.default.memo(function EChart({ option
|
|
91
|
+
const EChart = /*#__PURE__*/ _react.default.memo(function EChart({ option, theme, renderer, sx, onEvents, _instance, syncGroup, onChartInitialized }) {
|
|
90
92
|
const initialOption = (0, _react.useRef)(option);
|
|
91
93
|
const prevOption = (0, _react.useRef)(option);
|
|
92
94
|
const containerRef = (0, _react.useRef)(null);
|
package/dist/cjs/ErrorAlert.js
CHANGED
|
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "ErrorAlert", {
|
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
function ErrorAlert(props) {
|
|
26
|
-
const { error
|
|
26
|
+
const { error } = props;
|
|
27
27
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Alert, {
|
|
28
28
|
severity: "error",
|
|
29
29
|
children: error.message
|
|
@@ -115,8 +115,8 @@ const FONT_SIZE_OPTIONS = [
|
|
|
115
115
|
value: 192
|
|
116
116
|
}
|
|
117
117
|
];
|
|
118
|
-
function FontSizeSelector({ value
|
|
119
|
-
const handleFontSizeChange = (_, { value
|
|
118
|
+
function FontSizeSelector({ value, onChange }) {
|
|
119
|
+
const handleFontSizeChange = (_, { value })=>{
|
|
120
120
|
onChange(value);
|
|
121
121
|
};
|
|
122
122
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsEditorLayout.OptionsEditorControl, {
|
|
@@ -66,7 +66,7 @@ const DECIMAL_PLACES_OPTIONS = [
|
|
|
66
66
|
function getOptionByDecimalPlaces(decimalPlaces) {
|
|
67
67
|
return DECIMAL_PLACES_OPTIONS.find((o)=>o.decimalPlaces === decimalPlaces);
|
|
68
68
|
}
|
|
69
|
-
function FormatControls({ value
|
|
69
|
+
function FormatControls({ value, onChange, disabled = false }) {
|
|
70
70
|
const hasDecimalPlaces = (0, _core.isUnitWithDecimalPlaces)(value);
|
|
71
71
|
const hasShortValues = (0, _core.isUnitWithShortValues)(value);
|
|
72
72
|
const handleKindChange = (_, newValue)=>{
|
|
@@ -74,7 +74,7 @@ function FormatControls({ value , onChange , disabled =false }) {
|
|
|
74
74
|
unit: newValue.id
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
const handleDecimalPlacesChange = (_, { decimalPlaces
|
|
77
|
+
const handleDecimalPlacesChange = (_, { decimalPlaces })=>{
|
|
78
78
|
if (hasDecimalPlaces) {
|
|
79
79
|
onChange({
|
|
80
80
|
...value,
|
|
@@ -47,7 +47,7 @@ const PROGRESS_WIDTH = 16;
|
|
|
47
47
|
// adjusts when to show pointer icon
|
|
48
48
|
const GAUGE_SMALL_BREAKPOINT = 170;
|
|
49
49
|
function GaugeChart(props) {
|
|
50
|
-
const { width
|
|
50
|
+
const { width, height, data, format, axisLine, max } = props;
|
|
51
51
|
const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
|
|
52
52
|
// useDeepMemo ensures value size util does not rerun everytime you hover on the chart
|
|
53
53
|
const option = (0, _core.useDeepMemo)(()=>{
|
|
@@ -28,7 +28,7 @@ function _interop_require_default(obj) {
|
|
|
28
28
|
default: obj
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
const InfoTooltip = ({ id
|
|
31
|
+
const InfoTooltip = ({ id, title, description, placement, children, enterDelay, enterNextDelay })=>{
|
|
32
32
|
// Wrap children in a span to cover the following use cases:
|
|
33
33
|
// - Disabled buttons. MUI console.errors on putting these inside a tooltip.
|
|
34
34
|
// - Non-element tooltip children (e.g. text). The tooltip needs something that
|
|
@@ -51,7 +51,7 @@ const InfoTooltip = ({ id , title , description , placement , children , enterDe
|
|
|
51
51
|
children: wrappedChildren
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
const TooltipContent = ({ title
|
|
54
|
+
const TooltipContent = ({ title, description })=>{
|
|
55
55
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
56
56
|
children: [
|
|
57
57
|
title && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
@@ -72,12 +72,12 @@ const TooltipContent = ({ title , description })=>{
|
|
|
72
72
|
]
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
const StyledTooltip = (0, _material.styled)(({ className
|
|
75
|
+
const StyledTooltip = (0, _material.styled)(({ className, ...props })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Tooltip, {
|
|
76
76
|
...props,
|
|
77
77
|
classes: {
|
|
78
78
|
popper: className
|
|
79
79
|
}
|
|
80
|
-
}))(({ theme
|
|
80
|
+
}))(({ theme })=>({
|
|
81
81
|
[`& .${_material.tooltipClasses.tooltip}`]: {
|
|
82
82
|
backgroundColor: theme.palette.background.tooltip,
|
|
83
83
|
color: theme.palette.text.primary,
|
|
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
const _ListLegendItem = require("./ListLegendItem");
|
|
26
26
|
const _legendmodel = require("./legend-model");
|
|
27
|
-
function CompactLegend({ height
|
|
27
|
+
function CompactLegend({ height, items, selectedItems, onLegendItemClick, onItemMouseOver, onItemMouseOut }) {
|
|
28
28
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
29
29
|
component: "ul",
|
|
30
30
|
sx: {
|
|
@@ -33,7 +33,7 @@ const _TableLegend = require("./TableLegend");
|
|
|
33
33
|
// Set this number based on testing, but it may need to be tuned a bit on the
|
|
34
34
|
// future as people test this out on different machines.
|
|
35
35
|
const NEED_VIRTUALIZATION_LIMIT = 500;
|
|
36
|
-
function Legend({ width
|
|
36
|
+
function Legend({ width, height, options, data, selectedItems, onSelectedItemsChange, onItemMouseOver, onItemMouseOut, tableProps }) {
|
|
37
37
|
const onLegendItemClick = (e, seriesId)=>{
|
|
38
38
|
const isModifiedClick = e.metaKey || e.shiftKey;
|
|
39
39
|
const newSelected = (0, _immer.produce)(selectedItems, (draft)=>{
|
|
@@ -29,7 +29,7 @@ function _interop_require_default(obj) {
|
|
|
29
29
|
default: obj
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const LegendColorBadge = /*#__PURE__*/ _react.default.memo(function LegendColorBadge({ color
|
|
32
|
+
const LegendColorBadge = /*#__PURE__*/ _react.default.memo(function LegendColorBadge({ color, sx, ...others }) {
|
|
33
33
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
34
34
|
...others,
|
|
35
35
|
sx: (0, _utils.combineSx)({
|
|
@@ -24,7 +24,7 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _reactvirtuoso = require("react-virtuoso");
|
|
25
25
|
const _ListLegendItem = require("./ListLegendItem");
|
|
26
26
|
const _legendmodel = require("./legend-model");
|
|
27
|
-
function ListLegend({ items
|
|
27
|
+
function ListLegend({ items, height, width, selectedItems, onLegendItemClick, onItemMouseOver, onItemMouseOut }) {
|
|
28
28
|
// show full labels on hover when there are many total series
|
|
29
29
|
const truncateLabels = items.length > 5;
|
|
30
30
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactvirtuoso.Virtuoso, {
|
|
@@ -46,7 +46,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
46
46
|
if (cache && cache.has(obj)) {
|
|
47
47
|
return cache.get(obj);
|
|
48
48
|
}
|
|
49
|
-
var newObj = {
|
|
49
|
+
var newObj = {
|
|
50
|
+
__proto__: null
|
|
51
|
+
};
|
|
50
52
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
51
53
|
for(var key in obj){
|
|
52
54
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -64,7 +66,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
64
66
|
}
|
|
65
67
|
return newObj;
|
|
66
68
|
}
|
|
67
|
-
const ListLegendItemBase = /*#__PURE__*/ (0, _react.forwardRef)(function ListLegendItem({ item
|
|
69
|
+
const ListLegendItemBase = /*#__PURE__*/ (0, _react.forwardRef)(function ListLegendItem({ item, sx, truncateLabel, onClick, isVisuallySelected, onMouseOver, onMouseOut, index, ...others }, ref) {
|
|
68
70
|
const [noWrap, setNoWrap] = (0, _react.useState)(truncateLabel);
|
|
69
71
|
function handleTextMouseOver() {
|
|
70
72
|
if (truncateLabel) {
|
|
@@ -92,18 +94,14 @@ const ListLegendItemBase = /*#__PURE__*/ (0, _react.forwardRef)(function ListLeg
|
|
|
92
94
|
dense: true,
|
|
93
95
|
key: item.id,
|
|
94
96
|
onClick: handleClick,
|
|
95
|
-
onMouseOver: (e)=>{
|
|
96
|
-
return onMouseOver === null || onMouseOver === void 0 ? void 0 : onMouseOver(e, {
|
|
97
|
+
onMouseOver: (e)=>onMouseOver === null || onMouseOver === void 0 ? void 0 : onMouseOver(e, {
|
|
97
98
|
id: item.id,
|
|
98
99
|
index
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
onMouseOut: (e)=>{
|
|
102
|
-
return onMouseOut === null || onMouseOut === void 0 ? void 0 : onMouseOut(e, {
|
|
100
|
+
}),
|
|
101
|
+
onMouseOut: (e)=>onMouseOut === null || onMouseOut === void 0 ? void 0 : onMouseOut(e, {
|
|
103
102
|
id: item.id,
|
|
104
103
|
index
|
|
105
|
-
})
|
|
106
|
-
},
|
|
104
|
+
}),
|
|
107
105
|
selected: isVisuallySelected,
|
|
108
106
|
ref: ref,
|
|
109
107
|
children: [
|
|
@@ -31,7 +31,7 @@ const COLUMNS = [
|
|
|
31
31
|
// Starting with `title` attr instead of a tooltip because it is easier to
|
|
32
32
|
// implement. We should try adding a tooltip in the future, but we'll need
|
|
33
33
|
// to be very careful about performance when doing so with large tables.
|
|
34
|
-
cell: ({ getValue
|
|
34
|
+
cell: ({ getValue })=>/*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
35
35
|
title: getValue(),
|
|
36
36
|
children: getValue()
|
|
37
37
|
})
|
|
@@ -43,7 +43,7 @@ const getRowId = (data)=>{
|
|
|
43
43
|
const getCheckboxColor = (data)=>{
|
|
44
44
|
return data.color;
|
|
45
45
|
};
|
|
46
|
-
function TableLegend({ items
|
|
46
|
+
function TableLegend({ items, selectedItems: initRowSelection, onSelectedItemsChange, onItemMouseOver, onItemMouseOut, height, width, columns: additionalColumns = [], sorting, onSortingChange }) {
|
|
47
47
|
const rowSelection = (0, _react.useMemo)(()=>{
|
|
48
48
|
return typeof initRowSelection !== 'string' ? initRowSelection : // items for checkboxes.
|
|
49
49
|
// TODO: clean this up if we switch to also using checkboxes in list legend.
|
|
@@ -45,18 +45,18 @@ const _utils = require("../utils");
|
|
|
45
45
|
_components.LegendComponent,
|
|
46
46
|
_renderers.CanvasRenderer
|
|
47
47
|
]);
|
|
48
|
-
const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ height
|
|
48
|
+
const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ height, data, yAxis, format, grid, legend, tooltipConfig = _TimeSeriesTooltip.DEFAULT_TOOLTIP_CONFIG, noDataVariant = 'message', syncGroup, onDataZoom, onDoubleClick, __experimentalEChartsOptionsOverride }, ref) {
|
|
49
49
|
var _option_tooltip;
|
|
50
50
|
const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
|
|
51
51
|
const chartRef = (0, _react.useRef)();
|
|
52
52
|
const [showTooltip, setShowTooltip] = (0, _react.useState)(true);
|
|
53
53
|
const [tooltipPinnedCoords, setTooltipPinnedCoords] = (0, _react.useState)(null);
|
|
54
|
-
const { timeZone
|
|
54
|
+
const { timeZone } = (0, _TimeZoneProvider.useTimeZone)();
|
|
55
55
|
const [isDragging, setIsDragging] = (0, _react.useState)(false);
|
|
56
56
|
const [startX, setStartX] = (0, _react.useState)(0);
|
|
57
57
|
(0, _react.useImperativeHandle)(ref, ()=>{
|
|
58
58
|
return {
|
|
59
|
-
highlightSeries ({ id
|
|
59
|
+
highlightSeries ({ id }) {
|
|
60
60
|
if (!chartRef.current) {
|
|
61
61
|
// when chart undef, do not highlight series when hovering over legend
|
|
62
62
|
return;
|
|
@@ -110,7 +110,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
110
110
|
if (chartRef.current !== undefined) {
|
|
111
111
|
(0, _utils.enableDataZoom)(chartRef.current);
|
|
112
112
|
}
|
|
113
|
-
const { noDataOption
|
|
113
|
+
const { noDataOption } = chartsTheme;
|
|
114
114
|
const option = (0, _react.useMemo)(()=>{
|
|
115
115
|
if (data.timeSeries === undefined) return {};
|
|
116
116
|
// The "chart" `noDataVariant` is only used when the `timeSeries` is an
|
|
@@ -202,7 +202,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
onMouseDown: (e)=>{
|
|
205
|
-
const { clientX
|
|
205
|
+
const { clientX } = e;
|
|
206
206
|
setIsDragging(true);
|
|
207
207
|
setStartX(clientX);
|
|
208
208
|
},
|
|
@@ -211,7 +211,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
211
211
|
if (!(e.target instanceof HTMLCanvasElement)) {
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
const { clientX
|
|
214
|
+
const { clientX } = e;
|
|
215
215
|
if (isDragging) {
|
|
216
216
|
const deltaX = clientX - startX;
|
|
217
217
|
if (deltaX > 0) {
|
|
@@ -33,8 +33,8 @@ const MODE_OPTIONS = [
|
|
|
33
33
|
label: 'Percentage'
|
|
34
34
|
}
|
|
35
35
|
];
|
|
36
|
-
function ModeSelector({ disablePercentageMode
|
|
37
|
-
const handleModeChange = (_, { id
|
|
36
|
+
function ModeSelector({ disablePercentageMode, onChange, value = 'value' }) {
|
|
37
|
+
const handleModeChange = (_, { id })=>{
|
|
38
38
|
onChange(id);
|
|
39
39
|
};
|
|
40
40
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsEditorLayout.OptionsEditorControl, {
|
|
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "OptionsEditorColumn", {
|
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
|
-
const OptionsEditorColumn = ({ children
|
|
25
|
+
const OptionsEditorColumn = ({ children })=>{
|
|
26
26
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Grid, {
|
|
27
27
|
item: true,
|
|
28
28
|
xs: 4,
|
|
@@ -31,7 +31,7 @@ function _interop_require_default(obj) {
|
|
|
31
31
|
default: obj
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
const OptionsEditorControl = ({ label
|
|
34
|
+
const OptionsEditorControl = ({ label, control, description })=>{
|
|
35
35
|
// Make sure we have a unique ID we can use for associating labels and
|
|
36
36
|
// controls for a11y.
|
|
37
37
|
const generatedControlId = (0, _utils.useId)('EditorSectionControl');
|
|
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "OptionsEditorGrid", {
|
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
|
-
const OptionsEditorGrid = ({ children
|
|
25
|
+
const OptionsEditorGrid = ({ children })=>{
|
|
26
26
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Grid, {
|
|
27
27
|
container: true,
|
|
28
28
|
spacing: 8,
|
|
@@ -28,7 +28,7 @@ function _interop_require_default(obj) {
|
|
|
28
28
|
default: obj
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
const OptionsEditorGroup = ({ title
|
|
31
|
+
const OptionsEditorGroup = ({ title, children, icon })=>{
|
|
32
32
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
33
33
|
children: [
|
|
34
34
|
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
@@ -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
|
function RefreshIntervalPicker(props) {
|
|
27
|
-
const { value
|
|
27
|
+
const { value, onChange, timeOptions, height } = props;
|
|
28
28
|
const formattedValue = value;
|
|
29
29
|
// If the dashboard refresh interval is not provided in timeOptions, it will create a specific option for the select
|
|
30
30
|
const customInterval = (0, _react.useMemo)(()=>{
|
|
@@ -22,9 +22,9 @@ Object.defineProperty(exports, "SettingsAutocomplete", {
|
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
|
-
function SettingsAutocomplete({ options
|
|
25
|
+
function SettingsAutocomplete({ options, renderInput = (params)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
26
26
|
...params
|
|
27
|
-
})
|
|
27
|
+
}), ...otherProps }) {
|
|
28
28
|
const getOptionLabel = (option)=>{
|
|
29
29
|
var _option_label;
|
|
30
30
|
return (_option_label = option.label) !== null && _option_label !== void 0 ? _option_label : option.id;
|
|
@@ -33,8 +33,8 @@ const SORT_OPTIONS = [
|
|
|
33
33
|
label: 'Descending'
|
|
34
34
|
}
|
|
35
35
|
];
|
|
36
|
-
function SortSelector({ onChange
|
|
37
|
-
const handleSortChange = (_, { id
|
|
36
|
+
function SortSelector({ onChange, value = 'desc' }) {
|
|
37
|
+
const handleSortChange = (_, { id })=>{
|
|
38
38
|
onChange(id);
|
|
39
39
|
};
|
|
40
40
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsEditorLayout.OptionsEditorControl, {
|
|
@@ -51,7 +51,7 @@ const SERIES_NAME_FONT_WEIGHT = 400;
|
|
|
51
51
|
const VALUE_FONT_WEIGHT = 700;
|
|
52
52
|
function StatChart(props) {
|
|
53
53
|
var _data_seriesData, _data_seriesData1;
|
|
54
|
-
const { width
|
|
54
|
+
const { width, height, data, format, color, sparkline, showSeriesName, valueFontSize } = props;
|
|
55
55
|
const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
|
|
56
56
|
let formattedValue = '';
|
|
57
57
|
if (data.calculatedValue === null) {
|
|
@@ -185,7 +185,7 @@ function StatChart(props) {
|
|
|
185
185
|
}
|
|
186
186
|
const SeriesName = (0, _material.styled)(_material.Typography, {
|
|
187
187
|
shouldForwardProp: (prop)=>prop !== 'padding' && prop !== 'fontSize'
|
|
188
|
-
})(({ theme
|
|
188
|
+
})(({ theme, padding, fontSize })=>({
|
|
189
189
|
color: theme.palette.text.secondary,
|
|
190
190
|
padding: `${padding}px`,
|
|
191
191
|
fontSize: `${fontSize}px`,
|
|
@@ -195,7 +195,7 @@ const SeriesName = (0, _material.styled)(_material.Typography, {
|
|
|
195
195
|
}));
|
|
196
196
|
const Value = (0, _material.styled)(_material.Typography, {
|
|
197
197
|
shouldForwardProp: (prop)=>prop !== 'color' && prop !== 'padding' && prop !== 'fontSize' && prop !== 'sparkline'
|
|
198
|
-
})(({ theme
|
|
198
|
+
})(({ theme, color, padding, fontSize, sparkline })=>({
|
|
199
199
|
color: color !== null && color !== void 0 ? color : theme.palette.text.primary,
|
|
200
200
|
fontSize: `${fontSize}px`,
|
|
201
201
|
padding: sparkline ? `${padding}px ${padding}px 0 ${padding}px` : ` 0 ${padding}px`,
|
|
@@ -31,9 +31,9 @@ function getGlobalCanvasContext() {
|
|
|
31
31
|
}
|
|
32
32
|
return canvasContext;
|
|
33
33
|
}
|
|
34
|
-
function useOptimalFontSize({ text
|
|
34
|
+
function useOptimalFontSize({ text, fontWeight, width, height, lineHeight, maxSize, fontSizeOverride }) {
|
|
35
35
|
const ctx = getGlobalCanvasContext();
|
|
36
|
-
const { echartsTheme
|
|
36
|
+
const { echartsTheme } = (0, _ChartsProvider.useChartsTheme)();
|
|
37
37
|
// if user has selected a font size in the settings, use it instead of calculating the optimal size
|
|
38
38
|
if (fontSizeOverride !== undefined) {
|
|
39
39
|
return Number(fontSizeOverride);
|
|
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "InnerTable", {
|
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
25
|
const _react = require("react");
|
|
26
|
-
const StyledMuiTable = (0, _material.styled)(_material.Table)(({ theme
|
|
26
|
+
const StyledMuiTable = (0, _material.styled)(_material.Table)(({ theme })=>({
|
|
27
27
|
// This value is needed to have a consistent table layout when scrolling.
|
|
28
28
|
tableLayout: 'fixed',
|
|
29
29
|
borderCollapse: 'separate',
|
|
@@ -33,7 +33,7 @@ const TABLE_DENSITY_CONFIG = {
|
|
|
33
33
|
compact: 'small',
|
|
34
34
|
standard: 'medium'
|
|
35
35
|
};
|
|
36
|
-
const InnerTable = /*#__PURE__*/ (0, _react.forwardRef)(function InnerTable({ density
|
|
36
|
+
const InnerTable = /*#__PURE__*/ (0, _react.forwardRef)(function InnerTable({ density, ...otherProps }, ref) {
|
|
37
37
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(StyledMuiTable, {
|
|
38
38
|
...otherProps,
|
|
39
39
|
tabIndex: -1,
|