@grafana/plugin-ui 0.10.10 → 0.11.1
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/cjs/index.cjs +1748 -1339
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +87 -47
- package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +42 -38
- package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/Auth.js +19 -14
- package/dist/esm/components/ConfigEditor/Auth/Auth.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +19 -15
- package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js +52 -49
- package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +59 -55
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +20 -17
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +28 -28
- package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +2 -2
- package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js +84 -82
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js +10 -7
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +8 -2
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Auth/utils.js +2 -1
- package/dist/esm/components/ConfigEditor/Auth/utils.js.map +1 -1
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +14 -11
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +1 -1
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js +2 -2
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js.map +1 -1
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js +2 -2
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +1 -1
- package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js +19 -11
- package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +1 -1
- package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js +24 -19
- package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js.map +1 -1
- package/dist/esm/components/ConfigEditor/DataSourceDescription.js +12 -2
- package/dist/esm/components/ConfigEditor/DataSourceDescription.js.map +1 -1
- package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js +24 -20
- package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js.map +1 -1
- package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js +69 -60
- package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js.map +1 -1
- package/dist/esm/components/DataLinks/DataLink.js +104 -89
- package/dist/esm/components/DataLinks/DataLink.js.map +1 -1
- package/dist/esm/components/DataLinks/DataLinks.js +48 -41
- package/dist/esm/components/DataLinks/DataLinks.js.map +1 -1
- package/dist/esm/components/DataSourcePicker/DataSourcePicker.js +9 -4
- package/dist/esm/components/DataSourcePicker/DataSourcePicker.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js +6 -5
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js +19 -15
- package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js.map +1 -1
- package/dist/esm/components/DebounceInput/DebounceInput.js +6 -5
- package/dist/esm/components/DebounceInput/DebounceInput.js.map +1 -1
- package/dist/esm/components/Plugins/PluginSignatureBadge.js +3 -2
- package/dist/esm/components/Plugins/PluginSignatureBadge.js.map +1 -1
- package/dist/esm/components/QueryEditor/AccessoryButton.js +2 -2
- package/dist/esm/components/QueryEditor/AccessoryButton.js.map +1 -1
- package/dist/esm/components/QueryEditor/CatalogSelector.js +53 -0
- package/dist/esm/components/QueryEditor/CatalogSelector.js.map +1 -0
- package/dist/esm/components/QueryEditor/ConfirmModal.js +18 -8
- package/dist/esm/components/QueryEditor/ConfirmModal.js.map +1 -1
- package/dist/esm/components/QueryEditor/DatasetSelector.js +12 -6
- package/dist/esm/components/QueryEditor/DatasetSelector.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorField.js +11 -3
- package/dist/esm/components/QueryEditor/EditorField.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorFieldGroup.js +2 -2
- package/dist/esm/components/QueryEditor/EditorFieldGroup.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorHeader.js +2 -2
- package/dist/esm/components/QueryEditor/EditorHeader.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorList.js +11 -7
- package/dist/esm/components/QueryEditor/EditorList.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorRow.js +2 -2
- package/dist/esm/components/QueryEditor/EditorRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorRows.js +2 -2
- package/dist/esm/components/QueryEditor/EditorRows.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorStack.js +2 -2
- package/dist/esm/components/QueryEditor/EditorStack.js.map +1 -1
- package/dist/esm/components/QueryEditor/EditorSwitch.js +3 -2
- package/dist/esm/components/QueryEditor/EditorSwitch.js.map +1 -1
- package/dist/esm/components/QueryEditor/FlexItem.js +2 -2
- package/dist/esm/components/QueryEditor/FlexItem.js.map +1 -1
- package/dist/esm/components/QueryEditor/InlineSelect.js +12 -4
- package/dist/esm/components/QueryEditor/InlineSelect.js.map +1 -1
- package/dist/esm/components/QueryEditor/InputGroup.js +3 -2
- package/dist/esm/components/QueryEditor/InputGroup.js.map +1 -1
- package/dist/esm/components/QueryEditor/QueryEditor.js +47 -37
- package/dist/esm/components/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/esm/components/QueryEditor/QueryHeader.js +160 -97
- package/dist/esm/components/QueryEditor/QueryHeader.js.map +1 -1
- package/dist/esm/components/QueryEditor/RunQueryButton.js +13 -9
- package/dist/esm/components/QueryEditor/RunQueryButton.js.map +1 -1
- package/dist/esm/components/QueryEditor/Space.js +2 -2
- package/dist/esm/components/QueryEditor/Space.js.map +1 -1
- package/dist/esm/components/QueryEditor/TableSelector.js +18 -7
- package/dist/esm/components/QueryEditor/TableSelector.js.map +1 -1
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +6 -5
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +1 -1
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js +26 -18
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +1 -1
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js +19 -2
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js.map +1 -1
- package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js +42 -38
- package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js.map +1 -1
- package/dist/esm/components/QueryEditor/types.js +1 -0
- package/dist/esm/components/QueryEditor/types.js.map +1 -1
- package/dist/esm/components/QueryEditor/utils/sql.utils.js +7 -9
- package/dist/esm/components/QueryEditor/utils/sql.utils.js.map +1 -1
- package/dist/esm/components/QueryEditor/utils/useSqlChange.js +7 -1
- package/dist/esm/components/QueryEditor/utils/useSqlChange.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +8 -8
- package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js +11 -3
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js +2 -2
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js +2 -2
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js +16 -12
- package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js +29 -20
- package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js +7 -4
- package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +2 -2
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +2 -2
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js +2 -2
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js +4 -4
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js +52 -44
- package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js +11 -2
- package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js.map +1 -1
- package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js +4 -3
- package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js.map +1 -1
- package/dist/esm/components/QueryEditorRow/QueryEditorRow.js +6 -2
- package/dist/esm/components/QueryEditorRow/QueryEditorRow.js.map +1 -1
- package/dist/esm/components/SQLEditor/components/SQLEditor.js +37 -33
- package/dist/esm/components/SQLEditor/components/SQLEditor.js.map +1 -1
- package/dist/esm/components/SQLEditor/standardSql/definition.js +1 -0
- package/dist/esm/components/SQLEditor/standardSql/definition.js.map +1 -1
- package/dist/esm/components/SQLEditor/types.js.map +1 -1
- package/dist/esm/components/SQLEditor/utils/tokenUtils.js +2 -0
- package/dist/esm/components/SQLEditor/utils/tokenUtils.js.map +1 -1
- package/dist/esm/components/Segment/Segment.js +4 -3
- package/dist/esm/components/Segment/Segment.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js +105 -99
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js +28 -27
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js +31 -26
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js +70 -55
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js +11 -2
- package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js +75 -62
- package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js +39 -28
- package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationList.js +38 -31
- package/dist/esm/components/VisualQueryBuilder/components/OperationList.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js +15 -14
- package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js +35 -31
- package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js +3 -2
- package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js +12 -9
- package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +2 -2
- package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +6 -2
- package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js +20 -12
- package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +1 -1
- package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js +2 -2
- package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js.map +1 -1
- package/dist/esm/index.d.ts +87 -47
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ComponentProps, PureComponent, ReactElement, ReactNode, FunctionComponent, HTMLProps } from 'react';
|
|
2
4
|
import { Input, Segment as Segment$1, monacoTypes, Monaco, ButtonProps, Field, PopoverContent, Switch, SelectCommonProps, InlineLabel } from '@grafana/ui';
|
|
3
5
|
import * as _grafana_data from '@grafana/data';
|
|
4
6
|
import { DataSourceInstanceSettings, SelectableValue, DataSourceJsonData, VariableSuggestion, TimeRange, DataFrame, MetricFindValue, ThemeSpacingTokens, ScopedVars, DataFrameView, VariableModel, QueryEditorProps as QueryEditorProps$1, DataSourceSettings, RegistryItem, DataSourceApi, Registry, DataQuery as DataQuery$1, PanelData, DataSourcePluginMeta, PluginMetaInfo, PluginMeta, PluginInclude, PluginType, PluginIncludeType, PluginState, PluginDependencies, PluginSignatureStatus, LoadingState } from '@grafana/data';
|
|
@@ -13,21 +15,21 @@ interface QueryEditorRowProps {
|
|
|
13
15
|
noFillEnd?: boolean;
|
|
14
16
|
children?: React.ReactNode;
|
|
15
17
|
}
|
|
16
|
-
declare const QueryEditorRow: (props: QueryEditorRowProps) =>
|
|
18
|
+
declare const QueryEditorRow: (props: QueryEditorRowProps) => react_jsx_runtime.JSX.Element;
|
|
17
19
|
|
|
18
20
|
interface DebounceInputProps extends Omit<ComponentProps<typeof Input>, 'ref'> {
|
|
19
21
|
value: string;
|
|
20
22
|
onDebounce: (debouncedInput?: string) => void;
|
|
21
23
|
delay?: number;
|
|
22
24
|
}
|
|
23
|
-
declare const DebounceInput: (props: DebounceInputProps) =>
|
|
25
|
+
declare const DebounceInput: (props: DebounceInputProps) => react_jsx_runtime.JSX.Element;
|
|
24
26
|
|
|
25
27
|
interface SegmentProps<T> extends Omit<ComponentProps<typeof Segment$1<T>>, 'onChange'> {
|
|
26
28
|
value: T;
|
|
27
29
|
onDebounce: (debouncedSegment?: T) => void;
|
|
28
30
|
delay?: number;
|
|
29
31
|
}
|
|
30
|
-
declare function Segment<T>(props: SegmentProps<T>):
|
|
32
|
+
declare function Segment<T>(props: SegmentProps<T>): react_jsx_runtime.JSX.Element;
|
|
31
33
|
|
|
32
34
|
interface DatePickerProps {
|
|
33
35
|
isOpen?: boolean;
|
|
@@ -35,14 +37,14 @@ interface DatePickerProps {
|
|
|
35
37
|
onChange: (value: Date) => void;
|
|
36
38
|
value?: Date;
|
|
37
39
|
}
|
|
38
|
-
declare const DatePicker:
|
|
40
|
+
declare const DatePicker: react.NamedExoticComponent<DatePickerProps>;
|
|
39
41
|
|
|
40
42
|
declare const formatDate: (date: Date) => string;
|
|
41
43
|
interface DatePickerWithInputProps extends Omit<ComponentProps<typeof Input>, 'ref' | 'value' | 'onChange'> {
|
|
42
44
|
value?: Date;
|
|
43
45
|
onChange: (value: Date) => void;
|
|
44
46
|
}
|
|
45
|
-
declare const DatePickerWithInput: (props: DatePickerWithInputProps) =>
|
|
47
|
+
declare const DatePickerWithInput: (props: DatePickerWithInputProps) => react_jsx_runtime.JSX.Element;
|
|
46
48
|
|
|
47
49
|
interface Props$s {
|
|
48
50
|
onChange: (ds: DataSourceInstanceSettings) => void;
|
|
@@ -73,7 +75,7 @@ declare class DataSourcePicker extends PureComponent<Props$s, State$1> {
|
|
|
73
75
|
onChange: (item: SelectableValue<string>) => void;
|
|
74
76
|
private getCurrentValue;
|
|
75
77
|
getDataSourceOptions(): Array<SelectableValue<string>>;
|
|
76
|
-
render():
|
|
78
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
type DataLinkConfig = {
|
|
@@ -88,7 +90,7 @@ type Props$r = {
|
|
|
88
90
|
value?: DataLinkConfig[];
|
|
89
91
|
onChange: (value: DataLinkConfig[]) => void;
|
|
90
92
|
};
|
|
91
|
-
declare const DataLinks: (props: Props$r) =>
|
|
93
|
+
declare const DataLinks: (props: Props$r) => react_jsx_runtime.JSX.Element;
|
|
92
94
|
|
|
93
95
|
type Props$q = {
|
|
94
96
|
value: DataLinkConfig;
|
|
@@ -98,7 +100,7 @@ type Props$q = {
|
|
|
98
100
|
suggestions: VariableSuggestion[];
|
|
99
101
|
className?: string;
|
|
100
102
|
};
|
|
101
|
-
declare const DataLink: (props: Props$q) =>
|
|
103
|
+
declare const DataLink: (props: Props$q) => react_jsx_runtime.JSX.Element;
|
|
102
104
|
|
|
103
105
|
declare function applyQueryDefaults(q?: SQLQuery): SQLQuery;
|
|
104
106
|
type QueryWithDefaults = ReturnType<typeof applyQueryDefaults>;
|
|
@@ -221,6 +223,7 @@ interface TableDefinition {
|
|
|
221
223
|
interface TableIdentifier {
|
|
222
224
|
table?: string;
|
|
223
225
|
schema?: string;
|
|
226
|
+
catalog?: string;
|
|
224
227
|
}
|
|
225
228
|
interface SQLCompletionItemProvider extends Omit<monacoTypes.languages.CompletionItemProvider, 'provideCompletionItems'> {
|
|
226
229
|
/**
|
|
@@ -439,7 +442,7 @@ interface SQLEditorProps {
|
|
|
439
442
|
width?: number;
|
|
440
443
|
height?: number;
|
|
441
444
|
}
|
|
442
|
-
declare const SQLEditor: ({ children, onBlur, onChange, query, language, width, height, }: SQLEditorProps) =>
|
|
445
|
+
declare const SQLEditor: ({ children, onBlur, onChange, query, language, width, height, }: SQLEditorProps) => react_jsx_runtime.JSX.Element;
|
|
443
446
|
|
|
444
447
|
interface TestQueryModel {
|
|
445
448
|
query: string;
|
|
@@ -533,6 +536,7 @@ interface SQLQuery extends DataQuery {
|
|
|
533
536
|
format?: QueryFormat;
|
|
534
537
|
rawSql?: string;
|
|
535
538
|
dataset?: string;
|
|
539
|
+
catalog?: string;
|
|
536
540
|
table?: string;
|
|
537
541
|
sql?: SQLExpression;
|
|
538
542
|
editorMode?: EditorMode;
|
|
@@ -593,8 +597,9 @@ interface Aggregate {
|
|
|
593
597
|
}
|
|
594
598
|
interface DB {
|
|
595
599
|
init?: (datasourceId?: string) => Promise<boolean>;
|
|
596
|
-
datasets: () => Promise<string[]>;
|
|
597
|
-
|
|
600
|
+
datasets: (catalog?: string) => Promise<string[]>;
|
|
601
|
+
catalogs?: () => Promise<string[]>;
|
|
602
|
+
tables: (dataset?: string, catalog?: string, schema?: string) => Promise<string[]>;
|
|
598
603
|
fields: (query: SQLQuery, order?: boolean) => Promise<SQLSelectableValue[]>;
|
|
599
604
|
validateQuery: (query: SQLQuery, range?: TimeRange) => Promise<ValidationResults>;
|
|
600
605
|
dsID: () => number;
|
|
@@ -608,6 +613,7 @@ interface DB {
|
|
|
608
613
|
functions: () => Promise<Aggregate[]>;
|
|
609
614
|
labels?: Map<'dataset', string>;
|
|
610
615
|
disableDatasets?: boolean;
|
|
616
|
+
disableCatalogs?: boolean;
|
|
611
617
|
}
|
|
612
618
|
interface QueryEditorProps {
|
|
613
619
|
db: DB;
|
|
@@ -643,20 +649,20 @@ interface GroupByRowProps {
|
|
|
643
649
|
onSqlChange: (sql: SQLExpression) => void;
|
|
644
650
|
columns?: Array<SelectableValue<string>>;
|
|
645
651
|
}
|
|
646
|
-
declare function GroupByRow({ sql, columns, onSqlChange }: GroupByRowProps):
|
|
652
|
+
declare function GroupByRow({ sql, columns, onSqlChange }: GroupByRowProps): react_jsx_runtime.JSX.Element;
|
|
647
653
|
|
|
648
654
|
type AccessoryButtonProps = ButtonProps & {};
|
|
649
|
-
declare const AccessoryButton: ({ className, ...props }: AccessoryButtonProps) =>
|
|
655
|
+
declare const AccessoryButton: ({ className, ...props }: AccessoryButtonProps) => react_jsx_runtime.JSX.Element;
|
|
650
656
|
|
|
651
657
|
interface EditorFieldGroupProps {
|
|
652
658
|
children?: React.ReactNode;
|
|
653
659
|
}
|
|
654
|
-
declare const EditorFieldGroup: ({ children }: EditorFieldGroupProps) =>
|
|
660
|
+
declare const EditorFieldGroup: ({ children }: EditorFieldGroupProps) => react_jsx_runtime.JSX.Element;
|
|
655
661
|
|
|
656
662
|
interface EditorHeaderProps {
|
|
657
663
|
children?: React.ReactNode;
|
|
658
664
|
}
|
|
659
|
-
declare const EditorHeader: ({ children }: EditorHeaderProps) =>
|
|
665
|
+
declare const EditorHeader: ({ children }: EditorHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
660
666
|
|
|
661
667
|
interface EditorFieldProps extends ComponentProps<typeof Field> {
|
|
662
668
|
label: string;
|
|
@@ -666,32 +672,32 @@ interface EditorFieldProps extends ComponentProps<typeof Field> {
|
|
|
666
672
|
tooltip?: PopoverContent;
|
|
667
673
|
tooltipInteractive?: boolean;
|
|
668
674
|
}
|
|
669
|
-
declare const EditorField: (props: EditorFieldProps) =>
|
|
675
|
+
declare const EditorField: (props: EditorFieldProps) => react_jsx_runtime.JSX.Element;
|
|
670
676
|
|
|
671
677
|
interface EditorRowProps {
|
|
672
678
|
children?: React.ReactNode;
|
|
673
679
|
}
|
|
674
|
-
declare const EditorRow: ({ children }: EditorRowProps) =>
|
|
680
|
+
declare const EditorRow: ({ children }: EditorRowProps) => react_jsx_runtime.JSX.Element;
|
|
675
681
|
|
|
676
682
|
interface EditorListProps<T> {
|
|
677
683
|
items: Array<Partial<T>>;
|
|
678
|
-
renderItem: (item: Partial<T>, onChangeItem: (item: Partial<T>) => void, onDeleteItem: () => void) =>
|
|
684
|
+
renderItem: (item: Partial<T>, onChangeItem: (item: Partial<T>) => void, onDeleteItem: () => void) => ReactElement;
|
|
679
685
|
onChange: (items: Array<Partial<T>>) => void;
|
|
680
686
|
}
|
|
681
|
-
declare const EditorList:
|
|
687
|
+
declare const EditorList: react.ForwardRefExoticComponent<EditorListProps<unknown> & react.RefAttributes<HTMLButtonElement>>;
|
|
682
688
|
|
|
683
689
|
interface EditorRowsProps {
|
|
684
690
|
children?: React.ReactNode;
|
|
685
691
|
}
|
|
686
|
-
declare const EditorRows: ({ children }: EditorRowsProps) =>
|
|
692
|
+
declare const EditorRows: ({ children }: EditorRowsProps) => react_jsx_runtime.JSX.Element;
|
|
687
693
|
|
|
688
|
-
declare const EditorSwitch: (props: ComponentProps<typeof Switch>) =>
|
|
694
|
+
declare const EditorSwitch: (props: ComponentProps<typeof Switch>) => react_jsx_runtime.JSX.Element;
|
|
689
695
|
|
|
690
696
|
interface FlexItemProps {
|
|
691
697
|
grow?: number;
|
|
692
698
|
shrink?: number;
|
|
693
699
|
}
|
|
694
|
-
declare const FlexItem: ({ grow, shrink }: FlexItemProps) =>
|
|
700
|
+
declare const FlexItem: ({ grow, shrink }: FlexItemProps) => react_jsx_runtime.JSX.Element;
|
|
695
701
|
|
|
696
702
|
type Direction = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
697
703
|
type AlignItems = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'start' | 'end' | 'self-start' | 'self-end';
|
|
@@ -702,12 +708,12 @@ interface StackProps {
|
|
|
702
708
|
wrap?: boolean;
|
|
703
709
|
gap?: ThemeSpacingTokens;
|
|
704
710
|
}
|
|
705
|
-
declare const EditorStack: ({ children, wrap: wrapItems, ...props }: StackProps) =>
|
|
711
|
+
declare const EditorStack: ({ children, wrap: wrapItems, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
706
712
|
|
|
707
713
|
interface InlineSelectProps<T> extends SelectCommonProps<T> {
|
|
708
714
|
label?: string;
|
|
709
715
|
}
|
|
710
|
-
declare function InlineSelect<T>({ label: labelProp, ...props }: InlineSelectProps<T>):
|
|
716
|
+
declare function InlineSelect<T>({ label: labelProp, ...props }: InlineSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
711
717
|
|
|
712
718
|
type Child = string | undefined | ReactElement<{
|
|
713
719
|
className?: string;
|
|
@@ -716,7 +722,7 @@ type Child = string | undefined | ReactElement<{
|
|
|
716
722
|
interface InputGroupProps {
|
|
717
723
|
children: Child | Child[];
|
|
718
724
|
}
|
|
719
|
-
declare const InputGroup: ({ children }: InputGroupProps) =>
|
|
725
|
+
declare const InputGroup: ({ children }: InputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
720
726
|
|
|
721
727
|
interface SpaceProps {
|
|
722
728
|
v?: number;
|
|
@@ -724,7 +730,7 @@ interface SpaceProps {
|
|
|
724
730
|
layout?: 'block' | 'inline';
|
|
725
731
|
}
|
|
726
732
|
declare const Space: {
|
|
727
|
-
(props: SpaceProps):
|
|
733
|
+
(props: SpaceProps): react_jsx_runtime.JSX.Element;
|
|
728
734
|
defaultProps: {
|
|
729
735
|
v: number;
|
|
730
736
|
h: number;
|
|
@@ -786,7 +792,7 @@ interface MetricFindQueryOptions extends SearchFilterOptions {
|
|
|
786
792
|
|
|
787
793
|
interface Props$p extends QueryEditorProps$1<SqlDatasource, SQLQuery, SQLOptions> {
|
|
788
794
|
}
|
|
789
|
-
declare function SqlQueryEditor({ datasource, query, onChange, onRunQuery, range }: Props$p):
|
|
795
|
+
declare function SqlQueryEditor({ datasource, query, onChange, onRunQuery, range }: Props$p): react_jsx_runtime.JSX.Element | null;
|
|
790
796
|
|
|
791
797
|
type RunQueryButtonProps = {
|
|
792
798
|
ariaLabel?: string;
|
|
@@ -797,7 +803,41 @@ type RunQueryButtonProps = {
|
|
|
797
803
|
onClick: () => void;
|
|
798
804
|
dataTestId?: string;
|
|
799
805
|
};
|
|
800
|
-
declare const RunQueryButton: ({ ariaLabel, queryRunning, queryInvalid, invalidQueryTooltip, disabled, onClick, dataTestId, }: RunQueryButtonProps) =>
|
|
806
|
+
declare const RunQueryButton: ({ ariaLabel, queryRunning, queryInvalid, invalidQueryTooltip, disabled, onClick, dataTestId, }: RunQueryButtonProps) => react_jsx_runtime.JSX.Element;
|
|
807
|
+
|
|
808
|
+
interface DatasetSelectorProps extends ResourceSelectorProps {
|
|
809
|
+
db: DB;
|
|
810
|
+
dataset?: string;
|
|
811
|
+
catalog?: string;
|
|
812
|
+
value: string | null;
|
|
813
|
+
applyDefault?: boolean;
|
|
814
|
+
disabled?: boolean;
|
|
815
|
+
onChange: (v: SelectableValue) => void;
|
|
816
|
+
inputId?: string;
|
|
817
|
+
enableCatalogs?: boolean;
|
|
818
|
+
'data-testid'?: string;
|
|
819
|
+
}
|
|
820
|
+
declare const DatasetSelector: ({ db, dataset, catalog, value, onChange, disabled, className, applyDefault, inputId, enableCatalogs, "data-testid": dataTestId, }: DatasetSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
821
|
+
|
|
822
|
+
interface CatalogSelectorProps {
|
|
823
|
+
db: DB;
|
|
824
|
+
inputId?: string;
|
|
825
|
+
value: string | null;
|
|
826
|
+
onChange: (catalog: string | null) => void;
|
|
827
|
+
}
|
|
828
|
+
declare const CatalogSelector: ({ db, inputId, value, onChange }: CatalogSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
829
|
+
|
|
830
|
+
interface TableSelectorProps extends ResourceSelectorProps {
|
|
831
|
+
db: DB;
|
|
832
|
+
dataset?: string;
|
|
833
|
+
catalog?: string;
|
|
834
|
+
value: string | null;
|
|
835
|
+
query: QueryWithDefaults;
|
|
836
|
+
onChange: (v: SelectableValue) => void;
|
|
837
|
+
inputId?: string;
|
|
838
|
+
enableCatalogs?: boolean;
|
|
839
|
+
}
|
|
840
|
+
declare const TableSelector: ({ db, dataset, catalog, value, className, onChange, inputId, enableCatalogs, }: TableSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
801
841
|
|
|
802
842
|
type Props$o = Omit<React.ComponentProps<typeof InlineLabel>, 'children' | 'onChange'> & {
|
|
803
843
|
dataSourceConfig: DataSourceSettings<any, any>;
|
|
@@ -812,7 +852,7 @@ type Props$n = {
|
|
|
812
852
|
hasRequiredFields?: boolean;
|
|
813
853
|
className?: string;
|
|
814
854
|
};
|
|
815
|
-
declare const DataSourceDescription: ({ dataSourceName, docsLink, hasRequiredFields, className }: Props$n) =>
|
|
855
|
+
declare const DataSourceDescription: ({ dataSourceName, docsLink, hasRequiredFields, className }: Props$n) => react_jsx_runtime.JSX.Element;
|
|
816
856
|
|
|
817
857
|
type Props$m = {
|
|
818
858
|
title: string;
|
|
@@ -824,17 +864,17 @@ type Props$m = {
|
|
|
824
864
|
};
|
|
825
865
|
|
|
826
866
|
type Props$l = Omit<Props$m, 'kind'>;
|
|
827
|
-
declare const ConfigSection: ({ children, ...props }: React.PropsWithChildren<Props$l>) =>
|
|
867
|
+
declare const ConfigSection: ({ children, ...props }: React.PropsWithChildren<Props$l>) => react_jsx_runtime.JSX.Element;
|
|
828
868
|
|
|
829
869
|
type Props$k = Omit<Props$m, 'kind'>;
|
|
830
|
-
declare const ConfigSubSection: ({ children, ...props }: React.PropsWithChildren<Props$k>) =>
|
|
870
|
+
declare const ConfigSubSection: ({ children, ...props }: React.PropsWithChildren<Props$k>) => react_jsx_runtime.JSX.Element;
|
|
831
871
|
|
|
832
872
|
type Props$j = {
|
|
833
873
|
description: string;
|
|
834
874
|
suffix: string;
|
|
835
875
|
feature: string;
|
|
836
876
|
};
|
|
837
|
-
declare function ConfigDescriptionLink(props: Props$j):
|
|
877
|
+
declare function ConfigDescriptionLink(props: Props$j): react_jsx_runtime.JSX.Element;
|
|
838
878
|
|
|
839
879
|
declare enum AuthMethod {
|
|
840
880
|
NoAuth = "NoAuth",
|
|
@@ -904,7 +944,7 @@ type Props$f = {
|
|
|
904
944
|
skipTLSVerification: Omit<Props$g, 'readOnly'>;
|
|
905
945
|
readOnly: boolean;
|
|
906
946
|
};
|
|
907
|
-
declare const TLSSettings: ({ selfSignedCertificate, TLSClientAuth, skipTLSVerification, readOnly }: Props$f) =>
|
|
947
|
+
declare const TLSSettings: ({ selfSignedCertificate, TLSClientAuth, skipTLSVerification, readOnly }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
908
948
|
|
|
909
949
|
type Props$e = {
|
|
910
950
|
user?: string;
|
|
@@ -939,7 +979,7 @@ type Props$c = {
|
|
|
939
979
|
customHeaders?: Omit<Props$d, 'readOnly'>;
|
|
940
980
|
readOnly?: boolean;
|
|
941
981
|
};
|
|
942
|
-
declare const Auth: ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly, }: Props$c) =>
|
|
982
|
+
declare const Auth: ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly, }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
943
983
|
|
|
944
984
|
type DataSourceExclusiveConfig = {
|
|
945
985
|
readOnly: DataSourceSettings['readOnly'];
|
|
@@ -1000,7 +1040,7 @@ declare class CustomHeadersSettings extends PureComponent<Props$9, State> {
|
|
|
1000
1040
|
onHeaderChange: (headerIndex: number, value: CustomHeader) => void;
|
|
1001
1041
|
onHeaderReset: (headerId: string) => void;
|
|
1002
1042
|
onHeaderRemove: (headerId: string) => void;
|
|
1003
|
-
render():
|
|
1043
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
1004
1044
|
}
|
|
1005
1045
|
|
|
1006
1046
|
interface QueryBuilderLabelFilter {
|
|
@@ -1118,14 +1158,14 @@ interface Props$8 {
|
|
|
1118
1158
|
labelFilterRequired?: boolean;
|
|
1119
1159
|
multiValueSeparator?: string;
|
|
1120
1160
|
}
|
|
1121
|
-
declare function LabelFilters({ labelsFilters, onChange, onGetLabelNames, onGetLabelValues, labelFilterRequired, multiValueSeparator, }: Props$8):
|
|
1161
|
+
declare function LabelFilters({ labelsFilters, onChange, onGetLabelNames, onGetLabelValues, labelFilterRequired, multiValueSeparator, }: Props$8): react_jsx_runtime.JSX.Element;
|
|
1122
1162
|
|
|
1123
1163
|
interface Props$7 {
|
|
1124
1164
|
title?: React.ReactNode;
|
|
1125
1165
|
markdown?: string;
|
|
1126
1166
|
stepNumber?: number;
|
|
1127
1167
|
}
|
|
1128
|
-
declare function OperationExplainedBox({ title, stepNumber, markdown, children }: React.PropsWithChildren<Props$7>):
|
|
1168
|
+
declare function OperationExplainedBox({ title, stepNumber, markdown, children }: React.PropsWithChildren<Props$7>): react_jsx_runtime.JSX.Element;
|
|
1129
1169
|
|
|
1130
1170
|
interface Props$6<T extends VisualQuery> {
|
|
1131
1171
|
query: T;
|
|
@@ -1138,7 +1178,7 @@ interface Props$6<T extends VisualQuery> {
|
|
|
1138
1178
|
timeRange?: TimeRange;
|
|
1139
1179
|
isConflictingOperation?: (operation: QueryBuilderOperation, otherOperations: QueryBuilderOperation[]) => boolean;
|
|
1140
1180
|
}
|
|
1141
|
-
declare function OperationList<T extends VisualQuery>({ query, datasource, queryModeller, onChange, onRunQuery, highlightedOp, timeRange, isConflictingOperation, }: Props$6<T>):
|
|
1181
|
+
declare function OperationList<T extends VisualQuery>({ query, datasource, queryModeller, onChange, onRunQuery, highlightedOp, timeRange, isConflictingOperation, }: Props$6<T>): react_jsx_runtime.JSX.Element;
|
|
1142
1182
|
|
|
1143
1183
|
interface Props$5<T extends VisualQuery> {
|
|
1144
1184
|
query: T;
|
|
@@ -1152,9 +1192,9 @@ interface Props$5<T extends VisualQuery> {
|
|
|
1152
1192
|
onMouseEnter?: (op: QueryBuilderOperation, index: number) => void;
|
|
1153
1193
|
onMouseLeave?: (op: QueryBuilderOperation, index: number) => void;
|
|
1154
1194
|
}
|
|
1155
|
-
declare function OperationListExplained<T extends VisualQuery>({ query, queryModeller, stepNumber, language, onMouseEnter, onMouseLeave, }: Props$5<T>):
|
|
1195
|
+
declare function OperationListExplained<T extends VisualQuery>({ query, queryModeller, stepNumber, language, onMouseEnter, onMouseLeave, }: Props$5<T>): react_jsx_runtime.JSX.Element;
|
|
1156
1196
|
|
|
1157
|
-
declare function OperationsEditorRow({ children }: React.PropsWithChildren<{}>):
|
|
1197
|
+
declare function OperationsEditorRow({ children }: React.PropsWithChildren<{}>): react_jsx_runtime.JSX.Element;
|
|
1158
1198
|
|
|
1159
1199
|
interface Props$4<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery$1> {
|
|
1160
1200
|
query: TVisualQuery;
|
|
@@ -1169,7 +1209,7 @@ interface Props$4<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery
|
|
|
1169
1209
|
data?: PanelData;
|
|
1170
1210
|
}
|
|
1171
1211
|
declare const QueryBuilderHints: {
|
|
1172
|
-
<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery$1>({ datasource, query: visualQuery, onChange, data, queryModeller, buildVisualQueryFromString, buildDataQueryFromQueryString, buildQueryStringFromDataQuery, }: Props$4<TVisualQuery, TDataQuery>):
|
|
1212
|
+
<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery$1>({ datasource, query: visualQuery, onChange, data, queryModeller, buildVisualQueryFromString, buildDataQueryFromQueryString, buildQueryStringFromDataQuery, }: Props$4<TVisualQuery, TDataQuery>): react_jsx_runtime.JSX.Element;
|
|
1173
1213
|
displayName: string;
|
|
1174
1214
|
};
|
|
1175
1215
|
|
|
@@ -1177,20 +1217,20 @@ interface Props$3 {
|
|
|
1177
1217
|
mode: QueryEditorMode;
|
|
1178
1218
|
onChange: (mode: QueryEditorMode) => void;
|
|
1179
1219
|
}
|
|
1180
|
-
declare function QueryEditorModeToggle({ mode, onChange }: Props$3):
|
|
1220
|
+
declare function QueryEditorModeToggle({ mode, onChange }: Props$3): react_jsx_runtime.JSX.Element;
|
|
1181
1221
|
|
|
1182
1222
|
interface Props$2 extends Omit<HTMLProps<HTMLInputElement>, 'value' | 'ref'> {
|
|
1183
1223
|
value?: boolean;
|
|
1184
1224
|
label: string;
|
|
1185
1225
|
}
|
|
1186
|
-
declare function QueryHeaderSwitch({ label, ...inputProps }: Props$2):
|
|
1226
|
+
declare function QueryHeaderSwitch({ label, ...inputProps }: Props$2): react_jsx_runtime.JSX.Element;
|
|
1187
1227
|
|
|
1188
1228
|
interface Props$1 {
|
|
1189
1229
|
title: string;
|
|
1190
1230
|
collapsedInfo: string[];
|
|
1191
1231
|
queryStats?: QueryStats | null;
|
|
1192
1232
|
}
|
|
1193
|
-
declare function QueryOptionGroup({ title, children, collapsedInfo, queryStats }: React.PropsWithChildren<Props$1>):
|
|
1233
|
+
declare function QueryOptionGroup({ title, children, collapsedInfo, queryStats }: React.PropsWithChildren<Props$1>): react_jsx_runtime.JSX.Element;
|
|
1194
1234
|
|
|
1195
1235
|
interface Props {
|
|
1196
1236
|
query: string;
|
|
@@ -1200,7 +1240,7 @@ interface Props {
|
|
|
1200
1240
|
};
|
|
1201
1241
|
className?: string;
|
|
1202
1242
|
}
|
|
1203
|
-
declare function RawQuery({ query, language, className }: Props):
|
|
1243
|
+
declare function RawQuery({ query, language, className }: Props): react_jsx_runtime.JSX.Element;
|
|
1204
1244
|
|
|
1205
1245
|
declare class DatasourceMock extends DataSourceWithBackend {
|
|
1206
1246
|
query: jest.Mock<any, any>;
|
|
@@ -1275,4 +1315,4 @@ declare const openSelect: (container: HTMLElement, optionLabel?: string) => void
|
|
|
1275
1315
|
declare const selectOption: (container: HTMLElement, optionLabel: string, typeOptionLabel?: boolean) => Promise<void>;
|
|
1276
1316
|
declare const generateOptions: () => Array<SelectableValue<string>>;
|
|
1277
1317
|
|
|
1278
|
-
export { AccessoryButton, AdvancedHttpSettings, type Aggregate, Auth, AuthMethod, type Props$c as AuthProps, BINARY_OPERATIONS_KEY, type ColumnDefinition, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemPriority, ConfigDescriptionLink, ConfigSection, ConfigSubSection, ConnectionSettings, CustomHeadersSettings, type DB, DataLink, type DataLinkConfig, DataLinks, DataSourceDescription, DataSourcePicker, DatePicker, type DatePickerProps, DatePickerWithInput, type DatePickerWithInputProps, DebounceInput, type DebounceInputProps, EditorField, EditorFieldGroup, EditorHeader, EditorList, EditorMode, EditorRow, EditorRows, EditorStack, EditorSwitch, FlexItem, GroupByRow, InlineSelect, InputGroup, LabelFilters, type LanguageCompletionProvider, type LanguageDefinition, LinkedToken, MacroType, type MetaDefinition, type NameValue, OperationExplainedBox, OperationList, OperationListExplained, OperationsEditorRow, OperatorType, type PositionContext, type Props$s as Props, QUERY_FORMAT_OPTIONS, QueryBuilderHints, type QueryBuilderLabelFilter, type QueryBuilderOperation, type QueryBuilderOperationDefinition, type QueryBuilderOperationParamDef, type QueryBuilderOperationParamEditorProps, type QueryBuilderOperationParamValue, QueryEditorMode, QueryEditorModeToggle, type QueryEditorProps, QueryEditorRow, QueryFormat, QueryHeaderSwitch, QueryModellerBase, QueryOptionGroup, type QueryRowFilter, type QueryStats, type RAQBFieldTypes, RawQuery, type ResourceSelectorProps, type ResponseParser, RunQueryButton, type SQLConnectionLimits, SQLEditor, SQLEditorMode, SQLEditorTestUtils, type SQLExpression, type SQLFilters, type SQLMonarchLanguage, type SQLOptions, type SQLQuery, type SQLSelectableValue, type SchemaDefinition, SecureSocksProxyToggle, Segment, type SegmentProps, Space, SqlDatasource, SqlQueryEditor, type SqlQueryForInterpolation, type SqlQueryModel, type State$1 as State, type StatementPlacementProvider, StatementPosition, SuggestionKind, type SuggestionKindProvider, TLSSettings, type Props$f as TLSSettingsProps, type TableDefinition, type TableFieldSchema, type TableIdentifier, type TableSchema, type TestQueryModel, TokenType, type ValidationResults, type VisualQuery, type VisualQueryBinary, type VisualQueryModeller, convertLegacyAuthProps, formatDate, generateArrayOf, generateBoolean, generateOptions, getStandardSQLCompletionProvider, language as grafanaStandardSQLLanguage, conf as grafanaStandardSQLLanguageConf, mockDataQuery, mockDataSourcePluginMeta, mockDatasource, mockDatasourceInstanceSettings, mockLoadingState, mockPluginDependencies, mockPluginInclude, mockPluginIncludeType, mockPluginMeta, mockPluginMetaInfo, mockPluginSignatureStatus, mockPluginState, mockPluginType, mockQueryEditorProps, mockTimeRange, openSelect, selectOption, toOption, undefinedOr };
|
|
1318
|
+
export { AccessoryButton, AdvancedHttpSettings, type Aggregate, Auth, AuthMethod, type Props$c as AuthProps, BINARY_OPERATIONS_KEY, CatalogSelector, type ColumnDefinition, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemPriority, ConfigDescriptionLink, ConfigSection, ConfigSubSection, ConnectionSettings, CustomHeadersSettings, type DB, DataLink, type DataLinkConfig, DataLinks, DataSourceDescription, DataSourcePicker, DatasetSelector, DatePicker, type DatePickerProps, DatePickerWithInput, type DatePickerWithInputProps, DebounceInput, type DebounceInputProps, EditorField, EditorFieldGroup, EditorHeader, EditorList, EditorMode, EditorRow, EditorRows, EditorStack, EditorSwitch, FlexItem, GroupByRow, InlineSelect, InputGroup, LabelFilters, type LanguageCompletionProvider, type LanguageDefinition, LinkedToken, MacroType, type MetaDefinition, type NameValue, OperationExplainedBox, OperationList, OperationListExplained, OperationsEditorRow, OperatorType, type PositionContext, type Props$s as Props, QUERY_FORMAT_OPTIONS, QueryBuilderHints, type QueryBuilderLabelFilter, type QueryBuilderOperation, type QueryBuilderOperationDefinition, type QueryBuilderOperationParamDef, type QueryBuilderOperationParamEditorProps, type QueryBuilderOperationParamValue, QueryEditorMode, QueryEditorModeToggle, type QueryEditorProps, QueryEditorRow, QueryFormat, QueryHeaderSwitch, QueryModellerBase, QueryOptionGroup, type QueryRowFilter, type QueryStats, type RAQBFieldTypes, RawQuery, type ResourceSelectorProps, type ResponseParser, RunQueryButton, type SQLConnectionLimits, SQLEditor, SQLEditorMode, SQLEditorTestUtils, type SQLExpression, type SQLFilters, type SQLMonarchLanguage, type SQLOptions, type SQLQuery, type SQLSelectableValue, type SchemaDefinition, SecureSocksProxyToggle, Segment, type SegmentProps, Space, SqlDatasource, SqlQueryEditor, type SqlQueryForInterpolation, type SqlQueryModel, type State$1 as State, type StatementPlacementProvider, StatementPosition, SuggestionKind, type SuggestionKindProvider, TLSSettings, type Props$f as TLSSettingsProps, type TableDefinition, type TableFieldSchema, type TableIdentifier, type TableSchema, TableSelector, type TestQueryModel, TokenType, type ValidationResults, type VisualQuery, type VisualQueryBinary, type VisualQueryModeller, convertLegacyAuthProps, formatDate, generateArrayOf, generateBoolean, generateOptions, getStandardSQLCompletionProvider, language as grafanaStandardSQLLanguage, conf as grafanaStandardSQLLanguageConf, mockDataQuery, mockDataSourcePluginMeta, mockDatasource, mockDatasourceInstanceSettings, mockLoadingState, mockPluginDependencies, mockPluginInclude, mockPluginIncludeType, mockPluginMeta, mockPluginMetaInfo, mockPluginSignatureStatus, mockPluginState, mockPluginType, mockQueryEditorProps, mockTimeRange, openSelect, selectOption, toOption, undefinedOr };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { css, cx } from '@emotion/css';
|
|
3
3
|
import { InlineField, TagsInput, Input } from '@grafana/ui';
|
|
4
|
+
import 'react';
|
|
4
5
|
import { ConfigSubSection } from '../ConfigSection/ConfigSubSection.js';
|
|
5
6
|
import '@grafana/data';
|
|
6
7
|
|
|
@@ -32,48 +33,51 @@ const AdvancedHttpSettings = ({
|
|
|
32
33
|
maxWidth: 578
|
|
33
34
|
})
|
|
34
35
|
};
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
htmlFor: "advanced-http-cookies",
|
|
39
|
-
label: "Allowed cookies",
|
|
40
|
-
labelWidth: 24,
|
|
41
|
-
tooltip: "Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.",
|
|
42
|
-
disabled: config.readOnly,
|
|
43
|
-
grow: true
|
|
44
|
-
},
|
|
45
|
-
/* @__PURE__ */ React__default.createElement(
|
|
46
|
-
TagsInput,
|
|
36
|
+
return /* @__PURE__ */ jsxs(ConfigSubSection, { title: "Advanced HTTP settings", className: cx(styles.container, className), children: [
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
InlineField,
|
|
47
39
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
htmlFor: "advanced-http-cookies",
|
|
41
|
+
label: "Allowed cookies",
|
|
42
|
+
labelWidth: 24,
|
|
43
|
+
tooltip: "Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.",
|
|
44
|
+
disabled: config.readOnly,
|
|
45
|
+
grow: true,
|
|
46
|
+
children: /* @__PURE__ */ jsx(
|
|
47
|
+
TagsInput,
|
|
48
|
+
{
|
|
49
|
+
id: "advanced-http-cookies",
|
|
50
|
+
placeholder: "New cookie (hit enter to add)",
|
|
51
|
+
tags: config.jsonData.keepCookies,
|
|
52
|
+
onChange: onCookiesChange
|
|
53
|
+
}
|
|
54
|
+
)
|
|
52
55
|
}
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
htmlFor: "advanced-http-timeout",
|
|
58
|
-
label: "Timeout",
|
|
59
|
-
labelWidth: 24,
|
|
60
|
-
tooltip: "HTTP request timeout in seconds",
|
|
61
|
-
disabled: config.readOnly,
|
|
62
|
-
grow: true
|
|
63
|
-
},
|
|
64
|
-
/* @__PURE__ */ React__default.createElement(
|
|
65
|
-
Input,
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
InlineField,
|
|
66
59
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
60
|
+
htmlFor: "advanced-http-timeout",
|
|
61
|
+
label: "Timeout",
|
|
62
|
+
labelWidth: 24,
|
|
63
|
+
tooltip: "HTTP request timeout in seconds",
|
|
64
|
+
disabled: config.readOnly,
|
|
65
|
+
grow: true,
|
|
66
|
+
children: /* @__PURE__ */ jsx(
|
|
67
|
+
Input,
|
|
68
|
+
{
|
|
69
|
+
id: "advanced-http-timeout",
|
|
70
|
+
type: "number",
|
|
71
|
+
min: 0,
|
|
72
|
+
placeholder: "Timeout in seconds",
|
|
73
|
+
"aria-label": "Timeout in seconds",
|
|
74
|
+
value: config.jsonData.timeout,
|
|
75
|
+
onChange: onTimeoutChange
|
|
76
|
+
}
|
|
77
|
+
)
|
|
74
78
|
}
|
|
75
79
|
)
|
|
76
|
-
)
|
|
80
|
+
] });
|
|
77
81
|
};
|
|
78
82
|
|
|
79
83
|
export { AdvancedHttpSettings };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedHttpSettings.js","sources":["../../../../../src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"AdvancedHttpSettings.js","sources":["../../../../../src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.tsx"],"sourcesContent":["import { css, cx } from '@emotion/css';\nimport { InlineField, Input, TagsInput } from '@grafana/ui';\nimport { ConfigSubSection } from '../ConfigSection';\nimport { type Config, type OnChangeHandler } from '../types';\n\nexport type Props<C extends Config = Config> = {\n config: C;\n onChange: OnChangeHandler<C>;\n className?: string;\n};\n\nexport const AdvancedHttpSettings: <C extends Config = Config>(props: Props<C>) => JSX.Element = ({\n config,\n onChange,\n className,\n}) => {\n const onCookiesChange = (cookies: string[]) => {\n onChange({\n ...config,\n jsonData: {\n ...config.jsonData,\n keepCookies: cookies,\n },\n });\n };\n\n const onTimeoutChange = (event: React.FormEvent<HTMLInputElement>) => {\n onChange({\n ...config,\n jsonData: {\n ...config.jsonData,\n timeout: parseInt(event.currentTarget.value, 10),\n },\n });\n };\n\n const styles = {\n container: css({\n maxWidth: 578,\n }),\n };\n\n return (\n <ConfigSubSection title=\"Advanced HTTP settings\" className={cx(styles.container, className)}>\n <InlineField\n htmlFor=\"advanced-http-cookies\"\n label=\"Allowed cookies\"\n labelWidth={24}\n tooltip=\"Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.\"\n disabled={config.readOnly}\n grow\n >\n <TagsInput\n id=\"advanced-http-cookies\"\n placeholder=\"New cookie (hit enter to add)\"\n tags={config.jsonData.keepCookies}\n onChange={onCookiesChange}\n />\n </InlineField>\n\n <InlineField\n htmlFor=\"advanced-http-timeout\"\n label=\"Timeout\"\n labelWidth={24}\n tooltip=\"HTTP request timeout in seconds\"\n disabled={config.readOnly}\n grow\n >\n <Input\n id=\"advanced-http-timeout\"\n type=\"number\"\n min={0}\n placeholder=\"Timeout in seconds\"\n aria-label=\"Timeout in seconds\"\n value={config.jsonData.timeout}\n onChange={onTimeoutChange}\n />\n </InlineField>\n </ConfigSubSection>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAWO,MAAM,uBAAoF,CAAC;AAAA,EAChG,MAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAM,KAAA;AACJ,EAAM,MAAA,eAAA,GAAkB,CAAC,OAAsB,KAAA;AAC7C,IAAS,QAAA,CAAA;AAAA,MACP,GAAG,MAAA;AAAA,MACH,QAAU,EAAA;AAAA,QACR,GAAG,MAAO,CAAA,QAAA;AAAA,QACV,WAAa,EAAA;AAAA;AACf,KACD,CAAA;AAAA,GACH;AAEA,EAAM,MAAA,eAAA,GAAkB,CAAC,KAA6C,KAAA;AACpE,IAAS,QAAA,CAAA;AAAA,MACP,GAAG,MAAA;AAAA,MACH,QAAU,EAAA;AAAA,QACR,GAAG,MAAO,CAAA,QAAA;AAAA,QACV,OAAS,EAAA,QAAA,CAAS,KAAM,CAAA,aAAA,CAAc,OAAO,EAAE;AAAA;AACjD,KACD,CAAA;AAAA,GACH;AAEA,EAAA,MAAM,MAAS,GAAA;AAAA,IACb,WAAW,GAAI,CAAA;AAAA,MACb,QAAU,EAAA;AAAA,KACX;AAAA,GACH;AAEA,EACE,uBAAA,IAAA,CAAC,oBAAiB,KAAM,EAAA,wBAAA,EAAyB,WAAW,EAAG,CAAA,MAAA,CAAO,SAAW,EAAA,SAAS,CACxF,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,WAAA;AAAA,MAAA;AAAA,QACC,OAAQ,EAAA,uBAAA;AAAA,QACR,KAAM,EAAA,iBAAA;AAAA,QACN,UAAY,EAAA,EAAA;AAAA,QACZ,OAAQ,EAAA,0HAAA;AAAA,QACR,UAAU,MAAO,CAAA,QAAA;AAAA,QACjB,IAAI,EAAA,IAAA;AAAA,QAEJ,QAAA,kBAAA,GAAA;AAAA,UAAC,SAAA;AAAA,UAAA;AAAA,YACC,EAAG,EAAA,uBAAA;AAAA,YACH,WAAY,EAAA,+BAAA;AAAA,YACZ,IAAA,EAAM,OAAO,QAAS,CAAA,WAAA;AAAA,YACtB,QAAU,EAAA;AAAA;AAAA;AACZ;AAAA,KACF;AAAA,oBAEA,GAAA;AAAA,MAAC,WAAA;AAAA,MAAA;AAAA,QACC,OAAQ,EAAA,uBAAA;AAAA,QACR,KAAM,EAAA,SAAA;AAAA,QACN,UAAY,EAAA,EAAA;AAAA,QACZ,OAAQ,EAAA,iCAAA;AAAA,QACR,UAAU,MAAO,CAAA,QAAA;AAAA,QACjB,IAAI,EAAA,IAAA;AAAA,QAEJ,QAAA,kBAAA,GAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,EAAG,EAAA,uBAAA;AAAA,YACH,IAAK,EAAA,QAAA;AAAA,YACL,GAAK,EAAA,CAAA;AAAA,YACL,WAAY,EAAA,oBAAA;AAAA,YACZ,YAAW,EAAA,oBAAA;AAAA,YACX,KAAA,EAAO,OAAO,QAAS,CAAA,OAAA;AAAA,YACvB,QAAU,EAAA;AAAA;AAAA;AACZ;AAAA;AACF,GACF,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { css } from '@emotion/css';
|
|
3
|
+
import 'react';
|
|
3
4
|
import { AuthMethodSettings } from './auth-method/AuthMethodSettings.js';
|
|
4
5
|
import { TLSSettings } from './tls/TLSSettings.js';
|
|
5
6
|
import '@grafana/ui';
|
|
@@ -24,19 +25,23 @@ const Auth = ({
|
|
|
24
25
|
maxWidth: 578
|
|
25
26
|
})
|
|
26
27
|
};
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
return /* @__PURE__ */ jsx("div", { className: styles.container, children: /* @__PURE__ */ jsxs(ConfigSection, { title: "Authentication", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
AuthMethodSettings,
|
|
31
|
+
{
|
|
32
|
+
selectedMethod,
|
|
33
|
+
mostCommonMethod,
|
|
34
|
+
customMethods,
|
|
35
|
+
visibleMethods,
|
|
36
|
+
defaultOptionsOverrides,
|
|
37
|
+
onAuthMethodSelect,
|
|
38
|
+
basicAuth,
|
|
39
|
+
readOnly
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
TLS && /* @__PURE__ */ jsx(TLSSettings, { ...TLS, readOnly }),
|
|
43
|
+
customHeaders && /* @__PURE__ */ jsx(CustomHeaders, { ...customHeaders, readOnly })
|
|
44
|
+
] }) });
|
|
40
45
|
};
|
|
41
46
|
|
|
42
47
|
export { Auth };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth.js","sources":["../../../../../src/components/ConfigEditor/Auth/Auth.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Auth.js","sources":["../../../../../src/components/ConfigEditor/Auth/Auth.tsx"],"sourcesContent":["import { css } from '@emotion/css';\nimport { type AuthMethod, type AuthMethodSelectOption, type CustomMethod, type CustomMethodId } from './types';\nimport { AuthMethodSettings } from './auth-method/AuthMethodSettings';\nimport { TLSSettings, type Props as TLSSettingsProps } from './tls/TLSSettings';\nimport { type Props as BasicAuthProps } from './auth-method/BasicAuth';\nimport { CustomHeaders, type Props as CustomHeadersProps } from './custom-headers/CustomHeaders';\nimport { ConfigSection } from '../ConfigSection';\n\nexport type Props = {\n selectedMethod: AuthMethod | CustomMethodId;\n mostCommonMethod?: AuthMethod | CustomMethodId;\n visibleMethods?: Array<AuthMethod | CustomMethodId>;\n defaultOptionsOverrides?: Partial<Record<AuthMethod, AuthMethodSelectOption>>;\n customMethods?: CustomMethod[];\n onAuthMethodSelect: (authType: AuthMethod | CustomMethodId) => void;\n basicAuth?: Omit<BasicAuthProps, 'readOnly'>;\n TLS?: Omit<TLSSettingsProps, 'readOnly'>;\n customHeaders?: Omit<CustomHeadersProps, 'readOnly'>;\n readOnly?: boolean;\n};\n\nexport const Auth = ({\n selectedMethod,\n mostCommonMethod,\n visibleMethods,\n defaultOptionsOverrides,\n customMethods,\n onAuthMethodSelect,\n basicAuth,\n TLS,\n customHeaders,\n readOnly = false,\n}: Props) => {\n const styles = {\n container: css({\n maxWidth: 578,\n }),\n };\n\n return (\n <div className={styles.container}>\n <ConfigSection title=\"Authentication\">\n <AuthMethodSettings\n selectedMethod={selectedMethod}\n mostCommonMethod={mostCommonMethod}\n customMethods={customMethods}\n visibleMethods={visibleMethods}\n defaultOptionsOverrides={defaultOptionsOverrides}\n onAuthMethodSelect={onAuthMethodSelect}\n basicAuth={basicAuth}\n readOnly={readOnly}\n />\n {TLS && <TLSSettings {...TLS} readOnly={readOnly} />}\n {customHeaders && <CustomHeaders {...customHeaders} readOnly={readOnly} />}\n </ConfigSection>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AAqBO,MAAM,OAAO,CAAC;AAAA,EACnB,cAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,uBAAA;AAAA,EACA,aAAA;AAAA,EACA,kBAAA;AAAA,EACA,SAAA;AAAA,EACA,GAAA;AAAA,EACA,aAAA;AAAA,EACA,QAAW,GAAA;AACb,CAAa,KAAA;AACX,EAAA,MAAM,MAAS,GAAA;AAAA,IACb,WAAW,GAAI,CAAA;AAAA,MACb,QAAU,EAAA;AAAA,KACX;AAAA,GACH;AAEA,EACE,uBAAA,GAAA,CAAC,SAAI,SAAW,EAAA,MAAA,CAAO,WACrB,QAAC,kBAAA,IAAA,CAAA,aAAA,EAAA,EAAc,OAAM,gBACnB,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,kBAAA;AAAA,MAAA;AAAA,QACC,cAAA;AAAA,QACA,gBAAA;AAAA,QACA,aAAA;AAAA,QACA,cAAA;AAAA,QACA,uBAAA;AAAA,QACA,kBAAA;AAAA,QACA,SAAA;AAAA,QACA;AAAA;AAAA,KACF;AAAA,IACC,GAAO,oBAAA,GAAA,CAAC,WAAa,EAAA,EAAA,GAAG,KAAK,QAAoB,EAAA,CAAA;AAAA,IACjD,aAAiB,oBAAA,GAAA,CAAC,aAAe,EAAA,EAAA,GAAG,eAAe,QAAoB,EAAA;AAAA,GAAA,EAC1E,CACF,EAAA,CAAA;AAEJ;;;;"}
|