@perses-dev/components 0.55.0-beta.3 → 0.55.0-beta.6
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 +2 -2
- package/dist/AlignSelector/AlignSelector.d.ts.map +1 -1
- package/dist/AlignSelector/AlignSelector.js +2 -2
- package/dist/AlignSelector/AlignSelector.js.map +1 -1
- package/dist/AlignSelector/index.js +1 -1
- package/dist/AlignSelector/index.js.map +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/ColorPicker/ColorPicker.js +5 -5
- package/dist/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/ColorPicker/OptionsColorPicker.d.ts +1 -1
- package/dist/ColorPicker/OptionsColorPicker.d.ts.map +1 -1
- package/dist/ColorPicker/OptionsColorPicker.js +5 -5
- package/dist/ColorPicker/OptionsColorPicker.js.map +1 -1
- package/dist/ColorPicker/index.js +2 -2
- 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 +4 -4
- package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
- package/dist/ContentWithLegend/index.js +1 -1
- package/dist/ContentWithLegend/index.js.map +1 -1
- package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +3 -3
- package/dist/ContentWithLegend/model/content-with-legend-model.d.ts.map +1 -1
- package/dist/ContentWithLegend/model/content-with-legend-model.js +2 -2
- package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
- package/dist/DensitySelector/DensitySelector.d.ts +1 -1
- package/dist/DensitySelector/DensitySelector.d.ts.map +1 -1
- package/dist/DensitySelector/DensitySelector.js +2 -2
- package/dist/DensitySelector/DensitySelector.js.map +1 -1
- package/dist/DensitySelector/index.js +1 -1
- package/dist/DensitySelector/index.js.map +1 -1
- package/dist/Dialog/Dialog.d.ts +4 -3
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +3 -3
- package/dist/Dialog/Dialog.js.map +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts.map +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.js +2 -2
- package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/Dialog/index.js.map +1 -1
- package/dist/DragAndDrop/DragAndDropList.d.ts +1 -1
- package/dist/DragAndDrop/DragAndDropList.d.ts.map +1 -1
- package/dist/DragAndDrop/DragAndDropList.js +8 -8
- package/dist/DragAndDrop/DragAndDropList.js.map +1 -1
- package/dist/DragAndDrop/DragButton.d.ts +1 -1
- package/dist/DragAndDrop/DragButton.d.ts.map +1 -1
- package/dist/DragAndDrop/DragButton.js +4 -4
- package/dist/DragAndDrop/DragButton.js.map +1 -1
- package/dist/DragAndDrop/DropIndicator.d.ts +1 -1
- package/dist/DragAndDrop/DropIndicator.d.ts.map +1 -1
- package/dist/DragAndDrop/DropIndicator.js +1 -1
- package/dist/DragAndDrop/DropIndicator.js.map +1 -1
- package/dist/DragAndDrop/index.js +3 -3
- package/dist/DragAndDrop/index.js.map +1 -1
- package/dist/DragAndDrop/model.d.ts +1 -1
- package/dist/DragAndDrop/model.d.ts.map +1 -1
- package/dist/DragAndDrop/model.js.map +1 -1
- package/dist/Drawer/Drawer.d.ts +2 -2
- package/dist/Drawer/Drawer.d.ts.map +1 -1
- package/dist/Drawer/Drawer.js +3 -3
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/Drawer/index.js.map +1 -1
- package/dist/EChart/EChart.d.ts +4 -4
- package/dist/EChart/EChart.d.ts.map +1 -1
- package/dist/EChart/EChart.js +9 -9
- package/dist/EChart/EChart.js.map +1 -1
- package/dist/EChart/index.js +2 -2
- package/dist/EChart/index.js.map +1 -1
- package/dist/EChart/timezone-formatter.js +1 -1
- package/dist/ErrorAlert.d.ts +1 -1
- package/dist/ErrorAlert.d.ts.map +1 -1
- package/dist/ErrorAlert.js +1 -1
- package/dist/ErrorAlert.js.map +1 -1
- package/dist/ErrorBoundary.js +1 -1
- package/dist/FontSizeSelector/FontSizeSelector.d.ts +1 -1
- 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/FontSizeSelector/index.js +1 -1
- package/dist/FontSizeSelector/index.js.map +1 -1
- package/dist/FormEditor/FormActions.d.ts +3 -3
- package/dist/FormEditor/FormActions.d.ts.map +1 -1
- package/dist/FormEditor/FormActions.js +2 -2
- package/dist/FormEditor/FormActions.js.map +1 -1
- package/dist/FormEditor/index.js +1 -1
- package/dist/FormEditor/index.js.map +1 -1
- package/dist/FormatControls/FormatControls.d.ts +2 -2
- package/dist/FormatControls/FormatControls.d.ts.map +1 -1
- package/dist/FormatControls/FormatControls.js +6 -6
- package/dist/FormatControls/FormatControls.js.map +1 -1
- package/dist/FormatControls/UnitSelector.d.ts +2 -2
- package/dist/FormatControls/UnitSelector.d.ts.map +1 -1
- package/dist/FormatControls/UnitSelector.js +35 -6
- package/dist/FormatControls/UnitSelector.js.map +1 -1
- package/dist/FormatControls/index.js +2 -2
- package/dist/FormatControls/index.js.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.d.ts +1 -1
- package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.js +2 -2
- package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
- package/dist/InfoTooltip/index.js +1 -1
- package/dist/InfoTooltip/index.js.map +1 -1
- package/dist/JSONEditor.d.ts +2 -2
- package/dist/JSONEditor.d.ts.map +1 -1
- package/dist/JSONEditor.js +5 -5
- package/dist/JSONEditor.js.map +1 -1
- package/dist/Legend/CompactLegend.d.ts +3 -3
- package/dist/Legend/CompactLegend.d.ts.map +1 -1
- package/dist/Legend/CompactLegend.js +3 -3
- package/dist/Legend/CompactLegend.js.map +1 -1
- package/dist/Legend/Legend.d.ts +4 -4
- package/dist/Legend/Legend.d.ts.map +1 -1
- package/dist/Legend/Legend.js +6 -6
- package/dist/Legend/Legend.js.map +1 -1
- package/dist/Legend/LegendColorBadge.d.ts +1 -1
- package/dist/Legend/LegendColorBadge.d.ts.map +1 -1
- package/dist/Legend/LegendColorBadge.js +4 -4
- package/dist/Legend/LegendColorBadge.js.map +1 -1
- package/dist/Legend/ListLegend.d.ts +3 -3
- package/dist/Legend/ListLegend.d.ts.map +1 -1
- package/dist/Legend/ListLegend.js +3 -3
- package/dist/Legend/ListLegend.js.map +1 -1
- package/dist/Legend/ListLegendItem.d.ts +3 -3
- package/dist/Legend/ListLegendItem.d.ts.map +1 -1
- package/dist/Legend/ListLegendItem.js +5 -5
- package/dist/Legend/ListLegendItem.js.map +1 -1
- package/dist/Legend/TableLegend.d.ts +3 -3
- package/dist/Legend/TableLegend.d.ts.map +1 -1
- package/dist/Legend/TableLegend.js +3 -3
- package/dist/Legend/TableLegend.js.map +1 -1
- package/dist/Legend/index.js +2 -2
- package/dist/Legend/index.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/LinksEditor/LinkEditorForm.d.ts +1 -1
- package/dist/LinksEditor/LinkEditorForm.d.ts.map +1 -1
- package/dist/LinksEditor/LinkEditorForm.js +2 -2
- package/dist/LinksEditor/LinkEditorForm.js.map +1 -1
- package/dist/LinksEditor/index.js +1 -1
- package/dist/LinksEditor/index.js.map +1 -1
- package/dist/ModeSelector/ModeSelector.d.ts +1 -1
- 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/ModeSelector/index.js +1 -1
- package/dist/ModeSelector/index.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts +2 -2
- package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorControl.js +6 -6
- package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts +2 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.js +2 -2
- package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
- package/dist/OptionsEditorLayout/index.js +4 -4
- package/dist/OptionsEditorLayout/index.js.map +1 -1
- package/dist/Overlay/Overlay.d.ts +2 -2
- package/dist/Overlay/Overlay.d.ts.map +1 -1
- package/dist/Overlay/Overlay.js +2 -2
- package/dist/Overlay/Overlay.js.map +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Overlay/index.js.map +1 -1
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts +3 -3
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts.map +1 -1
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +2 -2
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
- package/dist/RefreshIntervalPicker/index.js +1 -1
- package/dist/RefreshIntervalPicker/index.js.map +1 -1
- package/dist/RepeatGrid/RepeatGrid.d.ts +2 -2
- package/dist/RepeatGrid/RepeatGrid.d.ts.map +1 -1
- package/dist/RepeatGrid/RepeatGrid.js +3 -3
- package/dist/RepeatGrid/RepeatGrid.js.map +1 -1
- package/dist/RepeatGrid/index.js +1 -1
- package/dist/RepeatGrid/index.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 +2 -2
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
- package/dist/SettingsAutocomplete/index.js +1 -1
- package/dist/SettingsAutocomplete/index.js.map +1 -1
- package/dist/SortSelector/SortSelector.d.ts +1 -1
- 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 +3 -3
- package/dist/SortSelector/SortSelectorButtons.d.ts.map +1 -1
- package/dist/SortSelector/SortSelectorButtons.js +2 -2
- package/dist/SortSelector/SortSelectorButtons.js.map +1 -1
- package/dist/SortSelector/index.js +2 -2
- package/dist/SortSelector/index.js.map +1 -1
- package/dist/Table/InnerTable.d.ts +2 -2
- package/dist/Table/InnerTable.d.ts.map +1 -1
- package/dist/Table/InnerTable.js +3 -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 +7 -7
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/TableBody.d.ts +1 -1
- package/dist/Table/TableBody.d.ts.map +1 -1
- package/dist/Table/TableBody.js +3 -3
- package/dist/Table/TableBody.js.map +1 -1
- package/dist/Table/TableCell.d.ts +3 -3
- package/dist/Table/TableCell.d.ts.map +1 -1
- package/dist/Table/TableCell.js +5 -5
- package/dist/Table/TableCell.js.map +1 -1
- package/dist/Table/TableCheckbox.d.ts +3 -3
- package/dist/Table/TableCheckbox.d.ts.map +1 -1
- package/dist/Table/TableCheckbox.js +2 -2
- package/dist/Table/TableCheckbox.js.map +1 -1
- package/dist/Table/TableFoot.d.ts +1 -1
- package/dist/Table/TableFoot.d.ts.map +1 -1
- package/dist/Table/TableFoot.js +3 -3
- package/dist/Table/TableFoot.js.map +1 -1
- package/dist/Table/TableHead.d.ts +1 -1
- package/dist/Table/TableHead.d.ts.map +1 -1
- package/dist/Table/TableHead.js +3 -3
- package/dist/Table/TableHead.js.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 +2 -2
- package/dist/Table/TableHeaderCell.js.map +1 -1
- package/dist/Table/TableRow.d.ts +2 -2
- package/dist/Table/TableRow.d.ts.map +1 -1
- package/dist/Table/TableRow.js +3 -3
- package/dist/Table/TableRow.js.map +1 -1
- package/dist/Table/TableToolbar.d.ts +2 -2
- package/dist/Table/TableToolbar.d.ts.map +1 -1
- package/dist/Table/TableToolbar.js +8 -8
- package/dist/Table/TableToolbar.js.map +1 -1
- package/dist/Table/VirtualizedTable.d.ts +4 -4
- package/dist/Table/VirtualizedTable.d.ts.map +1 -1
- package/dist/Table/VirtualizedTable.js +14 -14
- package/dist/Table/VirtualizedTable.js.map +1 -1
- package/dist/Table/VirtualizedTableContainer.d.ts +1 -1
- package/dist/Table/VirtualizedTableContainer.d.ts.map +1 -1
- package/dist/Table/VirtualizedTableContainer.js +4 -4
- package/dist/Table/VirtualizedTableContainer.js.map +1 -1
- package/dist/Table/hooks/useFuzzySearch.d.ts +3 -3
- package/dist/Table/hooks/useFuzzySearch.d.ts.map +1 -1
- package/dist/Table/hooks/useFuzzySearch.js +3 -3
- package/dist/Table/hooks/useFuzzySearch.js.map +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.d.ts +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.d.ts.map +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.js +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts +3 -3
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
- package/dist/Table/index.js +2 -2
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/model/table-model.d.ts +5 -5
- package/dist/Table/model/table-model.d.ts.map +1 -1
- 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 +4 -4
- 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 +10 -10
- package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
- package/dist/ThresholdsEditor/index.js +1 -1
- package/dist/ThresholdsEditor/index.js.map +1 -1
- package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts +2 -2
- package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/TimeRangeSelector/DateTimeRangePicker.js +8 -8
- package/dist/TimeRangeSelector/DateTimeRangePicker.js.map +1 -1
- package/dist/TimeRangeSelector/TimeRangeSelector.d.ts +4 -4
- package/dist/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
- package/dist/TimeRangeSelector/TimeRangeSelector.js +11 -11
- package/dist/TimeRangeSelector/TimeRangeSelector.js.map +1 -1
- package/dist/TimeRangeSelector/index.js +2 -2
- package/dist/TimeRangeSelector/index.js.map +1 -1
- package/dist/TimeRangeSelector/utils.d.ts +1 -1
- package/dist/TimeRangeSelector/utils.d.ts.map +1 -1
- package/dist/TimeRangeSelector/utils.js +3 -3
- package/dist/TimeRangeSelector/utils.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.d.ts +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.js +4 -4
- package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +2 -2
- 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 +3 -3
- package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
- package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts +5 -5
- package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js +8 -8
- 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 +3 -3
- package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.d.ts +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.js +6 -6
- package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
- package/dist/TimeSeriesTooltip/index.js +10 -10
- package/dist/TimeSeriesTooltip/index.js.map +1 -1
- package/dist/TimeSeriesTooltip/nearby-series.d.ts +5 -5
- package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/nearby-series.js +4 -4
- package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.js +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
- package/dist/TimeSeriesTooltip/utils.d.ts +4 -4
- package/dist/TimeSeriesTooltip/utils.d.ts.map +1 -1
- package/dist/TimeSeriesTooltip/utils.js +1 -1
- package/dist/TimeSeriesTooltip/utils.js.map +1 -1
- package/dist/TimeZoneSelector.d.ts +3 -3
- package/dist/TimeZoneSelector.d.ts.map +1 -1
- package/dist/TimeZoneSelector.js +4 -4
- package/dist/TimeZoneSelector.js.map +1 -1
- package/dist/ToolbarIconButton/ToolbarIconButton.d.ts +1 -1
- package/dist/ToolbarIconButton/ToolbarIconButton.d.ts.map +1 -1
- package/dist/ToolbarIconButton/ToolbarIconButton.js +3 -3
- package/dist/ToolbarIconButton/ToolbarIconButton.js.map +1 -1
- package/dist/ToolbarIconButton/index.js +1 -1
- package/dist/ToolbarIconButton/index.js.map +1 -1
- package/dist/TransformsEditor/TransformEditor.d.ts +3 -3
- package/dist/TransformsEditor/TransformEditor.d.ts.map +1 -1
- package/dist/TransformsEditor/TransformEditor.js +3 -3
- package/dist/TransformsEditor/TransformEditor.js.map +1 -1
- package/dist/TransformsEditor/TransformEditorContainer.d.ts +2 -2
- package/dist/TransformsEditor/TransformEditorContainer.d.ts.map +1 -1
- package/dist/TransformsEditor/TransformEditorContainer.js +8 -8
- package/dist/TransformsEditor/TransformEditorContainer.js.map +1 -1
- package/dist/TransformsEditor/TransformsEditor.d.ts +3 -3
- package/dist/TransformsEditor/TransformsEditor.d.ts.map +1 -1
- package/dist/TransformsEditor/TransformsEditor.js +5 -5
- package/dist/TransformsEditor/TransformsEditor.js.map +1 -1
- package/dist/TransformsEditor/index.js +1 -1
- package/dist/TransformsEditor/index.js.map +1 -1
- package/dist/ValueMappingEditor/ValueMappingEditor.d.ts +3 -3
- package/dist/ValueMappingEditor/ValueMappingEditor.d.ts.map +1 -1
- package/dist/ValueMappingEditor/ValueMappingEditor.js +5 -5
- package/dist/ValueMappingEditor/ValueMappingEditor.js.map +1 -1
- package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts +2 -2
- package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts.map +1 -1
- package/dist/ValueMappingEditor/ValueMappingsEditor.js +4 -4
- package/dist/ValueMappingEditor/ValueMappingsEditor.js.map +1 -1
- package/dist/ValueMappingEditor/index.js +1 -1
- package/dist/ValueMappingEditor/index.js.map +1 -1
- package/dist/YAxisLabel.d.ts +1 -1
- package/dist/YAxisLabel.d.ts.map +1 -1
- package/dist/YAxisLabel.js +1 -1
- package/dist/YAxisLabel.js.map +1 -1
- package/dist/context/ChartsProvider.d.ts +4 -3
- package/dist/context/ChartsProvider.d.ts.map +1 -1
- package/dist/context/ChartsProvider.js +2 -2
- package/dist/context/ChartsProvider.js.map +1 -1
- package/dist/context/ItemActionsProvider.d.ts +1 -1
- package/dist/context/ItemActionsProvider.d.ts.map +1 -1
- package/dist/context/ItemActionsProvider.js +2 -2
- package/dist/context/ItemActionsProvider.js.map +1 -1
- package/dist/context/SelectionProvider.d.ts +1 -1
- package/dist/context/SelectionProvider.d.ts.map +1 -1
- package/dist/context/SelectionProvider.js +2 -2
- package/dist/context/SelectionProvider.js.map +1 -1
- package/dist/context/SnackbarProvider.d.ts +2 -1
- package/dist/context/SnackbarProvider.d.ts.map +1 -1
- package/dist/context/SnackbarProvider.js +3 -3
- package/dist/context/SnackbarProvider.js.map +1 -1
- package/dist/context/TimeZoneProvider.d.ts +2 -1
- package/dist/context/TimeZoneProvider.d.ts.map +1 -1
- package/dist/context/TimeZoneProvider.js +3 -3
- package/dist/context/TimeZoneProvider.js.map +1 -1
- package/dist/context/index.js +5 -5
- package/dist/context/index.js.map +1 -1
- package/dist/controls/TextField.d.ts +1 -1
- package/dist/controls/TextField.d.ts.map +1 -1
- package/dist/controls/TextField.js +4 -4
- package/dist/controls/TextField.js.map +1 -1
- package/dist/controls/index.js +1 -1
- package/dist/controls/index.js.map +1 -1
- package/dist/index.js +39 -39
- package/dist/index.js.map +1 -1
- package/dist/model/action.d.ts +1 -1
- package/dist/model/action.d.ts.map +1 -1
- package/dist/model/action.js.map +1 -1
- package/dist/model/bits.d.ts +1 -1
- package/dist/model/bits.d.ts.map +1 -1
- package/dist/model/bits.js +4 -4
- package/dist/model/bits.js.map +1 -1
- package/dist/model/bytes.d.ts +1 -1
- package/dist/model/bytes.d.ts.map +1 -1
- package/dist/model/bytes.js +4 -4
- package/dist/model/bytes.js.map +1 -1
- package/dist/model/currency.d.ts +1 -1
- package/dist/model/currency.d.ts.map +1 -1
- package/dist/model/currency.js +4 -4
- package/dist/model/currency.js.map +1 -1
- package/dist/model/date.d.ts +1 -1
- package/dist/model/date.d.ts.map +1 -1
- package/dist/model/date.js.map +1 -1
- package/dist/model/decimal.d.ts +1 -1
- package/dist/model/decimal.d.ts.map +1 -1
- package/dist/model/decimal.js +3 -3
- package/dist/model/decimal.js.map +1 -1
- package/dist/model/graph.d.ts +3 -3
- package/dist/model/graph.d.ts.map +1 -1
- package/dist/model/graph.js.map +1 -1
- package/dist/model/index.js +21 -21
- package/dist/model/index.js.map +1 -1
- package/dist/model/percent.d.ts +1 -1
- package/dist/model/percent.d.ts.map +1 -1
- package/dist/model/percent.js +3 -3
- package/dist/model/percent.js.map +1 -1
- package/dist/model/temperature.d.ts +1 -1
- package/dist/model/temperature.d.ts.map +1 -1
- package/dist/model/temperature.js +3 -3
- package/dist/model/temperature.js.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/throughput.d.ts +1 -1
- package/dist/model/throughput.d.ts.map +1 -1
- package/dist/model/throughput.js +5 -5
- package/dist/model/throughput.js.map +1 -1
- package/dist/model/time.d.ts +1 -1
- package/dist/model/time.d.ts.map +1 -1
- package/dist/model/time.js +3 -3
- package/dist/model/time.js.map +1 -1
- package/dist/model/timeOption.d.ts +1 -1
- package/dist/model/timeOption.d.ts.map +1 -1
- package/dist/model/timeOption.js +2 -2
- package/dist/model/timeOption.js.map +1 -1
- package/dist/model/types.d.ts +3 -3
- package/dist/model/types.d.ts.map +1 -1
- package/dist/model/types.js.map +1 -1
- package/dist/model/units.d.ts +10 -10
- package/dist/model/units.d.ts.map +1 -1
- package/dist/model/units.js +9 -9
- package/dist/model/units.js.map +1 -1
- package/dist/test/index.js +1 -1
- package/dist/test/index.js.map +1 -1
- package/dist/test/render.d.ts +2 -2
- package/dist/test/render.d.ts.map +1 -1
- package/dist/test/render.js +2 -2
- package/dist/test/render.js.map +1 -1
- package/dist/test/setup-tests.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/test-utils/index.js.map +1 -1
- package/dist/test-utils/theme.d.ts +2 -2
- package/dist/test-utils/theme.d.ts.map +1 -1
- package/dist/test-utils/theme.js +2 -2
- package/dist/test-utils/theme.js.map +1 -1
- package/dist/theme/component-overrides/alert.d.ts +1 -1
- package/dist/theme/component-overrides/alert.d.ts.map +1 -1
- package/dist/theme/component-overrides/alert.js +1 -1
- package/dist/theme/component-overrides/alert.js.map +1 -1
- package/dist/theme/component-overrides/paper.d.ts +1 -1
- package/dist/theme/component-overrides/paper.d.ts.map +1 -1
- package/dist/theme/component-overrides/paper.js.map +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +2 -2
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/palette/background.d.ts +1 -1
- package/dist/theme/palette/background.d.ts.map +1 -1
- package/dist/theme/palette/background.js +1 -1
- package/dist/theme/palette/background.js.map +1 -1
- package/dist/theme/palette/colors/blue.d.ts +1 -1
- package/dist/theme/palette/colors/blue.d.ts.map +1 -1
- package/dist/theme/palette/colors/blue.js.map +1 -1
- package/dist/theme/palette/colors/green.d.ts +1 -1
- package/dist/theme/palette/colors/green.d.ts.map +1 -1
- package/dist/theme/palette/colors/green.js.map +1 -1
- package/dist/theme/palette/colors/grey.d.ts +1 -1
- package/dist/theme/palette/colors/grey.d.ts.map +1 -1
- package/dist/theme/palette/colors/grey.js.map +1 -1
- package/dist/theme/palette/colors/index.js +8 -8
- package/dist/theme/palette/colors/index.js.map +1 -1
- package/dist/theme/palette/colors/orange.d.ts +1 -1
- package/dist/theme/palette/colors/orange.d.ts.map +1 -1
- package/dist/theme/palette/colors/orange.js.map +1 -1
- package/dist/theme/palette/colors/purple.d.ts +1 -1
- package/dist/theme/palette/colors/purple.d.ts.map +1 -1
- package/dist/theme/palette/colors/purple.js.map +1 -1
- package/dist/theme/palette/colors/red.d.ts +1 -1
- package/dist/theme/palette/colors/red.d.ts.map +1 -1
- package/dist/theme/palette/colors/red.js.map +1 -1
- package/dist/theme/palette/error.d.ts +1 -1
- package/dist/theme/palette/error.d.ts.map +1 -1
- package/dist/theme/palette/error.js +1 -1
- package/dist/theme/palette/error.js.map +1 -1
- package/dist/theme/palette/grey.d.ts +1 -1
- package/dist/theme/palette/grey.d.ts.map +1 -1
- package/dist/theme/palette/grey.js +1 -1
- package/dist/theme/palette/grey.js.map +1 -1
- package/dist/theme/palette/index.js +1 -1
- package/dist/theme/palette/index.js.map +1 -1
- package/dist/theme/palette/palette-options.d.ts +1 -1
- package/dist/theme/palette/palette-options.d.ts.map +1 -1
- package/dist/theme/palette/palette-options.js +10 -10
- package/dist/theme/palette/palette-options.js.map +1 -1
- package/dist/theme/palette/primary.d.ts +1 -1
- package/dist/theme/palette/primary.d.ts.map +1 -1
- package/dist/theme/palette/primary.js +1 -1
- package/dist/theme/palette/primary.js.map +1 -1
- package/dist/theme/palette/secondary.d.ts +1 -1
- package/dist/theme/palette/secondary.d.ts.map +1 -1
- package/dist/theme/palette/secondary.js +1 -1
- package/dist/theme/palette/secondary.js.map +1 -1
- package/dist/theme/palette/success.d.ts +1 -1
- package/dist/theme/palette/success.d.ts.map +1 -1
- package/dist/theme/palette/success.js +1 -1
- package/dist/theme/palette/success.js.map +1 -1
- package/dist/theme/palette/text.d.ts +1 -1
- package/dist/theme/palette/text.d.ts.map +1 -1
- package/dist/theme/palette/text.js +1 -1
- package/dist/theme/palette/text.js.map +1 -1
- package/dist/theme/palette/warning.d.ts +1 -1
- package/dist/theme/palette/warning.d.ts.map +1 -1
- package/dist/theme/palette/warning.js +1 -1
- package/dist/theme/palette/warning.js.map +1 -1
- package/dist/theme/theme.d.ts +2 -1
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +5 -5
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/types/ThemeExtension.d.js +2 -1
- package/dist/theme/types/ThemeExtension.d.js.map +1 -1
- package/dist/theme/typography.d.ts +1 -1
- package/dist/theme/typography.d.ts.map +1 -1
- package/dist/theme/typography.js +6 -6
- package/dist/theme/typography.js.map +1 -1
- package/dist/utils/axis.d.ts +1 -1
- package/dist/utils/axis.d.ts.map +1 -1
- package/dist/utils/axis.js +2 -2
- package/dist/utils/axis.js.map +1 -1
- package/dist/utils/browser-storage.js +1 -1
- package/dist/utils/chart-actions.d.ts +3 -3
- package/dist/utils/chart-actions.d.ts.map +1 -1
- package/dist/utils/chart-actions.js +1 -1
- package/dist/utils/chart-actions.js.map +1 -1
- package/dist/utils/combine-sx.d.ts +1 -1
- package/dist/utils/combine-sx.d.ts.map +1 -1
- package/dist/utils/combine-sx.js.map +1 -1
- package/dist/utils/component-ids.js +1 -1
- package/dist/utils/data-field-interpolation.js +1 -1
- package/dist/utils/data-field-interpolation.js.map +1 -1
- package/dist/utils/format.js +2 -2
- package/dist/utils/index.js +19 -19
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/mathjs.js +1 -1
- package/dist/utils/memo.d.ts +1 -1
- package/dist/utils/memo.d.ts.map +1 -1
- package/dist/utils/memo.js +2 -2
- package/dist/utils/memo.js.map +1 -1
- package/dist/utils/request-interpolation.d.ts +2 -2
- package/dist/utils/request-interpolation.d.ts.map +1 -1
- package/dist/utils/request-interpolation.js +2 -2
- package/dist/utils/request-interpolation.js.map +1 -1
- package/dist/utils/selection-interpolation.d.ts +2 -2
- package/dist/utils/selection-interpolation.d.ts.map +1 -1
- package/dist/utils/selection-interpolation.js +2 -2
- package/dist/utils/selection-interpolation.js.map +1 -1
- package/dist/utils/text.d.ts +1 -1
- package/dist/utils/text.d.ts.map +1 -1
- package/dist/utils/text.js.map +1 -1
- package/dist/utils/theme-gen.d.ts +2 -2
- package/dist/utils/theme-gen.d.ts.map +1 -1
- package/dist/utils/theme-gen.js +1 -1
- package/dist/utils/theme-gen.js.map +1 -1
- package/dist/utils/time-series-data.d.ts +1 -1
- package/dist/utils/time-series-data.d.ts.map +1 -1
- package/dist/utils/time-series-data.js +1 -1
- package/dist/utils/time-series-data.js.map +1 -1
- package/dist/utils/trace-data.d.ts +2 -2
- package/dist/utils/trace-data.d.ts.map +1 -1
- package/dist/utils/trace-data.js.map +1 -1
- package/dist/utils/transform-data.d.ts +1 -1
- package/dist/utils/transform-data.d.ts.map +1 -1
- package/dist/utils/transform-data.js.map +1 -1
- package/dist/utils/value-mapping.d.ts +1 -1
- package/dist/utils/value-mapping.d.ts.map +1 -1
- package/dist/utils/value-mapping.js +1 -1
- package/dist/utils/value-mapping.js.map +1 -1
- package/dist/utils/variable-interpolation.d.ts +9 -1
- package/dist/utils/variable-interpolation.d.ts.map +1 -1
- package/dist/utils/variable-interpolation.js +12 -0
- package/dist/utils/variable-interpolation.js.map +1 -1
- package/package.json +6 -6
- package/dist/cjs/AlignSelector/AlignSelector.js +0 -50
- package/dist/cjs/AlignSelector/index.js +0 -30
- package/dist/cjs/ColorPicker/ColorPicker.js +0 -106
- package/dist/cjs/ColorPicker/OptionsColorPicker.js +0 -92
- package/dist/cjs/ColorPicker/index.js +0 -31
- package/dist/cjs/ContentWithLegend/ContentWithLegend.js +0 -71
- package/dist/cjs/ContentWithLegend/index.js +0 -30
- package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +0 -122
- package/dist/cjs/DensitySelector/DensitySelector.js +0 -54
- package/dist/cjs/DensitySelector/index.js +0 -30
- package/dist/cjs/Dialog/Dialog.js +0 -102
- package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +0 -55
- package/dist/cjs/Dialog/index.js +0 -31
- package/dist/cjs/DragAndDrop/DragAndDropList.js +0 -159
- package/dist/cjs/DragAndDrop/DragButton.js +0 -123
- package/dist/cjs/DragAndDrop/DropIndicator.js +0 -52
- package/dist/cjs/DragAndDrop/index.js +0 -32
- package/dist/cjs/DragAndDrop/model.js +0 -25
- package/dist/cjs/Drawer/Drawer.js +0 -44
- package/dist/cjs/Drawer/index.js +0 -30
- package/dist/cjs/EChart/EChart.js +0 -203
- package/dist/cjs/EChart/index.js +0 -31
- package/dist/cjs/EChart/timezone-formatter.js +0 -49
- package/dist/cjs/ErrorAlert.js +0 -31
- package/dist/cjs/ErrorBoundary.js +0 -24
- package/dist/cjs/FontSizeSelector/FontSizeSelector.js +0 -132
- package/dist/cjs/FontSizeSelector/index.js +0 -30
- package/dist/cjs/FormEditor/FormActions.js +0 -83
- package/dist/cjs/FormEditor/index.js +0 -30
- package/dist/cjs/FormatControls/FormatControls.js +0 -119
- package/dist/cjs/FormatControls/UnitSelector.js +0 -55
- package/dist/cjs/FormatControls/index.js +0 -31
- package/dist/cjs/InfoTooltip/InfoTooltip.js +0 -86
- package/dist/cjs/InfoTooltip/index.js +0 -30
- package/dist/cjs/JSONEditor.js +0 -69
- package/dist/cjs/Legend/CompactLegend.js +0 -56
- package/dist/cjs/Legend/Legend.js +0 -131
- package/dist/cjs/Legend/LegendColorBadge.js +0 -39
- package/dist/cjs/Legend/ListLegend.js +0 -55
- package/dist/cjs/Legend/ListLegendItem.js +0 -85
- package/dist/cjs/Legend/TableLegend.js +0 -98
- package/dist/cjs/Legend/index.js +0 -31
- package/dist/cjs/Legend/legend-model.js +0 -27
- package/dist/cjs/LinksEditor/LinkEditorForm.js +0 -95
- package/dist/cjs/LinksEditor/index.js +0 -30
- package/dist/cjs/ModeSelector/ModeSelector.js +0 -51
- package/dist/cjs/ModeSelector/index.js +0 -30
- package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +0 -34
- package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +0 -95
- package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +0 -31
- package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +0 -59
- package/dist/cjs/OptionsEditorLayout/index.js +0 -33
- package/dist/cjs/Overlay/Overlay.js +0 -71
- package/dist/cjs/Overlay/index.js +0 -30
- package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +0 -68
- package/dist/cjs/RefreshIntervalPicker/index.js +0 -30
- package/dist/cjs/RepeatGrid/RepeatGrid.js +0 -76
- package/dist/cjs/RepeatGrid/index.js +0 -30
- package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +0 -82
- package/dist/cjs/SettingsAutocomplete/index.js +0 -30
- package/dist/cjs/SortSelector/SortSelector.js +0 -50
- package/dist/cjs/SortSelector/SortSelectorButtons.js +0 -50
- package/dist/cjs/SortSelector/index.js +0 -31
- package/dist/cjs/Table/InnerTable.js +0 -47
- package/dist/cjs/Table/Table.js +0 -222
- package/dist/cjs/Table/TableBody.js +0 -31
- package/dist/cjs/Table/TableCell.js +0 -153
- package/dist/cjs/Table/TableCheckbox.js +0 -57
- package/dist/cjs/Table/TableFoot.js +0 -31
- package/dist/cjs/Table/TableHead.js +0 -31
- package/dist/cjs/Table/TableHeaderCell.js +0 -93
- package/dist/cjs/Table/TableRow.js +0 -37
- package/dist/cjs/Table/TableToolbar.js +0 -151
- package/dist/cjs/Table/VirtualizedTable.js +0 -284
- package/dist/cjs/Table/VirtualizedTableContainer.js +0 -36
- package/dist/cjs/Table/hooks/useFuzzySearch.js +0 -67
- package/dist/cjs/Table/hooks/useTableKeyboardNav.js +0 -108
- package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +0 -89
- package/dist/cjs/Table/index.js +0 -31
- package/dist/cjs/Table/model/table-model.js +0 -138
- package/dist/cjs/ThresholdsEditor/ThresholdInput.js +0 -80
- package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +0 -282
- package/dist/cjs/ThresholdsEditor/index.js +0 -30
- package/dist/cjs/TimeRangeSelector/DateTimeRangePicker.js +0 -204
- package/dist/cjs/TimeRangeSelector/TimeRangeSelector.js +0 -271
- package/dist/cjs/TimeRangeSelector/index.js +0 -31
- package/dist/cjs/TimeRangeSelector/utils.js +0 -72
- package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +0 -98
- package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +0 -107
- package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +0 -41
- package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +0 -113
- package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +0 -58
- package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +0 -168
- package/dist/cjs/TimeSeriesTooltip/index.js +0 -39
- package/dist/cjs/TimeSeriesTooltip/nearby-series.js +0 -454
- package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +0 -148
- package/dist/cjs/TimeSeriesTooltip/types.js +0 -16
- package/dist/cjs/TimeSeriesTooltip/utils.js +0 -199
- package/dist/cjs/TimeZoneSelector.js +0 -66
- package/dist/cjs/ToolbarIconButton/ToolbarIconButton.js +0 -40
- package/dist/cjs/ToolbarIconButton/index.js +0 -30
- package/dist/cjs/TransformsEditor/TransformEditor.js +0 -297
- package/dist/cjs/TransformsEditor/TransformEditorContainer.js +0 -131
- package/dist/cjs/TransformsEditor/TransformsEditor.js +0 -103
- package/dist/cjs/TransformsEditor/index.js +0 -30
- package/dist/cjs/ValueMappingEditor/ValueMappingEditor.js +0 -387
- package/dist/cjs/ValueMappingEditor/ValueMappingsEditor.js +0 -131
- package/dist/cjs/ValueMappingEditor/index.js +0 -30
- package/dist/cjs/YAxisLabel.js +0 -50
- package/dist/cjs/context/ChartsProvider.js +0 -114
- package/dist/cjs/context/ItemActionsProvider.js +0 -111
- package/dist/cjs/context/SelectionProvider.js +0 -128
- package/dist/cjs/context/SnackbarProvider.js +0 -126
- package/dist/cjs/context/TimeZoneProvider.js +0 -98
- package/dist/cjs/context/index.js +0 -34
- package/dist/cjs/controls/TextField.js +0 -54
- package/dist/cjs/controls/index.js +0 -30
- package/dist/cjs/index.js +0 -68
- package/dist/cjs/model/action.js +0 -43
- package/dist/cjs/model/bits.js +0 -113
- package/dist/cjs/model/bytes.js +0 -115
- package/dist/cjs/model/constants.js +0 -23
- package/dist/cjs/model/currency.js +0 -126
- package/dist/cjs/model/date.js +0 -297
- package/dist/cjs/model/decimal.js +0 -72
- package/dist/cjs/model/formatterCache.js +0 -120
- package/dist/cjs/model/graph.js +0 -59
- package/dist/cjs/model/index.js +0 -50
- package/dist/cjs/model/legend.js +0 -101
- package/dist/cjs/model/percent.js +0 -82
- package/dist/cjs/model/temperature.js +0 -72
- package/dist/cjs/model/theme.js +0 -16
- package/dist/cjs/model/thresholds.js +0 -16
- package/dist/cjs/model/throughput.js +0 -161
- package/dist/cjs/model/time.js +0 -178
- package/dist/cjs/model/timeOption.js +0 -34
- package/dist/cjs/model/timeZoneOption.js +0 -34
- package/dist/cjs/model/transforms.js +0 -29
- package/dist/cjs/model/types.js +0 -16
- package/dist/cjs/model/units.js +0 -186
- package/dist/cjs/model/utils.js +0 -48
- package/dist/cjs/model/value-mapping.js +0 -16
- package/dist/cjs/test/index.js +0 -30
- package/dist/cjs/test/render.js +0 -38
- package/dist/cjs/test/setup-tests.js +0 -26
- package/dist/cjs/test-utils/index.js +0 -30
- package/dist/cjs/test-utils/theme.js +0 -61
- package/dist/cjs/theme/component-overrides/alert.js +0 -104
- package/dist/cjs/theme/component-overrides/paper.js +0 -29
- package/dist/cjs/theme/index.js +0 -31
- package/dist/cjs/theme/palette/background.js +0 -46
- package/dist/cjs/theme/palette/colors/blue.js +0 -37
- package/dist/cjs/theme/palette/colors/common.js +0 -32
- package/dist/cjs/theme/palette/colors/green.js +0 -37
- package/dist/cjs/theme/palette/colors/grey.js +0 -37
- package/dist/cjs/theme/palette/colors/index.js +0 -37
- package/dist/cjs/theme/palette/colors/orange.js +0 -37
- package/dist/cjs/theme/palette/colors/purple.js +0 -37
- package/dist/cjs/theme/palette/colors/red.js +0 -37
- package/dist/cjs/theme/palette/colors/types.js +0 -16
- package/dist/cjs/theme/palette/error.js +0 -34
- package/dist/cjs/theme/palette/grey.js +0 -50
- package/dist/cjs/theme/palette/index.js +0 -30
- package/dist/cjs/theme/palette/palette-options.js +0 -61
- package/dist/cjs/theme/palette/primary.js +0 -34
- package/dist/cjs/theme/palette/secondary.js +0 -34
- package/dist/cjs/theme/palette/success.js +0 -34
- package/dist/cjs/theme/palette/text.js +0 -44
- package/dist/cjs/theme/palette/warning.js +0 -34
- package/dist/cjs/theme/theme.js +0 -90
- package/dist/cjs/theme/types/ThemeExtension.d.js +0 -17
- package/dist/cjs/theme/typography.js +0 -99
- package/dist/cjs/utils/axis.js +0 -122
- package/dist/cjs/utils/browser-storage.js +0 -62
- package/dist/cjs/utils/chart-actions.js +0 -180
- package/dist/cjs/utils/combine-sx.js +0 -31
- package/dist/cjs/utils/component-ids.js +0 -33
- package/dist/cjs/utils/data-field-interpolation.js +0 -230
- package/dist/cjs/utils/format.js +0 -132
- package/dist/cjs/utils/index.js +0 -48
- package/dist/cjs/utils/mathjs.js +0 -38
- package/dist/cjs/utils/memo.js +0 -64
- package/dist/cjs/utils/regexp.js +0 -54
- package/dist/cjs/utils/request-interpolation.js +0 -99
- package/dist/cjs/utils/selection-interpolation.js +0 -69
- package/dist/cjs/utils/text.js +0 -52
- package/dist/cjs/utils/theme-gen.js +0 -274
- package/dist/cjs/utils/time-series-data.js +0 -141
- package/dist/cjs/utils/trace-data.js +0 -25
- package/dist/cjs/utils/transform-data.js +0 -157
- package/dist/cjs/utils/types.js +0 -16
- package/dist/cjs/utils/value-mapping.js +0 -105
- package/dist/cjs/utils/variable-interpolation.js +0 -198
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// Copyright 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, "useVirtualizedTableKeyboardNav", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return useVirtualizedTableKeyboardNav;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _useTableKeyboardNav = require("./useTableKeyboardNav");
|
|
24
|
-
function useVirtualizedTableKeyboardNav({ visibleRange, virtualTable, maxRows, maxColumns }) {
|
|
25
|
-
const baseKeyboard = (0, _useTableKeyboardNav.useTableKeyboardNav)({
|
|
26
|
-
maxRows,
|
|
27
|
-
maxColumns,
|
|
28
|
-
onActiveCellChange: (e, currentPosition, defaultNewPosition)=>{
|
|
29
|
-
const key = e.key;
|
|
30
|
-
const defaultValueChanged = defaultNewPosition && (currentPosition.column !== defaultNewPosition.column || currentPosition.row !== defaultNewPosition.row);
|
|
31
|
-
const nextRow = defaultNewPosition?.row ?? currentPosition.row;
|
|
32
|
-
if (key === 'ArrowDown' && defaultValueChanged) {
|
|
33
|
-
// Use default cell position. Shift the virtual table scroll position
|
|
34
|
-
// when needed to make the active cell visible.
|
|
35
|
-
if (nextRow - 1 < visibleRange.current.startIndex || nextRow - 1 > visibleRange.current.endIndex) {
|
|
36
|
-
virtualTable.current?.scrollToIndex({
|
|
37
|
-
index: nextRow - 1,
|
|
38
|
-
align: 'end'
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
} else if (key === 'ArrowUp' && defaultValueChanged) {
|
|
42
|
-
// Use default cell position. Shift the virtual table scroll position
|
|
43
|
-
// when needed to make the active cell visible.
|
|
44
|
-
if (nextRow - 1 < visibleRange.current.startIndex || nextRow - 1 > visibleRange.current.endIndex) {
|
|
45
|
-
virtualTable.current?.scrollToIndex({
|
|
46
|
-
index: nextRow - 1,
|
|
47
|
-
align: 'start'
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
} else if (defaultValueChanged && (key === 'Home' || key === 'End')) {
|
|
51
|
-
// Use default cell position. Shift the virtual table scroll position
|
|
52
|
-
// when needed to make the active cell visible.
|
|
53
|
-
virtualTable.current?.scrollToIndex({
|
|
54
|
-
index: Math.max(nextRow - 1, 0),
|
|
55
|
-
align: 'start'
|
|
56
|
-
});
|
|
57
|
-
} else if (key === 'PageDown') {
|
|
58
|
-
// Full handling of logic for `PageDown` because there is no default.
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
let nextRow = currentPosition.row;
|
|
61
|
-
// Add 1 to account for header
|
|
62
|
-
nextRow = Math.min(maxRows - 1, visibleRange.current.endIndex + 1);
|
|
63
|
-
virtualTable.current?.scrollToIndex({
|
|
64
|
-
index: nextRow - 1,
|
|
65
|
-
align: 'start'
|
|
66
|
-
});
|
|
67
|
-
return {
|
|
68
|
-
row: nextRow,
|
|
69
|
-
column: currentPosition.column
|
|
70
|
-
};
|
|
71
|
-
} else if (key === 'PageUp') {
|
|
72
|
-
// Full handling of logic for `PageUp` because there is no default.
|
|
73
|
-
let nextRow = currentPosition.row;
|
|
74
|
-
// Minus 1 to account for header
|
|
75
|
-
nextRow = Math.max(0, visibleRange.current.startIndex - 1);
|
|
76
|
-
virtualTable.current?.scrollToIndex({
|
|
77
|
-
index: nextRow - 1,
|
|
78
|
-
align: 'end'
|
|
79
|
-
});
|
|
80
|
-
return {
|
|
81
|
-
row: nextRow,
|
|
82
|
-
column: currentPosition.column
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
return defaultNewPosition;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
return baseKeyboard;
|
|
89
|
-
}
|
package/dist/cjs/Table/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright 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("./Table"), exports);
|
|
18
|
-
_export_star(require("./model/table-model"), exports);
|
|
19
|
-
function _export_star(from, to) {
|
|
20
|
-
Object.keys(from).forEach(function(k) {
|
|
21
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
22
|
-
Object.defineProperty(to, k, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function() {
|
|
25
|
-
return from[k];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return from;
|
|
31
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
// Copyright 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
|
-
function _export(target, all) {
|
|
18
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get DEFAULT_COLUMN_HEIGHT () {
|
|
25
|
-
return DEFAULT_COLUMN_HEIGHT;
|
|
26
|
-
},
|
|
27
|
-
get DEFAULT_COLUMN_MAX_WIDTH () {
|
|
28
|
-
return DEFAULT_COLUMN_MAX_WIDTH;
|
|
29
|
-
},
|
|
30
|
-
get DEFAULT_COLUMN_MIN_WIDTH () {
|
|
31
|
-
return DEFAULT_COLUMN_MIN_WIDTH;
|
|
32
|
-
},
|
|
33
|
-
get DEFAULT_COLUMN_WIDTH () {
|
|
34
|
-
return DEFAULT_COLUMN_WIDTH;
|
|
35
|
-
},
|
|
36
|
-
get getTableCellLayout () {
|
|
37
|
-
return getTableCellLayout;
|
|
38
|
-
},
|
|
39
|
-
get persesColumnsToTanstackColumns () {
|
|
40
|
-
return persesColumnsToTanstackColumns;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
const DEFAULT_COLUMN_WIDTH = 150;
|
|
44
|
-
const DEFAULT_COLUMN_MIN_WIDTH = 60;
|
|
45
|
-
const DEFAULT_COLUMN_MAX_WIDTH = 1000;
|
|
46
|
-
const DEFAULT_COLUMN_HEIGHT = 40;
|
|
47
|
-
function calculateTableCellHeight(lineHeight, paddingY) {
|
|
48
|
-
// Doing a bunch of math to enforce height to avoid weirdness with mismatched
|
|
49
|
-
// heights based on customization of cell contents.
|
|
50
|
-
const lineHeightNum = typeof lineHeight === 'string' ? parseInt(lineHeight, 10) : lineHeight ?? 0;
|
|
51
|
-
const verticalPaddingNum = typeof paddingY === 'string' ? parseInt(paddingY, 10) : paddingY;
|
|
52
|
-
return lineHeightNum + verticalPaddingNum * 2;
|
|
53
|
-
}
|
|
54
|
-
function getTableCellLayout(theme, density, { isHeader, isLastColumn, isFirstColumn, defaultColumnHeight } = {}) {
|
|
55
|
-
// Density Standard
|
|
56
|
-
let paddingY = theme.spacing(1);
|
|
57
|
-
let basePaddingX = theme.spacing(1.25);
|
|
58
|
-
let edgePaddingX = theme.spacing(2);
|
|
59
|
-
let paddingLeft = isFirstColumn ? edgePaddingX : basePaddingX;
|
|
60
|
-
let paddingRight = isLastColumn ? edgePaddingX : basePaddingX;
|
|
61
|
-
let lineHeight = theme.typography.body1.lineHeight;
|
|
62
|
-
let fontSize = theme.typography.body1.fontSize;
|
|
63
|
-
if (density === 'compact') {
|
|
64
|
-
paddingY = theme.spacing(0.5);
|
|
65
|
-
basePaddingX = theme.spacing(0.5);
|
|
66
|
-
edgePaddingX = theme.spacing(1);
|
|
67
|
-
paddingLeft = isFirstColumn ? edgePaddingX : basePaddingX;
|
|
68
|
-
paddingRight = isLastColumn ? edgePaddingX : basePaddingX;
|
|
69
|
-
lineHeight = theme.typography.body2.lineHeight;
|
|
70
|
-
fontSize = theme.typography.body2.fontSize;
|
|
71
|
-
}
|
|
72
|
-
if (density === 'comfortable') {
|
|
73
|
-
paddingY = theme.spacing(2);
|
|
74
|
-
basePaddingX = theme.spacing(1.5);
|
|
75
|
-
edgePaddingX = theme.spacing(2);
|
|
76
|
-
paddingLeft = isFirstColumn ? edgePaddingX : basePaddingX;
|
|
77
|
-
paddingRight = isLastColumn ? edgePaddingX : basePaddingX;
|
|
78
|
-
lineHeight = theme.typography.body1.lineHeight;
|
|
79
|
-
fontSize = theme.typography.body1.fontSize;
|
|
80
|
-
}
|
|
81
|
-
const height = isHeader || !defaultColumnHeight || defaultColumnHeight === 'auto' ? calculateTableCellHeight(lineHeight, paddingY) : defaultColumnHeight;
|
|
82
|
-
return {
|
|
83
|
-
padding: `${paddingY} ${paddingRight} ${paddingY} ${paddingLeft}`,
|
|
84
|
-
height: height,
|
|
85
|
-
fontSize: fontSize,
|
|
86
|
-
lineHeight: lineHeight
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function persesColumnsToTanstackColumns(columns, defaultColumnConfig) {
|
|
90
|
-
return columns.map(({ width, align, headerDescription, cellDescription, enableSorting, dataLink, enableResizing, ...otherProps })=>{
|
|
91
|
-
const isResizingEnabled = enableResizing ?? defaultColumnConfig?.enableResizing ?? false;
|
|
92
|
-
const sizeProps = width === 'auto' || width === undefined ? getDefaultSizeProps(isResizingEnabled, defaultColumnConfig?.minWidth, defaultColumnConfig?.maxWidth) : getUserProvidedSizeProps(isResizingEnabled, width, defaultColumnConfig?.minWidth, defaultColumnConfig?.maxWidth);
|
|
93
|
-
return {
|
|
94
|
-
...otherProps,
|
|
95
|
-
...sizeProps,
|
|
96
|
-
// Default sorting to false, so it is very explicitly set per column.
|
|
97
|
-
enableSorting: !!enableSorting,
|
|
98
|
-
enableResizing: isResizingEnabled,
|
|
99
|
-
// Open-ended store for extra metadata in TanStack Table, so you can bake
|
|
100
|
-
// in your own features.
|
|
101
|
-
meta: {
|
|
102
|
-
align,
|
|
103
|
-
headerDescription,
|
|
104
|
-
cellDescription,
|
|
105
|
-
dataLink
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function getUserProvidedSizeProps(isResizingEnabled, width, minWidth, maxWidth) {
|
|
111
|
-
// When resizing is enabled, we need to set min and max size to ensure the column can be resized within a reasonable range.
|
|
112
|
-
return isResizingEnabled ? {
|
|
113
|
-
size: width,
|
|
114
|
-
minSize: minWidth ?? DEFAULT_COLUMN_MIN_WIDTH,
|
|
115
|
-
maxSize: maxWidth ?? DEFAULT_COLUMN_MAX_WIDTH
|
|
116
|
-
} : {
|
|
117
|
-
size: width
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
function getDefaultSizeProps(isResizingEnabled, minWidth, maxWidth) {
|
|
121
|
-
return isResizingEnabled ? {
|
|
122
|
-
// When resizing is enabled, we need to set a default size for the column
|
|
123
|
-
// so that relative value can be calculated when resizing and column is visible.
|
|
124
|
-
size: DEFAULT_COLUMN_WIDTH,
|
|
125
|
-
minSize: minWidth ?? DEFAULT_COLUMN_MIN_WIDTH,
|
|
126
|
-
maxSize: maxWidth ?? DEFAULT_COLUMN_MAX_WIDTH
|
|
127
|
-
} : // the space in a table. We translate our custom "auto" setting to 0 size
|
|
128
|
-
// for these columns, so it is easy to fall back to auto when rendering.
|
|
129
|
-
// Taking from a recommendation in this github discussion:
|
|
130
|
-
// https://github.com/TanStack/table/discussions/4179#discussioncomment-3631326
|
|
131
|
-
{
|
|
132
|
-
// All zero values are used as shorthand for "auto" when rendering
|
|
133
|
-
// because it makes it easy to fall back. (e.g. `row.size || "auto"`)
|
|
134
|
-
size: 0,
|
|
135
|
-
minSize: 0,
|
|
136
|
-
maxSize: 0
|
|
137
|
-
};
|
|
138
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// Copyright 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, "ThresholdInput", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return ThresholdInput;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _material = require("@mui/material");
|
|
25
|
-
const _DeleteOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/DeleteOutline"));
|
|
26
|
-
const _react = require("react");
|
|
27
|
-
const _OptionsColorPicker = require("../ColorPicker/OptionsColorPicker");
|
|
28
|
-
function _interop_require_default(obj) {
|
|
29
|
-
return obj && obj.__esModule ? obj : {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function ThresholdInput({ inputRef, label, color, value, mode, onChange, onColorChange, onBlur, onDelete }) {
|
|
34
|
-
const [key, setKey] = (0, _react.useState)(0); // use key to cause input to lose focus when pressing enter
|
|
35
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
36
|
-
flex: 1,
|
|
37
|
-
direction: "row",
|
|
38
|
-
alignItems: "center",
|
|
39
|
-
justifyContent: "space-between",
|
|
40
|
-
spacing: 1,
|
|
41
|
-
children: [
|
|
42
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsColorPicker.OptionsColorPicker, {
|
|
43
|
-
label: label,
|
|
44
|
-
color: color,
|
|
45
|
-
onColorChange: onColorChange
|
|
46
|
-
}),
|
|
47
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormLabel, {
|
|
48
|
-
htmlFor: label,
|
|
49
|
-
children: label
|
|
50
|
-
}),
|
|
51
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
52
|
-
id: label,
|
|
53
|
-
inputRef: inputRef,
|
|
54
|
-
type: "number",
|
|
55
|
-
value: value === 0 ? '' : value,
|
|
56
|
-
placeholder: "0",
|
|
57
|
-
onChange: onChange,
|
|
58
|
-
onBlur: onBlur,
|
|
59
|
-
onKeyDown: (e)=>{
|
|
60
|
-
if (e.key === 'Enter') {
|
|
61
|
-
onBlur();
|
|
62
|
-
setKey(key + 1);
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
InputProps: {
|
|
66
|
-
endAdornment: mode === 'percent' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
67
|
-
paddingX: 1,
|
|
68
|
-
children: "%"
|
|
69
|
-
}) : undefined
|
|
70
|
-
}
|
|
71
|
-
}, key),
|
|
72
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
73
|
-
"aria-label": `delete threshold ${label}`,
|
|
74
|
-
size: "small",
|
|
75
|
-
onClick: onDelete,
|
|
76
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_DeleteOutline.default, {})
|
|
77
|
-
})
|
|
78
|
-
]
|
|
79
|
-
});
|
|
80
|
-
}
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
// Copyright 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, "ThresholdsEditor", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return ThresholdsEditor;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _material = require("@mui/material");
|
|
25
|
-
const _system = require("@mui/system");
|
|
26
|
-
const _immer = require("immer");
|
|
27
|
-
const _Plus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Plus"));
|
|
28
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
29
|
-
const _OptionsColorPicker = require("../ColorPicker/OptionsColorPicker");
|
|
30
|
-
const _ChartsProvider = require("../context/ChartsProvider");
|
|
31
|
-
const _InfoTooltip = require("../InfoTooltip");
|
|
32
|
-
const _OptionsEditorLayout = require("../OptionsEditorLayout");
|
|
33
|
-
const _ThresholdInput = require("./ThresholdInput");
|
|
34
|
-
function _interop_require_default(obj) {
|
|
35
|
-
return obj && obj.__esModule ? obj : {
|
|
36
|
-
default: obj
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
40
|
-
if (typeof WeakMap !== "function") return null;
|
|
41
|
-
var cacheBabelInterop = new WeakMap();
|
|
42
|
-
var cacheNodeInterop = new WeakMap();
|
|
43
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
44
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
45
|
-
})(nodeInterop);
|
|
46
|
-
}
|
|
47
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
48
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
49
|
-
return obj;
|
|
50
|
-
}
|
|
51
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
52
|
-
return {
|
|
53
|
-
default: obj
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
57
|
-
if (cache && cache.has(obj)) {
|
|
58
|
-
return cache.get(obj);
|
|
59
|
-
}
|
|
60
|
-
var newObj = {
|
|
61
|
-
__proto__: null
|
|
62
|
-
};
|
|
63
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
64
|
-
for(var key in obj){
|
|
65
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
66
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
67
|
-
if (desc && (desc.get || desc.set)) {
|
|
68
|
-
Object.defineProperty(newObj, key, desc);
|
|
69
|
-
} else {
|
|
70
|
-
newObj[key] = obj[key];
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
newObj.default = obj;
|
|
75
|
-
if (cache) {
|
|
76
|
-
cache.set(obj, newObj);
|
|
77
|
-
}
|
|
78
|
-
return newObj;
|
|
79
|
-
}
|
|
80
|
-
const DEFAULT_STEP = 10;
|
|
81
|
-
function ThresholdsEditor({ thresholds, onChange, hideDefault, disablePercentMode }) {
|
|
82
|
-
const chartsTheme = (0, _ChartsProvider.useChartsTheme)();
|
|
83
|
-
const { thresholds: { defaultColor, palette } } = chartsTheme;
|
|
84
|
-
const defaultThresholdColor = thresholds?.defaultColor ?? defaultColor;
|
|
85
|
-
const steps = thresholds?.steps;
|
|
86
|
-
// every time a new threshold is added, we want to focus the recently added input
|
|
87
|
-
const recentlyAddedInputRef = (0, _react.useRef)(null);
|
|
88
|
-
const focusRef = (0, _react.useRef)(false);
|
|
89
|
-
(0, _react.useEffect)(()=>{
|
|
90
|
-
if (!recentlyAddedInputRef.current || !focusRef.current) return;
|
|
91
|
-
recentlyAddedInputRef.current?.focus();
|
|
92
|
-
focusRef.current = false;
|
|
93
|
-
}, [
|
|
94
|
-
steps?.length
|
|
95
|
-
]);
|
|
96
|
-
const handleThresholdValueChange = (e, i)=>{
|
|
97
|
-
if (thresholds !== undefined) {
|
|
98
|
-
onChange((0, _immer.produce)(thresholds, (draft)=>{
|
|
99
|
-
const step = draft.steps?.[i];
|
|
100
|
-
if (step) {
|
|
101
|
-
step.value = Number(e.target.value);
|
|
102
|
-
}
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const handleThresholdColorChange = (color, i)=>{
|
|
107
|
-
if (thresholds !== undefined) {
|
|
108
|
-
onChange((0, _immer.produce)(thresholds, (draft)=>{
|
|
109
|
-
if (draft.steps !== undefined) {
|
|
110
|
-
const step = draft.steps[i];
|
|
111
|
-
if (step) {
|
|
112
|
-
step.color = color;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}));
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
const handleDefaultColorChange = (color)=>{
|
|
119
|
-
if (thresholds !== undefined) {
|
|
120
|
-
onChange((0, _immer.produce)(thresholds, (draft)=>{
|
|
121
|
-
draft.defaultColor = color;
|
|
122
|
-
}));
|
|
123
|
-
} else {
|
|
124
|
-
onChange({
|
|
125
|
-
defaultColor: color
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
// sort thresholds in ascending order every time an input blurs
|
|
130
|
-
const handleThresholdBlur = ()=>{
|
|
131
|
-
if (steps !== undefined) {
|
|
132
|
-
const sortedSteps = [
|
|
133
|
-
...steps
|
|
134
|
-
];
|
|
135
|
-
sortedSteps.sort((a, b)=>a.value - b.value);
|
|
136
|
-
if (thresholds !== undefined) {
|
|
137
|
-
onChange((0, _immer.produce)(thresholds, (draft)=>{
|
|
138
|
-
draft.steps = sortedSteps;
|
|
139
|
-
}));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const deleteThreshold = (i)=>{
|
|
144
|
-
if (thresholds !== undefined) {
|
|
145
|
-
const updatedThresholds = (0, _immer.produce)(thresholds, (draft)=>{
|
|
146
|
-
if (draft.steps) {
|
|
147
|
-
draft.steps.splice(i, 1);
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
onChange(updatedThresholds);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
const addThresholdInput = ()=>{
|
|
154
|
-
focusRef.current = true;
|
|
155
|
-
if (thresholds === undefined) {
|
|
156
|
-
onChange({
|
|
157
|
-
steps: [
|
|
158
|
-
{
|
|
159
|
-
value: DEFAULT_STEP
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
});
|
|
163
|
-
} else if (thresholds && thresholds.steps === undefined) {
|
|
164
|
-
onChange((0, _immer.produce)(thresholds, (draft)=>{
|
|
165
|
-
draft.steps = [
|
|
166
|
-
{
|
|
167
|
-
value: DEFAULT_STEP
|
|
168
|
-
}
|
|
169
|
-
];
|
|
170
|
-
}));
|
|
171
|
-
} else {
|
|
172
|
-
onChange((0, _immer.produce)(thresholds, (draft)=>{
|
|
173
|
-
const steps = draft.steps;
|
|
174
|
-
if (steps?.length) {
|
|
175
|
-
const lastStep = steps[steps.length - 1];
|
|
176
|
-
const color = palette[steps.length] ?? getRandomColor(); // we will assign color from the palette first, then generate random color
|
|
177
|
-
steps.push({
|
|
178
|
-
color,
|
|
179
|
-
value: (lastStep?.value ?? 0) + DEFAULT_STEP
|
|
180
|
-
}); // set new threshold value to last step value + 10
|
|
181
|
-
} else if (steps) {
|
|
182
|
-
steps.push({
|
|
183
|
-
value: DEFAULT_STEP
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
}));
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
const handleModeChange = (event, value)=>{
|
|
190
|
-
const mode = value === 'percent' ? 'percent' : undefined;
|
|
191
|
-
if (thresholds !== undefined) {
|
|
192
|
-
onChange((0, _immer.produce)(thresholds, (draft)=>{
|
|
193
|
-
draft.mode = mode;
|
|
194
|
-
}));
|
|
195
|
-
} else {
|
|
196
|
-
onChange({
|
|
197
|
-
mode
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_OptionsEditorLayout.OptionsEditorGroup, {
|
|
202
|
-
title: "Thresholds",
|
|
203
|
-
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoTooltip.InfoTooltip, {
|
|
204
|
-
description: "Add threshold",
|
|
205
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
206
|
-
size: "small",
|
|
207
|
-
"aria-label": "add threshold",
|
|
208
|
-
onClick: addThresholdInput,
|
|
209
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Plus.default, {})
|
|
210
|
-
})
|
|
211
|
-
}),
|
|
212
|
-
children: [
|
|
213
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsEditorLayout.OptionsEditorControl, {
|
|
214
|
-
label: "Mode",
|
|
215
|
-
description: "Percentage means thresholds relative to min & max",
|
|
216
|
-
control: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.ToggleButtonGroup, {
|
|
217
|
-
exclusive: true,
|
|
218
|
-
disabled: disablePercentMode,
|
|
219
|
-
value: thresholds?.mode ?? 'absolute',
|
|
220
|
-
onChange: handleModeChange,
|
|
221
|
-
sx: {
|
|
222
|
-
height: '36px',
|
|
223
|
-
marginLeft: 'auto'
|
|
224
|
-
},
|
|
225
|
-
children: [
|
|
226
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.ToggleButton, {
|
|
227
|
-
"aria-label": "absolute",
|
|
228
|
-
value: "absolute",
|
|
229
|
-
sx: {
|
|
230
|
-
fontWeight: 500
|
|
231
|
-
},
|
|
232
|
-
children: "Absolute"
|
|
233
|
-
}),
|
|
234
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.ToggleButton, {
|
|
235
|
-
"aria-label": "percent",
|
|
236
|
-
value: "percent",
|
|
237
|
-
sx: {
|
|
238
|
-
fontWeight: 500
|
|
239
|
-
},
|
|
240
|
-
children: "Percent"
|
|
241
|
-
})
|
|
242
|
-
]
|
|
243
|
-
})
|
|
244
|
-
}),
|
|
245
|
-
steps && steps.map((step, i)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_ThresholdInput.ThresholdInput, {
|
|
246
|
-
inputRef: i === steps.length - 1 ? recentlyAddedInputRef : undefined,
|
|
247
|
-
label: `T${i + 1}`,
|
|
248
|
-
color: step.color ?? palette[i] ?? defaultThresholdColor,
|
|
249
|
-
value: step.value,
|
|
250
|
-
mode: thresholds?.mode,
|
|
251
|
-
onColorChange: (color)=>handleThresholdColorChange(color, i),
|
|
252
|
-
onChange: (e)=>{
|
|
253
|
-
handleThresholdValueChange(e, i);
|
|
254
|
-
},
|
|
255
|
-
onDelete: ()=>{
|
|
256
|
-
deleteThreshold(i);
|
|
257
|
-
},
|
|
258
|
-
onBlur: handleThresholdBlur
|
|
259
|
-
}, i)).reverse(),
|
|
260
|
-
!hideDefault && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_system.Stack, {
|
|
261
|
-
flex: 1,
|
|
262
|
-
direction: "row",
|
|
263
|
-
alignItems: "center",
|
|
264
|
-
spacing: 1,
|
|
265
|
-
children: [
|
|
266
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsColorPicker.OptionsColorPicker, {
|
|
267
|
-
label: "default",
|
|
268
|
-
color: defaultThresholdColor,
|
|
269
|
-
onColorChange: handleDefaultColorChange
|
|
270
|
-
}),
|
|
271
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
272
|
-
children: "Default"
|
|
273
|
-
})
|
|
274
|
-
]
|
|
275
|
-
})
|
|
276
|
-
]
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
// https://www.paulirish.com/2009/random-hex-color-code-snippets/
|
|
280
|
-
const getRandomColor = ()=>{
|
|
281
|
-
return '#' + Math.floor(Math.random() * 16777216).toString(16).padStart(6, '0');
|
|
282
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright 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("./ThresholdsEditor"), 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
|
-
}
|