@grafana/plugin-ui 0.10.9 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1799 -1325
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +94 -46
- 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 +54 -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 +3 -2
- 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 +44 -37
- package/dist/esm/components/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/esm/components/QueryEditor/QueryHeader.js +172 -95
- 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/SchemaSelector.js +56 -0
- package/dist/esm/components/QueryEditor/SchemaSelector.js.map +1 -0
- 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 +21 -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/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 +40 -34
- package/dist/esm/components/SQLEditor/components/SQLEditor.js.map +1 -1
- package/dist/esm/components/SQLEditor/hooks/useLatestCallback.js +16 -0
- package/dist/esm/components/SQLEditor/hooks/useLatestCallback.js.map +1 -0
- 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/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 +94 -46
- package/dist/esm/index.js +4 -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>;
|
|
@@ -439,7 +441,7 @@ interface SQLEditorProps {
|
|
|
439
441
|
width?: number;
|
|
440
442
|
height?: number;
|
|
441
443
|
}
|
|
442
|
-
declare const SQLEditor: ({ children, onBlur, onChange, query, language, width, height, }: SQLEditorProps) =>
|
|
444
|
+
declare const SQLEditor: ({ children, onBlur, onChange, query, language, width, height, }: SQLEditorProps) => react_jsx_runtime.JSX.Element;
|
|
443
445
|
|
|
444
446
|
interface TestQueryModel {
|
|
445
447
|
query: string;
|
|
@@ -533,6 +535,8 @@ interface SQLQuery extends DataQuery {
|
|
|
533
535
|
format?: QueryFormat;
|
|
534
536
|
rawSql?: string;
|
|
535
537
|
dataset?: string;
|
|
538
|
+
catalog?: string;
|
|
539
|
+
schema?: string;
|
|
536
540
|
table?: string;
|
|
537
541
|
sql?: SQLExpression;
|
|
538
542
|
editorMode?: EditorMode;
|
|
@@ -594,7 +598,9 @@ interface Aggregate {
|
|
|
594
598
|
interface DB {
|
|
595
599
|
init?: (datasourceId?: string) => Promise<boolean>;
|
|
596
600
|
datasets: () => Promise<string[]>;
|
|
597
|
-
|
|
601
|
+
catalogs?: () => Promise<string[]>;
|
|
602
|
+
schemas?: (catalog?: string) => Promise<string[]>;
|
|
603
|
+
tables: (dataset?: string, catalog?: string, schema?: string) => Promise<string[]>;
|
|
598
604
|
fields: (query: SQLQuery, order?: boolean) => Promise<SQLSelectableValue[]>;
|
|
599
605
|
validateQuery: (query: SQLQuery, range?: TimeRange) => Promise<ValidationResults>;
|
|
600
606
|
dsID: () => number;
|
|
@@ -608,6 +614,7 @@ interface DB {
|
|
|
608
614
|
functions: () => Promise<Aggregate[]>;
|
|
609
615
|
labels?: Map<'dataset', string>;
|
|
610
616
|
disableDatasets?: boolean;
|
|
617
|
+
disableCatalogs?: boolean;
|
|
611
618
|
}
|
|
612
619
|
interface QueryEditorProps {
|
|
613
620
|
db: DB;
|
|
@@ -643,20 +650,20 @@ interface GroupByRowProps {
|
|
|
643
650
|
onSqlChange: (sql: SQLExpression) => void;
|
|
644
651
|
columns?: Array<SelectableValue<string>>;
|
|
645
652
|
}
|
|
646
|
-
declare function GroupByRow({ sql, columns, onSqlChange }: GroupByRowProps):
|
|
653
|
+
declare function GroupByRow({ sql, columns, onSqlChange }: GroupByRowProps): react_jsx_runtime.JSX.Element;
|
|
647
654
|
|
|
648
655
|
type AccessoryButtonProps = ButtonProps & {};
|
|
649
|
-
declare const AccessoryButton: ({ className, ...props }: AccessoryButtonProps) =>
|
|
656
|
+
declare const AccessoryButton: ({ className, ...props }: AccessoryButtonProps) => react_jsx_runtime.JSX.Element;
|
|
650
657
|
|
|
651
658
|
interface EditorFieldGroupProps {
|
|
652
659
|
children?: React.ReactNode;
|
|
653
660
|
}
|
|
654
|
-
declare const EditorFieldGroup: ({ children }: EditorFieldGroupProps) =>
|
|
661
|
+
declare const EditorFieldGroup: ({ children }: EditorFieldGroupProps) => react_jsx_runtime.JSX.Element;
|
|
655
662
|
|
|
656
663
|
interface EditorHeaderProps {
|
|
657
664
|
children?: React.ReactNode;
|
|
658
665
|
}
|
|
659
|
-
declare const EditorHeader: ({ children }: EditorHeaderProps) =>
|
|
666
|
+
declare const EditorHeader: ({ children }: EditorHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
660
667
|
|
|
661
668
|
interface EditorFieldProps extends ComponentProps<typeof Field> {
|
|
662
669
|
label: string;
|
|
@@ -666,32 +673,32 @@ interface EditorFieldProps extends ComponentProps<typeof Field> {
|
|
|
666
673
|
tooltip?: PopoverContent;
|
|
667
674
|
tooltipInteractive?: boolean;
|
|
668
675
|
}
|
|
669
|
-
declare const EditorField: (props: EditorFieldProps) =>
|
|
676
|
+
declare const EditorField: (props: EditorFieldProps) => react_jsx_runtime.JSX.Element;
|
|
670
677
|
|
|
671
678
|
interface EditorRowProps {
|
|
672
679
|
children?: React.ReactNode;
|
|
673
680
|
}
|
|
674
|
-
declare const EditorRow: ({ children }: EditorRowProps) =>
|
|
681
|
+
declare const EditorRow: ({ children }: EditorRowProps) => react_jsx_runtime.JSX.Element;
|
|
675
682
|
|
|
676
683
|
interface EditorListProps<T> {
|
|
677
684
|
items: Array<Partial<T>>;
|
|
678
|
-
renderItem: (item: Partial<T>, onChangeItem: (item: Partial<T>) => void, onDeleteItem: () => void) =>
|
|
685
|
+
renderItem: (item: Partial<T>, onChangeItem: (item: Partial<T>) => void, onDeleteItem: () => void) => ReactElement;
|
|
679
686
|
onChange: (items: Array<Partial<T>>) => void;
|
|
680
687
|
}
|
|
681
|
-
declare const EditorList:
|
|
688
|
+
declare const EditorList: react.ForwardRefExoticComponent<EditorListProps<unknown> & react.RefAttributes<HTMLButtonElement>>;
|
|
682
689
|
|
|
683
690
|
interface EditorRowsProps {
|
|
684
691
|
children?: React.ReactNode;
|
|
685
692
|
}
|
|
686
|
-
declare const EditorRows: ({ children }: EditorRowsProps) =>
|
|
693
|
+
declare const EditorRows: ({ children }: EditorRowsProps) => react_jsx_runtime.JSX.Element;
|
|
687
694
|
|
|
688
|
-
declare const EditorSwitch: (props: ComponentProps<typeof Switch>) =>
|
|
695
|
+
declare const EditorSwitch: (props: ComponentProps<typeof Switch>) => react_jsx_runtime.JSX.Element;
|
|
689
696
|
|
|
690
697
|
interface FlexItemProps {
|
|
691
698
|
grow?: number;
|
|
692
699
|
shrink?: number;
|
|
693
700
|
}
|
|
694
|
-
declare const FlexItem: ({ grow, shrink }: FlexItemProps) =>
|
|
701
|
+
declare const FlexItem: ({ grow, shrink }: FlexItemProps) => react_jsx_runtime.JSX.Element;
|
|
695
702
|
|
|
696
703
|
type Direction = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
697
704
|
type AlignItems = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'start' | 'end' | 'self-start' | 'self-end';
|
|
@@ -702,12 +709,12 @@ interface StackProps {
|
|
|
702
709
|
wrap?: boolean;
|
|
703
710
|
gap?: ThemeSpacingTokens;
|
|
704
711
|
}
|
|
705
|
-
declare const EditorStack: ({ children, wrap: wrapItems, ...props }: StackProps) =>
|
|
712
|
+
declare const EditorStack: ({ children, wrap: wrapItems, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
706
713
|
|
|
707
714
|
interface InlineSelectProps<T> extends SelectCommonProps<T> {
|
|
708
715
|
label?: string;
|
|
709
716
|
}
|
|
710
|
-
declare function InlineSelect<T>({ label: labelProp, ...props }: InlineSelectProps<T>):
|
|
717
|
+
declare function InlineSelect<T>({ label: labelProp, ...props }: InlineSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
711
718
|
|
|
712
719
|
type Child = string | undefined | ReactElement<{
|
|
713
720
|
className?: string;
|
|
@@ -716,7 +723,7 @@ type Child = string | undefined | ReactElement<{
|
|
|
716
723
|
interface InputGroupProps {
|
|
717
724
|
children: Child | Child[];
|
|
718
725
|
}
|
|
719
|
-
declare const InputGroup: ({ children }: InputGroupProps) =>
|
|
726
|
+
declare const InputGroup: ({ children }: InputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
720
727
|
|
|
721
728
|
interface SpaceProps {
|
|
722
729
|
v?: number;
|
|
@@ -724,7 +731,7 @@ interface SpaceProps {
|
|
|
724
731
|
layout?: 'block' | 'inline';
|
|
725
732
|
}
|
|
726
733
|
declare const Space: {
|
|
727
|
-
(props: SpaceProps):
|
|
734
|
+
(props: SpaceProps): react_jsx_runtime.JSX.Element;
|
|
728
735
|
defaultProps: {
|
|
729
736
|
v: number;
|
|
730
737
|
h: number;
|
|
@@ -786,7 +793,7 @@ interface MetricFindQueryOptions extends SearchFilterOptions {
|
|
|
786
793
|
|
|
787
794
|
interface Props$p extends QueryEditorProps$1<SqlDatasource, SQLQuery, SQLOptions> {
|
|
788
795
|
}
|
|
789
|
-
declare function SqlQueryEditor({ datasource, query, onChange, onRunQuery, range }: Props$p):
|
|
796
|
+
declare function SqlQueryEditor({ datasource, query, onChange, onRunQuery, range }: Props$p): react_jsx_runtime.JSX.Element | null;
|
|
790
797
|
|
|
791
798
|
type RunQueryButtonProps = {
|
|
792
799
|
ariaLabel?: string;
|
|
@@ -797,7 +804,48 @@ type RunQueryButtonProps = {
|
|
|
797
804
|
onClick: () => void;
|
|
798
805
|
dataTestId?: string;
|
|
799
806
|
};
|
|
800
|
-
declare const RunQueryButton: ({ ariaLabel, queryRunning, queryInvalid, invalidQueryTooltip, disabled, onClick, dataTestId, }: RunQueryButtonProps) =>
|
|
807
|
+
declare const RunQueryButton: ({ ariaLabel, queryRunning, queryInvalid, invalidQueryTooltip, disabled, onClick, dataTestId, }: RunQueryButtonProps) => react_jsx_runtime.JSX.Element;
|
|
808
|
+
|
|
809
|
+
interface DatasetSelectorProps extends ResourceSelectorProps {
|
|
810
|
+
db: DB;
|
|
811
|
+
dataset: string;
|
|
812
|
+
value: string | null;
|
|
813
|
+
applyDefault?: boolean;
|
|
814
|
+
disabled?: boolean;
|
|
815
|
+
onChange: (v: SelectableValue) => void;
|
|
816
|
+
inputId?: string;
|
|
817
|
+
}
|
|
818
|
+
declare const DatasetSelector: ({ db, dataset, value, onChange, disabled, className, applyDefault, inputId, }: DatasetSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
819
|
+
|
|
820
|
+
interface CatalogSelectorProps {
|
|
821
|
+
db: DB;
|
|
822
|
+
inputId?: string;
|
|
823
|
+
value: string | null;
|
|
824
|
+
onChange: (catalog: string | null) => void;
|
|
825
|
+
}
|
|
826
|
+
declare const CatalogSelector: ({ db, inputId, value, onChange }: CatalogSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
827
|
+
|
|
828
|
+
interface SchemaSelectorProps {
|
|
829
|
+
db: DB;
|
|
830
|
+
inputId?: string;
|
|
831
|
+
catalog?: string;
|
|
832
|
+
value: string | null;
|
|
833
|
+
onChange: (schema: string | null) => void;
|
|
834
|
+
}
|
|
835
|
+
declare const SchemaSelector: ({ db, inputId, catalog, value, onChange }: SchemaSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
836
|
+
|
|
837
|
+
interface TableSelectorProps extends ResourceSelectorProps {
|
|
838
|
+
db: DB;
|
|
839
|
+
dataset?: string;
|
|
840
|
+
catalog?: string;
|
|
841
|
+
schema?: string;
|
|
842
|
+
value: string | null;
|
|
843
|
+
query: QueryWithDefaults;
|
|
844
|
+
onChange: (v: SelectableValue) => void;
|
|
845
|
+
inputId?: string;
|
|
846
|
+
enableCatalogs?: boolean;
|
|
847
|
+
}
|
|
848
|
+
declare const TableSelector: ({ db, dataset, catalog, schema, value, className, onChange, inputId, enableCatalogs, }: TableSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
801
849
|
|
|
802
850
|
type Props$o = Omit<React.ComponentProps<typeof InlineLabel>, 'children' | 'onChange'> & {
|
|
803
851
|
dataSourceConfig: DataSourceSettings<any, any>;
|
|
@@ -812,7 +860,7 @@ type Props$n = {
|
|
|
812
860
|
hasRequiredFields?: boolean;
|
|
813
861
|
className?: string;
|
|
814
862
|
};
|
|
815
|
-
declare const DataSourceDescription: ({ dataSourceName, docsLink, hasRequiredFields, className }: Props$n) =>
|
|
863
|
+
declare const DataSourceDescription: ({ dataSourceName, docsLink, hasRequiredFields, className }: Props$n) => react_jsx_runtime.JSX.Element;
|
|
816
864
|
|
|
817
865
|
type Props$m = {
|
|
818
866
|
title: string;
|
|
@@ -824,17 +872,17 @@ type Props$m = {
|
|
|
824
872
|
};
|
|
825
873
|
|
|
826
874
|
type Props$l = Omit<Props$m, 'kind'>;
|
|
827
|
-
declare const ConfigSection: ({ children, ...props }: React.PropsWithChildren<Props$l>) =>
|
|
875
|
+
declare const ConfigSection: ({ children, ...props }: React.PropsWithChildren<Props$l>) => react_jsx_runtime.JSX.Element;
|
|
828
876
|
|
|
829
877
|
type Props$k = Omit<Props$m, 'kind'>;
|
|
830
|
-
declare const ConfigSubSection: ({ children, ...props }: React.PropsWithChildren<Props$k>) =>
|
|
878
|
+
declare const ConfigSubSection: ({ children, ...props }: React.PropsWithChildren<Props$k>) => react_jsx_runtime.JSX.Element;
|
|
831
879
|
|
|
832
880
|
type Props$j = {
|
|
833
881
|
description: string;
|
|
834
882
|
suffix: string;
|
|
835
883
|
feature: string;
|
|
836
884
|
};
|
|
837
|
-
declare function ConfigDescriptionLink(props: Props$j):
|
|
885
|
+
declare function ConfigDescriptionLink(props: Props$j): react_jsx_runtime.JSX.Element;
|
|
838
886
|
|
|
839
887
|
declare enum AuthMethod {
|
|
840
888
|
NoAuth = "NoAuth",
|
|
@@ -904,7 +952,7 @@ type Props$f = {
|
|
|
904
952
|
skipTLSVerification: Omit<Props$g, 'readOnly'>;
|
|
905
953
|
readOnly: boolean;
|
|
906
954
|
};
|
|
907
|
-
declare const TLSSettings: ({ selfSignedCertificate, TLSClientAuth, skipTLSVerification, readOnly }: Props$f) =>
|
|
955
|
+
declare const TLSSettings: ({ selfSignedCertificate, TLSClientAuth, skipTLSVerification, readOnly }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
908
956
|
|
|
909
957
|
type Props$e = {
|
|
910
958
|
user?: string;
|
|
@@ -939,7 +987,7 @@ type Props$c = {
|
|
|
939
987
|
customHeaders?: Omit<Props$d, 'readOnly'>;
|
|
940
988
|
readOnly?: boolean;
|
|
941
989
|
};
|
|
942
|
-
declare const Auth: ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly, }: Props$c) =>
|
|
990
|
+
declare const Auth: ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly, }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
943
991
|
|
|
944
992
|
type DataSourceExclusiveConfig = {
|
|
945
993
|
readOnly: DataSourceSettings['readOnly'];
|
|
@@ -1000,7 +1048,7 @@ declare class CustomHeadersSettings extends PureComponent<Props$9, State> {
|
|
|
1000
1048
|
onHeaderChange: (headerIndex: number, value: CustomHeader) => void;
|
|
1001
1049
|
onHeaderReset: (headerId: string) => void;
|
|
1002
1050
|
onHeaderRemove: (headerId: string) => void;
|
|
1003
|
-
render():
|
|
1051
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
1004
1052
|
}
|
|
1005
1053
|
|
|
1006
1054
|
interface QueryBuilderLabelFilter {
|
|
@@ -1118,14 +1166,14 @@ interface Props$8 {
|
|
|
1118
1166
|
labelFilterRequired?: boolean;
|
|
1119
1167
|
multiValueSeparator?: string;
|
|
1120
1168
|
}
|
|
1121
|
-
declare function LabelFilters({ labelsFilters, onChange, onGetLabelNames, onGetLabelValues, labelFilterRequired, multiValueSeparator, }: Props$8):
|
|
1169
|
+
declare function LabelFilters({ labelsFilters, onChange, onGetLabelNames, onGetLabelValues, labelFilterRequired, multiValueSeparator, }: Props$8): react_jsx_runtime.JSX.Element;
|
|
1122
1170
|
|
|
1123
1171
|
interface Props$7 {
|
|
1124
1172
|
title?: React.ReactNode;
|
|
1125
1173
|
markdown?: string;
|
|
1126
1174
|
stepNumber?: number;
|
|
1127
1175
|
}
|
|
1128
|
-
declare function OperationExplainedBox({ title, stepNumber, markdown, children }: React.PropsWithChildren<Props$7>):
|
|
1176
|
+
declare function OperationExplainedBox({ title, stepNumber, markdown, children }: React.PropsWithChildren<Props$7>): react_jsx_runtime.JSX.Element;
|
|
1129
1177
|
|
|
1130
1178
|
interface Props$6<T extends VisualQuery> {
|
|
1131
1179
|
query: T;
|
|
@@ -1138,7 +1186,7 @@ interface Props$6<T extends VisualQuery> {
|
|
|
1138
1186
|
timeRange?: TimeRange;
|
|
1139
1187
|
isConflictingOperation?: (operation: QueryBuilderOperation, otherOperations: QueryBuilderOperation[]) => boolean;
|
|
1140
1188
|
}
|
|
1141
|
-
declare function OperationList<T extends VisualQuery>({ query, datasource, queryModeller, onChange, onRunQuery, highlightedOp, timeRange, isConflictingOperation, }: Props$6<T>):
|
|
1189
|
+
declare function OperationList<T extends VisualQuery>({ query, datasource, queryModeller, onChange, onRunQuery, highlightedOp, timeRange, isConflictingOperation, }: Props$6<T>): react_jsx_runtime.JSX.Element;
|
|
1142
1190
|
|
|
1143
1191
|
interface Props$5<T extends VisualQuery> {
|
|
1144
1192
|
query: T;
|
|
@@ -1152,9 +1200,9 @@ interface Props$5<T extends VisualQuery> {
|
|
|
1152
1200
|
onMouseEnter?: (op: QueryBuilderOperation, index: number) => void;
|
|
1153
1201
|
onMouseLeave?: (op: QueryBuilderOperation, index: number) => void;
|
|
1154
1202
|
}
|
|
1155
|
-
declare function OperationListExplained<T extends VisualQuery>({ query, queryModeller, stepNumber, language, onMouseEnter, onMouseLeave, }: Props$5<T>):
|
|
1203
|
+
declare function OperationListExplained<T extends VisualQuery>({ query, queryModeller, stepNumber, language, onMouseEnter, onMouseLeave, }: Props$5<T>): react_jsx_runtime.JSX.Element;
|
|
1156
1204
|
|
|
1157
|
-
declare function OperationsEditorRow({ children }: React.PropsWithChildren<{}>):
|
|
1205
|
+
declare function OperationsEditorRow({ children }: React.PropsWithChildren<{}>): react_jsx_runtime.JSX.Element;
|
|
1158
1206
|
|
|
1159
1207
|
interface Props$4<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery$1> {
|
|
1160
1208
|
query: TVisualQuery;
|
|
@@ -1169,7 +1217,7 @@ interface Props$4<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery
|
|
|
1169
1217
|
data?: PanelData;
|
|
1170
1218
|
}
|
|
1171
1219
|
declare const QueryBuilderHints: {
|
|
1172
|
-
<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery$1>({ datasource, query: visualQuery, onChange, data, queryModeller, buildVisualQueryFromString, buildDataQueryFromQueryString, buildQueryStringFromDataQuery, }: Props$4<TVisualQuery, TDataQuery>):
|
|
1220
|
+
<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
1221
|
displayName: string;
|
|
1174
1222
|
};
|
|
1175
1223
|
|
|
@@ -1177,20 +1225,20 @@ interface Props$3 {
|
|
|
1177
1225
|
mode: QueryEditorMode;
|
|
1178
1226
|
onChange: (mode: QueryEditorMode) => void;
|
|
1179
1227
|
}
|
|
1180
|
-
declare function QueryEditorModeToggle({ mode, onChange }: Props$3):
|
|
1228
|
+
declare function QueryEditorModeToggle({ mode, onChange }: Props$3): react_jsx_runtime.JSX.Element;
|
|
1181
1229
|
|
|
1182
1230
|
interface Props$2 extends Omit<HTMLProps<HTMLInputElement>, 'value' | 'ref'> {
|
|
1183
1231
|
value?: boolean;
|
|
1184
1232
|
label: string;
|
|
1185
1233
|
}
|
|
1186
|
-
declare function QueryHeaderSwitch({ label, ...inputProps }: Props$2):
|
|
1234
|
+
declare function QueryHeaderSwitch({ label, ...inputProps }: Props$2): react_jsx_runtime.JSX.Element;
|
|
1187
1235
|
|
|
1188
1236
|
interface Props$1 {
|
|
1189
1237
|
title: string;
|
|
1190
1238
|
collapsedInfo: string[];
|
|
1191
1239
|
queryStats?: QueryStats | null;
|
|
1192
1240
|
}
|
|
1193
|
-
declare function QueryOptionGroup({ title, children, collapsedInfo, queryStats }: React.PropsWithChildren<Props$1>):
|
|
1241
|
+
declare function QueryOptionGroup({ title, children, collapsedInfo, queryStats }: React.PropsWithChildren<Props$1>): react_jsx_runtime.JSX.Element;
|
|
1194
1242
|
|
|
1195
1243
|
interface Props {
|
|
1196
1244
|
query: string;
|
|
@@ -1200,7 +1248,7 @@ interface Props {
|
|
|
1200
1248
|
};
|
|
1201
1249
|
className?: string;
|
|
1202
1250
|
}
|
|
1203
|
-
declare function RawQuery({ query, language, className }: Props):
|
|
1251
|
+
declare function RawQuery({ query, language, className }: Props): react_jsx_runtime.JSX.Element;
|
|
1204
1252
|
|
|
1205
1253
|
declare class DatasourceMock extends DataSourceWithBackend {
|
|
1206
1254
|
query: jest.Mock<any, any>;
|
|
@@ -1275,4 +1323,4 @@ declare const openSelect: (container: HTMLElement, optionLabel?: string) => void
|
|
|
1275
1323
|
declare const selectOption: (container: HTMLElement, optionLabel: string, typeOptionLabel?: boolean) => Promise<void>;
|
|
1276
1324
|
declare const generateOptions: () => Array<SelectableValue<string>>;
|
|
1277
1325
|
|
|
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 };
|
|
1326
|
+
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, SchemaSelector, 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;;;;"}
|