@perses-dev/components 0.0.0-snapshot-scatter-chart-embed-8efdfab → 0.0.0-snapshot-explorer-plugin-c4a7621
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/AlignSelector/AlignSelector.d.ts +9 -0
- package/dist/AlignSelector/AlignSelector.d.ts.map +1 -0
- package/dist/AlignSelector/AlignSelector.js +42 -0
- package/dist/AlignSelector/AlignSelector.js.map +1 -0
- package/dist/AlignSelector/index.d.ts +2 -0
- package/dist/AlignSelector/index.d.ts.map +1 -0
- package/dist/AlignSelector/index.js +15 -0
- package/dist/AlignSelector/index.js.map +1 -0
- package/dist/BarChart/BarChart.d.ts +2 -2
- package/dist/BarChart/BarChart.d.ts.map +1 -1
- package/dist/BarChart/BarChart.js +13 -8
- package/dist/BarChart/BarChart.js.map +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +3 -2
- package/dist/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/ColorPicker/ColorPicker.js +28 -13
- package/dist/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/ColorPicker/OptionsColorPicker.d.ts +9 -0
- package/dist/ColorPicker/OptionsColorPicker.d.ts.map +1 -0
- package/dist/{ThresholdsEditor/ThresholdColorPicker.js → ColorPicker/OptionsColorPicker.js} +18 -15
- package/dist/ColorPicker/OptionsColorPicker.js.map +1 -0
- package/dist/ColorPicker/index.d.ts +1 -0
- package/dist/ColorPicker/index.d.ts.map +1 -1
- package/dist/ColorPicker/index.js +1 -0
- package/dist/ColorPicker/index.js.map +1 -1
- package/dist/ContentWithLegend/ContentWithLegend.d.ts +2 -2
- package/dist/ContentWithLegend/ContentWithLegend.d.ts.map +1 -1
- package/dist/ContentWithLegend/ContentWithLegend.js +10 -7
- 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 +4 -5
- package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
- package/dist/DensitySelector/DensitySelector.d.ts +8 -0
- package/dist/DensitySelector/DensitySelector.d.ts.map +1 -0
- package/dist/DensitySelector/DensitySelector.js +46 -0
- package/dist/DensitySelector/DensitySelector.js.map +1 -0
- package/dist/DensitySelector/index.d.ts +2 -0
- package/dist/DensitySelector/index.d.ts.map +1 -0
- package/dist/DensitySelector/index.js +15 -0
- package/dist/DensitySelector/index.js.map +1 -0
- package/dist/Dialog/Dialog.d.ts +10 -15
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +11 -7
- package/dist/Dialog/Dialog.js.map +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts +2 -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/DragAndDrop/DragAndDropList.d.ts +24 -0
- package/dist/DragAndDrop/DragAndDropList.d.ts.map +1 -0
- package/dist/DragAndDrop/DragAndDropList.js +153 -0
- package/dist/DragAndDrop/DragAndDropList.js.map +1 -0
- package/dist/DragAndDrop/DragButton.d.ts +13 -0
- package/dist/DragAndDrop/DragButton.d.ts.map +1 -0
- package/dist/DragAndDrop/DragButton.js +97 -0
- package/dist/DragAndDrop/DragButton.js.map +1 -0
- package/dist/DragAndDrop/DropIndicator.d.ts +3 -0
- package/dist/DragAndDrop/DropIndicator.d.ts.map +1 -0
- package/dist/DragAndDrop/DropIndicator.js +44 -0
- package/dist/DragAndDrop/DropIndicator.js.map +1 -0
- package/dist/DragAndDrop/index.d.ts +4 -0
- package/dist/DragAndDrop/index.d.ts.map +1 -0
- package/dist/DragAndDrop/index.js +17 -0
- package/dist/DragAndDrop/index.js.map +1 -0
- package/dist/DragAndDrop/model.d.ts +11 -0
- package/dist/DragAndDrop/model.d.ts.map +1 -0
- package/dist/DragAndDrop/model.js +17 -0
- package/dist/DragAndDrop/model.js.map +1 -0
- package/dist/Drawer/Drawer.d.ts +2 -2
- package/dist/Drawer/Drawer.d.ts.map +1 -1
- package/dist/Drawer/Drawer.js +2 -2
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/EChart/EChart.d.ts +8 -8
- package/dist/EChart/EChart.d.ts.map +1 -1
- package/dist/EChart/EChart.js +5 -6
- package/dist/EChart/EChart.js.map +1 -1
- package/dist/ErrorAlert.d.ts +2 -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 +3 -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/FormEditor/FormActions.d.ts +16 -0
- package/dist/FormEditor/FormActions.d.ts.map +1 -0
- package/dist/FormEditor/FormActions.js +75 -0
- package/dist/FormEditor/FormActions.js.map +1 -0
- package/dist/FormEditor/index.d.ts +2 -0
- package/dist/FormEditor/index.d.ts.map +1 -0
- package/dist/FormEditor/index.js +15 -0
- package/dist/FormEditor/index.js.map +1 -0
- package/dist/FormatControls/FormatControls.d.ts +2 -2
- package/dist/FormatControls/FormatControls.d.ts.map +1 -1
- package/dist/FormatControls/FormatControls.js +3 -3
- package/dist/FormatControls/FormatControls.js.map +1 -1
- package/dist/GaugeChart/GaugeChart.d.ts +4 -4
- package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
- package/dist/GaugeChart/GaugeChart.js +5 -8
- package/dist/GaugeChart/GaugeChart.js.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.d.ts +4 -4
- package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.js +7 -8
- package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
- package/dist/JSONEditor.d.ts +3 -3
- package/dist/JSONEditor.d.ts.map +1 -1
- package/dist/JSONEditor.js.map +1 -1
- package/dist/Legend/CompactLegend.d.ts +2 -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 +2 -2
- package/dist/Legend/Legend.d.ts.map +1 -1
- package/dist/Legend/Legend.js +9 -5
- package/dist/Legend/Legend.js.map +1 -1
- package/dist/Legend/LegendColorBadge.d.ts +2 -2
- package/dist/Legend/LegendColorBadge.d.ts.map +1 -1
- package/dist/Legend/LegendColorBadge.js +2 -2
- package/dist/Legend/LegendColorBadge.js.map +1 -1
- package/dist/Legend/ListLegend.d.ts +2 -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 +6 -6
- package/dist/Legend/ListLegendItem.d.ts.map +1 -1
- package/dist/Legend/ListLegendItem.js +11 -19
- package/dist/Legend/ListLegendItem.js.map +1 -1
- package/dist/Legend/TableLegend.d.ts +2 -2
- package/dist/Legend/TableLegend.d.ts.map +1 -1
- package/dist/Legend/TableLegend.js +3 -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.d.ts +1 -1
- package/dist/LineChart/LineChart.d.ts.map +1 -1
- package/dist/LineChart/LineChart.js +12 -17
- package/dist/LineChart/LineChart.js.map +1 -1
- package/dist/LinksEditor/LinksEditor.d.ts +8 -0
- package/dist/LinksEditor/LinksEditor.d.ts.map +1 -0
- package/dist/LinksEditor/LinksEditor.js +161 -0
- package/dist/LinksEditor/LinksEditor.js.map +1 -0
- package/dist/LinksEditor/index.d.ts +2 -0
- package/dist/LinksEditor/index.d.ts.map +1 -0
- package/dist/LinksEditor/index.js +15 -0
- package/dist/LinksEditor/index.js.map +1 -0
- package/dist/ModeSelector/ModeSelector.d.ts +3 -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 +3 -3
- 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 +3 -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 +3 -3
- 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 +3 -3
- 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/Overlay/Overlay.d.ts +16 -0
- package/dist/Overlay/Overlay.d.ts.map +1 -0
- package/dist/Overlay/Overlay.js +52 -0
- package/dist/Overlay/Overlay.js.map +1 -0
- package/dist/Overlay/index.d.ts +2 -0
- package/dist/Overlay/index.d.ts.map +1 -0
- package/dist/Overlay/index.js +15 -0
- package/dist/Overlay/index.js.map +1 -0
- package/dist/PieChart/PieChart.d.ts +14 -0
- package/dist/PieChart/PieChart.d.ts.map +1 -0
- package/dist/PieChart/PieChart.js +92 -0
- package/dist/PieChart/PieChart.js.map +1 -0
- package/dist/PieChart/index.d.ts +2 -0
- package/dist/PieChart/index.d.ts.map +1 -0
- package/dist/PieChart/index.js +15 -0
- package/dist/PieChart/index.js.map +1 -0
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts +2 -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 +2 -2
- package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts.map +1 -1
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js +8 -7
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
- package/dist/SortSelector/SortSelector.d.ts +3 -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/SortSelector/SortSelectorButtons.d.ts +9 -0
- package/dist/SortSelector/SortSelectorButtons.d.ts.map +1 -0
- package/dist/SortSelector/SortSelectorButtons.js +42 -0
- package/dist/SortSelector/SortSelectorButtons.js.map +1 -0
- package/dist/SortSelector/index.d.ts +1 -0
- package/dist/SortSelector/index.d.ts.map +1 -1
- package/dist/SortSelector/index.js +2 -1
- package/dist/SortSelector/index.js.map +1 -1
- package/dist/StatChart/StatChart.d.ts +6 -6
- package/dist/StatChart/StatChart.d.ts.map +1 -1
- package/dist/StatChart/StatChart.js +12 -18
- package/dist/StatChart/StatChart.js.map +1 -1
- package/dist/StatChart/calculateFontSize.d.ts.map +1 -1
- package/dist/StatChart/calculateFontSize.js +4 -6
- package/dist/StatChart/calculateFontSize.js.map +1 -1
- package/dist/StatChart/utils/formatStatChartValue.d.ts +3 -0
- package/dist/StatChart/utils/formatStatChartValue.d.ts.map +1 -0
- package/dist/StatChart/utils/formatStatChartValue.js +26 -0
- package/dist/StatChart/utils/formatStatChartValue.js.map +1 -0
- package/dist/StatusHistoryChart/StatusHistoryChart.d.ts +27 -0
- package/dist/StatusHistoryChart/StatusHistoryChart.d.ts.map +1 -0
- package/dist/StatusHistoryChart/StatusHistoryChart.js +132 -0
- package/dist/StatusHistoryChart/StatusHistoryChart.js.map +1 -0
- package/dist/StatusHistoryChart/StatusHistoryTooltip.d.ts +13 -0
- package/dist/StatusHistoryChart/StatusHistoryTooltip.d.ts.map +1 -0
- package/dist/StatusHistoryChart/StatusHistoryTooltip.js +47 -0
- package/dist/StatusHistoryChart/StatusHistoryTooltip.js.map +1 -0
- package/dist/StatusHistoryChart/get-formatted-axis-label.d.ts +2 -0
- package/dist/StatusHistoryChart/get-formatted-axis-label.d.ts.map +1 -0
- package/dist/StatusHistoryChart/get-formatted-axis-label.js +41 -0
- package/dist/StatusHistoryChart/get-formatted-axis-label.js.map +1 -0
- package/dist/StatusHistoryChart/index.d.ts +3 -0
- package/dist/StatusHistoryChart/index.d.ts.map +1 -0
- package/dist/StatusHistoryChart/index.js +16 -0
- package/dist/StatusHistoryChart/index.js.map +1 -0
- package/dist/StatusHistoryChart/utils/get-color.d.ts +6 -0
- package/dist/StatusHistoryChart/utils/get-color.d.ts.map +1 -0
- package/dist/StatusHistoryChart/utils/get-color.js +100 -0
- package/dist/StatusHistoryChart/utils/get-color.js.map +1 -0
- package/dist/StatusHistoryChart/utils/get-tooltip-position.d.ts +3 -0
- package/dist/StatusHistoryChart/utils/get-tooltip-position.d.ts.map +1 -0
- package/dist/StatusHistoryChart/utils/get-tooltip-position.js +27 -0
- package/dist/StatusHistoryChart/utils/get-tooltip-position.js.map +1 -0
- package/dist/Table/InnerTable.d.ts +2 -2
- package/dist/Table/InnerTable.d.ts.map +1 -1
- package/dist/Table/InnerTable.js +4 -3
- package/dist/Table/InnerTable.js.map +1 -1
- package/dist/Table/Table.d.ts +2 -2
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/Table.js +12 -10
- 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 +4 -2
- package/dist/Table/TableCell.d.ts.map +1 -1
- package/dist/Table/TableCell.js +29 -7
- package/dist/Table/TableCell.js.map +1 -1
- package/dist/Table/TableCheckbox.d.ts +2 -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 +3 -3
- 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 +5 -4
- package/dist/Table/VirtualizedTable.d.ts.map +1 -1
- package/dist/Table/VirtualizedTable.js +18 -15
- 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 +3 -3
- package/dist/Table/hooks/useTableKeyboardNav.d.ts.map +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.js +2 -2
- package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts +10 -12
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +8 -14
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
- package/dist/Table/index.d.ts +1 -2
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/model/table-model.d.ts +27 -7
- package/dist/Table/model/table-model.d.ts.map +1 -1
- package/dist/Table/model/table-model.js +29 -23
- package/dist/Table/model/table-model.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.d.ts +2 -2
- package/dist/ThresholdsEditor/ThresholdInput.d.ts.map +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.js +3 -3
- package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdsEditor.d.ts +2 -2
- package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
- package/dist/ThresholdsEditor/ThresholdsEditor.js +20 -27
- package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
- package/dist/TimeChart/TimeChart.d.ts.map +1 -1
- package/dist/TimeChart/TimeChart.js +12 -15
- package/dist/TimeChart/TimeChart.js.map +1 -1
- package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts +19 -0
- package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts.map +1 -0
- package/dist/{DateTimeRangePicker/AbsoluteTimePicker.js → TimeRangeSelector/DateTimeRangePicker.js} +44 -29
- package/dist/TimeRangeSelector/DateTimeRangePicker.js.map +1 -0
- package/dist/TimeRangeSelector/TimeRangeSelector.d.ts +36 -0
- package/dist/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -0
- package/dist/TimeRangeSelector/TimeRangeSelector.js +119 -0
- package/dist/TimeRangeSelector/TimeRangeSelector.js.map +1 -0
- package/dist/{DateTimeRangePicker → TimeRangeSelector}/index.d.ts +1 -2
- package/dist/TimeRangeSelector/index.d.ts.map +1 -0
- package/dist/{DateTimeRangePicker → TimeRangeSelector}/index.js +2 -3
- package/dist/TimeRangeSelector/index.js.map +1 -0
- package/dist/TimeRangeSelector/utils.d.ts +25 -0
- package/dist/TimeRangeSelector/utils.d.ts.map +1 -0
- package/dist/{DateTimeRangePicker → TimeRangeSelector}/utils.js +23 -2
- package/dist/TimeRangeSelector/utils.js.map +1 -0
- package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts +2 -2
- package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/LineChartTooltip.js +8 -13
- package/dist/TimeSeriesTooltip/LineChartTooltip.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.d.ts +2 -2
- package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.js +2 -3
- package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +2 -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 +2 -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.d.ts +2 -2
- package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js +4 -5
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipContent.d.ts +2 -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.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.js +7 -15
- 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 +19 -29
- package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts +10 -3
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.js +13 -2
- package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
- package/dist/TimeSeriesTooltip/utils.d.ts +1 -21
- package/dist/TimeSeriesTooltip/utils.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/utils.js +2 -4
- 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/TransformsEditor/TransformEditor.d.ts +9 -0
- package/dist/TransformsEditor/TransformEditor.d.ts.map +1 -0
- package/dist/TransformsEditor/TransformEditor.js +289 -0
- package/dist/TransformsEditor/TransformEditor.js.map +1 -0
- package/dist/TransformsEditor/TransformEditorContainer.d.ts +10 -0
- package/dist/TransformsEditor/TransformEditorContainer.d.ts.map +1 -0
- package/dist/TransformsEditor/TransformEditorContainer.js +118 -0
- package/dist/TransformsEditor/TransformEditorContainer.js.map +1 -0
- package/dist/TransformsEditor/TransformsEditor.d.ts +9 -0
- package/dist/TransformsEditor/TransformsEditor.d.ts.map +1 -0
- package/dist/TransformsEditor/TransformsEditor.js +90 -0
- package/dist/TransformsEditor/TransformsEditor.js.map +1 -0
- package/dist/TransformsEditor/index.d.ts +2 -0
- package/dist/TransformsEditor/index.d.ts.map +1 -0
- package/dist/TransformsEditor/index.js +15 -0
- package/dist/TransformsEditor/index.js.map +1 -0
- package/dist/ValueMappingEditor/ValueMappingEditor.d.ts +10 -0
- package/dist/ValueMappingEditor/ValueMappingEditor.d.ts.map +1 -0
- package/dist/ValueMappingEditor/ValueMappingEditor.js +374 -0
- package/dist/ValueMappingEditor/ValueMappingEditor.js.map +1 -0
- package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts +8 -0
- package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts.map +1 -0
- package/dist/ValueMappingEditor/ValueMappingsEditor.js +118 -0
- package/dist/ValueMappingEditor/ValueMappingsEditor.js.map +1 -0
- package/dist/ValueMappingEditor/index.d.ts +2 -0
- package/dist/ValueMappingEditor/index.d.ts.map +1 -0
- package/dist/ValueMappingEditor/index.js +15 -0
- package/dist/ValueMappingEditor/index.js.map +1 -0
- package/dist/YAxisLabel.d.ts +2 -2
- package/dist/YAxisLabel.d.ts.map +1 -1
- package/dist/YAxisLabel.js +5 -3
- package/dist/YAxisLabel.js.map +1 -1
- package/dist/cjs/AlignSelector/AlignSelector.js +50 -0
- package/dist/cjs/AlignSelector/index.js +30 -0
- package/dist/cjs/BarChart/BarChart.js +14 -9
- package/dist/cjs/ColorPicker/ColorPicker.js +28 -52
- package/dist/cjs/{ThresholdsEditor/ThresholdColorPicker.js → ColorPicker/OptionsColorPicker.js} +19 -16
- package/dist/cjs/ColorPicker/index.js +1 -0
- package/dist/cjs/ContentWithLegend/ContentWithLegend.js +10 -12
- package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +4 -5
- package/dist/cjs/DensitySelector/DensitySelector.js +54 -0
- package/dist/cjs/DensitySelector/index.js +30 -0
- package/dist/cjs/Dialog/Dialog.js +11 -7
- package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +1 -1
- package/dist/cjs/DragAndDrop/DragAndDropList.js +159 -0
- package/dist/cjs/DragAndDrop/DragButton.js +121 -0
- package/dist/cjs/DragAndDrop/DropIndicator.js +52 -0
- package/dist/cjs/DragAndDrop/index.js +32 -0
- package/dist/cjs/DragAndDrop/model.js +25 -0
- package/dist/cjs/Drawer/Drawer.js +2 -2
- package/dist/cjs/EChart/EChart.js +5 -45
- package/dist/cjs/ErrorAlert.js +1 -1
- package/dist/cjs/FontSizeSelector/FontSizeSelector.js +2 -2
- package/dist/cjs/FormEditor/FormActions.js +83 -0
- package/dist/cjs/FormEditor/index.js +30 -0
- package/dist/cjs/FormatControls/FormatControls.js +3 -3
- package/dist/cjs/GaugeChart/GaugeChart.js +6 -9
- package/dist/cjs/InfoTooltip/InfoTooltip.js +7 -13
- package/dist/cjs/Legend/CompactLegend.js +1 -1
- package/dist/cjs/Legend/Legend.js +9 -5
- package/dist/cjs/Legend/LegendColorBadge.js +2 -7
- package/dist/cjs/Legend/ListLegend.js +1 -1
- package/dist/cjs/Legend/ListLegendItem.js +9 -55
- package/dist/cjs/Legend/TableLegend.js +3 -2
- package/dist/cjs/LineChart/LineChart.js +13 -18
- package/dist/cjs/LinksEditor/LinksEditor.js +174 -0
- package/dist/cjs/LinksEditor/index.js +30 -0
- 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/Overlay/Overlay.js +71 -0
- package/dist/cjs/Overlay/index.js +30 -0
- package/dist/cjs/PieChart/PieChart.js +100 -0
- package/dist/cjs/PieChart/index.js +30 -0
- package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +1 -1
- package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +8 -7
- package/dist/cjs/SortSelector/SortSelector.js +2 -2
- package/dist/cjs/SortSelector/SortSelectorButtons.js +50 -0
- package/dist/cjs/SortSelector/index.js +2 -1
- package/dist/cjs/StatChart/StatChart.js +15 -21
- package/dist/cjs/StatChart/calculateFontSize.js +4 -6
- package/dist/cjs/StatChart/utils/formatStatChartValue.js +34 -0
- package/dist/cjs/StatusHistoryChart/StatusHistoryChart.js +140 -0
- package/dist/cjs/StatusHistoryChart/StatusHistoryTooltip.js +55 -0
- package/dist/cjs/StatusHistoryChart/get-formatted-axis-label.js +48 -0
- package/dist/cjs/StatusHistoryChart/index.js +31 -0
- package/dist/cjs/StatusHistoryChart/utils/get-color.js +125 -0
- package/dist/cjs/StatusHistoryChart/utils/get-tooltip-position.js +35 -0
- package/dist/cjs/Table/InnerTable.js +4 -3
- package/dist/cjs/Table/Table.js +11 -9
- package/dist/cjs/Table/TableCell.js +29 -7
- package/dist/cjs/Table/TableCheckbox.js +1 -1
- package/dist/cjs/Table/TableHeaderCell.js +1 -1
- package/dist/cjs/Table/VirtualizedTable.js +18 -15
- package/dist/cjs/Table/hooks/useTableKeyboardNav.js +2 -2
- package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +8 -14
- package/dist/cjs/Table/index.js +1 -7
- package/dist/cjs/Table/model/table-model.js +32 -23
- package/dist/cjs/ThresholdsEditor/ThresholdInput.js +3 -3
- package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +23 -28
- package/dist/cjs/TimeChart/TimeChart.js +12 -15
- package/dist/cjs/{DateTimeRangePicker/AbsoluteTimePicker.js → TimeRangeSelector/DateTimeRangePicker.js} +37 -30
- package/dist/cjs/TimeRangeSelector/TimeRangeSelector.js +127 -0
- package/dist/cjs/{DateTimeRangePicker → TimeRangeSelector}/index.js +2 -3
- package/dist/cjs/{DateTimeRangePicker → TimeRangeSelector}/utils.js +26 -3
- package/dist/cjs/TimeSeriesTooltip/LineChartTooltip.js +8 -13
- package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +2 -3
- package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
- package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +1 -1
- package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +4 -5
- package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +2 -2
- package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +7 -15
- package/dist/cjs/TimeSeriesTooltip/nearby-series.js +29 -39
- package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +49 -29
- package/dist/cjs/TimeSeriesTooltip/utils.js +2 -4
- package/dist/cjs/ToolbarIconButton/ToolbarIconButton.js +40 -0
- package/dist/cjs/ToolbarIconButton/index.js +30 -0
- package/dist/cjs/TransformsEditor/TransformEditor.js +297 -0
- package/dist/cjs/TransformsEditor/TransformEditorContainer.js +131 -0
- package/dist/cjs/TransformsEditor/TransformsEditor.js +103 -0
- package/dist/cjs/TransformsEditor/index.js +30 -0
- package/dist/cjs/ValueMappingEditor/ValueMappingEditor.js +387 -0
- package/dist/cjs/ValueMappingEditor/ValueMappingsEditor.js +131 -0
- package/dist/cjs/ValueMappingEditor/index.js +30 -0
- package/dist/cjs/YAxisLabel.js +5 -3
- package/dist/cjs/context/ChartsProvider.js +4 -2
- package/dist/cjs/context/SnackbarProvider.js +1 -1
- package/dist/cjs/context/TimeZoneProvider.js +5 -3
- package/dist/cjs/controls/TextField.js +54 -0
- package/dist/cjs/controls/index.js +30 -0
- package/dist/cjs/index.js +13 -1
- package/dist/cjs/model/graph.js +3 -3
- package/dist/cjs/model/timeOption.js +19 -1
- 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/index.js +1 -0
- package/dist/cjs/theme/palette/background.js +2 -0
- package/dist/cjs/theme/palette/colors/common.js +3 -3
- package/dist/cjs/theme/theme.js +7 -7
- package/dist/cjs/utils/axis.js +3 -3
- package/dist/cjs/utils/chart-actions.js +14 -15
- package/dist/cjs/utils/format.js +21 -3
- package/dist/cjs/utils/mathjs.js +1 -1
- package/dist/cjs/utils/theme-gen.js +5 -7
- package/dist/context/ChartsProvider.d.ts +2 -2
- 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 +4 -4
- package/dist/context/TimeZoneProvider.d.ts.map +1 -1
- package/dist/context/TimeZoneProvider.js +2 -2
- package/dist/context/TimeZoneProvider.js.map +1 -1
- package/dist/controls/TextField.d.ts +9 -0
- package/dist/controls/TextField.d.ts.map +1 -0
- package/dist/controls/TextField.js +41 -0
- package/dist/controls/TextField.js.map +1 -0
- package/dist/controls/index.d.ts +2 -0
- package/dist/controls/index.d.ts.map +1 -0
- package/dist/controls/index.js +15 -0
- package/dist/controls/index.js.map +1 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -1
- 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.d.ts +2 -1
- package/dist/model/timeOption.d.ts.map +1 -1
- package/dist/model/timeOption.js +13 -2
- package/dist/model/timeOption.js.map +1 -1
- package/dist/test/render.d.ts +3 -3
- package/dist/test/render.d.ts.map +1 -1
- package/dist/test/render.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/index.d.ts +2 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +1 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/palette/background.d.ts.map +1 -1
- package/dist/theme/palette/background.js +2 -0
- package/dist/theme/palette/background.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.d.ts +2 -2
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +6 -6
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/types/ThemeExtension.d.js.map +1 -1
- package/dist/utils/axis.d.ts +1 -7
- package/dist/utils/axis.d.ts.map +1 -1
- package/dist/utils/axis.js.map +1 -1
- package/dist/utils/chart-actions.d.ts.map +1 -1
- package/dist/utils/chart-actions.js +2 -3
- package/dist/utils/chart-actions.js.map +1 -1
- package/dist/utils/combine-sx.js.map +1 -1
- package/dist/utils/component-ids.d.ts.map +1 -1
- package/dist/utils/component-ids.js.map +1 -1
- package/dist/utils/format.d.ts +10 -4
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +16 -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 +5 -7
- package/dist/utils/theme-gen.js.map +1 -1
- package/package.json +13 -9
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts +0 -10
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +0 -1
- package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +0 -1
- package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts +0 -12
- package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +0 -1
- package/dist/DateTimeRangePicker/DateTimeRangePicker.js +0 -80
- package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +0 -1
- package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts +0 -14
- package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts.map +0 -1
- package/dist/DateTimeRangePicker/TimeRangeSelector.js +0 -67
- package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +0 -1
- package/dist/DateTimeRangePicker/index.d.ts.map +0 -1
- package/dist/DateTimeRangePicker/index.js.map +0 -1
- package/dist/DateTimeRangePicker/utils.d.ts +0 -7
- package/dist/DateTimeRangePicker/utils.d.ts.map +0 -1
- package/dist/DateTimeRangePicker/utils.js.map +0 -1
- package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts +0 -4
- package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts.map +0 -1
- package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +0 -1
- package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +0 -88
- package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +0 -80
|
@@ -34,7 +34,7 @@ const _core1 = require("echarts/core");
|
|
|
34
34
|
const _charts = require("echarts/charts");
|
|
35
35
|
const _components = require("echarts/components");
|
|
36
36
|
const _renderers = require("echarts/renderers");
|
|
37
|
-
const
|
|
37
|
+
const _context = require("../context");
|
|
38
38
|
const _EChart = require("../EChart");
|
|
39
39
|
(0, _core1.use)([
|
|
40
40
|
_charts.GaugeChart,
|
|
@@ -47,15 +47,13 @@ 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
|
|
51
|
-
const chartsTheme = (0,
|
|
50
|
+
const { width, height, data, format, axisLine, max } = props;
|
|
51
|
+
const chartsTheme = (0, _context.useChartsTheme)();
|
|
52
52
|
// useDeepMemo ensures value size util does not rerun everytime you hover on the chart
|
|
53
53
|
const option = (0, _core.useDeepMemo)(()=>{
|
|
54
|
-
var _chartsTheme_echartsTheme_textStyle;
|
|
55
54
|
if (data.value === undefined) return chartsTheme.noDataOption;
|
|
56
55
|
// adjusts fontSize depending on number of characters
|
|
57
56
|
const valueSizeClamp = getResponsiveValueSize(data.value, format, width, height);
|
|
58
|
-
var _chartsTheme_echartsTheme_textStyle_color;
|
|
59
57
|
return {
|
|
60
58
|
title: {
|
|
61
59
|
show: false
|
|
@@ -91,7 +89,7 @@ function GaugeChart(props) {
|
|
|
91
89
|
color: [
|
|
92
90
|
[
|
|
93
91
|
1,
|
|
94
|
-
'
|
|
92
|
+
'rgba(127,127,127,0.35)'
|
|
95
93
|
]
|
|
96
94
|
],
|
|
97
95
|
width: PROGRESS_WIDTH
|
|
@@ -185,7 +183,7 @@ function GaugeChart(props) {
|
|
|
185
183
|
// https://echarts.apache.org/en/option.html#series-gauge.data.title
|
|
186
184
|
title: {
|
|
187
185
|
show: true,
|
|
188
|
-
color:
|
|
186
|
+
color: chartsTheme.echartsTheme.textStyle?.color ?? 'inherit',
|
|
189
187
|
offsetCenter: [
|
|
190
188
|
0,
|
|
191
189
|
'55%'
|
|
@@ -223,8 +221,7 @@ function getResponsiveValueSize(value, format, width, height) {
|
|
|
223
221
|
const MAX_SIZE = 24;
|
|
224
222
|
const SIZE_MULTIPLIER = 0.7;
|
|
225
223
|
const formattedValue = typeof value === 'number' ? (0, _core.formatValue)(value, format) : `${value}`;
|
|
226
|
-
|
|
227
|
-
const valueCharacters = (_formattedValue_length = formattedValue.length) !== null && _formattedValue_length !== void 0 ? _formattedValue_length : 2;
|
|
224
|
+
const valueCharacters = formattedValue.length ?? 2;
|
|
228
225
|
const valueSize = Math.min(width, height) / valueCharacters * SIZE_MULTIPLIER;
|
|
229
226
|
return `clamp(${MIN_SIZE}px, ${valueSize}px, ${MAX_SIZE}px)`;
|
|
230
227
|
}
|
|
@@ -21,14 +21,8 @@ Object.defineProperty(exports, "InfoTooltip", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
25
24
|
const _material = require("@mui/material");
|
|
26
|
-
|
|
27
|
-
return obj && obj.__esModule ? obj : {
|
|
28
|
-
default: obj
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
const InfoTooltip = ({ id , title , description , placement , children , enterDelay , enterNextDelay })=>{
|
|
25
|
+
const InfoTooltip = ({ id, title, description, placement, children, enterDelay, enterNextDelay })=>{
|
|
32
26
|
// Wrap children in a span to cover the following use cases:
|
|
33
27
|
// - Disabled buttons. MUI console.errors on putting these inside a tooltip.
|
|
34
28
|
// - Non-element tooltip children (e.g. text). The tooltip needs something that
|
|
@@ -41,17 +35,17 @@ const InfoTooltip = ({ id , title , description , placement , children , enterDe
|
|
|
41
35
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(StyledTooltip, {
|
|
42
36
|
arrow: true,
|
|
43
37
|
id: id,
|
|
44
|
-
placement: placement
|
|
38
|
+
placement: placement ?? 'top',
|
|
45
39
|
title: /*#__PURE__*/ (0, _jsxruntime.jsx)(TooltipContent, {
|
|
46
40
|
title: title,
|
|
47
41
|
description: description
|
|
48
42
|
}),
|
|
49
|
-
enterDelay: enterDelay
|
|
50
|
-
enterNextDelay: enterNextDelay
|
|
43
|
+
enterDelay: enterDelay ?? 500,
|
|
44
|
+
enterNextDelay: enterNextDelay ?? 500,
|
|
51
45
|
children: wrappedChildren
|
|
52
46
|
});
|
|
53
47
|
};
|
|
54
|
-
const TooltipContent = ({ title
|
|
48
|
+
const TooltipContent = ({ title, description })=>{
|
|
55
49
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
56
50
|
children: [
|
|
57
51
|
title && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
@@ -72,12 +66,12 @@ const TooltipContent = ({ title , description })=>{
|
|
|
72
66
|
]
|
|
73
67
|
});
|
|
74
68
|
};
|
|
75
|
-
const StyledTooltip = (0, _material.styled)(({ className
|
|
69
|
+
const StyledTooltip = (0, _material.styled)(({ className, ...props })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Tooltip, {
|
|
76
70
|
...props,
|
|
77
71
|
classes: {
|
|
78
72
|
popper: className
|
|
79
73
|
}
|
|
80
|
-
}))(({ theme
|
|
74
|
+
}))(({ theme })=>({
|
|
81
75
|
[`& .${_material.tooltipClasses.tooltip}`]: {
|
|
82
76
|
backgroundColor: theme.palette.background.tooltip,
|
|
83
77
|
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)=>{
|
|
@@ -102,9 +102,11 @@ function Legend({ width , height , options , data , selectedItems , onSelectedIt
|
|
|
102
102
|
}
|
|
103
103
|
if (options.position === 'right') {
|
|
104
104
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
105
|
-
|
|
105
|
+
style: {
|
|
106
106
|
width: width,
|
|
107
|
-
height: height
|
|
107
|
+
height: height
|
|
108
|
+
},
|
|
109
|
+
sx: {
|
|
108
110
|
position: 'absolute',
|
|
109
111
|
top: 0,
|
|
110
112
|
right: 0
|
|
@@ -114,9 +116,11 @@ function Legend({ width , height , options , data , selectedItems , onSelectedIt
|
|
|
114
116
|
}
|
|
115
117
|
// Position bottom
|
|
116
118
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
117
|
-
|
|
119
|
+
style: {
|
|
118
120
|
width: width,
|
|
119
|
-
height: height
|
|
121
|
+
height: height
|
|
122
|
+
},
|
|
123
|
+
sx: {
|
|
120
124
|
position: 'absolute',
|
|
121
125
|
bottom: 0
|
|
122
126
|
},
|
|
@@ -21,15 +21,10 @@ Object.defineProperty(exports, "LegendColorBadge", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react =
|
|
24
|
+
const _react = require("react");
|
|
25
25
|
const _material = require("@mui/material");
|
|
26
26
|
const _utils = require("../utils");
|
|
27
|
-
function
|
|
28
|
-
return obj && obj.__esModule ? obj : {
|
|
29
|
-
default: obj
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const LegendColorBadge = /*#__PURE__*/ _react.default.memo(function LegendColorBadge({ color , sx , ...others }) {
|
|
27
|
+
const LegendColorBadge = /*#__PURE__*/ (0, _react.memo)(function LegendColorBadge({ color, sx, ...others }) {
|
|
33
28
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
34
29
|
...others,
|
|
35
30
|
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, {
|
|
@@ -21,50 +21,11 @@ Object.defineProperty(exports, "ListLegendItem", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react =
|
|
24
|
+
const _react = require("react");
|
|
25
25
|
const _material = require("@mui/material");
|
|
26
26
|
const _utils = require("../utils");
|
|
27
27
|
const _LegendColorBadge = require("./LegendColorBadge");
|
|
28
|
-
function
|
|
29
|
-
if (typeof WeakMap !== "function") return null;
|
|
30
|
-
var cacheBabelInterop = new WeakMap();
|
|
31
|
-
var cacheNodeInterop = new WeakMap();
|
|
32
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
33
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
34
|
-
})(nodeInterop);
|
|
35
|
-
}
|
|
36
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
37
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
38
|
-
return obj;
|
|
39
|
-
}
|
|
40
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
41
|
-
return {
|
|
42
|
-
default: obj
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
46
|
-
if (cache && cache.has(obj)) {
|
|
47
|
-
return cache.get(obj);
|
|
48
|
-
}
|
|
49
|
-
var newObj = {};
|
|
50
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
51
|
-
for(var key in obj){
|
|
52
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
53
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
54
|
-
if (desc && (desc.get || desc.set)) {
|
|
55
|
-
Object.defineProperty(newObj, key, desc);
|
|
56
|
-
} else {
|
|
57
|
-
newObj[key] = obj[key];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
newObj.default = obj;
|
|
62
|
-
if (cache) {
|
|
63
|
-
cache.set(obj, newObj);
|
|
64
|
-
}
|
|
65
|
-
return newObj;
|
|
66
|
-
}
|
|
67
|
-
const ListLegendItemBase = /*#__PURE__*/ (0, _react.forwardRef)(function ListLegendItem({ item , sx , truncateLabel , onClick , isVisuallySelected , onMouseOver , onMouseOut , index , ...others }, ref) {
|
|
28
|
+
const ListLegendItemBase = /*#__PURE__*/ (0, _react.forwardRef)(function ListLegendItem({ item, sx, truncateLabel, onClick, isVisuallySelected, onMouseOver, onMouseOut, index, ...others }, ref) {
|
|
68
29
|
const [noWrap, setNoWrap] = (0, _react.useState)(truncateLabel);
|
|
69
30
|
function handleTextMouseOver() {
|
|
70
31
|
if (truncateLabel) {
|
|
@@ -77,33 +38,26 @@ const ListLegendItemBase = /*#__PURE__*/ (0, _react.forwardRef)(function ListLeg
|
|
|
77
38
|
}
|
|
78
39
|
}
|
|
79
40
|
const handleClick = (e)=>{
|
|
80
|
-
var _item_onClick;
|
|
81
41
|
onClick(e, item.id);
|
|
82
|
-
|
|
42
|
+
item.onClick?.(e);
|
|
83
43
|
};
|
|
84
|
-
return /*#__PURE__*/ (0,
|
|
44
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.ListItemButton, {
|
|
85
45
|
...others,
|
|
86
|
-
component: "div",
|
|
87
46
|
role: "listitem",
|
|
88
47
|
sx: (0, _utils.combineSx)({
|
|
89
48
|
padding: 0,
|
|
90
49
|
cursor: 'pointer'
|
|
91
50
|
}, sx),
|
|
92
51
|
dense: true,
|
|
93
|
-
key: item.id,
|
|
94
52
|
onClick: handleClick,
|
|
95
|
-
onMouseOver: (e)=>{
|
|
96
|
-
return onMouseOver === null || onMouseOver === void 0 ? void 0 : onMouseOver(e, {
|
|
53
|
+
onMouseOver: (e)=>onMouseOver?.(e, {
|
|
97
54
|
id: item.id,
|
|
98
55
|
index
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
onMouseOut: (e)=>{
|
|
102
|
-
return onMouseOut === null || onMouseOut === void 0 ? void 0 : onMouseOut(e, {
|
|
56
|
+
}),
|
|
57
|
+
onMouseOut: (e)=>onMouseOut?.(e, {
|
|
103
58
|
id: item.id,
|
|
104
59
|
index
|
|
105
|
-
})
|
|
106
|
-
},
|
|
60
|
+
}),
|
|
107
61
|
selected: isVisuallySelected,
|
|
108
62
|
ref: ref,
|
|
109
63
|
children: [
|
|
@@ -127,4 +81,4 @@ const ListLegendItemBase = /*#__PURE__*/ (0, _react.forwardRef)(function ListLeg
|
|
|
127
81
|
]
|
|
128
82
|
});
|
|
129
83
|
});
|
|
130
|
-
const ListLegendItem = /*#__PURE__*/ _react.
|
|
84
|
+
const ListLegendItem = /*#__PURE__*/ (0, _react.memo)(ListLegendItemBase);
|
|
@@ -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.
|
|
@@ -75,6 +75,7 @@ function TableLegend({ items , selectedItems: initRowSelection , onSelectedItems
|
|
|
75
75
|
data: items,
|
|
76
76
|
columns: columns,
|
|
77
77
|
density: "compact",
|
|
78
|
+
defaultColumnWidth: "auto",
|
|
78
79
|
getRowId: getRowId,
|
|
79
80
|
getCheckboxColor: getCheckboxColor,
|
|
80
81
|
checkboxSelection: true,
|
|
@@ -28,9 +28,8 @@ const _charts = require("echarts/charts");
|
|
|
28
28
|
const _components = require("echarts/components");
|
|
29
29
|
const _renderers = require("echarts/renderers");
|
|
30
30
|
const _EChart = require("../EChart");
|
|
31
|
-
const
|
|
31
|
+
const _context = require("../context");
|
|
32
32
|
const _TimeSeriesTooltip = require("../TimeSeriesTooltip");
|
|
33
|
-
const _TimeZoneProvider = require("../context/TimeZoneProvider");
|
|
34
33
|
const _utils = require("../utils");
|
|
35
34
|
(0, _core.use)([
|
|
36
35
|
_charts.LineChart,
|
|
@@ -45,18 +44,17 @@ const _utils = require("../utils");
|
|
|
45
44
|
_components.LegendComponent,
|
|
46
45
|
_renderers.CanvasRenderer
|
|
47
46
|
]);
|
|
48
|
-
const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ height
|
|
49
|
-
|
|
50
|
-
const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
|
|
47
|
+
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) {
|
|
48
|
+
const chartsTheme = (0, _context.useChartsTheme)();
|
|
51
49
|
const chartRef = (0, _react.useRef)();
|
|
52
50
|
const [showTooltip, setShowTooltip] = (0, _react.useState)(true);
|
|
53
51
|
const [tooltipPinnedCoords, setTooltipPinnedCoords] = (0, _react.useState)(null);
|
|
54
|
-
const { timeZone
|
|
52
|
+
const { timeZone } = (0, _context.useTimeZone)();
|
|
55
53
|
const [isDragging, setIsDragging] = (0, _react.useState)(false);
|
|
56
54
|
const [startX, setStartX] = (0, _react.useState)(0);
|
|
57
55
|
(0, _react.useImperativeHandle)(ref, ()=>{
|
|
58
56
|
return {
|
|
59
|
-
highlightSeries ({ id
|
|
57
|
+
highlightSeries ({ id }) {
|
|
60
58
|
if (!chartRef.current) {
|
|
61
59
|
// when chart undef, do not highlight series when hovering over legend
|
|
62
60
|
return;
|
|
@@ -85,10 +83,8 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
85
83
|
}, 10);
|
|
86
84
|
}
|
|
87
85
|
if (onDataZoom === undefined || params.batch[0] === undefined) return;
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
var _params_batch__endValue;
|
|
91
|
-
const endIndex = (_params_batch__endValue = params.batch[0].endValue) !== null && _params_batch__endValue !== void 0 ? _params_batch__endValue : data.xAxis.length - 1;
|
|
86
|
+
const startIndex = params.batch[0].startValue ?? 0;
|
|
87
|
+
const endIndex = params.batch[0].endValue ?? data.xAxis.length - 1;
|
|
92
88
|
const xAxisStartValue = data.xAxis[startIndex];
|
|
93
89
|
const xAxisEndValue = data.xAxis[endIndex];
|
|
94
90
|
if (xAxisStartValue !== undefined && xAxisEndValue !== undefined) {
|
|
@@ -110,14 +106,13 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
110
106
|
if (chartRef.current !== undefined) {
|
|
111
107
|
(0, _utils.enableDataZoom)(chartRef.current);
|
|
112
108
|
}
|
|
113
|
-
const { noDataOption
|
|
109
|
+
const { noDataOption } = chartsTheme;
|
|
114
110
|
const option = (0, _react.useMemo)(()=>{
|
|
115
111
|
if (data.timeSeries === undefined) return {};
|
|
116
112
|
// The "chart" `noDataVariant` is only used when the `timeSeries` is an
|
|
117
113
|
// empty array because a `null` value will throw an error.
|
|
118
114
|
if (data.timeSeries === null || data.timeSeries.length === 0 && noDataVariant === 'message') return noDataOption;
|
|
119
|
-
|
|
120
|
-
const rangeMs = (_data_rangeMs = data.rangeMs) !== null && _data_rangeMs !== void 0 ? _data_rangeMs : (0, _utils.getDateRange)(data.xAxis);
|
|
115
|
+
const rangeMs = data.rangeMs ?? (0, _utils.getDateRange)(data.xAxis);
|
|
121
116
|
const option = {
|
|
122
117
|
series: data.timeSeries,
|
|
123
118
|
xAxis: {
|
|
@@ -172,7 +167,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
172
167
|
noDataVariant
|
|
173
168
|
]);
|
|
174
169
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
175
|
-
|
|
170
|
+
style: {
|
|
176
171
|
height
|
|
177
172
|
},
|
|
178
173
|
onClick: (e)=>{
|
|
@@ -202,7 +197,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
202
197
|
}
|
|
203
198
|
},
|
|
204
199
|
onMouseDown: (e)=>{
|
|
205
|
-
const { clientX
|
|
200
|
+
const { clientX } = e;
|
|
206
201
|
setIsDragging(true);
|
|
207
202
|
setStartX(clientX);
|
|
208
203
|
},
|
|
@@ -211,7 +206,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
211
206
|
if (!(e.target instanceof HTMLCanvasElement)) {
|
|
212
207
|
return;
|
|
213
208
|
}
|
|
214
|
-
const { clientX
|
|
209
|
+
const { clientX } = e;
|
|
215
210
|
if (isDragging) {
|
|
216
211
|
const deltaX = clientX - startX;
|
|
217
212
|
if (deltaX > 0) {
|
|
@@ -251,7 +246,7 @@ const LineChart = /*#__PURE__*/ (0, _react.forwardRef)(function LineChart({ heig
|
|
|
251
246
|
}
|
|
252
247
|
},
|
|
253
248
|
children: [
|
|
254
|
-
showTooltip === true &&
|
|
249
|
+
showTooltip === true && option.tooltip?.showContent === false && tooltipConfig.hidden !== true && /*#__PURE__*/ (0, _jsxruntime.jsx)(_TimeSeriesTooltip.LineChartTooltip, {
|
|
255
250
|
chartRef: chartRef,
|
|
256
251
|
chartData: data,
|
|
257
252
|
wrapLabels: tooltipConfig.wrapLabels,
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "LinksEditor", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return LinksEditor;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
+
const _react = require("react");
|
|
25
|
+
const _material = require("@mui/material");
|
|
26
|
+
const _reacthookform = require("react-hook-form");
|
|
27
|
+
const _Plus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Plus"));
|
|
28
|
+
const _Minus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Minus"));
|
|
29
|
+
function _interop_require_default(obj) {
|
|
30
|
+
return obj && obj.__esModule ? obj : {
|
|
31
|
+
default: obj
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function LinksEditor({ control, ...props }) {
|
|
35
|
+
const { fields, append, remove } = (0, _reacthookform.useFieldArray)({
|
|
36
|
+
control: control,
|
|
37
|
+
name: 'panelDefinition.spec.links'
|
|
38
|
+
});
|
|
39
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
40
|
+
...props,
|
|
41
|
+
gap: 3,
|
|
42
|
+
children: [
|
|
43
|
+
fields && fields.length > 0 ? fields.map((field, index)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.Fragment, {
|
|
44
|
+
children: [
|
|
45
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
46
|
+
direction: "row",
|
|
47
|
+
gap: 1,
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
children: [
|
|
50
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(LinkControl, {
|
|
51
|
+
control: control,
|
|
52
|
+
index: index
|
|
53
|
+
}),
|
|
54
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
55
|
+
style: {
|
|
56
|
+
width: 'fit-content',
|
|
57
|
+
height: 'fit-content'
|
|
58
|
+
},
|
|
59
|
+
onClick: ()=>remove(index),
|
|
60
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Minus.default, {})
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Divider, {})
|
|
65
|
+
]
|
|
66
|
+
}, field.id)) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
67
|
+
variant: "subtitle1",
|
|
68
|
+
mb: 2,
|
|
69
|
+
fontStyle: "italic",
|
|
70
|
+
children: "No links defined"
|
|
71
|
+
}),
|
|
72
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
73
|
+
style: {
|
|
74
|
+
width: 'fit-content',
|
|
75
|
+
height: 'fit-content'
|
|
76
|
+
},
|
|
77
|
+
onClick: ()=>append({
|
|
78
|
+
url: ''
|
|
79
|
+
}),
|
|
80
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Plus.default, {})
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function LinkControl({ control, index }) {
|
|
86
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
87
|
+
gap: 2,
|
|
88
|
+
flexGrow: 1,
|
|
89
|
+
children: [
|
|
90
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
91
|
+
direction: "row",
|
|
92
|
+
gap: 2,
|
|
93
|
+
children: [
|
|
94
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_reacthookform.Controller, {
|
|
95
|
+
control: control,
|
|
96
|
+
name: `panelDefinition.spec.links.${index}.url`,
|
|
97
|
+
render: ({ field, fieldState })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
98
|
+
...field,
|
|
99
|
+
required: true,
|
|
100
|
+
fullWidth: true,
|
|
101
|
+
label: "URL",
|
|
102
|
+
error: !!fieldState.error,
|
|
103
|
+
helperText: fieldState.error?.message,
|
|
104
|
+
onChange: (event)=>{
|
|
105
|
+
field.onChange(event);
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
}),
|
|
109
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_reacthookform.Controller, {
|
|
110
|
+
control: control,
|
|
111
|
+
name: `panelDefinition.spec.links.${index}.name`,
|
|
112
|
+
render: ({ field, fieldState })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
113
|
+
...field,
|
|
114
|
+
fullWidth: true,
|
|
115
|
+
label: "Name",
|
|
116
|
+
defaultValue: "",
|
|
117
|
+
error: !!fieldState.error,
|
|
118
|
+
helperText: fieldState.error?.message,
|
|
119
|
+
onChange: (event)=>{
|
|
120
|
+
field.onChange(event);
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
}),
|
|
124
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_reacthookform.Controller, {
|
|
125
|
+
control: control,
|
|
126
|
+
name: `panelDefinition.spec.links.${index}.tooltip`,
|
|
127
|
+
render: ({ field, fieldState })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
128
|
+
...field,
|
|
129
|
+
fullWidth: true,
|
|
130
|
+
label: "Tooltip",
|
|
131
|
+
defaultValue: "",
|
|
132
|
+
error: !!fieldState.error,
|
|
133
|
+
helperText: fieldState.error?.message,
|
|
134
|
+
onChange: (event)=>{
|
|
135
|
+
field.onChange(event);
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
}),
|
|
141
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
142
|
+
gap: 2,
|
|
143
|
+
direction: "row",
|
|
144
|
+
alignItems: "center",
|
|
145
|
+
children: [
|
|
146
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_reacthookform.Controller, {
|
|
147
|
+
control: control,
|
|
148
|
+
name: `panelDefinition.spec.links.${index}.renderVariables`,
|
|
149
|
+
render: ({ field })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormControlLabel, {
|
|
150
|
+
label: "Render Variables",
|
|
151
|
+
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Checkbox, {
|
|
152
|
+
...field,
|
|
153
|
+
checked: field.value,
|
|
154
|
+
onChange: (e)=>field.onChange(e.target.checked)
|
|
155
|
+
})
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_reacthookform.Controller, {
|
|
159
|
+
control: control,
|
|
160
|
+
name: `panelDefinition.spec.links.${index}.targetBlank`,
|
|
161
|
+
render: ({ field })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormControlLabel, {
|
|
162
|
+
label: "Open in new tab",
|
|
163
|
+
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Checkbox, {
|
|
164
|
+
...field,
|
|
165
|
+
checked: field.value,
|
|
166
|
+
onChange: (e)=>field.onChange(e.target.checked)
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
});
|
|
174
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Copyright 2024 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("./LinksEditor"), exports);
|
|
18
|
+
function _export_star(from, to) {
|
|
19
|
+
Object.keys(from).forEach(function(k) {
|
|
20
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
+
Object.defineProperty(to, k, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return from;
|
|
30
|
+
}
|
|
@@ -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,
|