mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Add UMLs * Add rendered diagrams * Move QueryCtrl to flux * Remove redundant param in the reducer * Use named imports for lodash and fix typing for GraphiteTagOperator * Add missing async/await * Extract providers to a separate file * Clean up async await * Rename controller functions back to main * Simplify creating actions * Re-order controller functions * Separate helpers from actions * Rename vars * Simplify helpers * Move controller methods to state reducers * Remove docs (they are added in design doc) * Move actions.ts to state folder * Add docs * Add old methods stubs for easier review * Check how state dependencies will be mapped * Rename state to store * Rename state to store * Rewrite spec tests for Graphite Query Controller * Update docs * Update docs * Add GraphiteTextEditor * Add play button * Add AddGraphiteFunction * Use Segment to simplify AddGraphiteFunction * Memoize function defs * Fix useCallback deps * Update public/app/plugins/datasource/graphite/state/helpers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/helpers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/helpers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/providers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/providers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/providers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/providers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/providers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Update public/app/plugins/datasource/graphite/state/providers.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Add more type definitions * Remove submitOnClickAwayOption This behavior is actually needed to remove parameters in functions * Load function definitions before parsing the target on initial load * Add button padding * Fix loading function definitions * Change targetChanged to updateQuery to avoid mutating state directly It's also needed for extra refresh/runQuery execution as handleTargetChanged doesn't handle changing the raw query * Fix updating query after adding a function * Simplify updating function params * Migrate function editor to react * Simplify setting Segment Select min width * Remove unnecessary changes to SegmentInput * Extract view logic to a helper and update types definitions * Clean up types * Update FuncDef types and add tests * Show red border for unknown functions * Autofocus on new params * Extract params mapping to a helper * Split code between params and function editor * Focus on the first param when a function is added even if it's an optional argument * Add function editor tests * Remove todo marker * Fix adding new functions * Allow empty value in selects for removing function params * Add placeholders and fix styling * Add more docs * Create basic implementation for metrics and tags * Post merge fixes These files are not .ts * Remove mapping to Angular dropdowns * Simplify mapping tag names, values and operators * Simplify mapping metrics * Fix removing tags and autocomplete * Simplify debouncing providers * Ensure options are loaded twice and segment is opened * Remove focusing new segments logic (not supported by React's segment) * Clean up * Move debouncing to components * Simplify mapping to selectable options * Add docs * Group all components * Remove unused controller methods * Create Dispatch context * Group Series and Tags Sections * Create Functions section * Create Section component * use getStyles * remove redundant async/await * Remove * remove redundant async/await * Remove console.log and silent test console output * Do not display the name of the selected dropdown option * Move Section to grafana-ui * Update storybook * Simplify SectionLabel * Fix Influx tests * Fix API Extractor warnings * Fix API Extractor warnings * Do not show hidden functions * Use block docs for better doc generation * Handle undefined values provided for autocomplete * Section -> SegmentSection * Simplify section styling * Remove redundant div * Simplify SegmentSection component * Use theme.spacing * Use empty label instead of a single space label Co-authored-by: Giordano Ricci <me@giordanoricci.com>
259 lines
12 KiB
TypeScript
259 lines
12 KiB
TypeScript
export { Icon } from './Icon/Icon';
|
|
export { IconButton, IconButtonVariant } from './IconButton/IconButton';
|
|
export { ConfirmButton } from './ConfirmButton/ConfirmButton';
|
|
export { DeleteButton } from './ConfirmButton/DeleteButton';
|
|
export { Tooltip, PopoverContent } from './Tooltip/Tooltip';
|
|
export { PopoverController } from './Tooltip/PopoverController';
|
|
export { Popover } from './Tooltip/Popover';
|
|
export { Portal } from './Portal/Portal';
|
|
export { CustomScrollbar, ScrollbarPosition } from './CustomScrollbar/CustomScrollbar';
|
|
export { TabbedContainer, TabConfig } from './TabbedContainer/TabbedContainer';
|
|
|
|
export { ClipboardButton } from './ClipboardButton/ClipboardButton';
|
|
export { Cascader, CascaderOption } from './Cascader/Cascader';
|
|
export { ButtonCascader } from './ButtonCascader/ButtonCascader';
|
|
|
|
export { LoadingPlaceholder, LoadingPlaceholderProps } from './LoadingPlaceholder/LoadingPlaceholder';
|
|
export { ColorPicker, SeriesColorPicker } from './ColorPicker/ColorPicker';
|
|
export { ColorValueEditor, ColorValueEditorProps } from './OptionsUI/color';
|
|
export { SeriesColorPickerPopover, SeriesColorPickerPopoverWithTheme } from './ColorPicker/SeriesColorPickerPopover';
|
|
export { EmptySearchResult } from './EmptySearchResult/EmptySearchResult';
|
|
export { UnitPicker } from './UnitPicker/UnitPicker';
|
|
export { StatsPicker } from './StatsPicker/StatsPicker';
|
|
export { RefreshPicker, defaultIntervals } from './RefreshPicker/RefreshPicker';
|
|
export { TimeRangePicker, TimeRangePickerProps } from './DateTimePickers/TimeRangePicker';
|
|
export { TimeOfDayPicker } from './DateTimePickers/TimeOfDayPicker';
|
|
export { TimeZonePicker } from './DateTimePickers/TimeZonePicker';
|
|
export { DatePicker, DatePickerProps } from './DateTimePickers/DatePicker/DatePicker';
|
|
export {
|
|
DatePickerWithInput,
|
|
DatePickerWithInputProps,
|
|
} from './DateTimePickers/DatePickerWithInput/DatePickerWithInput';
|
|
export { List } from './List/List';
|
|
export { TagsInput } from './TagsInput/TagsInput';
|
|
export { Pagination } from './Pagination/Pagination';
|
|
export { Tag, OnTagClick } from './Tags/Tag';
|
|
export { TagList } from './Tags/TagList';
|
|
export { FilterPill } from './FilterPill/FilterPill';
|
|
|
|
export { ConfirmModal, ConfirmModalProps } from './ConfirmModal/ConfirmModal';
|
|
export { QueryField } from './QueryField/QueryField';
|
|
|
|
// Code editor
|
|
export { CodeEditor } from './Monaco/CodeEditorLazy';
|
|
export { Monaco, MonacoEditor, CodeEditorSuggestionItem, CodeEditorSuggestionItemKind } from './Monaco/types';
|
|
export { variableSuggestionToCodeEditorSuggestion } from './Monaco/utils';
|
|
|
|
// TODO: namespace
|
|
export { Modal } from './Modal/Modal';
|
|
export { ModalHeader } from './Modal/ModalHeader';
|
|
export { ModalTabsHeader } from './Modal/ModalTabsHeader';
|
|
export { ModalTabContent } from './Modal/ModalTabContent';
|
|
export { ModalsProvider, ModalRoot, ModalsController } from './Modal/ModalsContext';
|
|
export { PageToolbar } from './PageLayout/PageToolbar';
|
|
|
|
// Renderless
|
|
export { SetInterval } from './SetInterval/SetInterval';
|
|
|
|
export { Table } from './Table/Table';
|
|
export { TableCellDisplayMode, TableSortByFieldState } from './Table/types';
|
|
export { TableInputCSV } from './TableInputCSV/TableInputCSV';
|
|
export { TabsBar } from './Tabs/TabsBar';
|
|
export { Tab } from './Tabs/Tab';
|
|
export { TabContent } from './Tabs/TabContent';
|
|
export { Counter } from './Tabs/Counter';
|
|
|
|
// Visualizations
|
|
export {
|
|
BigValue,
|
|
BigValueColorMode,
|
|
BigValueGraphMode,
|
|
BigValueJustifyMode,
|
|
BigValueTextMode,
|
|
} from './BigValue/BigValue';
|
|
|
|
export { Gauge } from './Gauge/Gauge';
|
|
export { Graph } from './Graph/Graph';
|
|
export { GraphWithLegend } from './Graph/GraphWithLegend';
|
|
export { GraphContextMenu, GraphContextMenuHeader } from './Graph/GraphContextMenu';
|
|
export { BarGauge, BarGaugeDisplayMode } from './BarGauge/BarGauge';
|
|
export {
|
|
VizTooltip,
|
|
VizTooltipContainer,
|
|
SeriesTable,
|
|
VizTooltipOptions,
|
|
TooltipDisplayMode,
|
|
SeriesTableProps,
|
|
SeriesTableRow,
|
|
SeriesTableRowProps,
|
|
} from './VizTooltip';
|
|
export { VizRepeater, VizRepeaterRenderValueProps } from './VizRepeater/VizRepeater';
|
|
export { graphTimeFormat, graphTickFormatter } from './Graph/utils';
|
|
export {
|
|
PanelChrome,
|
|
PanelChromeProps,
|
|
PanelPadding,
|
|
PanelChromeType,
|
|
PanelChromeLoadingIndicator,
|
|
PanelChromeLoadingIndicatorProps,
|
|
PanelChromeErrorIndicator,
|
|
PanelChromeErrorIndicatorProps,
|
|
PanelContextProvider,
|
|
PanelContext,
|
|
PanelContextRoot,
|
|
usePanelContext,
|
|
} from './PanelChrome';
|
|
export { VizLayout, VizLayoutComponentType, VizLayoutLegendProps, VizLayoutProps } from './VizLayout/VizLayout';
|
|
export { VizLegendItem, SeriesVisibilityChangeBehavior } from './VizLegend/types';
|
|
export { LegendPlacement, LegendDisplayMode, VizLegendOptions } from './VizLegend/models.gen';
|
|
export { VizLegend } from './VizLegend/VizLegend';
|
|
export { VizLegendListItem } from './VizLegend/VizLegendListItem';
|
|
|
|
export { Alert, AlertVariant } from './Alert/Alert';
|
|
export { GraphSeriesToggler, GraphSeriesTogglerAPI } from './Graph/GraphSeriesToggler';
|
|
export { Collapse, ControlledCollapse } from './Collapse/Collapse';
|
|
export { CollapsableSection } from './Collapse/CollapsableSection';
|
|
export { LogLabels } from './Logs/LogLabels';
|
|
export { LogMessageAnsi } from './Logs/LogMessageAnsi';
|
|
export { LogRows } from './Logs/LogRows';
|
|
export { getLogRowStyles } from './Logs/getLogRowStyles';
|
|
export { DataLinkButton } from './DataLinks/DataLinkButton';
|
|
export { FieldLinkList } from './DataLinks/FieldLinkList';
|
|
// Panel editors
|
|
export { FullWidthButtonContainer } from './Button/FullWidthButtonContainer';
|
|
export { ClickOutsideWrapper } from './ClickOutsideWrapper/ClickOutsideWrapper';
|
|
export * from './SingleStatShared/index';
|
|
export { CallToActionCard } from './CallToActionCard/CallToActionCard';
|
|
export { ContextMenu, ContextMenuProps } from './ContextMenu/ContextMenu';
|
|
export { Menu, MenuProps } from './Menu/Menu';
|
|
export { MenuGroup, MenuItemsGroup, MenuGroupProps } from './Menu/MenuGroup';
|
|
export { MenuItem, MenuItemProps } from './Menu/MenuItem';
|
|
export { WithContextMenu } from './ContextMenu/WithContextMenu';
|
|
export { DataLinksInlineEditor } from './DataLinks/DataLinksInlineEditor/DataLinksInlineEditor';
|
|
export { DataLinkInput } from './DataLinks/DataLinkInput';
|
|
export { DataLinksContextMenu } from './DataLinks/DataLinksContextMenu';
|
|
export { SeriesIcon } from './VizLegend/SeriesIcon';
|
|
export { InfoBox } from './InfoBox/InfoBox';
|
|
export { FeatureBadge, FeatureInfoBox } from './InfoBox/FeatureInfoBox';
|
|
|
|
export { JSONFormatter } from './JSONFormatter/JSONFormatter';
|
|
export { JsonExplorer } from './JSONFormatter/json_explorer/json_explorer';
|
|
export {
|
|
ErrorBoundary,
|
|
ErrorBoundaryAlert,
|
|
ErrorBoundaryAlertProps,
|
|
withErrorBoundary,
|
|
} from './ErrorBoundary/ErrorBoundary';
|
|
export { ErrorWithStack } from './ErrorBoundary/ErrorWithStack';
|
|
export { DataSourceHttpSettings } from './DataSourceSettings/DataSourceHttpSettings';
|
|
export { AlertingSettings } from './DataSourceSettings/AlertingSettings';
|
|
export { TLSAuthSettings } from './DataSourceSettings/TLSAuthSettings';
|
|
export { CertificationKey } from './DataSourceSettings/CertificationKey';
|
|
export { Spinner } from './Spinner/Spinner';
|
|
export { FadeTransition } from './transitions/FadeTransition';
|
|
export { SlideOutTransition } from './transitions/SlideOutTransition';
|
|
export { Segment, SegmentAsync, SegmentInput, SegmentSelect, SegmentSection } from './Segment/';
|
|
export { Drawer } from './Drawer/Drawer';
|
|
export { Slider } from './Slider/Slider';
|
|
export { RangeSlider } from './Slider/RangeSlider';
|
|
|
|
// TODO: namespace!!
|
|
export { StringValueEditor } from './OptionsUI/string';
|
|
export { StringArrayEditor } from './OptionsUI/strings';
|
|
export { NumberValueEditor } from './OptionsUI/number';
|
|
export { SliderValueEditor } from './OptionsUI/slider';
|
|
export { SelectValueEditor } from './OptionsUI/select';
|
|
export { MultiSelectValueEditor } from './OptionsUI/multiSelect';
|
|
|
|
// Next-gen forms
|
|
export { Form } from './Forms/Form';
|
|
export { InputControl } from './InputControl';
|
|
export { Button, LinkButton, ButtonVariant, ToolbarButton, ButtonGroup, ToolbarButtonRow } from './Button';
|
|
export { ValuePicker } from './ValuePicker/ValuePicker';
|
|
export { fieldMatchersUI } from './MatchersUI/fieldMatchersUI';
|
|
export { getFormStyles } from './Forms/getFormStyles';
|
|
export { Link } from './Link/Link';
|
|
|
|
export { Label } from './Forms/Label';
|
|
export { Field } from './Forms/Field';
|
|
export { Legend } from './Forms/Legend';
|
|
export { FieldSet } from './Forms/FieldSet';
|
|
export { FieldValidationMessage } from './Forms/FieldValidationMessage';
|
|
export { InlineField } from './Forms/InlineField';
|
|
export { InlineSegmentGroup } from './Forms/InlineSegmentGroup';
|
|
export { InlineLabel } from './Forms/InlineLabel';
|
|
export { InlineFieldRow } from './Forms/InlineFieldRow';
|
|
export { FieldArray } from './Forms/FieldArray';
|
|
|
|
export { default as resetSelectStyles } from './Select/resetSelectStyles';
|
|
export { selectOptionInTest } from './Select/test-utils';
|
|
export * from './Select/Select';
|
|
|
|
export { HorizontalGroup, VerticalGroup, Container } from './Layout/Layout';
|
|
export { Badge, BadgeColor, BadgeProps } from './Badge/Badge';
|
|
export { RadioButtonGroup } from './Forms/RadioButtonGroup/RadioButtonGroup';
|
|
|
|
export { Input } from './Input/Input';
|
|
export { FormInputSize } from './Forms/types';
|
|
|
|
export { Switch, InlineSwitch } from './Switch/Switch';
|
|
export { Checkbox } from './Forms/Checkbox';
|
|
|
|
export { TextArea } from './TextArea/TextArea';
|
|
export { FileUpload } from './FileUpload/FileUpload';
|
|
export * from './FileDropzone';
|
|
export { TimeRangeInput } from './DateTimePickers/TimeRangeInput';
|
|
export { RelativeTimeRangePicker } from './DateTimePickers/RelativeTimeRangePicker/RelativeTimeRangePicker';
|
|
export { Card, Props as CardProps, getCardStyles } from './Card/Card';
|
|
export { CardContainer, CardContainerProps } from './Card/CardContainer';
|
|
export { FormattedValueDisplay } from './FormattedValueDisplay/FormattedValueDisplay';
|
|
|
|
export { ButtonSelect } from './Dropdown/ButtonSelect';
|
|
export { PluginSignatureBadge, PluginSignatureBadgeProps } from './PluginSignatureBadge/PluginSignatureBadge';
|
|
|
|
// Export this until we've figured out a good approach to inline form styles.
|
|
export { InlineFormLabel } from './FormLabel/FormLabel';
|
|
|
|
// Select
|
|
import { AsyncSelect, Select } from './Forms/Legacy/Select/Select';
|
|
import { IndicatorsContainer } from './Forms/Legacy/Select/IndicatorsContainer';
|
|
import { NoOptionsMessage } from './Forms/Legacy/Select/NoOptionsMessage';
|
|
|
|
//Input
|
|
import { Input, LegacyInputStatus } from './Forms/Legacy/Input/Input';
|
|
import { FormField } from './FormField/FormField';
|
|
import { SecretFormField } from './SecretFormField/SecretFormField';
|
|
|
|
import { Switch } from './Forms/Legacy/Switch/Switch';
|
|
|
|
const LegacyForms = {
|
|
SecretFormField,
|
|
FormField,
|
|
Select,
|
|
AsyncSelect,
|
|
IndicatorsContainer,
|
|
NoOptionsMessage,
|
|
Input,
|
|
Switch,
|
|
};
|
|
export { LegacyForms, LegacyInputStatus };
|
|
|
|
// WIP, need renames and exports cleanup
|
|
export * from './uPlot/config';
|
|
export { ScaleDistribution } from './uPlot/models.gen';
|
|
export { UPlotConfigBuilder, UPlotConfigPrepFn } from './uPlot/config/UPlotConfigBuilder';
|
|
export { UPlotChart } from './uPlot/Plot';
|
|
export { PlotLegend } from './uPlot/PlotLegend';
|
|
export * from './uPlot/geometries';
|
|
export * from './uPlot/plugins';
|
|
export { usePlotContext } from './uPlot/context';
|
|
export { PlotTooltipInterpolator, PlotSelection } from './uPlot/types';
|
|
export { GraphNG, GraphNGProps, FIXED_UNIT } from './GraphNG/GraphNG';
|
|
export { TimeSeries } from './TimeSeries/TimeSeries';
|
|
export { useGraphNGContext } from './GraphNG/hooks';
|
|
export { preparePlotFrame } from './GraphNG/utils';
|
|
export { GraphNGLegendEvent } from './GraphNG/types';
|
|
export * from './PanelChrome/types';
|
|
export { EmotionPerfTest } from './ThemeDemos/EmotionPerfTest';
|
|
export { Label as BrowserLabel } from './BrowserLabel/Label';
|