@perses-dev/components 0.38.0 → 0.40.0
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 +2 -2
- package/dist/BarChart/BarChart.d.ts.map +1 -1
- package/dist/BarChart/BarChart.js +16 -10
- package/dist/BarChart/BarChart.js.map +1 -1
- package/dist/BarChart/index.js.map +1 -1
- package/dist/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/ColorPicker/index.js.map +1 -1
- package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
- package/dist/ContentWithLegend/index.js.map +1 -1
- package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +1 -1
- package/dist/ContentWithLegend/model/content-with-legend-model.js +19 -19
- package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +1 -1
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.js +6 -22
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +1 -1
- package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
- package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +1 -1
- package/dist/DateTimeRangePicker/index.js.map +1 -1
- package/dist/DateTimeRangePicker/utils.js.map +1 -1
- package/dist/Dialog/Dialog.js.map +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
- package/dist/Dialog/index.js.map +1 -1
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/Drawer/index.js.map +1 -1
- package/dist/EChart/EChart.js +2 -2
- package/dist/EChart/EChart.js.map +1 -1
- package/dist/EChart/index.js.map +1 -1
- package/dist/ErrorAlert.js.map +1 -1
- package/dist/ErrorBoundary.js.map +1 -1
- package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
- package/dist/FontSizeSelector/index.js.map +1 -1
- package/dist/FormatControls/FormatControls.d.ts +9 -0
- package/dist/FormatControls/FormatControls.d.ts.map +1 -0
- package/dist/{UnitSelector/UnitSelector.js → FormatControls/FormatControls.js} +26 -26
- package/dist/FormatControls/FormatControls.js.map +1 -0
- package/dist/FormatControls/index.d.ts +2 -0
- package/dist/FormatControls/index.d.ts.map +1 -0
- package/dist/{UnitSelector → FormatControls}/index.js +1 -1
- package/dist/FormatControls/index.js.map +1 -0
- package/dist/GaugeChart/GaugeChart.d.ts +3 -3
- package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
- package/dist/GaugeChart/GaugeChart.js +12 -12
- package/dist/GaugeChart/GaugeChart.js.map +1 -1
- package/dist/GaugeChart/index.js.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
- package/dist/InfoTooltip/index.js.map +1 -1
- package/dist/JSONEditor.js.map +1 -1
- package/dist/Legend/CompactLegend.js.map +1 -1
- package/dist/Legend/Legend.js +3 -3
- package/dist/Legend/Legend.js.map +1 -1
- package/dist/Legend/LegendColorBadge.js.map +1 -1
- package/dist/Legend/ListLegend.js.map +1 -1
- package/dist/Legend/ListLegendItem.js +2 -2
- package/dist/Legend/ListLegendItem.js.map +1 -1
- package/dist/Legend/TableLegend.js.map +1 -1
- package/dist/Legend/index.js.map +1 -1
- package/dist/Legend/legend-model.js.map +1 -1
- package/dist/LineChart/LineChart.d.ts +2 -2
- package/dist/LineChart/LineChart.d.ts.map +1 -1
- package/dist/LineChart/LineChart.js +17 -18
- package/dist/LineChart/LineChart.js.map +1 -1
- package/dist/LineChart/index.js.map +1 -1
- package/dist/ModeSelector/ModeSelector.js.map +1 -1
- package/dist/ModeSelector/index.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
- package/dist/OptionsEditorLayout/index.js.map +1 -1
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
- package/dist/RefreshIntervalPicker/index.js.map +1 -1
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js +2 -2
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
- package/dist/SettingsAutocomplete/index.js.map +1 -1
- package/dist/SortSelector/SortSelector.js.map +1 -1
- package/dist/SortSelector/index.js.map +1 -1
- package/dist/StatChart/StatChart.d.ts +2 -2
- package/dist/StatChart/StatChart.d.ts.map +1 -1
- package/dist/StatChart/StatChart.js +8 -8
- package/dist/StatChart/StatChart.js.map +1 -1
- package/dist/StatChart/calculateFontSize.js +7 -7
- package/dist/StatChart/calculateFontSize.js.map +1 -1
- package/dist/StatChart/index.js.map +1 -1
- package/dist/Table/InnerTable.js.map +1 -1
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/TableBody.js.map +1 -1
- package/dist/Table/TableCell.js +2 -2
- package/dist/Table/TableCell.js.map +1 -1
- package/dist/Table/TableCheckbox.js.map +1 -1
- package/dist/Table/TableHead.js.map +1 -1
- package/dist/Table/TableHeaderCell.js.map +1 -1
- package/dist/Table/TableRow.js.map +1 -1
- package/dist/Table/VirtualizedTable.js +6 -6
- package/dist/Table/VirtualizedTable.js.map +1 -1
- package/dist/Table/VirtualizedTableContainer.js.map +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +20 -20
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/model/table-model.js +9 -9
- package/dist/Table/model/table-model.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdColorPicker.js +2 -2
- package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.js +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
- package/dist/ThresholdsEditor/ThresholdsEditor.js +19 -18
- package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
- package/dist/ThresholdsEditor/index.js.map +1 -1
- package/dist/TimeChart/TimeChart.d.ts +3 -3
- package/dist/TimeChart/TimeChart.d.ts.map +1 -1
- package/dist/TimeChart/TimeChart.js +108 -61
- package/dist/TimeChart/TimeChart.js.map +1 -1
- package/dist/TimeChart/index.js.map +1 -1
- package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts +3 -2
- package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/LineChartTooltip.js +9 -8
- package/dist/TimeSeriesTooltip/LineChartTooltip.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.js +2 -2
- package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
- package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts +3 -2
- package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js +6 -5
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.d.ts +1 -0
- package/dist/TimeSeriesTooltip/TooltipHeader.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.js +11 -11
- package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
- package/dist/TimeSeriesTooltip/index.js.map +1 -1
- package/dist/TimeSeriesTooltip/nearby-series.d.ts +7 -7
- package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/nearby-series.js +35 -39
- package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts +4 -0
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.js +6 -0
- package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
- package/dist/TimeSeriesTooltip/utils.js +3 -3
- package/dist/TimeSeriesTooltip/utils.js.map +1 -1
- package/dist/YAxisLabel.js.map +1 -1
- package/dist/cjs/BarChart/BarChart.js +24 -16
- package/dist/cjs/BarChart/index.js +10 -8
- package/dist/cjs/ColorPicker/ColorPicker.js +15 -13
- package/dist/cjs/ColorPicker/index.js +10 -8
- package/dist/cjs/ContentWithLegend/ContentWithLegend.js +12 -10
- package/dist/cjs/ContentWithLegend/index.js +10 -8
- package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +27 -23
- package/dist/cjs/DateTimeRangePicker/AbsoluteTimePicker.js +29 -43
- package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +12 -10
- package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +13 -11
- package/dist/cjs/DateTimeRangePicker/index.js +12 -10
- package/dist/cjs/DateTimeRangePicker/utils.js +9 -5
- package/dist/cjs/Dialog/Dialog.js +15 -13
- package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +11 -9
- package/dist/cjs/Dialog/index.js +11 -9
- package/dist/cjs/Drawer/Drawer.js +5 -3
- package/dist/cjs/Drawer/index.js +10 -8
- package/dist/cjs/EChart/EChart.js +12 -10
- package/dist/cjs/EChart/index.js +10 -8
- package/dist/cjs/ErrorAlert.js +5 -3
- package/dist/cjs/ErrorBoundary.js +4 -2
- package/dist/cjs/FontSizeSelector/FontSizeSelector.js +8 -6
- package/dist/cjs/FontSizeSelector/index.js +10 -8
- package/dist/cjs/{UnitSelector/UnitSelector.js → FormatControls/FormatControls.js} +38 -36
- package/dist/cjs/{UnitSelector → FormatControls}/index.js +10 -8
- package/dist/cjs/GaugeChart/GaugeChart.js +22 -18
- package/dist/cjs/GaugeChart/index.js +10 -8
- package/dist/cjs/InfoTooltip/InfoTooltip.js +13 -11
- package/dist/cjs/InfoTooltip/index.js +10 -8
- package/dist/cjs/JSONEditor.js +10 -8
- package/dist/cjs/Legend/CompactLegend.js +9 -7
- package/dist/cjs/Legend/Legend.js +15 -13
- package/dist/cjs/Legend/LegendColorBadge.js +7 -5
- package/dist/cjs/Legend/ListLegend.js +10 -8
- package/dist/cjs/Legend/ListLegendItem.js +12 -10
- package/dist/cjs/Legend/TableLegend.js +7 -5
- package/dist/cjs/Legend/index.js +11 -9
- package/dist/cjs/Legend/legend-model.js +3 -1
- package/dist/cjs/LineChart/LineChart.js +26 -25
- package/dist/cjs/LineChart/index.js +10 -8
- package/dist/cjs/ModeSelector/ModeSelector.js +8 -6
- package/dist/cjs/ModeSelector/index.js +10 -8
- package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +6 -4
- package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +16 -14
- package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +5 -3
- package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +11 -9
- package/dist/cjs/OptionsEditorLayout/index.js +13 -11
- package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +8 -6
- package/dist/cjs/RefreshIntervalPicker/index.js +10 -8
- package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +12 -10
- package/dist/cjs/SettingsAutocomplete/index.js +10 -8
- package/dist/cjs/SortSelector/SortSelector.js +8 -6
- package/dist/cjs/SortSelector/index.js +10 -8
- package/dist/cjs/StatChart/StatChart.js +20 -18
- package/dist/cjs/StatChart/calculateFontSize.js +10 -8
- package/dist/cjs/StatChart/index.js +10 -8
- package/dist/cjs/Table/InnerTable.js +5 -3
- package/dist/cjs/Table/Table.js +15 -13
- package/dist/cjs/Table/TableBody.js +5 -3
- package/dist/cjs/Table/TableCell.js +10 -8
- package/dist/cjs/Table/TableCheckbox.js +5 -3
- package/dist/cjs/Table/TableHead.js +5 -3
- package/dist/cjs/Table/TableHeaderCell.js +8 -6
- package/dist/cjs/Table/TableRow.js +5 -3
- package/dist/cjs/Table/VirtualizedTable.js +32 -30
- package/dist/cjs/Table/VirtualizedTableContainer.js +5 -3
- package/dist/cjs/Table/hooks/useTableKeyboardNav.js +3 -1
- package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +23 -21
- package/dist/cjs/Table/index.js +14 -10
- package/dist/cjs/Table/model/table-model.js +15 -11
- package/dist/cjs/ThresholdsEditor/ThresholdColorPicker.js +15 -13
- package/dist/cjs/ThresholdsEditor/ThresholdInput.js +14 -12
- package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +44 -41
- package/dist/cjs/ThresholdsEditor/index.js +10 -8
- package/dist/cjs/TimeChart/TimeChart.js +121 -72
- package/dist/cjs/TimeChart/index.js +10 -8
- package/dist/cjs/TimeSeriesTooltip/LineChartTooltip.js +30 -27
- package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +17 -15
- package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +15 -13
- package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +5 -3
- package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +24 -21
- package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +7 -5
- package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +36 -34
- package/dist/cjs/TimeSeriesTooltip/index.js +19 -17
- package/dist/cjs/TimeSeriesTooltip/nearby-series.js +61 -47
- package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +57 -14
- package/dist/cjs/TimeSeriesTooltip/utils.js +17 -13
- package/dist/cjs/YAxisLabel.js +6 -4
- package/dist/cjs/context/{ChartsThemeProvider.js → ChartsProvider.js} +38 -11
- package/dist/cjs/context/SnackbarProvider.js +6 -2
- package/dist/cjs/context/TimeZoneProvider.js +13 -7
- package/dist/cjs/context/index.js +32 -0
- package/dist/cjs/index.js +41 -41
- package/dist/cjs/model/graph.js +9 -3
- package/dist/cjs/model/index.js +12 -10
- package/dist/cjs/test/index.js +10 -8
- package/dist/cjs/test/render.js +7 -5
- package/dist/cjs/test-utils/index.js +10 -8
- package/dist/cjs/test-utils/theme.js +36 -19
- package/dist/cjs/theme/component-overrides/alert.js +3 -1
- package/dist/cjs/theme/component-overrides/paper.js +3 -1
- package/dist/cjs/theme/index.js +10 -8
- package/dist/cjs/theme/palette/background.js +6 -2
- package/dist/cjs/theme/palette/colors/blue.js +3 -1
- package/dist/cjs/theme/palette/colors/common.js +6 -2
- package/dist/cjs/theme/palette/colors/green.js +3 -1
- package/dist/cjs/theme/palette/colors/grey.js +3 -1
- package/dist/cjs/theme/palette/colors/index.js +17 -15
- package/dist/cjs/theme/palette/colors/orange.js +3 -1
- package/dist/cjs/theme/palette/colors/purple.js +3 -1
- package/dist/cjs/theme/palette/colors/red.js +3 -1
- package/dist/cjs/theme/palette/error.js +3 -1
- package/dist/cjs/theme/palette/grey.js +3 -1
- package/dist/cjs/theme/palette/index.js +10 -8
- package/dist/cjs/theme/palette/palette-options.js +3 -1
- package/dist/cjs/theme/palette/primary.js +3 -1
- package/dist/cjs/theme/palette/secondary.js +3 -1
- package/dist/cjs/theme/palette/success.js +3 -1
- package/dist/cjs/theme/palette/text.js +3 -1
- package/dist/cjs/theme/palette/warning.js +3 -1
- package/dist/cjs/theme/theme.js +5 -3
- package/dist/cjs/theme/typography.js +3 -1
- package/dist/cjs/utils/axis.js +11 -7
- package/dist/cjs/utils/chart-actions.js +59 -5
- package/dist/cjs/utils/combine-sx.js +3 -1
- package/dist/cjs/utils/component-ids.js +3 -1
- package/dist/cjs/utils/format.js +16 -8
- package/dist/cjs/utils/index.js +15 -13
- package/dist/cjs/utils/mathjs.js +3 -1
- package/dist/cjs/utils/theme-gen.js +12 -10
- package/dist/context/ChartsProvider.d.ts +19 -0
- package/dist/context/ChartsProvider.d.ts.map +1 -0
- package/dist/context/{ChartsThemeProvider.js → ChartsProvider.js} +24 -6
- package/dist/context/ChartsProvider.js.map +1 -0
- package/dist/context/SnackbarProvider.js.map +1 -1
- package/dist/context/TimeZoneProvider.js.map +1 -1
- package/dist/context/index.d.ts +4 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +17 -0
- package/dist/context/index.js.map +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/model/graph.js.map +1 -1
- package/dist/model/index.js.map +1 -1
- package/dist/test/index.js.map +1 -1
- package/dist/test/render.js.map +1 -1
- package/dist/test/setup-tests.js.map +1 -1
- package/dist/test-utils/index.js.map +1 -1
- package/dist/test-utils/theme.d.ts +2 -0
- package/dist/test-utils/theme.d.ts.map +1 -1
- package/dist/test-utils/theme.js +23 -16
- package/dist/test-utils/theme.js.map +1 -1
- package/dist/theme/component-overrides/alert.js.map +1 -1
- package/dist/theme/component-overrides/paper.js.map +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/palette/background.d.ts.map +1 -1
- package/dist/theme/palette/background.js +3 -1
- package/dist/theme/palette/background.js.map +1 -1
- package/dist/theme/palette/colors/blue.js.map +1 -1
- package/dist/theme/palette/colors/common.js.map +1 -1
- package/dist/theme/palette/colors/green.js.map +1 -1
- package/dist/theme/palette/colors/grey.js.map +1 -1
- package/dist/theme/palette/colors/index.js.map +1 -1
- package/dist/theme/palette/colors/orange.js.map +1 -1
- package/dist/theme/palette/colors/purple.js.map +1 -1
- package/dist/theme/palette/colors/red.js.map +1 -1
- package/dist/theme/palette/error.js.map +1 -1
- package/dist/theme/palette/grey.js.map +1 -1
- package/dist/theme/palette/index.js.map +1 -1
- package/dist/theme/palette/palette-options.js.map +1 -1
- package/dist/theme/palette/primary.js.map +1 -1
- package/dist/theme/palette/secondary.js.map +1 -1
- package/dist/theme/palette/success.js.map +1 -1
- package/dist/theme/palette/text.js.map +1 -1
- package/dist/theme/palette/warning.js.map +1 -1
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/typography.js.map +1 -1
- package/dist/utils/axis.d.ts +4 -4
- package/dist/utils/axis.d.ts.map +1 -1
- package/dist/utils/axis.js +4 -4
- package/dist/utils/axis.js.map +1 -1
- package/dist/utils/chart-actions.d.ts +5 -1
- package/dist/utils/chart-actions.d.ts.map +1 -1
- package/dist/utils/chart-actions.js +42 -0
- 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/index.js.map +1 -1
- package/dist/utils/mathjs.js.map +1 -1
- package/dist/utils/theme-gen.js +7 -7
- package/dist/utils/theme-gen.js.map +1 -1
- package/package.json +7 -6
- package/dist/UnitSelector/UnitSelector.d.ts +0 -9
- package/dist/UnitSelector/UnitSelector.d.ts.map +0 -1
- package/dist/UnitSelector/UnitSelector.js.map +0 -1
- package/dist/UnitSelector/index.d.ts +0 -2
- package/dist/UnitSelector/index.d.ts.map +0 -1
- package/dist/UnitSelector/index.js.map +0 -1
- package/dist/context/ChartsThemeProvider.d.ts +0 -10
- package/dist/context/ChartsThemeProvider.d.ts.map +0 -1
- package/dist/context/ChartsThemeProvider.js.map +0 -1
|
@@ -21,10 +21,14 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
assembleTransform: ()
|
|
25
|
-
|
|
24
|
+
assembleTransform: function() {
|
|
25
|
+
return assembleTransform;
|
|
26
|
+
},
|
|
27
|
+
getTooltipStyles: function() {
|
|
28
|
+
return getTooltipStyles;
|
|
29
|
+
}
|
|
26
30
|
});
|
|
27
|
-
const
|
|
31
|
+
const _tooltipmodel = require("./tooltip-model");
|
|
28
32
|
function assembleTransform(mousePos, chartWidth, pinnedPos, tooltipHeight, tooltipWidth, containerElement) {
|
|
29
33
|
if (mousePos === null) {
|
|
30
34
|
return 'translate3d(0, 0)';
|
|
@@ -51,30 +55,30 @@ function assembleTransform(mousePos, chartWidth, pinnedPos, tooltipHeight, toolt
|
|
|
51
55
|
if (mousePos.client.y + tooltipHeight + cursorPaddingY > window.innerHeight) {
|
|
52
56
|
// adjust so tooltip does not get cut off at bottom of chart
|
|
53
57
|
// multiplier ensures tooltip isn't overly adjusted and gets cut off at the top of the viewport
|
|
54
|
-
y = y - tooltipHeight *
|
|
58
|
+
y = y - tooltipHeight * _tooltipmodel.TOOLTIP_ADJUST_Y_POS_MULTIPLIER;
|
|
55
59
|
// If y is now above of the top of containerElement, set y close to 0 so tooltip does not get cut off
|
|
56
60
|
if (containerRect && y < containerRect.top) {
|
|
57
|
-
y =
|
|
61
|
+
y = _tooltipmodel.TOOLTIP_PADDING / 2; // leaves room for some padding around tooltip
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
// use tooltip width to determine when to repos from right to left
|
|
61
65
|
const xPosAdjustThreshold = chartWidth - tooltipWidth * 0.9;
|
|
62
66
|
// reposition so tooltip is never too close to right side of chart or left side of browser window
|
|
63
|
-
return mousePos.plotCanvas.x > xPosAdjustThreshold && x >
|
|
67
|
+
return mousePos.plotCanvas.x > xPosAdjustThreshold && x > _tooltipmodel.TOOLTIP_MAX_WIDTH ? `translate3d(${x - cursorPaddingX}px, ${y}px, 0) translateX(-100%)` : `translate3d(${x + cursorPaddingX}px, ${y}px, 0)`;
|
|
64
68
|
}
|
|
65
69
|
function getTooltipStyles(theme, pinnedPos, maxHeight) {
|
|
66
|
-
var
|
|
67
|
-
const adjustedMaxHeight = maxHeight ? maxHeight -
|
|
68
|
-
var
|
|
70
|
+
var _theme_palette_designSystem;
|
|
71
|
+
const adjustedMaxHeight = maxHeight ? maxHeight - _tooltipmodel.TOOLTIP_PADDING : undefined;
|
|
72
|
+
var _theme_palette_designSystem_grey_;
|
|
69
73
|
return {
|
|
70
|
-
minWidth:
|
|
71
|
-
maxWidth:
|
|
72
|
-
maxHeight: adjustedMaxHeight !== null && adjustedMaxHeight !== void 0 ? adjustedMaxHeight :
|
|
74
|
+
minWidth: _tooltipmodel.TOOLTIP_MIN_WIDTH,
|
|
75
|
+
maxWidth: _tooltipmodel.TOOLTIP_MAX_WIDTH,
|
|
76
|
+
maxHeight: adjustedMaxHeight !== null && adjustedMaxHeight !== void 0 ? adjustedMaxHeight : _tooltipmodel.TOOLTIP_MAX_HEIGHT,
|
|
73
77
|
padding: 0,
|
|
74
78
|
position: 'absolute',
|
|
75
79
|
top: 0,
|
|
76
80
|
left: 0,
|
|
77
|
-
backgroundColor: (
|
|
81
|
+
backgroundColor: (_theme_palette_designSystem_grey_ = (_theme_palette_designSystem = theme.palette.designSystem) === null || _theme_palette_designSystem === void 0 ? void 0 : _theme_palette_designSystem.grey[800]) !== null && _theme_palette_designSystem_grey_ !== void 0 ? _theme_palette_designSystem_grey_ : _tooltipmodel.TOOLTIP_BG_COLOR_FALLBACK,
|
|
78
82
|
borderRadius: '6px',
|
|
79
83
|
color: '#fff',
|
|
80
84
|
fontSize: '11px',
|
package/dist/cjs/YAxisLabel.js
CHANGED
|
@@ -16,12 +16,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "YAxisLabel", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: ()
|
|
19
|
+
get: function() {
|
|
20
|
+
return YAxisLabel;
|
|
21
|
+
}
|
|
20
22
|
});
|
|
21
|
-
const
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
22
24
|
const _material = require("@mui/material");
|
|
23
25
|
function YAxisLabel({ name , height }) {
|
|
24
|
-
return /*#__PURE__*/ (0,
|
|
26
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
25
27
|
sx: {
|
|
26
28
|
display: 'inline-block',
|
|
27
29
|
maxWidth: height,
|
|
@@ -32,7 +34,7 @@ function YAxisLabel({ name , height }) {
|
|
|
32
34
|
textAlign: 'center',
|
|
33
35
|
zIndex: 1
|
|
34
36
|
},
|
|
35
|
-
children: /*#__PURE__*/ (0,
|
|
37
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
36
38
|
variant: "body1",
|
|
37
39
|
"aria-label": "y axis label",
|
|
38
40
|
sx: {
|
|
@@ -21,12 +21,21 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
ChartsProvider: function() {
|
|
25
|
+
return ChartsProvider;
|
|
26
|
+
},
|
|
27
|
+
ChartsThemeContext: function() {
|
|
28
|
+
return ChartsThemeContext;
|
|
29
|
+
},
|
|
30
|
+
useChartsContext: function() {
|
|
31
|
+
return useChartsContext;
|
|
32
|
+
},
|
|
33
|
+
useChartsTheme: function() {
|
|
34
|
+
return useChartsTheme;
|
|
35
|
+
}
|
|
27
36
|
});
|
|
28
|
-
const
|
|
29
|
-
const _react = /*#__PURE__*/
|
|
37
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
38
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
30
39
|
function _getRequireWildcardCache(nodeInterop) {
|
|
31
40
|
if (typeof WeakMap !== "function") return null;
|
|
32
41
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -35,7 +44,7 @@ function _getRequireWildcardCache(nodeInterop) {
|
|
|
35
44
|
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
36
45
|
})(nodeInterop);
|
|
37
46
|
}
|
|
38
|
-
function
|
|
47
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
39
48
|
if (!nodeInterop && obj && obj.__esModule) {
|
|
40
49
|
return obj;
|
|
41
50
|
}
|
|
@@ -66,18 +75,36 @@ function _interopRequireWildcard(obj, nodeInterop) {
|
|
|
66
75
|
}
|
|
67
76
|
return newObj;
|
|
68
77
|
}
|
|
69
|
-
function
|
|
70
|
-
const { children , chartsTheme } = props;
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
function ChartsProvider(props) {
|
|
79
|
+
const { children , chartsTheme , enablePinning =false } = props;
|
|
80
|
+
const [lastTooltipPinnedCoords, setLastTooltipPinnedCoords] = (0, _react.useState)(null);
|
|
81
|
+
const ctx = (0, _react.useMemo)(()=>{
|
|
82
|
+
return {
|
|
83
|
+
chartsTheme,
|
|
84
|
+
enablePinning,
|
|
85
|
+
lastTooltipPinnedCoords,
|
|
86
|
+
setLastTooltipPinnedCoords
|
|
87
|
+
};
|
|
88
|
+
}, [
|
|
89
|
+
chartsTheme,
|
|
90
|
+
enablePinning,
|
|
91
|
+
lastTooltipPinnedCoords,
|
|
92
|
+
setLastTooltipPinnedCoords
|
|
93
|
+
]);
|
|
94
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(ChartsThemeContext.Provider, {
|
|
95
|
+
value: ctx,
|
|
73
96
|
children: children
|
|
74
97
|
});
|
|
75
98
|
}
|
|
76
99
|
const ChartsThemeContext = /*#__PURE__*/ (0, _react.createContext)(undefined);
|
|
77
|
-
function
|
|
100
|
+
function useChartsContext() {
|
|
78
101
|
const ctx = (0, _react.useContext)(ChartsThemeContext);
|
|
79
102
|
if (ctx === undefined) {
|
|
80
103
|
throw new Error('No ChartsThemeContext found. Did you forget a Provider?');
|
|
81
104
|
}
|
|
82
105
|
return ctx;
|
|
83
106
|
}
|
|
107
|
+
function useChartsTheme() {
|
|
108
|
+
const ctx = useChartsContext();
|
|
109
|
+
return ctx.chartsTheme;
|
|
110
|
+
}
|
|
@@ -21,8 +21,12 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
SnackbarProvider: ()
|
|
25
|
-
|
|
24
|
+
SnackbarProvider: function() {
|
|
25
|
+
return _notistack.SnackbarProvider;
|
|
26
|
+
},
|
|
27
|
+
useSnackbar: function() {
|
|
28
|
+
return useSnackbar;
|
|
29
|
+
}
|
|
26
30
|
});
|
|
27
31
|
const _react = require("react");
|
|
28
32
|
const _notistack = require("notistack");
|
|
@@ -21,12 +21,18 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
TimeZoneContext: ()
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
TimeZoneContext: function() {
|
|
25
|
+
return TimeZoneContext;
|
|
26
|
+
},
|
|
27
|
+
TimeZoneProvider: function() {
|
|
28
|
+
return TimeZoneProvider;
|
|
29
|
+
},
|
|
30
|
+
useTimeZone: function() {
|
|
31
|
+
return useTimeZone;
|
|
32
|
+
}
|
|
27
33
|
});
|
|
28
|
-
const
|
|
29
|
-
const _react = /*#__PURE__*/
|
|
34
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
35
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
30
36
|
const _utils = require("../utils");
|
|
31
37
|
function _getRequireWildcardCache(nodeInterop) {
|
|
32
38
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -36,7 +42,7 @@ function _getRequireWildcardCache(nodeInterop) {
|
|
|
36
42
|
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
37
43
|
})(nodeInterop);
|
|
38
44
|
}
|
|
39
|
-
function
|
|
45
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
40
46
|
if (!nodeInterop && obj && obj.__esModule) {
|
|
41
47
|
return obj;
|
|
42
48
|
}
|
|
@@ -70,7 +76,7 @@ function _interopRequireWildcard(obj, nodeInterop) {
|
|
|
70
76
|
const TimeZoneContext = /*#__PURE__*/ (0, _react.createContext)(undefined);
|
|
71
77
|
function TimeZoneProvider(props) {
|
|
72
78
|
const { children , timeZone } = props;
|
|
73
|
-
return /*#__PURE__*/ (0,
|
|
79
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(TimeZoneContext.Provider, {
|
|
74
80
|
value: timeZone,
|
|
75
81
|
children: children
|
|
76
82
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
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("./ChartsProvider"), exports);
|
|
18
|
+
_export_star(require("./SnackbarProvider"), exports);
|
|
19
|
+
_export_star(require("./TimeZoneProvider"), exports);
|
|
20
|
+
function _export_star(from, to) {
|
|
21
|
+
Object.keys(from).forEach(function(k) {
|
|
22
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
23
|
+
Object.defineProperty(to, k, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return from[k];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return from;
|
|
32
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,48 +14,48 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_exportStar(require("./RefreshIntervalPicker"), exports);
|
|
51
|
-
function _exportStar(from, to) {
|
|
17
|
+
_export_star(require("./BarChart"), exports);
|
|
18
|
+
_export_star(require("./ColorPicker"), exports);
|
|
19
|
+
_export_star(require("./ContentWithLegend"), exports);
|
|
20
|
+
_export_star(require("./DateTimeRangePicker"), exports);
|
|
21
|
+
_export_star(require("./Dialog"), exports);
|
|
22
|
+
_export_star(require("./Drawer"), exports);
|
|
23
|
+
_export_star(require("./EChart"), exports);
|
|
24
|
+
_export_star(require("./ErrorAlert"), exports);
|
|
25
|
+
_export_star(require("./ErrorBoundary"), exports);
|
|
26
|
+
_export_star(require("./FontSizeSelector"), exports);
|
|
27
|
+
_export_star(require("./GaugeChart"), exports);
|
|
28
|
+
_export_star(require("./InfoTooltip"), exports);
|
|
29
|
+
_export_star(require("./JSONEditor"), exports);
|
|
30
|
+
_export_star(require("./Legend"), exports);
|
|
31
|
+
_export_star(require("./LineChart"), exports);
|
|
32
|
+
_export_star(require("./ModeSelector"), exports);
|
|
33
|
+
_export_star(require("./OptionsEditorLayout"), exports);
|
|
34
|
+
_export_star(require("./SettingsAutocomplete"), exports);
|
|
35
|
+
_export_star(require("./SortSelector"), exports);
|
|
36
|
+
_export_star(require("./StatChart"), exports);
|
|
37
|
+
_export_star(require("./Table"), exports);
|
|
38
|
+
_export_star(require("./ThresholdsEditor"), exports);
|
|
39
|
+
_export_star(require("./TimeChart"), exports);
|
|
40
|
+
_export_star(require("./TimeSeriesTooltip"), exports);
|
|
41
|
+
_export_star(require("./FormatControls"), exports);
|
|
42
|
+
_export_star(require("./YAxisLabel"), exports);
|
|
43
|
+
_export_star(require("./context"), exports);
|
|
44
|
+
_export_star(require("./utils"), exports);
|
|
45
|
+
_export_star(require("./model"), exports);
|
|
46
|
+
_export_star(require("./test-utils"), exports);
|
|
47
|
+
_export_star(require("./theme"), exports);
|
|
48
|
+
_export_star(require("./RefreshIntervalPicker"), exports);
|
|
49
|
+
function _export_star(from, to) {
|
|
52
50
|
Object.keys(from).forEach(function(k) {
|
|
53
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
52
|
+
Object.defineProperty(to, k, {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function() {
|
|
55
|
+
return from[k];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
59
|
});
|
|
60
60
|
return from;
|
|
61
61
|
}
|
package/dist/cjs/model/graph.js
CHANGED
|
@@ -21,9 +21,15 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
OPTIMIZED_MODE_SERIES_LIMIT: ()
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
OPTIMIZED_MODE_SERIES_LIMIT: function() {
|
|
25
|
+
return OPTIMIZED_MODE_SERIES_LIMIT;
|
|
26
|
+
},
|
|
27
|
+
PINNED_CROSSHAIR_SERIES_NAME: function() {
|
|
28
|
+
return PINNED_CROSSHAIR_SERIES_NAME;
|
|
29
|
+
},
|
|
30
|
+
DEFAULT_PINNED_CROSSHAIR: function() {
|
|
31
|
+
return DEFAULT_PINNED_CROSSHAIR;
|
|
32
|
+
}
|
|
27
33
|
});
|
|
28
34
|
const OPTIMIZED_MODE_SERIES_LIMIT = 1000;
|
|
29
35
|
const PINNED_CROSSHAIR_SERIES_NAME = 'Pinned Crosshair';
|
package/dist/cjs/model/index.js
CHANGED
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function
|
|
17
|
+
_export_star(require("./graph"), exports);
|
|
18
|
+
_export_star(require("./theme"), exports);
|
|
19
|
+
_export_star(require("./timeOption"), exports);
|
|
20
|
+
function _export_star(from, to) {
|
|
21
21
|
Object.keys(from).forEach(function(k) {
|
|
22
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
23
|
+
Object.defineProperty(to, k, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return from[k];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
28
30
|
});
|
|
29
31
|
return from;
|
|
30
32
|
}
|
package/dist/cjs/test/index.js
CHANGED
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
function
|
|
17
|
+
_export_star(require("./render"), exports);
|
|
18
|
+
function _export_star(from, to) {
|
|
19
19
|
Object.keys(from).forEach(function(k) {
|
|
20
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
+
Object.defineProperty(to, k, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
26
28
|
});
|
|
27
29
|
return from;
|
|
28
30
|
}
|
package/dist/cjs/test/render.js
CHANGED
|
@@ -16,12 +16,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "renderWithContext", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: ()
|
|
19
|
+
get: function() {
|
|
20
|
+
return renderWithContext;
|
|
21
|
+
}
|
|
20
22
|
});
|
|
21
|
-
const
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
22
24
|
const _react = require("@testing-library/react");
|
|
23
|
-
const
|
|
24
|
-
const queryClient = new
|
|
25
|
+
const _reactquery = require("@tanstack/react-query");
|
|
26
|
+
const queryClient = new _reactquery.QueryClient({
|
|
25
27
|
defaultOptions: {
|
|
26
28
|
queries: {
|
|
27
29
|
refetchOnWindowFocus: false
|
|
@@ -29,7 +31,7 @@ const queryClient = new _reactQuery.QueryClient({
|
|
|
29
31
|
}
|
|
30
32
|
});
|
|
31
33
|
function renderWithContext(ui, options) {
|
|
32
|
-
return (0, _react.render)(/*#__PURE__*/ (0,
|
|
34
|
+
return (0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_reactquery.QueryClientProvider, {
|
|
33
35
|
client: queryClient,
|
|
34
36
|
children: ui
|
|
35
37
|
}), options);
|
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
function
|
|
17
|
+
_export_star(require("./theme"), exports);
|
|
18
|
+
function _export_star(from, to) {
|
|
19
19
|
Object.keys(from).forEach(function(k) {
|
|
20
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
+
Object.defineProperty(to, k, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
26
28
|
});
|
|
27
29
|
return from;
|
|
28
30
|
}
|
|
@@ -14,28 +14,45 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
function _export(target, all) {
|
|
18
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: all[name]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
_export(exports, {
|
|
24
|
+
testChartsTheme: function() {
|
|
25
|
+
return testChartsTheme;
|
|
26
|
+
},
|
|
27
|
+
mockChartsContext: function() {
|
|
28
|
+
return mockChartsContext;
|
|
29
|
+
}
|
|
20
30
|
});
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
const _material = require("@mui/material");
|
|
32
|
+
const _utils = require("../utils");
|
|
33
|
+
// app specific echarts option overrides
|
|
34
|
+
const TEST_ECHARTS_THEME_OVERRIDES = {
|
|
35
|
+
textStyle: {
|
|
36
|
+
fontFamily: 'Lato'
|
|
27
37
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
categoryAxis: {
|
|
39
|
+
splitLine: {
|
|
40
|
+
show: false
|
|
31
41
|
}
|
|
32
42
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
timeAxis: {
|
|
44
|
+
splitLine: {
|
|
45
|
+
show: false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
bar: {
|
|
49
|
+
barCategoryGap: 2
|
|
40
50
|
}
|
|
41
51
|
};
|
|
52
|
+
const testChartsTheme = (0, _utils.generateChartsTheme)((0, _material.createTheme)({}), TEST_ECHARTS_THEME_OVERRIDES);
|
|
53
|
+
const mockChartsContext = {
|
|
54
|
+
chartsTheme: testChartsTheme,
|
|
55
|
+
enablePinning: false,
|
|
56
|
+
lastTooltipPinnedCoords: null,
|
|
57
|
+
setLastTooltipPinnedCoords: ()=>null
|
|
58
|
+
};
|
|
@@ -16,7 +16,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "MuiAlert", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: ()
|
|
19
|
+
get: function() {
|
|
20
|
+
return MuiAlert;
|
|
21
|
+
}
|
|
20
22
|
});
|
|
21
23
|
const _material = require("@mui/material");
|
|
22
24
|
const MuiAlert = {
|
package/dist/cjs/theme/index.js
CHANGED
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
function
|
|
17
|
+
_export_star(require("./theme"), exports);
|
|
18
|
+
function _export_star(from, to) {
|
|
19
19
|
Object.keys(from).forEach(function(k) {
|
|
20
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
+
Object.defineProperty(to, k, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
26
28
|
});
|
|
27
29
|
return from;
|
|
28
30
|
}
|
|
@@ -16,7 +16,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "background", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: ()
|
|
19
|
+
get: function() {
|
|
20
|
+
return background;
|
|
21
|
+
}
|
|
20
22
|
});
|
|
21
23
|
const _colors = require("./colors");
|
|
22
24
|
const background = (mode)=>{
|
|
@@ -28,13 +30,15 @@ const background = (mode)=>{
|
|
|
28
30
|
default: _colors.white,
|
|
29
31
|
paper: _colors.grey[50],
|
|
30
32
|
tooltip: _colors.grey[100],
|
|
33
|
+
lighter: _colors.grey[50],
|
|
31
34
|
border: _colors.grey[100]
|
|
32
35
|
} : {
|
|
33
36
|
navigation,
|
|
34
37
|
overlay,
|
|
35
38
|
default: _colors.grey[900],
|
|
36
39
|
paper: _colors.grey[850],
|
|
37
|
-
tooltip: _colors.grey[
|
|
40
|
+
tooltip: _colors.grey[600],
|
|
41
|
+
lighter: _colors.grey[700],
|
|
38
42
|
border: _colors.grey[600]
|
|
39
43
|
};
|
|
40
44
|
};
|
|
@@ -21,8 +21,12 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
white: ()
|
|
25
|
-
|
|
24
|
+
white: function() {
|
|
25
|
+
return white;
|
|
26
|
+
},
|
|
27
|
+
black: function() {
|
|
28
|
+
return black;
|
|
29
|
+
}
|
|
26
30
|
});
|
|
27
31
|
const white = '#FFFFFF';
|
|
28
32
|
const black = '#000000';
|