@grafana/plugin-ui 0.9.5 → 0.10.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.d.cts +1205 -0
- package/dist/cjs/index.js +9739 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +80 -0
- package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/Auth.js +43 -0
- package/dist/esm/components/ConfigEditor/Auth/Auth.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +132 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js +82 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +91 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +101 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/styles.js +18 -0
- package/dist/esm/components/ConfigEditor/Auth/styles.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +58 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +18 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js +114 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js +31 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +35 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/types.js +12 -0
- package/dist/esm/components/ConfigEditor/Auth/types.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/utils.js +200 -0
- package/dist/esm/components/ConfigEditor/Auth/utils.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +38 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js +9 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js +9 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js +55 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js +53 -0
- package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/DataSourceDescription.js +32 -0
- package/dist/esm/components/ConfigEditor/DataSourceDescription.js.map +1 -0
- package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js +45 -0
- package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js.map +1 -0
- package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js +182 -0
- package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js.map +1 -0
- package/dist/esm/components/DataLinks/DataLink.js +144 -0
- package/dist/esm/components/DataLinks/DataLink.js.map +1 -0
- package/dist/esm/components/DataLinks/DataLinks.js +66 -0
- package/dist/esm/components/DataLinks/DataLinks.js.map +1 -0
- package/dist/esm/components/DataSourcePicker/DataSourcePicker.js +103 -0
- package/dist/esm/components/DataSourcePicker/DataSourcePicker.js.map +1 -0
- package/dist/esm/components/DatePicker/DatePicker.js +39 -0
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/{components → esm/components}/DatePicker/styles.js +20 -21
- package/dist/esm/components/DatePicker/styles.js.map +1 -0
- package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js +28 -0
- package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js.map +1 -0
- package/dist/esm/components/DatePickerWithInput/styles.js +16 -0
- package/dist/esm/components/DatePickerWithInput/styles.js.map +1 -0
- package/dist/esm/components/DebounceInput/DebounceInput.js +15 -0
- package/dist/esm/components/DebounceInput/DebounceInput.js.map +1 -0
- package/dist/esm/components/Plugins/PluginSignatureBadge.js +57 -0
- package/dist/esm/components/Plugins/PluginSignatureBadge.js.map +1 -0
- package/dist/esm/components/QueryEditor/AccessoryButton.js +18 -0
- package/dist/esm/components/QueryEditor/AccessoryButton.js.map +1 -0
- package/dist/esm/components/QueryEditor/ConfirmModal.js +26 -0
- package/dist/esm/components/QueryEditor/ConfirmModal.js.map +1 -0
- package/dist/esm/components/QueryEditor/DatasetSelector.js +56 -0
- package/dist/esm/components/QueryEditor/DatasetSelector.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorField.js +42 -0
- package/dist/esm/components/QueryEditor/EditorField.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorFieldGroup.js +9 -0
- package/dist/esm/components/QueryEditor/EditorFieldGroup.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorHeader.js +21 -0
- package/dist/esm/components/QueryEditor/EditorHeader.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorList.js +28 -0
- package/dist/esm/components/QueryEditor/EditorList.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorRow.js +22 -0
- package/dist/esm/components/QueryEditor/EditorRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorRows.js +9 -0
- package/dist/esm/components/QueryEditor/EditorRows.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorStack.js +11 -0
- package/dist/esm/components/QueryEditor/EditorStack.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorSwitch.js +20 -0
- package/dist/esm/components/QueryEditor/EditorSwitch.js.map +1 -0
- package/dist/esm/components/QueryEditor/FlexItem.js +8 -0
- package/dist/esm/components/QueryEditor/FlexItem.js.map +1 -0
- package/dist/esm/components/QueryEditor/InlineSelect.js +50 -0
- package/dist/esm/components/QueryEditor/InlineSelect.js.map +1 -0
- package/dist/esm/components/QueryEditor/InputGroup.js +63 -0
- package/dist/esm/components/QueryEditor/InputGroup.js.map +1 -0
- package/dist/esm/components/QueryEditor/QueryEditor.js +110 -0
- package/dist/esm/components/QueryEditor/QueryEditor.js.map +1 -0
- package/dist/esm/components/QueryEditor/QueryHeader.js +172 -0
- package/dist/esm/components/QueryEditor/QueryHeader.js.map +1 -0
- package/dist/esm/components/QueryEditor/RunQueryButton.js +42 -0
- package/dist/esm/components/QueryEditor/RunQueryButton.js.map +1 -0
- package/dist/esm/components/QueryEditor/Space.js +35 -0
- package/dist/esm/components/QueryEditor/Space.js.map +1 -0
- package/dist/esm/components/QueryEditor/TableSelector.js +33 -0
- package/dist/esm/components/QueryEditor/TableSelector.js.map +1 -0
- package/dist/esm/components/QueryEditor/defaults.js +25 -0
- package/dist/esm/components/QueryEditor/defaults.js.map +1 -0
- package/dist/esm/components/QueryEditor/expressions.js +17 -0
- package/dist/esm/components/QueryEditor/expressions.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +39 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js +63 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js +72 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js +96 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js.map +1 -0
- package/dist/esm/components/QueryEditor/types.js +33 -0
- package/dist/esm/components/QueryEditor/types.js.map +1 -0
- package/dist/esm/components/QueryEditor/utils/formatSQL.js +10 -0
- package/dist/esm/components/QueryEditor/utils/formatSQL.js.map +1 -0
- package/dist/esm/components/QueryEditor/utils/sql.utils.js +93 -0
- package/dist/esm/components/QueryEditor/utils/sql.utils.js.map +1 -0
- package/dist/esm/components/QueryEditor/utils/useSqlChange.js +19 -0
- package/dist/esm/components/QueryEditor/utils/useSqlChange.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +216 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js +44 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js +22 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js +9 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js +51 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js +70 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js +33 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +14 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +35 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js +19 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js +40 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js +123 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js +24 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js +79 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js.map +1 -0
- package/dist/esm/components/QueryEditorRow/QueryEditorRow.js +11 -0
- package/dist/esm/components/QueryEditorRow/QueryEditorRow.js.map +1 -0
- package/dist/esm/components/SQLEditor/components/SQLEditor.js +339 -0
- package/dist/esm/components/SQLEditor/components/SQLEditor.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/Monaco.js +19 -0
- package/dist/esm/components/SQLEditor/mocks/Monaco.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/TextModel.js +21 -0
- package/dist/esm/components/SQLEditor/mocks/TextModel.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQuery.js +217 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +232 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +272 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +9 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQuery.js +197 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +212 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +252 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +387 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +417 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +1 -0
- package/dist/{src/components/SQLEditor/mocks/testData.d.ts → esm/components/SQLEditor/mocks/testData.js} +10 -9
- package/dist/esm/components/SQLEditor/mocks/testData.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/definition.js +19 -0
- package/dist/esm/components/SQLEditor/standardSql/definition.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js +20 -0
- package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js +24 -0
- package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/language.js +867 -0
- package/dist/esm/components/SQLEditor/standardSql/language.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/macros.js +58 -0
- package/dist/esm/components/SQLEditor/standardSql/macros.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +34 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +367 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +215 -0
- package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js +152 -0
- package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +1 -0
- package/dist/esm/components/SQLEditor/test-utils/index.js +11 -0
- package/dist/esm/components/SQLEditor/test-utils/index.js.map +1 -0
- package/dist/esm/components/SQLEditor/test-utils/statementPosition.js +45 -0
- package/dist/esm/components/SQLEditor/test-utils/statementPosition.js.map +1 -0
- package/dist/esm/components/SQLEditor/types.js +140 -0
- package/dist/esm/components/SQLEditor/types.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/LinkedToken.js +145 -0
- package/dist/esm/components/SQLEditor/utils/LinkedToken.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/commands.js +7 -0
- package/dist/esm/components/SQLEditor/utils/commands.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/debugger.js +14 -0
- package/dist/esm/components/SQLEditor/utils/debugger.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/getSuggestionKind.js +16 -0
- package/dist/esm/components/SQLEditor/utils/getSuggestionKind.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js +45 -0
- package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/toCompletionItem.js +17 -0
- package/dist/esm/components/SQLEditor/utils/toCompletionItem.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/tokenUtils.js +36 -0
- package/dist/esm/components/SQLEditor/utils/tokenUtils.js.map +1 -0
- package/dist/esm/components/Segment/Segment.js +24 -0
- package/dist/esm/components/Segment/Segment.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js +39 -0
- package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js +178 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js +70 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js +77 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js +254 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js +55 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js +107 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js +87 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationList.js +169 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationList.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js +43 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js +136 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js +39 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js +73 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +14 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +44 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js +97 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js +30 -0
- package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/types.js +12 -0
- package/dist/esm/components/VisualQueryBuilder/types.js.map +1 -0
- package/dist/esm/datasource/SqlDatasource.js +172 -0
- package/dist/esm/datasource/SqlDatasource.js.map +1 -0
- package/dist/esm/datasource/constants.js +18 -0
- package/dist/esm/datasource/constants.js.map +1 -0
- package/dist/esm/hooks/useDebounce.js +18 -0
- package/dist/esm/hooks/useDebounce.js.map +1 -0
- package/dist/esm/index.d.ts +1205 -0
- package/dist/esm/index.js +57 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +62 -41
- package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js +0 -33
- package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js.map +0 -1
- package/dist/components/Cascader/Cascader.js +0 -6
- package/dist/components/Cascader/Cascader.js.map +0 -1
- package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +0 -28
- package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +0 -1
- package/dist/components/ConfigEditor/AdvancedSettings/index.js +0 -6
- package/dist/components/ConfigEditor/AdvancedSettings/index.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/Auth.js +0 -24
- package/dist/components/ConfigEditor/Auth/Auth.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +0 -110
- package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js +0 -23
- package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +0 -41
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +0 -76
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/index.js +0 -10
- package/dist/components/ConfigEditor/Auth/index.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/styles.js +0 -19
- package/dist/components/ConfigEditor/Auth/styles.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +0 -18
- package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +0 -11
- package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js +0 -22
- package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js +0 -25
- package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +0 -35
- package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/types.js +0 -11
- package/dist/components/ConfigEditor/Auth/types.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/utils.js +0 -113
- package/dist/components/ConfigEditor/Auth/utils.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +0 -32
- package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js +0 -12
- package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js +0 -12
- package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js +0 -40
- package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/index.js +0 -10
- package/dist/components/ConfigEditor/ConfigSection/index.js.map +0 -1
- package/dist/components/ConfigEditor/Connection/ConnectionSettings.js +0 -26
- package/dist/components/ConfigEditor/Connection/ConnectionSettings.js.map +0 -1
- package/dist/components/ConfigEditor/Connection/index.js +0 -6
- package/dist/components/ConfigEditor/Connection/index.js.map +0 -1
- package/dist/components/ConfigEditor/DataSourceDescription.js +0 -39
- package/dist/components/ConfigEditor/DataSourceDescription.js.map +0 -1
- package/dist/components/ConfigEditor/SecureSocksProxyToggle.js +0 -24
- package/dist/components/ConfigEditor/SecureSocksProxyToggle.js.map +0 -1
- package/dist/components/ConfigEditor/index.js +0 -22
- package/dist/components/ConfigEditor/index.js.map +0 -1
- package/dist/components/ConfigEditor/types.js +0 -3
- package/dist/components/ConfigEditor/types.js.map +0 -1
- package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js +0 -124
- package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js.map +0 -1
- package/dist/components/DataLinks/DataLink.js +0 -79
- package/dist/components/DataLinks/DataLink.js.map +0 -1
- package/dist/components/DataLinks/DataLinks.js +0 -56
- package/dist/components/DataLinks/DataLinks.js.map +0 -1
- package/dist/components/DataLinks/index.js +0 -7
- package/dist/components/DataLinks/index.js.map +0 -1
- package/dist/components/DataLinks/types.js +0 -3
- package/dist/components/DataLinks/types.js.map +0 -1
- package/dist/components/DataSourcePicker/DataSourcePicker.js +0 -88
- package/dist/components/DataSourcePicker/DataSourcePicker.js.map +0 -1
- package/dist/components/DatePicker/DatePicker.js +0 -31
- package/dist/components/DatePicker/DatePicker.js.map +0 -1
- package/dist/components/DatePicker/styles.js.map +0 -1
- package/dist/components/DatePickerWithInput/DatePickerWithInput.js +0 -23
- package/dist/components/DatePickerWithInput/DatePickerWithInput.js.map +0 -1
- package/dist/components/DatePickerWithInput/style.css +0 -8
- package/dist/components/DebounceInput/DebounceInput.js +0 -19
- package/dist/components/DebounceInput/DebounceInput.js.map +0 -1
- package/dist/components/Plugins/PluginSignatureBadge.js +0 -65
- package/dist/components/Plugins/PluginSignatureBadge.js.map +0 -1
- package/dist/components/QueryEditor/AccessoryButton.js +0 -20
- package/dist/components/QueryEditor/AccessoryButton.js.map +0 -1
- package/dist/components/QueryEditor/ConfirmModal.js +0 -28
- package/dist/components/QueryEditor/ConfirmModal.js.map +0 -1
- package/dist/components/QueryEditor/DatasetSelector.js +0 -40
- package/dist/components/QueryEditor/DatasetSelector.js.map +0 -1
- package/dist/components/QueryEditor/EditorField.js +0 -49
- package/dist/components/QueryEditor/EditorField.js.map +0 -1
- package/dist/components/QueryEditor/EditorFieldGroup.js +0 -11
- package/dist/components/QueryEditor/EditorFieldGroup.js.map +0 -1
- package/dist/components/QueryEditor/EditorHeader.js +0 -22
- package/dist/components/QueryEditor/EditorHeader.js.map +0 -1
- package/dist/components/QueryEditor/EditorList.js +0 -27
- package/dist/components/QueryEditor/EditorList.js.map +0 -1
- package/dist/components/QueryEditor/EditorRow.js +0 -24
- package/dist/components/QueryEditor/EditorRow.js.map +0 -1
- package/dist/components/QueryEditor/EditorRows.js +0 -11
- package/dist/components/QueryEditor/EditorRows.js.map +0 -1
- package/dist/components/QueryEditor/EditorStack.js +0 -13
- package/dist/components/QueryEditor/EditorStack.js.map +0 -1
- package/dist/components/QueryEditor/EditorSwitch.js +0 -24
- package/dist/components/QueryEditor/EditorSwitch.js.map +0 -1
- package/dist/components/QueryEditor/FlexItem.js +0 -10
- package/dist/components/QueryEditor/FlexItem.js.map +0 -1
- package/dist/components/QueryEditor/InlineSelect.js +0 -57
- package/dist/components/QueryEditor/InlineSelect.js.map +0 -1
- package/dist/components/QueryEditor/InputGroup.js +0 -66
- package/dist/components/QueryEditor/InputGroup.js.map +0 -1
- package/dist/components/QueryEditor/QueryEditor.js +0 -74
- package/dist/components/QueryEditor/QueryEditor.js.map +0 -1
- package/dist/components/QueryEditor/QueryHeader.js +0 -86
- package/dist/components/QueryEditor/QueryHeader.js.map +0 -1
- package/dist/components/QueryEditor/RunQueryButton.js +0 -19
- package/dist/components/QueryEditor/RunQueryButton.js.map +0 -1
- package/dist/components/QueryEditor/Space.js +0 -36
- package/dist/components/QueryEditor/Space.js.map +0 -1
- package/dist/components/QueryEditor/TableSelector.js +0 -20
- package/dist/components/QueryEditor/TableSelector.js.map +0 -1
- package/dist/components/QueryEditor/defaults.js +0 -20
- package/dist/components/QueryEditor/defaults.js.map +0 -1
- package/dist/components/QueryEditor/expressions.js +0 -18
- package/dist/components/QueryEditor/expressions.js.map +0 -1
- package/dist/components/QueryEditor/index.js +0 -37
- package/dist/components/QueryEditor/index.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +0 -21
- package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/QueryToolbox.js +0 -59
- package/dist/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/QueryValidator.js +0 -79
- package/dist/components/QueryEditor/query-editor-raw/QueryValidator.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/RawEditor.js +0 -60
- package/dist/components/QueryEditor/query-editor-raw/RawEditor.js.map +0 -1
- package/dist/components/QueryEditor/types.js +0 -26
- package/dist/components/QueryEditor/types.js.map +0 -1
- package/dist/components/QueryEditor/utils/formatSQL.js +0 -13
- package/dist/components/QueryEditor/utils/formatSQL.js.map +0 -1
- package/dist/components/QueryEditor/utils/sql.utils.js +0 -103
- package/dist/components/QueryEditor/utils/sql.utils.js.map +0 -1
- package/dist/components/QueryEditor/utils/useSqlChange.js +0 -16
- package/dist/components/QueryEditor/utils/useSqlChange.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +0 -109
- package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorField.js +0 -51
- package/dist/components/QueryEditor/visual-query-builder/EditorField.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorRow.js +0 -24
- package/dist/components/QueryEditor/visual-query-builder/EditorRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorRows.js +0 -11
- package/dist/components/QueryEditor/visual-query-builder/EditorRows.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/GroupByRow.js +0 -33
- package/dist/components/QueryEditor/visual-query-builder/GroupByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/OrderByRow.js +0 -50
- package/dist/components/QueryEditor/visual-query-builder/OrderByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/Preview.js +0 -28
- package/dist/components/QueryEditor/visual-query-builder/Preview.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +0 -13
- package/dist/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +0 -34
- package/dist/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLSelectRow.js +0 -19
- package/dist/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLWhereRow.js +0 -35
- package/dist/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SelectRow.js +0 -68
- package/dist/components/QueryEditor/visual-query-builder/SelectRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js +0 -38
- package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/WhereRow.js +0 -67
- package/dist/components/QueryEditor/visual-query-builder/WhereRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/index.js +0 -6
- package/dist/components/QueryEditor/visual-query-builder/index.js.map +0 -1
- package/dist/components/QueryEditorRow/QueryEditorRow.js +0 -16
- package/dist/components/QueryEditorRow/QueryEditorRow.js.map +0 -1
- package/dist/components/SQLEditor/components/SQLEditor.js +0 -330
- package/dist/components/SQLEditor/components/SQLEditor.js.map +0 -1
- package/dist/components/SQLEditor/index.js +0 -25
- package/dist/components/SQLEditor/index.js.map +0 -1
- package/dist/components/SQLEditor/mocks/Monaco.js +0 -23
- package/dist/components/SQLEditor/mocks/Monaco.js.map +0 -1
- package/dist/components/SQLEditor/mocks/TextModel.js +0 -22
- package/dist/components/SQLEditor/mocks/TextModel.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js +0 -216
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +0 -231
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +0 -271
- package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +0 -8
- package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js +0 -196
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +0 -211
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +0 -251
- package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +0 -386
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +0 -416
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +0 -1
- package/dist/components/SQLEditor/mocks/testData.js +0 -22
- package/dist/components/SQLEditor/mocks/testData.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/definition.js +0 -13
- package/dist/components/SQLEditor/standardSql/definition.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js +0 -26
- package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/getStatementPosition.js +0 -24
- package/dist/components/SQLEditor/standardSql/getStatementPosition.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/language.js +0 -875
- package/dist/components/SQLEditor/standardSql/language.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/macros.js +0 -166
- package/dist/components/SQLEditor/standardSql/macros.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +0 -30
- package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +0 -378
- package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +0 -234
- package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js +0 -153
- package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/types.js +0 -3
- package/dist/components/SQLEditor/standardSql/types.js.map +0 -1
- package/dist/components/SQLEditor/test-utils/index.js +0 -11
- package/dist/components/SQLEditor/test-utils/index.js.map +0 -1
- package/dist/components/SQLEditor/test-utils/statementPosition.js +0 -40
- package/dist/components/SQLEditor/test-utils/statementPosition.js.map +0 -1
- package/dist/components/SQLEditor/test-utils/types.js +0 -3
- package/dist/components/SQLEditor/test-utils/types.js.map +0 -1
- package/dist/components/SQLEditor/types.js +0 -139
- package/dist/components/SQLEditor/types.js.map +0 -1
- package/dist/components/SQLEditor/utils/LinkedToken.js +0 -147
- package/dist/components/SQLEditor/utils/LinkedToken.js.map +0 -1
- package/dist/components/SQLEditor/utils/commands.js +0 -8
- package/dist/components/SQLEditor/utils/commands.js.map +0 -1
- package/dist/components/SQLEditor/utils/debugger.js +0 -14
- package/dist/components/SQLEditor/utils/debugger.js.map +0 -1
- package/dist/components/SQLEditor/utils/getSuggestionKind.js +0 -18
- package/dist/components/SQLEditor/utils/getSuggestionKind.js.map +0 -1
- package/dist/components/SQLEditor/utils/linkedTokenBuilder.js +0 -46
- package/dist/components/SQLEditor/utils/linkedTokenBuilder.js.map +0 -1
- package/dist/components/SQLEditor/utils/toCompletionItem.js +0 -10
- package/dist/components/SQLEditor/utils/toCompletionItem.js.map +0 -1
- package/dist/components/SQLEditor/utils/tokenUtils.js +0 -72
- package/dist/components/SQLEditor/utils/tokenUtils.js.map +0 -1
- package/dist/components/SQLEditor/utils/types.js +0 -3
- package/dist/components/SQLEditor/utils/types.js.map +0 -1
- package/dist/components/Segment/Segment.js +0 -19
- package/dist/components/Segment/Segment.js.map +0 -1
- package/dist/components/VisualQueryBuilder/QueryModellerBase.js +0 -35
- package/dist/components/VisualQueryBuilder/QueryModellerBase.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js +0 -125
- package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/LabelFilters.js +0 -37
- package/dist/components/VisualQueryBuilder/components/LabelFilters.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationEditor.js +0 -41
- package/dist/components/VisualQueryBuilder/components/OperationEditor.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js +0 -181
- package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js +0 -64
- package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationHeader.js +0 -68
- package/dist/components/VisualQueryBuilder/components/OperationHeader.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js +0 -71
- package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationList.js +0 -132
- package/dist/components/VisualQueryBuilder/components/OperationList.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationListExplained.js +0 -22
- package/dist/components/VisualQueryBuilder/components/OperationListExplained.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js +0 -71
- package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js +0 -24
- package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js +0 -54
- package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +0 -17
- package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +0 -32
- package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js +0 -81
- package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/RawQuery.js +0 -25
- package/dist/components/VisualQueryBuilder/components/RawQuery.js.map +0 -1
- package/dist/components/VisualQueryBuilder/index.js +0 -29
- package/dist/components/VisualQueryBuilder/index.js.map +0 -1
- package/dist/components/VisualQueryBuilder/types.js +0 -10
- package/dist/components/VisualQueryBuilder/types.js.map +0 -1
- package/dist/components/index.js +0 -30
- package/dist/components/index.js.map +0 -1
- package/dist/datasource/SqlDatasource.js +0 -161
- package/dist/datasource/SqlDatasource.js.map +0 -1
- package/dist/datasource/constants.js +0 -19
- package/dist/datasource/constants.js.map +0 -1
- package/dist/hooks/useDebounce.js +0 -21
- package/dist/hooks/useDebounce.js.map +0 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +0 -1
- package/dist/src/components/AsyncButtonCascader/AsyncButtonCascader.d.ts +0 -21
- package/dist/src/components/Cascader/Cascader.d.ts +0 -1
- package/dist/src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.d.ts +0 -8
- package/dist/src/components/ConfigEditor/AdvancedSettings/index.d.ts +0 -1
- package/dist/src/components/ConfigEditor/Auth/Auth.d.ts +0 -18
- package/dist/src/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.d.ts +0 -14
- package/dist/src/components/ConfigEditor/Auth/auth-method/BasicAuth.d.ts +0 -17
- package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeader.d.ts +0 -10
- package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeaders.d.ts +0 -8
- package/dist/src/components/ConfigEditor/Auth/index.d.ts +0 -4
- package/dist/src/components/ConfigEditor/Auth/styles.d.ts +0 -4
- package/dist/src/components/ConfigEditor/Auth/tls/SelfSignedCertificate.d.ts +0 -13
- package/dist/src/components/ConfigEditor/Auth/tls/SkipTLSVerification.d.ts +0 -7
- package/dist/src/components/ConfigEditor/Auth/tls/TLSClientAuth.d.ts +0 -20
- package/dist/src/components/ConfigEditor/Auth/tls/TLSSettings.d.ts +0 -11
- package/dist/src/components/ConfigEditor/Auth/tls/TLSSettingsSection.d.ts +0 -9
- package/dist/src/components/ConfigEditor/Auth/types.d.ts +0 -28
- package/dist/src/components/ConfigEditor/Auth/utils.d.ts +0 -12
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.d.ts +0 -8
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigSection.d.ts +0 -5
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigSubSection.d.ts +0 -5
- package/dist/src/components/ConfigEditor/ConfigSection/GenericConfigSection.d.ts +0 -10
- package/dist/src/components/ConfigEditor/ConfigSection/index.d.ts +0 -3
- package/dist/src/components/ConfigEditor/Connection/ConnectionSettings.d.ts +0 -13
- package/dist/src/components/ConfigEditor/Connection/index.d.ts +0 -1
- package/dist/src/components/ConfigEditor/DataSourceDescription.d.ts +0 -9
- package/dist/src/components/ConfigEditor/SecureSocksProxyToggle.d.ts +0 -10
- package/dist/src/components/ConfigEditor/index.d.ts +0 -9
- package/dist/src/components/ConfigEditor/types.d.ts +0 -15
- package/dist/src/components/CustomHeadersSettings/CustomHeadersSettings.d.ts +0 -27
- package/dist/src/components/DataLinks/DataLink.d.ts +0 -13
- package/dist/src/components/DataLinks/DataLinks.d.ts +0 -8
- package/dist/src/components/DataLinks/index.d.ts +0 -3
- package/dist/src/components/DataLinks/types.d.ts +0 -7
- package/dist/src/components/DataSourcePicker/DataSourcePicker.d.ts +0 -34
- package/dist/src/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/src/components/DatePicker/styles.d.ts +0 -11
- package/dist/src/components/DatePickerWithInput/DatePickerWithInput.d.ts +0 -9
- package/dist/src/components/DebounceInput/DebounceInput.d.ts +0 -8
- package/dist/src/components/Plugins/PluginSignatureBadge.d.ts +0 -12
- package/dist/src/components/QueryEditor/AccessoryButton.d.ts +0 -6
- package/dist/src/components/QueryEditor/ConfirmModal.d.ts +0 -9
- package/dist/src/components/QueryEditor/DatasetSelector.d.ts +0 -13
- package/dist/src/components/QueryEditor/EditorField.d.ts +0 -12
- package/dist/src/components/QueryEditor/EditorFieldGroup.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorHeader.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorList.d.ts +0 -8
- package/dist/src/components/QueryEditor/EditorRow.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorRows.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorStack.d.ts +0 -13
- package/dist/src/components/QueryEditor/EditorSwitch.d.ts +0 -3
- package/dist/src/components/QueryEditor/FlexItem.d.ts +0 -7
- package/dist/src/components/QueryEditor/InlineSelect.d.ts +0 -7
- package/dist/src/components/QueryEditor/InputGroup.d.ts +0 -10
- package/dist/src/components/QueryEditor/QueryEditor.d.ts +0 -8
- package/dist/src/components/QueryEditor/QueryHeader.d.ts +0 -17
- package/dist/src/components/QueryEditor/RunQueryButton.d.ts +0 -13
- package/dist/src/components/QueryEditor/Space.d.ts +0 -14
- package/dist/src/components/QueryEditor/TableSelector.d.ts +0 -13
- package/dist/src/components/QueryEditor/defaults.d.ts +0 -3
- package/dist/src/components/QueryEditor/expressions.d.ts +0 -50
- package/dist/src/components/QueryEditor/index.d.ts +0 -17
- package/dist/src/components/QueryEditor/query-editor-raw/QueryEditorRaw.d.ts +0 -15
- package/dist/src/components/QueryEditor/query-editor-raw/QueryToolbox.d.ts +0 -11
- package/dist/src/components/QueryEditor/query-editor-raw/QueryValidator.d.ts +0 -10
- package/dist/src/components/QueryEditor/query-editor-raw/RawEditor.d.ts +0 -10
- package/dist/src/components/QueryEditor/types.d.ts +0 -149
- package/dist/src/components/QueryEditor/utils/formatSQL.d.ts +0 -1
- package/dist/src/components/QueryEditor/utils/sql.utils.d.ts +0 -14
- package/dist/src/components/QueryEditor/utils/useSqlChange.d.ts +0 -10
- package/dist/src/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.d.ts +0 -7
- package/dist/src/components/QueryEditor/visual-query-builder/EditorField.d.ts +0 -11
- package/dist/src/components/QueryEditor/visual-query-builder/EditorRow.d.ts +0 -6
- package/dist/src/components/QueryEditor/visual-query-builder/EditorRows.d.ts +0 -6
- package/dist/src/components/QueryEditor/visual-query-builder/GroupByRow.d.ts +0 -10
- package/dist/src/components/QueryEditor/visual-query-builder/OrderByRow.d.ts +0 -11
- package/dist/src/components/QueryEditor/visual-query-builder/Preview.d.ts +0 -6
- package/dist/src/components/QueryEditor/visual-query-builder/SQLGroupByRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SQLOrderByRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SQLSelectRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SQLWhereRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SelectRow.d.ts +0 -11
- package/dist/src/components/QueryEditor/visual-query-builder/VisualEditor.d.ts +0 -13
- package/dist/src/components/QueryEditor/visual-query-builder/WhereRow.d.ts +0 -10
- package/dist/src/components/QueryEditor/visual-query-builder/index.d.ts +0 -1
- package/dist/src/components/QueryEditorRow/QueryEditorRow.d.ts +0 -8
- package/dist/src/components/SQLEditor/components/SQLEditor.d.ts +0 -29
- package/dist/src/components/SQLEditor/index.d.ts +0 -7
- package/dist/src/components/SQLEditor/mocks/Monaco.d.ts +0 -3
- package/dist/src/components/SQLEditor/mocks/TextModel.d.ts +0 -7
- package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQuery.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/multiLineMultipleColumns.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineEmptyQuery.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQuery.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineMultipleColumns.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueries.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.d.ts +0 -2
- package/dist/src/components/SQLEditor/standardSql/definition.d.ts +0 -3
- package/dist/src/components/SQLEditor/standardSql/getStandardSuggestions.d.ts +0 -6
- package/dist/src/components/SQLEditor/standardSql/getStatementPosition.d.ts +0 -5
- package/dist/src/components/SQLEditor/standardSql/language.d.ts +0 -23
- package/dist/src/components/SQLEditor/standardSql/macros.d.ts +0 -2
- package/dist/src/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.d.ts +0 -4
- package/dist/src/components/SQLEditor/standardSql/standardSuggestionsRegistry.d.ts +0 -7
- package/dist/src/components/SQLEditor/standardSql/statementPositionResolversRegistry.d.ts +0 -2
- package/dist/src/components/SQLEditor/standardSql/suggestionsKindRegistry.d.ts +0 -7
- package/dist/src/components/SQLEditor/standardSql/types.d.ts +0 -33
- package/dist/src/components/SQLEditor/test-utils/index.d.ts +0 -7
- package/dist/src/components/SQLEditor/test-utils/statementPosition.d.ts +0 -3
- package/dist/src/components/SQLEditor/test-utils/types.d.ts +0 -12
- package/dist/src/components/SQLEditor/types.d.ts +0 -249
- package/dist/src/components/SQLEditor/utils/LinkedToken.d.ts +0 -29
- package/dist/src/components/SQLEditor/utils/commands.d.ts +0 -4
- package/dist/src/components/SQLEditor/utils/debugger.d.ts +0 -5
- package/dist/src/components/SQLEditor/utils/getSuggestionKind.d.ts +0 -7
- package/dist/src/components/SQLEditor/utils/linkedTokenBuilder.d.ts +0 -4
- package/dist/src/components/SQLEditor/utils/toCompletionItem.d.ts +0 -2
- package/dist/src/components/SQLEditor/utils/tokenUtils.d.ts +0 -14
- package/dist/src/components/SQLEditor/utils/types.d.ts +0 -11
- package/dist/src/components/Segment/Segment.d.ts +0 -8
- package/dist/src/components/VisualQueryBuilder/QueryModellerBase.d.ts +0 -18
- package/dist/src/components/VisualQueryBuilder/components/LabelFilterItem.d.ts +0 -18
- package/dist/src/components/VisualQueryBuilder/components/LabelFilters.d.ts +0 -14
- package/dist/src/components/VisualQueryBuilder/components/OperationEditor.d.ts +0 -20
- package/dist/src/components/VisualQueryBuilder/components/OperationEditorBody.d.ts +0 -23
- package/dist/src/components/VisualQueryBuilder/components/OperationExplainedBox.d.ts +0 -7
- package/dist/src/components/VisualQueryBuilder/components/OperationHeader.d.ts +0 -15
- package/dist/src/components/VisualQueryBuilder/components/OperationInfoButton.d.ts +0 -9
- package/dist/src/components/VisualQueryBuilder/components/OperationList.d.ts +0 -15
- package/dist/src/components/VisualQueryBuilder/components/OperationListExplained.d.ts +0 -17
- package/dist/src/components/VisualQueryBuilder/components/OperationParamEditor.d.ts +0 -4
- package/dist/src/components/VisualQueryBuilder/components/OperationsEditorRow.d.ts +0 -2
- package/dist/src/components/VisualQueryBuilder/components/QueryBuilderHints.d.ts +0 -20
- package/dist/src/components/VisualQueryBuilder/components/QueryEditorModeToggle.d.ts +0 -8
- package/dist/src/components/VisualQueryBuilder/components/QueryHeaderSwitch.d.ts +0 -7
- package/dist/src/components/VisualQueryBuilder/components/QueryOptionGroup.d.ts +0 -9
- package/dist/src/components/VisualQueryBuilder/components/RawQuery.d.ts +0 -12
- package/dist/src/components/VisualQueryBuilder/index.d.ts +0 -13
- package/dist/src/components/VisualQueryBuilder/types.d.ts +0 -91
- package/dist/src/components/index.d.ts +0 -15
- package/dist/src/datasource/SqlDatasource.d.ts +0 -62
- package/dist/src/datasource/constants.d.ts +0 -1
- package/dist/src/hooks/useDebounce.d.ts +0 -2
- package/dist/src/index.d.ts +0 -7
- package/dist/src/test/mocks/DataQuery.d.ts +0 -2
- package/dist/src/test/mocks/Datasource.d.ts +0 -40
- package/dist/src/test/mocks/Plugin.d.ts +0 -10
- package/dist/src/test/mocks/QueryEditorProps.d.ts +0 -4
- package/dist/src/test/mocks/index.d.ts +0 -5
- package/dist/src/test/mocks/utils.d.ts +0 -18
- package/dist/src/utils/changeset/functions.d.ts +0 -3
- package/dist/src/utils/changeset/index.d.ts +0 -2
- package/dist/test/mocks/DataQuery.js +0 -14
- package/dist/test/mocks/DataQuery.js.map +0 -1
- package/dist/test/mocks/Datasource.js +0 -78
- package/dist/test/mocks/Datasource.js.map +0 -1
- package/dist/test/mocks/Plugin.js +0 -105
- package/dist/test/mocks/Plugin.js.map +0 -1
- package/dist/test/mocks/QueryEditorProps.js +0 -46
- package/dist/test/mocks/QueryEditorProps.js.map +0 -1
- package/dist/test/mocks/index.js +0 -9
- package/dist/test/mocks/index.js.map +0 -1
- package/dist/test/mocks/utils.js +0 -48
- package/dist/test/mocks/utils.js.map +0 -1
- package/dist/utils/changeset/functions.js +0 -11
- package/dist/utils/changeset/functions.js.map +0 -1
- package/dist/utils/changeset/index.js +0 -99
- package/dist/utils/changeset/index.js.map +0 -1
|
@@ -0,0 +1,1205 @@
|
|
|
1
|
+
import React, { ComponentProps, PureComponent, ReactElement, ReactNode, FunctionComponent, HTMLProps } from 'react';
|
|
2
|
+
import { Input, Segment as Segment$1, monacoTypes, Monaco, ButtonProps, Field, PopoverContent, Switch, SelectCommonProps, InlineLabel } from '@grafana/ui';
|
|
3
|
+
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 } from '@grafana/data';
|
|
4
|
+
import { DataSourceSrv, DataSourceWithBackend, TemplateSrv } from '@grafana/runtime';
|
|
5
|
+
import { JsonTree } from 'react-awesome-query-builder';
|
|
6
|
+
import { DataQuery } from '@grafana/schema';
|
|
7
|
+
import { Grammar } from 'prismjs';
|
|
8
|
+
|
|
9
|
+
interface QueryEditorRowProps {
|
|
10
|
+
label?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
noFillEnd?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const QueryEditorRow: (props: QueryEditorRowProps) => React.JSX.Element;
|
|
16
|
+
|
|
17
|
+
interface DebounceInputProps extends Omit<ComponentProps<typeof Input>, 'ref'> {
|
|
18
|
+
value: string;
|
|
19
|
+
onDebounce: (debouncedInput?: string) => void;
|
|
20
|
+
delay?: number;
|
|
21
|
+
}
|
|
22
|
+
declare const DebounceInput: (props: DebounceInputProps) => React.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface SegmentProps<T> extends Omit<ComponentProps<typeof Segment$1<T>>, 'onChange'> {
|
|
25
|
+
value: T;
|
|
26
|
+
onDebounce: (debouncedSegment?: T) => void;
|
|
27
|
+
delay?: number;
|
|
28
|
+
}
|
|
29
|
+
declare function Segment<T>(props: SegmentProps<T>): React.JSX.Element;
|
|
30
|
+
|
|
31
|
+
interface DatePickerProps {
|
|
32
|
+
isOpen?: boolean;
|
|
33
|
+
onClose: () => void;
|
|
34
|
+
onChange: (value: Date) => void;
|
|
35
|
+
value?: Date;
|
|
36
|
+
}
|
|
37
|
+
declare const DatePicker: React.NamedExoticComponent<DatePickerProps>;
|
|
38
|
+
|
|
39
|
+
declare const formatDate: (date: Date) => string;
|
|
40
|
+
interface DatePickerWithInputProps extends Omit<ComponentProps<typeof Input>, 'ref' | 'value' | 'onChange'> {
|
|
41
|
+
value?: Date;
|
|
42
|
+
onChange: (value: Date) => void;
|
|
43
|
+
}
|
|
44
|
+
declare const DatePickerWithInput: (props: DatePickerWithInputProps) => React.JSX.Element;
|
|
45
|
+
|
|
46
|
+
interface Props$s {
|
|
47
|
+
onChange: (ds: DataSourceInstanceSettings) => void;
|
|
48
|
+
current: string | null;
|
|
49
|
+
hideTextValue?: boolean;
|
|
50
|
+
onBlur?: () => void;
|
|
51
|
+
autoFocus?: boolean;
|
|
52
|
+
openMenuOnFocus?: boolean;
|
|
53
|
+
placeholder?: string;
|
|
54
|
+
tracing?: boolean;
|
|
55
|
+
mixed?: boolean;
|
|
56
|
+
dashboard?: boolean;
|
|
57
|
+
metrics?: boolean;
|
|
58
|
+
annotations?: boolean;
|
|
59
|
+
variables?: boolean;
|
|
60
|
+
pluginId?: string;
|
|
61
|
+
noDefault?: boolean;
|
|
62
|
+
}
|
|
63
|
+
interface State$1 {
|
|
64
|
+
error?: string;
|
|
65
|
+
}
|
|
66
|
+
declare class DataSourcePicker extends PureComponent<Props$s, State$1> {
|
|
67
|
+
dataSourceSrv: DataSourceSrv;
|
|
68
|
+
static defaultProps: Partial<Props$s>;
|
|
69
|
+
state: State$1;
|
|
70
|
+
constructor(props: Props$s);
|
|
71
|
+
componentDidMount(): void;
|
|
72
|
+
onChange: (item: SelectableValue<string>) => void;
|
|
73
|
+
private getCurrentValue;
|
|
74
|
+
getDataSourceOptions(): Array<SelectableValue<string>>;
|
|
75
|
+
render(): React.JSX.Element;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
type DataLinkConfig = {
|
|
79
|
+
field: string;
|
|
80
|
+
label: string;
|
|
81
|
+
matcherRegex: string;
|
|
82
|
+
url: string;
|
|
83
|
+
datasourceUid?: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
type Props$r = {
|
|
87
|
+
value?: DataLinkConfig[];
|
|
88
|
+
onChange: (value: DataLinkConfig[]) => void;
|
|
89
|
+
};
|
|
90
|
+
declare const DataLinks: (props: Props$r) => React.JSX.Element;
|
|
91
|
+
|
|
92
|
+
type Props$q = {
|
|
93
|
+
value: DataLinkConfig;
|
|
94
|
+
datasources?: Array<DataSourceInstanceSettings<DataSourceJsonData>>;
|
|
95
|
+
onChange: (value: DataLinkConfig) => void;
|
|
96
|
+
onDelete: () => void;
|
|
97
|
+
suggestions: VariableSuggestion[];
|
|
98
|
+
className?: string;
|
|
99
|
+
};
|
|
100
|
+
declare const DataLink: (props: Props$q) => React.JSX.Element;
|
|
101
|
+
|
|
102
|
+
declare function applyQueryDefaults(q?: SQLQuery): SQLQuery;
|
|
103
|
+
type QueryWithDefaults = ReturnType<typeof applyQueryDefaults>;
|
|
104
|
+
|
|
105
|
+
declare enum QueryEditorPropertyType {
|
|
106
|
+
String = "string"
|
|
107
|
+
}
|
|
108
|
+
interface QueryEditorProperty {
|
|
109
|
+
type: QueryEditorPropertyType;
|
|
110
|
+
name?: string;
|
|
111
|
+
}
|
|
112
|
+
interface QueryEditorPropertyExpression {
|
|
113
|
+
type: QueryEditorExpressionType.Property;
|
|
114
|
+
property: QueryEditorProperty;
|
|
115
|
+
}
|
|
116
|
+
declare enum QueryEditorExpressionType {
|
|
117
|
+
Property = "property",
|
|
118
|
+
Operator = "operator",
|
|
119
|
+
Or = "or",
|
|
120
|
+
And = "and",
|
|
121
|
+
GroupBy = "groupBy",
|
|
122
|
+
Function = "function",
|
|
123
|
+
FunctionParameter = "functionParameter"
|
|
124
|
+
}
|
|
125
|
+
interface QueryEditorGroupByExpression {
|
|
126
|
+
type: QueryEditorExpressionType.GroupBy;
|
|
127
|
+
property: QueryEditorProperty;
|
|
128
|
+
}
|
|
129
|
+
interface QueryEditorFunctionExpression {
|
|
130
|
+
type: QueryEditorExpressionType.Function;
|
|
131
|
+
name?: string;
|
|
132
|
+
parameters?: QueryEditorFunctionParameterExpression[];
|
|
133
|
+
}
|
|
134
|
+
interface QueryEditorFunctionParameterExpression {
|
|
135
|
+
type: QueryEditorExpressionType.FunctionParameter;
|
|
136
|
+
name?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare class LinkedToken {
|
|
140
|
+
type: string;
|
|
141
|
+
value: string;
|
|
142
|
+
range: monacoTypes.IRange;
|
|
143
|
+
previous: LinkedToken | null;
|
|
144
|
+
next: LinkedToken | null;
|
|
145
|
+
constructor(type: string, value: string, range: monacoTypes.IRange, previous: LinkedToken | null, next: LinkedToken | null);
|
|
146
|
+
isKeyword(): boolean;
|
|
147
|
+
isWhiteSpace(): boolean;
|
|
148
|
+
isParenthesis(): boolean;
|
|
149
|
+
isIdentifier(): boolean;
|
|
150
|
+
isString(): boolean;
|
|
151
|
+
isNumber(): boolean;
|
|
152
|
+
isDoubleQuotedString(): boolean;
|
|
153
|
+
isVariable(): boolean;
|
|
154
|
+
isFunction(): boolean;
|
|
155
|
+
isOperator(): boolean;
|
|
156
|
+
isTemplateVariable(): boolean;
|
|
157
|
+
is(type: TokenType, value?: string | number | boolean): boolean;
|
|
158
|
+
getPreviousNonWhiteSpaceToken(): LinkedToken | null;
|
|
159
|
+
getPreviousOfType(type: TokenType, value?: string): LinkedToken | null;
|
|
160
|
+
getPreviousUntil(type: TokenType, ignoreTypes: TokenType[], value?: string): LinkedToken[] | null;
|
|
161
|
+
getNextUntil(type: TokenType, ignoreTypes: TokenType[], value?: string): LinkedToken[] | null;
|
|
162
|
+
getPreviousKeyword(): LinkedToken | null;
|
|
163
|
+
getNextNonWhiteSpaceToken(): LinkedToken | null;
|
|
164
|
+
getNextOfType(type: TokenType, value?: string): LinkedToken | null;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
type StatementPositionResolver = (currentToken: LinkedToken | null, previousKeyword: LinkedToken | null, previousNonWhiteSpace: LinkedToken | null, previousIsSlash: Boolean) => Boolean;
|
|
168
|
+
type SuggestionsResolver = <T extends PositionContext = PositionContext>(positionContext: T) => Promise<CustomSuggestion[]>;
|
|
169
|
+
interface SQLMonarchLanguage extends monacoTypes.languages.IMonarchLanguage {
|
|
170
|
+
keywords?: string[];
|
|
171
|
+
builtinFunctions?: string[];
|
|
172
|
+
logicalOperators?: string[];
|
|
173
|
+
comparisonOperators?: string[];
|
|
174
|
+
/** Used by basic languages in the monaco registry **/
|
|
175
|
+
operators?: string[];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Provides a context for suggestions resolver
|
|
180
|
+
* @alpha
|
|
181
|
+
*/
|
|
182
|
+
interface PositionContext {
|
|
183
|
+
position: monacoTypes.IPosition;
|
|
184
|
+
kind: SuggestionKind[];
|
|
185
|
+
statementPosition: StatementPosition[];
|
|
186
|
+
currentToken: LinkedToken | null;
|
|
187
|
+
range: monacoTypes.IRange;
|
|
188
|
+
}
|
|
189
|
+
type CustomSuggestion = Partial<monacoTypes.languages.CompletionItem> & {
|
|
190
|
+
label: string;
|
|
191
|
+
};
|
|
192
|
+
interface CustomSuggestionKind {
|
|
193
|
+
id: string;
|
|
194
|
+
suggestionsResolver: SuggestionsResolver;
|
|
195
|
+
applyTo?: Array<StatementPosition | string>;
|
|
196
|
+
overrideDefault?: boolean;
|
|
197
|
+
}
|
|
198
|
+
interface CustomStatementPlacement {
|
|
199
|
+
id: string;
|
|
200
|
+
name?: string;
|
|
201
|
+
resolve: StatementPositionResolver;
|
|
202
|
+
overrideDefault?: boolean;
|
|
203
|
+
}
|
|
204
|
+
type StatementPlacementProvider = () => CustomStatementPlacement[];
|
|
205
|
+
type SuggestionKindProvider = () => CustomSuggestionKind[];
|
|
206
|
+
interface ColumnDefinition {
|
|
207
|
+
name: string;
|
|
208
|
+
type?: string;
|
|
209
|
+
description?: string;
|
|
210
|
+
completion?: string;
|
|
211
|
+
}
|
|
212
|
+
interface SchemaDefinition {
|
|
213
|
+
name: string;
|
|
214
|
+
completion?: string;
|
|
215
|
+
}
|
|
216
|
+
interface TableDefinition {
|
|
217
|
+
name: string;
|
|
218
|
+
completion?: string;
|
|
219
|
+
}
|
|
220
|
+
interface TableIdentifier {
|
|
221
|
+
table?: string;
|
|
222
|
+
schema?: string;
|
|
223
|
+
}
|
|
224
|
+
interface SQLCompletionItemProvider extends Omit<monacoTypes.languages.CompletionItemProvider, 'provideCompletionItems'> {
|
|
225
|
+
/**
|
|
226
|
+
* Allows dialect specific functions to be added to the completion list.
|
|
227
|
+
* @alpha
|
|
228
|
+
*/
|
|
229
|
+
supportedFunctions?: () => Array<{
|
|
230
|
+
id: string;
|
|
231
|
+
name: string;
|
|
232
|
+
description?: string;
|
|
233
|
+
}>;
|
|
234
|
+
/**
|
|
235
|
+
* Allows dialect specific operators to be added to the completion list.
|
|
236
|
+
* @alpha
|
|
237
|
+
*/
|
|
238
|
+
supportedOperators?: () => Array<{
|
|
239
|
+
id: string;
|
|
240
|
+
operator: string;
|
|
241
|
+
type: OperatorType;
|
|
242
|
+
description?: string;
|
|
243
|
+
}>;
|
|
244
|
+
supportedMacros?: () => Array<{
|
|
245
|
+
id: string;
|
|
246
|
+
text: string;
|
|
247
|
+
type: MacroType;
|
|
248
|
+
args: string[];
|
|
249
|
+
description?: string;
|
|
250
|
+
}>;
|
|
251
|
+
/**
|
|
252
|
+
* Allows custom suggestion kinds to be defined and correlate them with <Custom>StatementPosition.
|
|
253
|
+
* @alpha
|
|
254
|
+
*/
|
|
255
|
+
customSuggestionKinds?: SuggestionKindProvider;
|
|
256
|
+
/**
|
|
257
|
+
* Allows custom statement placement definition.
|
|
258
|
+
* @alpha
|
|
259
|
+
*/
|
|
260
|
+
customStatementPlacement?: StatementPlacementProvider;
|
|
261
|
+
/**
|
|
262
|
+
* Allows providing a custom function for resolving schemas.
|
|
263
|
+
* It's up to the consumer to decide whether the schemas are resolved via API calls or preloaded in the query editor(i.e. full db schema is preloaded).
|
|
264
|
+
* @alpha
|
|
265
|
+
*/
|
|
266
|
+
schemas?: {
|
|
267
|
+
resolve: () => Promise<SchemaDefinition[]>;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Allows providing a custom function for resolving db tables.
|
|
271
|
+
* It's up to the consumer to decide whether the columns are resolved via API calls or preloaded in the query editor(i.e. full db schema is preloaded).
|
|
272
|
+
* @alpha
|
|
273
|
+
*/
|
|
274
|
+
tables?: {
|
|
275
|
+
resolve: (TableIdentifier: TableIdentifier | null) => Promise<TableDefinition[]>;
|
|
276
|
+
parseName?: (token: LinkedToken | null | undefined) => TableIdentifier;
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Allows providing a custom function for resolving table.
|
|
280
|
+
* It's up to the consumer to decide whether the columns are resolved via API calls or preloaded in the query editor(i.e. full db schema is preloaded).
|
|
281
|
+
* @alpha
|
|
282
|
+
*/
|
|
283
|
+
columns?: {
|
|
284
|
+
resolve: (identifier?: TableIdentifier) => Promise<ColumnDefinition[]>;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* TODO: Not sure whether or not we need this. Would like to avoid this kind of flexibility.
|
|
288
|
+
* @alpha
|
|
289
|
+
*/
|
|
290
|
+
provideCompletionItems?: (model: monacoTypes.editor.ITextModel, position: monacoTypes.Position, context: monacoTypes.languages.CompletionContext, token: monacoTypes.CancellationToken, positionContext: PositionContext) => monacoTypes.languages.CompletionList;
|
|
291
|
+
}
|
|
292
|
+
type LanguageCompletionProvider = (m: Monaco, l?: SQLMonarchLanguage) => SQLCompletionItemProvider;
|
|
293
|
+
declare enum OperatorType {
|
|
294
|
+
Comparison = 0,
|
|
295
|
+
Logical = 1
|
|
296
|
+
}
|
|
297
|
+
declare enum MacroType {
|
|
298
|
+
Value = 0,
|
|
299
|
+
Filter = 1,
|
|
300
|
+
Group = 2,
|
|
301
|
+
Column = 3,
|
|
302
|
+
Table = 4
|
|
303
|
+
}
|
|
304
|
+
declare enum TokenType {
|
|
305
|
+
Parenthesis = "delimiter.parenthesis.sql",
|
|
306
|
+
Whitespace = "white.sql",
|
|
307
|
+
Keyword = "keyword.sql",
|
|
308
|
+
Delimiter = "delimiter.sql",
|
|
309
|
+
Operator = "operator.sql",
|
|
310
|
+
Identifier = "identifier.sql",
|
|
311
|
+
IdentifierQuote = "identifier.quote.sql",
|
|
312
|
+
Type = "type.sql",
|
|
313
|
+
Function = "predefined.sql",
|
|
314
|
+
Number = "number.sql",
|
|
315
|
+
String = "string.sql",
|
|
316
|
+
Variable = "variable.sql"
|
|
317
|
+
}
|
|
318
|
+
declare enum StatementPosition {
|
|
319
|
+
Unknown = "unknown",
|
|
320
|
+
SelectKeyword = "selectKeyword",
|
|
321
|
+
WithKeyword = "withKeyword",
|
|
322
|
+
AfterSelectKeyword = "afterSelectKeyword",
|
|
323
|
+
AfterSelectArguments = "afterSelectArguments",
|
|
324
|
+
AfterSelectFuncFirstArgument = "afterSelectFuncFirstArgument",
|
|
325
|
+
SelectAlias = "selectAlias",
|
|
326
|
+
AfterFromKeyword = "afterFromKeyword",
|
|
327
|
+
AfterTable = "afterTable",
|
|
328
|
+
SchemaFuncFirstArgument = "schemaFuncFirstArgument",
|
|
329
|
+
SchemaFuncExtraArgument = "schemaFuncExtraArgument",
|
|
330
|
+
FromKeyword = "fromKeyword",
|
|
331
|
+
AfterFrom = "afterFrom",
|
|
332
|
+
WhereKeyword = "whereKeyword",
|
|
333
|
+
WhereComparisonOperator = "whereComparisonOperator",
|
|
334
|
+
WhereValue = "whereValue",
|
|
335
|
+
AfterWhereFunctionArgument = "afterWhereFunctionArgument",
|
|
336
|
+
AfterGroupByFunctionArgument = "afterGroupByFunctionArgument",
|
|
337
|
+
AfterWhereValue = "afterWhereValue",
|
|
338
|
+
AfterGroupByKeywords = "afterGroupByKeywords",
|
|
339
|
+
AfterGroupBy = "afterGroupBy",
|
|
340
|
+
AfterOrderByKeywords = "afterOrderByKeywords",
|
|
341
|
+
AfterOrderByFunction = "afterOrderByFunction",
|
|
342
|
+
AfterOrderByDirection = "afterOrderByDirection",
|
|
343
|
+
AfterIsOperator = "afterIsOperator",
|
|
344
|
+
AfterIsNotOperator = "afterIsNotOperator",
|
|
345
|
+
AfterSchema = "afterSchema"
|
|
346
|
+
}
|
|
347
|
+
declare enum SuggestionKind {
|
|
348
|
+
Schemas = "schemas",
|
|
349
|
+
Tables = "tables",
|
|
350
|
+
Columns = "columns",
|
|
351
|
+
SelectKeyword = "selectKeyword",
|
|
352
|
+
WithKeyword = "withKeyword",
|
|
353
|
+
FunctionsWithArguments = "functionsWithArguments",
|
|
354
|
+
FromKeyword = "fromKeyword",
|
|
355
|
+
WhereKeyword = "whereKeyword",
|
|
356
|
+
GroupByKeywords = "groupByKeywords",
|
|
357
|
+
OrderByKeywords = "orderByKeywords",
|
|
358
|
+
FunctionsWithoutArguments = "functionsWithoutArguments",
|
|
359
|
+
LimitKeyword = "limitKeyword",
|
|
360
|
+
SortOrderDirectionKeyword = "sortOrderDirectionKeyword",
|
|
361
|
+
ComparisonOperators = "comparisonOperators",
|
|
362
|
+
LogicalOperators = "logicalOperators",
|
|
363
|
+
SelectMacro = "selectMacro",
|
|
364
|
+
TableMacro = "tableMacro",
|
|
365
|
+
FilterMacro = "filterMacro",
|
|
366
|
+
GroupMacro = "groupMacro",
|
|
367
|
+
BoolValues = "boolValues",
|
|
368
|
+
NullValue = "nullValue",
|
|
369
|
+
NotKeyword = "notKeyword",
|
|
370
|
+
TemplateVariables = "templateVariables",
|
|
371
|
+
StarWildCard = "starWildCard"
|
|
372
|
+
}
|
|
373
|
+
declare enum CompletionItemPriority {
|
|
374
|
+
High = "a",
|
|
375
|
+
MediumHigh = "d",
|
|
376
|
+
Medium = "g",
|
|
377
|
+
MediumLow = "k",
|
|
378
|
+
Low = "q"
|
|
379
|
+
}
|
|
380
|
+
declare enum CompletionItemKind {
|
|
381
|
+
Method = 0,
|
|
382
|
+
Function = 1,
|
|
383
|
+
Constructor = 2,
|
|
384
|
+
Field = 3,
|
|
385
|
+
Variable = 4,
|
|
386
|
+
Class = 5,
|
|
387
|
+
Struct = 6,
|
|
388
|
+
Interface = 7,
|
|
389
|
+
Module = 8,
|
|
390
|
+
Property = 9,
|
|
391
|
+
Event = 10,
|
|
392
|
+
Operator = 11,
|
|
393
|
+
Unit = 12,
|
|
394
|
+
Value = 13,
|
|
395
|
+
Constant = 14,
|
|
396
|
+
Enum = 15,
|
|
397
|
+
EnumMember = 16,
|
|
398
|
+
Keyword = 17,
|
|
399
|
+
Text = 18,
|
|
400
|
+
Color = 19,
|
|
401
|
+
File = 20,
|
|
402
|
+
Reference = 21,
|
|
403
|
+
Customcolor = 22,
|
|
404
|
+
Folder = 23,
|
|
405
|
+
TypeParameter = 24,
|
|
406
|
+
User = 25,
|
|
407
|
+
Issue = 26,
|
|
408
|
+
Snippet = 27
|
|
409
|
+
}
|
|
410
|
+
declare enum CompletionItemInsertTextRule {
|
|
411
|
+
KeepWhitespace = 1,
|
|
412
|
+
InsertAsSnippet = 4
|
|
413
|
+
}
|
|
414
|
+
declare enum SQLEditorMode {
|
|
415
|
+
Builder = "builder",
|
|
416
|
+
Code = "code"
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
interface LanguageDefinition extends monacoTypes.languages.ILanguageExtensionPoint {
|
|
420
|
+
loader?: (module: any) => Promise<{
|
|
421
|
+
language: SQLMonarchLanguage;
|
|
422
|
+
conf: monacoTypes.languages.LanguageConfiguration;
|
|
423
|
+
}>;
|
|
424
|
+
completionProvider?: (m: Monaco, language: SQLMonarchLanguage) => SQLCompletionItemProvider;
|
|
425
|
+
formatter?: (q: string) => string;
|
|
426
|
+
}
|
|
427
|
+
interface SQLEditorProps {
|
|
428
|
+
query: string;
|
|
429
|
+
/**
|
|
430
|
+
* Use for inspecting the query as it changes. I.e. for validation.
|
|
431
|
+
*/
|
|
432
|
+
onChange?: (q: string, processQuery: boolean) => void;
|
|
433
|
+
onBlur?: (text: string) => void;
|
|
434
|
+
language?: LanguageDefinition;
|
|
435
|
+
children?: (props: {
|
|
436
|
+
formatQuery: () => void;
|
|
437
|
+
}) => React.ReactNode;
|
|
438
|
+
width?: number;
|
|
439
|
+
height?: number;
|
|
440
|
+
}
|
|
441
|
+
declare const SQLEditor: ({ children, onBlur, onChange, query, language, width, height, }: SQLEditorProps) => React.JSX.Element;
|
|
442
|
+
|
|
443
|
+
interface TestQueryModel {
|
|
444
|
+
query: string;
|
|
445
|
+
tokens: Array<Array<Pick<monacoTypes.Token, 'language' | 'offset' | 'type'>>>;
|
|
446
|
+
}
|
|
447
|
+
interface StatementPositionResolverTestCase {
|
|
448
|
+
query: TestQueryModel;
|
|
449
|
+
position: {
|
|
450
|
+
line: number;
|
|
451
|
+
column: number;
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare const singleLineFullQuery: TestQueryModel;
|
|
456
|
+
|
|
457
|
+
declare const singleLineFullQueryWithAggregation: TestQueryModel;
|
|
458
|
+
|
|
459
|
+
declare const multiLineFullQuery: TestQueryModel;
|
|
460
|
+
|
|
461
|
+
declare const multiLineFullQueryWithAggregation: TestQueryModel;
|
|
462
|
+
|
|
463
|
+
declare const singleLineEmptyQuery: TestQueryModel;
|
|
464
|
+
|
|
465
|
+
declare const singleLineTwoQueries: TestQueryModel;
|
|
466
|
+
|
|
467
|
+
declare const singleLineTwoQueriesWithAggregation: TestQueryModel;
|
|
468
|
+
|
|
469
|
+
declare const singleLineMultipleColumns: TestQueryModel;
|
|
470
|
+
|
|
471
|
+
declare const multiLineMultipleColumns: TestQueryModel;
|
|
472
|
+
|
|
473
|
+
declare const testData_multiLineFullQuery: typeof multiLineFullQuery;
|
|
474
|
+
declare const testData_multiLineFullQueryWithAggregation: typeof multiLineFullQueryWithAggregation;
|
|
475
|
+
declare const testData_multiLineMultipleColumns: typeof multiLineMultipleColumns;
|
|
476
|
+
declare const testData_singleLineEmptyQuery: typeof singleLineEmptyQuery;
|
|
477
|
+
declare const testData_singleLineFullQuery: typeof singleLineFullQuery;
|
|
478
|
+
declare const testData_singleLineFullQueryWithAggregation: typeof singleLineFullQueryWithAggregation;
|
|
479
|
+
declare const testData_singleLineMultipleColumns: typeof singleLineMultipleColumns;
|
|
480
|
+
declare const testData_singleLineTwoQueries: typeof singleLineTwoQueries;
|
|
481
|
+
declare const testData_singleLineTwoQueriesWithAggregation: typeof singleLineTwoQueriesWithAggregation;
|
|
482
|
+
declare namespace testData {
|
|
483
|
+
export { testData_multiLineFullQuery as multiLineFullQuery, testData_multiLineFullQueryWithAggregation as multiLineFullQueryWithAggregation, testData_multiLineMultipleColumns as multiLineMultipleColumns, testData_singleLineEmptyQuery as singleLineEmptyQuery, testData_singleLineFullQuery as singleLineFullQuery, testData_singleLineFullQueryWithAggregation as singleLineFullQueryWithAggregation, testData_singleLineMultipleColumns as singleLineMultipleColumns, testData_singleLineTwoQueries as singleLineTwoQueries, testData_singleLineTwoQueriesWithAggregation as singleLineTwoQueriesWithAggregation };
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
declare const SQLEditorTestUtils: {
|
|
487
|
+
testData: typeof testData;
|
|
488
|
+
testStatementPosition: (expected: StatementPosition | string, cases: StatementPositionResolverTestCase[], resolvers: () => CustomStatementPlacement[]) => void;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
declare const conf: monacoTypes.languages.LanguageConfiguration;
|
|
492
|
+
declare const language: SQLMonarchLanguage;
|
|
493
|
+
|
|
494
|
+
declare function getStandardSQLCompletionProvider(monaco: Monaco, language: SQLMonarchLanguage): SQLCompletionItemProvider;
|
|
495
|
+
|
|
496
|
+
interface SqlQueryForInterpolation {
|
|
497
|
+
dataset?: string;
|
|
498
|
+
alias?: string;
|
|
499
|
+
format?: QueryFormat;
|
|
500
|
+
rawSql?: string;
|
|
501
|
+
refId: string;
|
|
502
|
+
hide?: boolean;
|
|
503
|
+
}
|
|
504
|
+
interface SQLConnectionLimits {
|
|
505
|
+
maxOpenConns: number;
|
|
506
|
+
maxIdleConns: number;
|
|
507
|
+
connMaxLifetime: number;
|
|
508
|
+
}
|
|
509
|
+
interface SQLOptions extends SQLConnectionLimits, DataSourceJsonData {
|
|
510
|
+
tlsAuth: boolean;
|
|
511
|
+
tlsAuthWithCACert: boolean;
|
|
512
|
+
timezone: string;
|
|
513
|
+
tlsSkipVerify: boolean;
|
|
514
|
+
user: string;
|
|
515
|
+
database: string;
|
|
516
|
+
url: string;
|
|
517
|
+
timeInterval: string;
|
|
518
|
+
}
|
|
519
|
+
declare enum QueryFormat {
|
|
520
|
+
Timeseries = 0,
|
|
521
|
+
Table = 1,
|
|
522
|
+
Logs = 2,
|
|
523
|
+
Trace = 3,
|
|
524
|
+
OptionMulti = 4
|
|
525
|
+
}
|
|
526
|
+
declare enum EditorMode {
|
|
527
|
+
Builder = "builder",
|
|
528
|
+
Code = "code"
|
|
529
|
+
}
|
|
530
|
+
interface SQLQuery extends DataQuery {
|
|
531
|
+
alias?: string;
|
|
532
|
+
format?: QueryFormat;
|
|
533
|
+
rawSql?: string;
|
|
534
|
+
dataset?: string;
|
|
535
|
+
table?: string;
|
|
536
|
+
sql?: SQLExpression;
|
|
537
|
+
editorMode?: EditorMode;
|
|
538
|
+
rawQuery?: boolean;
|
|
539
|
+
}
|
|
540
|
+
interface NameValue {
|
|
541
|
+
name: string;
|
|
542
|
+
value: string;
|
|
543
|
+
}
|
|
544
|
+
type SQLFilters = NameValue[];
|
|
545
|
+
interface SQLExpression {
|
|
546
|
+
columns?: QueryEditorFunctionExpression[];
|
|
547
|
+
whereJsonTree?: JsonTree;
|
|
548
|
+
whereString?: string;
|
|
549
|
+
filters?: SQLFilters;
|
|
550
|
+
groupBy?: QueryEditorGroupByExpression[];
|
|
551
|
+
orderBy?: QueryEditorPropertyExpression;
|
|
552
|
+
orderByDirection?: 'ASC' | 'DESC';
|
|
553
|
+
limit?: number;
|
|
554
|
+
offset?: number;
|
|
555
|
+
}
|
|
556
|
+
interface TableSchema {
|
|
557
|
+
name?: string;
|
|
558
|
+
schema?: TableFieldSchema[];
|
|
559
|
+
}
|
|
560
|
+
interface TableFieldSchema {
|
|
561
|
+
name: string;
|
|
562
|
+
description?: string;
|
|
563
|
+
type: string;
|
|
564
|
+
repeated: boolean;
|
|
565
|
+
schema: TableFieldSchema[];
|
|
566
|
+
}
|
|
567
|
+
interface QueryRowFilter {
|
|
568
|
+
filter: boolean;
|
|
569
|
+
group: boolean;
|
|
570
|
+
order: boolean;
|
|
571
|
+
preview: boolean;
|
|
572
|
+
}
|
|
573
|
+
declare const QUERY_FORMAT_OPTIONS: {
|
|
574
|
+
label: string;
|
|
575
|
+
value: QueryFormat;
|
|
576
|
+
}[];
|
|
577
|
+
declare const toOption: (value: string) => SelectableValue<string>;
|
|
578
|
+
interface ResourceSelectorProps {
|
|
579
|
+
disabled?: boolean;
|
|
580
|
+
className?: string;
|
|
581
|
+
applyDefault?: boolean;
|
|
582
|
+
}
|
|
583
|
+
type RAQBFieldTypes = 'text' | 'number' | 'boolean' | 'datetime' | 'date' | 'time';
|
|
584
|
+
interface SQLSelectableValue extends SelectableValue {
|
|
585
|
+
type?: string;
|
|
586
|
+
raqbFieldType?: RAQBFieldTypes;
|
|
587
|
+
}
|
|
588
|
+
interface Aggregate {
|
|
589
|
+
id: string;
|
|
590
|
+
name: string;
|
|
591
|
+
description?: string;
|
|
592
|
+
}
|
|
593
|
+
interface DB {
|
|
594
|
+
init?: (datasourceId?: string) => Promise<boolean>;
|
|
595
|
+
datasets: () => Promise<string[]>;
|
|
596
|
+
tables: (dataset?: string) => Promise<string[]>;
|
|
597
|
+
fields: (query: SQLQuery, order?: boolean) => Promise<SQLSelectableValue[]>;
|
|
598
|
+
validateQuery: (query: SQLQuery, range?: TimeRange) => Promise<ValidationResults>;
|
|
599
|
+
dsID: () => number;
|
|
600
|
+
dispose?: (dsID?: string) => void;
|
|
601
|
+
lookup: (path?: string) => Promise<Array<{
|
|
602
|
+
name: string;
|
|
603
|
+
completion: string;
|
|
604
|
+
}>>;
|
|
605
|
+
getSqlCompletionProvider: () => LanguageCompletionProvider;
|
|
606
|
+
toRawSql?: (query: SQLQuery) => string;
|
|
607
|
+
functions: () => Promise<Aggregate[]>;
|
|
608
|
+
labels?: Map<'dataset', string>;
|
|
609
|
+
disableDatasets?: boolean;
|
|
610
|
+
}
|
|
611
|
+
interface QueryEditorProps {
|
|
612
|
+
db: DB;
|
|
613
|
+
query: QueryWithDefaults;
|
|
614
|
+
onChange: (query: SQLQuery) => void;
|
|
615
|
+
range?: TimeRange;
|
|
616
|
+
}
|
|
617
|
+
interface ValidationResults {
|
|
618
|
+
query: SQLQuery;
|
|
619
|
+
rawSql?: string;
|
|
620
|
+
error: string;
|
|
621
|
+
isError: boolean;
|
|
622
|
+
isValid: boolean;
|
|
623
|
+
statistics?: {
|
|
624
|
+
TotalBytesProcessed: number;
|
|
625
|
+
} | null;
|
|
626
|
+
}
|
|
627
|
+
interface SqlQueryModel {
|
|
628
|
+
interpolate: () => string;
|
|
629
|
+
quoteLiteral: (v: string) => string;
|
|
630
|
+
}
|
|
631
|
+
interface ResponseParser {
|
|
632
|
+
transformMetricFindResponse: (frame: DataFrame) => MetricFindValue[];
|
|
633
|
+
}
|
|
634
|
+
interface MetaDefinition {
|
|
635
|
+
name: string;
|
|
636
|
+
completion?: string;
|
|
637
|
+
kind: CompletionItemKind;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
interface GroupByRowProps {
|
|
641
|
+
sql: SQLExpression;
|
|
642
|
+
onSqlChange: (sql: SQLExpression) => void;
|
|
643
|
+
columns?: Array<SelectableValue<string>>;
|
|
644
|
+
}
|
|
645
|
+
declare function GroupByRow({ sql, columns, onSqlChange }: GroupByRowProps): React.JSX.Element;
|
|
646
|
+
|
|
647
|
+
interface AccessoryButtonProps extends ButtonProps {
|
|
648
|
+
}
|
|
649
|
+
declare const AccessoryButton: ({ className, ...props }: AccessoryButtonProps) => React.JSX.Element;
|
|
650
|
+
|
|
651
|
+
interface EditorFieldGroupProps {
|
|
652
|
+
children?: React.ReactNode;
|
|
653
|
+
}
|
|
654
|
+
declare const EditorFieldGroup: ({ children }: EditorFieldGroupProps) => React.JSX.Element;
|
|
655
|
+
|
|
656
|
+
interface EditorHeaderProps {
|
|
657
|
+
children?: React.ReactNode;
|
|
658
|
+
}
|
|
659
|
+
declare const EditorHeader: ({ children }: EditorHeaderProps) => React.JSX.Element;
|
|
660
|
+
|
|
661
|
+
interface EditorFieldProps extends ComponentProps<typeof Field> {
|
|
662
|
+
label: string;
|
|
663
|
+
children: React.ReactElement;
|
|
664
|
+
width?: number | string;
|
|
665
|
+
optional?: boolean;
|
|
666
|
+
tooltip?: PopoverContent;
|
|
667
|
+
tooltipInteractive?: boolean;
|
|
668
|
+
}
|
|
669
|
+
declare const EditorField: (props: EditorFieldProps) => React.JSX.Element;
|
|
670
|
+
|
|
671
|
+
interface EditorRowProps {
|
|
672
|
+
children?: React.ReactNode;
|
|
673
|
+
}
|
|
674
|
+
declare const EditorRow: ({ children }: EditorRowProps) => React.JSX.Element;
|
|
675
|
+
|
|
676
|
+
interface EditorListProps<T> {
|
|
677
|
+
items: Array<Partial<T>>;
|
|
678
|
+
renderItem: (item: Partial<T>, onChangeItem: (item: Partial<T>) => void, onDeleteItem: () => void) => React.ReactElement;
|
|
679
|
+
onChange: (items: Array<Partial<T>>) => void;
|
|
680
|
+
}
|
|
681
|
+
declare const EditorList: React.ForwardRefExoticComponent<EditorListProps<unknown> & React.RefAttributes<HTMLButtonElement>>;
|
|
682
|
+
|
|
683
|
+
interface EditorRowsProps {
|
|
684
|
+
children?: React.ReactNode;
|
|
685
|
+
}
|
|
686
|
+
declare const EditorRows: ({ children }: EditorRowsProps) => React.JSX.Element;
|
|
687
|
+
|
|
688
|
+
declare const EditorSwitch: (props: ComponentProps<typeof Switch>) => React.JSX.Element;
|
|
689
|
+
|
|
690
|
+
interface FlexItemProps {
|
|
691
|
+
grow?: number;
|
|
692
|
+
shrink?: number;
|
|
693
|
+
}
|
|
694
|
+
declare const FlexItem: ({ grow, shrink }: FlexItemProps) => React.JSX.Element;
|
|
695
|
+
|
|
696
|
+
type Direction = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
697
|
+
type AlignItems = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'start' | 'end' | 'self-start' | 'self-end';
|
|
698
|
+
interface StackProps {
|
|
699
|
+
children?: React.ReactNode;
|
|
700
|
+
direction?: Direction;
|
|
701
|
+
alignItems?: AlignItems;
|
|
702
|
+
wrap?: boolean;
|
|
703
|
+
gap?: ThemeSpacingTokens;
|
|
704
|
+
}
|
|
705
|
+
declare const EditorStack: ({ children, wrap: wrapItems, ...props }: StackProps) => React.JSX.Element;
|
|
706
|
+
|
|
707
|
+
interface InlineSelectProps<T> extends SelectCommonProps<T> {
|
|
708
|
+
label?: string;
|
|
709
|
+
}
|
|
710
|
+
declare function InlineSelect<T>({ label: labelProp, ...props }: InlineSelectProps<T>): React.JSX.Element;
|
|
711
|
+
|
|
712
|
+
type Child = string | undefined | ReactElement<{
|
|
713
|
+
className?: string;
|
|
714
|
+
invalid?: unknown;
|
|
715
|
+
}>;
|
|
716
|
+
interface InputGroupProps {
|
|
717
|
+
children: Child | Child[];
|
|
718
|
+
}
|
|
719
|
+
declare const InputGroup: ({ children }: InputGroupProps) => React.JSX.Element;
|
|
720
|
+
|
|
721
|
+
interface SpaceProps {
|
|
722
|
+
v?: number;
|
|
723
|
+
h?: number;
|
|
724
|
+
layout?: 'block' | 'inline';
|
|
725
|
+
}
|
|
726
|
+
declare const Space: {
|
|
727
|
+
(props: SpaceProps): React.JSX.Element;
|
|
728
|
+
defaultProps: {
|
|
729
|
+
v: number;
|
|
730
|
+
h: number;
|
|
731
|
+
layout: string;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
interface SearchFilterOptions {
|
|
736
|
+
searchFilter?: string;
|
|
737
|
+
}
|
|
738
|
+
interface VariableWithMultiSupport extends VariableWithOptions {
|
|
739
|
+
multi: boolean;
|
|
740
|
+
includeAll: boolean;
|
|
741
|
+
allValue?: string | null;
|
|
742
|
+
}
|
|
743
|
+
interface VariableWithOptions extends VariableModel {
|
|
744
|
+
current: VariableOption;
|
|
745
|
+
options: VariableOption[];
|
|
746
|
+
query: string;
|
|
747
|
+
}
|
|
748
|
+
interface VariableOption {
|
|
749
|
+
selected: boolean;
|
|
750
|
+
text: string | string[];
|
|
751
|
+
value: string | string[];
|
|
752
|
+
isNone?: boolean;
|
|
753
|
+
}
|
|
754
|
+
declare abstract class SqlDatasource extends DataSourceWithBackend<SQLQuery, SQLOptions> {
|
|
755
|
+
protected readonly templateSrv: TemplateSrv;
|
|
756
|
+
id: number;
|
|
757
|
+
name: string;
|
|
758
|
+
interval: string;
|
|
759
|
+
db: DB;
|
|
760
|
+
dataset?: string;
|
|
761
|
+
annotations: {};
|
|
762
|
+
constructor(instanceSettings: DataSourceInstanceSettings<SQLOptions>, templateSrv?: TemplateSrv);
|
|
763
|
+
abstract getDB(dsID?: number): DB;
|
|
764
|
+
abstract getQueryModel(target?: SQLQuery, templateSrv?: TemplateSrv, scopedVars?: ScopedVars): SqlQueryModel;
|
|
765
|
+
abstract getResponseParser(): ResponseParser;
|
|
766
|
+
interpolateVariable: (value: string | string[] | number, variable: VariableWithMultiSupport) => string | number;
|
|
767
|
+
interpolateVariablesInQueries(queries: SQLQuery[], scopedVars: ScopedVars): SQLQuery[];
|
|
768
|
+
filterQuery(query: SQLQuery): boolean;
|
|
769
|
+
applyTemplateVariables(target: SQLQuery, scopedVars: ScopedVars): SQLQuery;
|
|
770
|
+
clean(value: string): string;
|
|
771
|
+
metricFindQuery(query: string, optionalOptions?: MetricFindQueryOptions): Promise<MetricFindValue[]>;
|
|
772
|
+
runSql<T extends object>(query: string, options?: RunSQLOptions): Promise<DataFrameView<T>>;
|
|
773
|
+
private runMetaQuery;
|
|
774
|
+
testDatasource(): Promise<{
|
|
775
|
+
status: string;
|
|
776
|
+
message: string;
|
|
777
|
+
}>;
|
|
778
|
+
targetContainsTemplate(target: SQLQuery): boolean;
|
|
779
|
+
}
|
|
780
|
+
interface RunSQLOptions extends MetricFindQueryOptions {
|
|
781
|
+
refId?: string;
|
|
782
|
+
}
|
|
783
|
+
interface MetricFindQueryOptions extends SearchFilterOptions {
|
|
784
|
+
range?: TimeRange;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
interface Props$p extends QueryEditorProps$1<SqlDatasource, SQLQuery, SQLOptions> {
|
|
788
|
+
}
|
|
789
|
+
declare function SqlQueryEditor({ datasource, query, onChange, onRunQuery, range }: Props$p): React.JSX.Element | null;
|
|
790
|
+
|
|
791
|
+
type RunQueryButtonProps = {
|
|
792
|
+
ariaLabel?: string;
|
|
793
|
+
queryInvalid?: boolean;
|
|
794
|
+
invalidQueryTooltip?: PopoverContent;
|
|
795
|
+
disabled?: boolean;
|
|
796
|
+
queryRunning?: boolean;
|
|
797
|
+
onClick: () => void;
|
|
798
|
+
dataTestId?: string;
|
|
799
|
+
};
|
|
800
|
+
declare const RunQueryButton: ({ ariaLabel, queryRunning, queryInvalid, invalidQueryTooltip, disabled, onClick, dataTestId, }: RunQueryButtonProps) => React.JSX.Element;
|
|
801
|
+
|
|
802
|
+
type Props$o = Omit<React.ComponentProps<typeof InlineLabel>, 'children'> & {
|
|
803
|
+
dataSourceConfig: DataSourceSettings<any, any>;
|
|
804
|
+
onChange: (config: DataSourceSettings) => void;
|
|
805
|
+
labelWidth: number;
|
|
806
|
+
};
|
|
807
|
+
declare const SecureSocksProxyToggle: ({ labelWidth, ...props }: Props$o) => any;
|
|
808
|
+
|
|
809
|
+
type Props$n = {
|
|
810
|
+
dataSourceName: string;
|
|
811
|
+
docsLink: string;
|
|
812
|
+
hasRequiredFields?: boolean;
|
|
813
|
+
className?: string;
|
|
814
|
+
};
|
|
815
|
+
declare const DataSourceDescription: ({ dataSourceName, docsLink, hasRequiredFields, className }: Props$n) => React.JSX.Element;
|
|
816
|
+
|
|
817
|
+
type Props$m = {
|
|
818
|
+
title: string;
|
|
819
|
+
description?: ReactNode;
|
|
820
|
+
isCollapsible?: boolean;
|
|
821
|
+
isInitiallyOpen?: boolean;
|
|
822
|
+
kind?: 'section' | 'sub-section';
|
|
823
|
+
className?: string;
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
type Props$l = Omit<Props$m, 'kind'>;
|
|
827
|
+
declare const ConfigSection: ({ children, ...props }: React.PropsWithChildren<Props$l>) => React.JSX.Element;
|
|
828
|
+
|
|
829
|
+
type Props$k = Omit<Props$m, 'kind'>;
|
|
830
|
+
declare const ConfigSubSection: ({ children, ...props }: React.PropsWithChildren<Props$k>) => React.JSX.Element;
|
|
831
|
+
|
|
832
|
+
type Props$j = {
|
|
833
|
+
description: string;
|
|
834
|
+
suffix: string;
|
|
835
|
+
feature: string;
|
|
836
|
+
};
|
|
837
|
+
declare function ConfigDescriptionLink(props: Props$j): React.JSX.Element;
|
|
838
|
+
|
|
839
|
+
declare enum AuthMethod {
|
|
840
|
+
NoAuth = "NoAuth",
|
|
841
|
+
BasicAuth = "BasicAuth",
|
|
842
|
+
OAuthForward = "OAuthForward",
|
|
843
|
+
CrossSiteCredentials = "CrossSiteCredentials"
|
|
844
|
+
}
|
|
845
|
+
interface AuthMethodSelectOption {
|
|
846
|
+
label?: string;
|
|
847
|
+
description?: string;
|
|
848
|
+
}
|
|
849
|
+
type CustomMethodId = `custom-${string}`;
|
|
850
|
+
type CustomMethod = {
|
|
851
|
+
id: CustomMethodId;
|
|
852
|
+
label: string;
|
|
853
|
+
description: string;
|
|
854
|
+
component: ReactElement;
|
|
855
|
+
};
|
|
856
|
+
type Header = {
|
|
857
|
+
name: string;
|
|
858
|
+
configured: boolean;
|
|
859
|
+
};
|
|
860
|
+
type HeaderWithValue = Header & {
|
|
861
|
+
value: string;
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
type Props$i = {
|
|
865
|
+
enabled: boolean;
|
|
866
|
+
onToggle: (enabled: boolean) => void;
|
|
867
|
+
certificateConfigured: boolean;
|
|
868
|
+
onCertificateChange: (certificate: string) => void;
|
|
869
|
+
onCertificateReset: () => void;
|
|
870
|
+
tooltips?: {
|
|
871
|
+
certificateLabel?: string;
|
|
872
|
+
};
|
|
873
|
+
readOnly: boolean;
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
type Props$h = {
|
|
877
|
+
enabled: boolean;
|
|
878
|
+
onToggle: (enabled: boolean) => void;
|
|
879
|
+
serverName: string;
|
|
880
|
+
clientCertificateConfigured: boolean;
|
|
881
|
+
clientKeyConfigured: boolean;
|
|
882
|
+
onServerNameChange: (serverName: string) => void;
|
|
883
|
+
onClientCertificateChange: (clientCertificate: string) => void;
|
|
884
|
+
onClientKeyChange: (clientKey: string) => void;
|
|
885
|
+
onClientCertificateReset: () => void;
|
|
886
|
+
onClientKeyReset: () => void;
|
|
887
|
+
tooltips?: {
|
|
888
|
+
serverNameLabel?: string;
|
|
889
|
+
certificateLabel?: string;
|
|
890
|
+
keyLabel?: string;
|
|
891
|
+
};
|
|
892
|
+
readOnly: boolean;
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
type Props$g = {
|
|
896
|
+
enabled: boolean;
|
|
897
|
+
onToggle: (enabled: boolean) => void;
|
|
898
|
+
readOnly: boolean;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
type Props$f = {
|
|
902
|
+
selfSignedCertificate: Omit<Props$i, 'readOnly'>;
|
|
903
|
+
TLSClientAuth: Omit<Props$h, 'readOnly'>;
|
|
904
|
+
skipTLSVerification: Omit<Props$g, 'readOnly'>;
|
|
905
|
+
readOnly: boolean;
|
|
906
|
+
};
|
|
907
|
+
declare const TLSSettings: ({ selfSignedCertificate, TLSClientAuth, skipTLSVerification, readOnly }: Props$f) => React.JSX.Element;
|
|
908
|
+
|
|
909
|
+
type Props$e = {
|
|
910
|
+
user?: string;
|
|
911
|
+
passwordConfigured: boolean;
|
|
912
|
+
userLabel?: string;
|
|
913
|
+
userTooltip?: PopoverContent;
|
|
914
|
+
userPlaceholder?: string;
|
|
915
|
+
passwordLabel?: string;
|
|
916
|
+
passwordTooltip?: PopoverContent;
|
|
917
|
+
passwordPlaceholder?: string;
|
|
918
|
+
onUserChange: (user: string) => void;
|
|
919
|
+
onPasswordChange: (password: string) => void;
|
|
920
|
+
onPasswordReset: () => void;
|
|
921
|
+
readOnly: boolean;
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
type Props$d = {
|
|
925
|
+
headers: Header[];
|
|
926
|
+
onChange: (headers: HeaderWithValue[]) => void;
|
|
927
|
+
readOnly: boolean;
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
type Props$c = {
|
|
931
|
+
selectedMethod: AuthMethod | CustomMethodId;
|
|
932
|
+
mostCommonMethod?: AuthMethod | CustomMethodId;
|
|
933
|
+
visibleMethods?: Array<AuthMethod | CustomMethodId>;
|
|
934
|
+
defaultOptionsOverrides?: Partial<Record<AuthMethod, AuthMethodSelectOption>>;
|
|
935
|
+
customMethods?: CustomMethod[];
|
|
936
|
+
onAuthMethodSelect: (authType: AuthMethod | CustomMethodId) => void;
|
|
937
|
+
basicAuth?: Omit<Props$e, 'readOnly'>;
|
|
938
|
+
TLS?: Omit<Props$f, 'readOnly'>;
|
|
939
|
+
customHeaders?: Omit<Props$d, 'readOnly'>;
|
|
940
|
+
readOnly?: boolean;
|
|
941
|
+
};
|
|
942
|
+
declare const Auth: ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly, }: Props$c) => React.JSX.Element;
|
|
943
|
+
|
|
944
|
+
type DataSourceExclusiveConfig = {
|
|
945
|
+
readOnly: DataSourceSettings['readOnly'];
|
|
946
|
+
url: DataSourceSettings['url'];
|
|
947
|
+
basicAuth: DataSourceSettings['basicAuth'];
|
|
948
|
+
basicAuthUser: DataSourceSettings['basicAuthUser'];
|
|
949
|
+
withCredentials: DataSourceSettings['withCredentials'];
|
|
950
|
+
};
|
|
951
|
+
type Config<JSONData extends DataSourceJsonData = any, SecureJSONData = {}> = {
|
|
952
|
+
jsonData: DataSourceSettings<JSONData>['jsonData'];
|
|
953
|
+
secureJsonData?: DataSourceSettings<JSONData, SecureJSONData>['secureJsonData'];
|
|
954
|
+
secureJsonFields: DataSourceSettings['secureJsonFields'];
|
|
955
|
+
} & Partial<DataSourceExclusiveConfig>;
|
|
956
|
+
type OnChangeHandler<C extends Config = Config> = (config: C) => void;
|
|
957
|
+
|
|
958
|
+
declare function convertLegacyAuthProps<C extends Config = Config>({ config, onChange, }: {
|
|
959
|
+
config: C;
|
|
960
|
+
onChange: OnChangeHandler<C>;
|
|
961
|
+
}): Props$c;
|
|
962
|
+
|
|
963
|
+
type Props$b<C extends Config = Config> = {
|
|
964
|
+
config: C;
|
|
965
|
+
onChange: OnChangeHandler<C>;
|
|
966
|
+
description?: ReactNode;
|
|
967
|
+
urlPlaceholder?: string;
|
|
968
|
+
urlTooltip?: PopoverContent;
|
|
969
|
+
urlLabel?: string;
|
|
970
|
+
className?: string;
|
|
971
|
+
};
|
|
972
|
+
declare const ConnectionSettings: <C extends Config = Config>(props: Props$b<C>) => JSX.Element;
|
|
973
|
+
|
|
974
|
+
type Props$a<C extends Config = Config> = {
|
|
975
|
+
config: C;
|
|
976
|
+
onChange: OnChangeHandler<C>;
|
|
977
|
+
className?: string;
|
|
978
|
+
};
|
|
979
|
+
declare const AdvancedHttpSettings: <C extends Config = Config>(props: Props$a<C>) => JSX.Element;
|
|
980
|
+
|
|
981
|
+
interface CustomHeader {
|
|
982
|
+
id: string;
|
|
983
|
+
name: string;
|
|
984
|
+
value: string;
|
|
985
|
+
configured: boolean;
|
|
986
|
+
}
|
|
987
|
+
type CustomHeaders = CustomHeader[];
|
|
988
|
+
interface Props$9 {
|
|
989
|
+
dataSourceConfig: DataSourceSettings<any, any>;
|
|
990
|
+
onChange: (config: DataSourceSettings) => void;
|
|
991
|
+
}
|
|
992
|
+
interface State {
|
|
993
|
+
headers: CustomHeaders;
|
|
994
|
+
}
|
|
995
|
+
declare class CustomHeadersSettings extends PureComponent<Props$9, State> {
|
|
996
|
+
state: State;
|
|
997
|
+
constructor(props: Props$9);
|
|
998
|
+
updateSettings: () => void;
|
|
999
|
+
onHeaderAdd: () => void;
|
|
1000
|
+
onHeaderChange: (headerIndex: number, value: CustomHeader) => void;
|
|
1001
|
+
onHeaderReset: (headerId: string) => void;
|
|
1002
|
+
onHeaderRemove: (headerId: string) => void;
|
|
1003
|
+
render(): React.JSX.Element;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
interface QueryBuilderLabelFilter {
|
|
1007
|
+
label: string;
|
|
1008
|
+
op: string;
|
|
1009
|
+
value: string;
|
|
1010
|
+
}
|
|
1011
|
+
interface QueryBuilderOperation {
|
|
1012
|
+
id: string;
|
|
1013
|
+
params: QueryBuilderOperationParamValue[];
|
|
1014
|
+
disabled?: boolean;
|
|
1015
|
+
}
|
|
1016
|
+
interface QueryBuilderOperationDefinition<T = any> extends RegistryItem {
|
|
1017
|
+
documentation?: string;
|
|
1018
|
+
params: QueryBuilderOperationParamDef[];
|
|
1019
|
+
defaultParams: QueryBuilderOperationParamValue[];
|
|
1020
|
+
category: string;
|
|
1021
|
+
hideFromList?: boolean;
|
|
1022
|
+
alternativesKey?: string;
|
|
1023
|
+
/** Can be used to control operation placement when adding a new operations, lower are placed first */
|
|
1024
|
+
orderRank?: number;
|
|
1025
|
+
renderer: QueryBuilderOperationRenderer;
|
|
1026
|
+
addOperationHandler: QueryBuilderAddOperationHandler<T>;
|
|
1027
|
+
paramChangedHandler?: QueryBuilderOnParamChangedHandler;
|
|
1028
|
+
explainHandler?: QueryBuilderExplainOperationHandler;
|
|
1029
|
+
changeTypeHandler?: (op: QueryBuilderOperation, newDef: QueryBuilderOperationDefinition<T>) => QueryBuilderOperation;
|
|
1030
|
+
toggleable?: boolean;
|
|
1031
|
+
}
|
|
1032
|
+
type QueryBuilderAddOperationHandler<T> = (def: QueryBuilderOperationDefinition, query: T, modeller: VisualQueryModeller) => T;
|
|
1033
|
+
type QueryBuilderExplainOperationHandler = (op: QueryBuilderOperation, def?: QueryBuilderOperationDefinition) => string;
|
|
1034
|
+
type QueryBuilderOnParamChangedHandler = (index: number, operation: QueryBuilderOperation, operationDef: QueryBuilderOperationDefinition) => QueryBuilderOperation;
|
|
1035
|
+
type QueryBuilderOperationRenderer = (model: QueryBuilderOperation, def: QueryBuilderOperationDefinition, innerQuery: string) => string;
|
|
1036
|
+
type QueryBuilderOperationParamValue = string | number | boolean;
|
|
1037
|
+
interface QueryBuilderOperationParamDef {
|
|
1038
|
+
name: string;
|
|
1039
|
+
type: 'string' | 'number' | 'boolean';
|
|
1040
|
+
options?: string[] | number[] | Array<SelectableValue<string>>;
|
|
1041
|
+
hideName?: boolean;
|
|
1042
|
+
restParam?: boolean;
|
|
1043
|
+
optional?: boolean;
|
|
1044
|
+
placeholder?: string;
|
|
1045
|
+
description?: string;
|
|
1046
|
+
minWidth?: number;
|
|
1047
|
+
editor?: FunctionComponent<QueryBuilderOperationParamEditorProps>;
|
|
1048
|
+
runQueryOnEnter?: boolean;
|
|
1049
|
+
}
|
|
1050
|
+
interface QueryBuilderOperationParamEditorProps {
|
|
1051
|
+
value?: QueryBuilderOperationParamValue;
|
|
1052
|
+
paramDef: QueryBuilderOperationParamDef;
|
|
1053
|
+
/** Parameter index */
|
|
1054
|
+
index: number;
|
|
1055
|
+
operation: QueryBuilderOperation;
|
|
1056
|
+
operationId: string;
|
|
1057
|
+
query: any;
|
|
1058
|
+
datasource: DataSourceApi;
|
|
1059
|
+
timeRange?: TimeRange;
|
|
1060
|
+
onChange: (index: number, value: QueryBuilderOperationParamValue) => void;
|
|
1061
|
+
onRunQuery: () => void;
|
|
1062
|
+
queryModeller: VisualQueryModeller;
|
|
1063
|
+
}
|
|
1064
|
+
declare enum QueryEditorMode {
|
|
1065
|
+
Code = "code",
|
|
1066
|
+
Builder = "builder"
|
|
1067
|
+
}
|
|
1068
|
+
type QueryStats = {
|
|
1069
|
+
bytes: number;
|
|
1070
|
+
message?: string;
|
|
1071
|
+
};
|
|
1072
|
+
interface VisualQueryModeller {
|
|
1073
|
+
getOperationsForCategory(category: string): QueryBuilderOperationDefinition[];
|
|
1074
|
+
getAlternativeOperations(key: string): QueryBuilderOperationDefinition[];
|
|
1075
|
+
getCategories(): string[];
|
|
1076
|
+
getOperationDefinition(id: string): QueryBuilderOperationDefinition | undefined;
|
|
1077
|
+
renderQuery(query: VisualQuery, nested?: boolean): string;
|
|
1078
|
+
renderLabels(labels: QueryBuilderLabelFilter[]): string;
|
|
1079
|
+
innerQueryPlaceholder: string;
|
|
1080
|
+
}
|
|
1081
|
+
interface VisualQueryBinary<T> {
|
|
1082
|
+
operator: string;
|
|
1083
|
+
vectorMatchesType?: 'on' | 'ignoring';
|
|
1084
|
+
vectorMatches?: string;
|
|
1085
|
+
query: T;
|
|
1086
|
+
}
|
|
1087
|
+
declare const BINARY_OPERATIONS_KEY = "Binary operations";
|
|
1088
|
+
interface VisualQuery {
|
|
1089
|
+
metric?: string;
|
|
1090
|
+
labels: QueryBuilderLabelFilter[];
|
|
1091
|
+
operations: QueryBuilderOperation[];
|
|
1092
|
+
binaryQueries?: Array<VisualQueryBinary<VisualQuery>>;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare abstract class QueryModellerBase implements VisualQueryModeller {
|
|
1096
|
+
protected operationsRegistry: Registry<QueryBuilderOperationDefinition>;
|
|
1097
|
+
private categories;
|
|
1098
|
+
innerQueryPlaceholder: string;
|
|
1099
|
+
constructor(operationDefinitions: QueryBuilderOperationDefinition[], innerQueryPlaceholder?: string);
|
|
1100
|
+
protected setOperationCategories(categories: string[]): void;
|
|
1101
|
+
abstract renderOperations(queryString: string, operations: QueryBuilderOperation[]): string;
|
|
1102
|
+
abstract renderBinaryQueries(queryString: string, binaryQueries?: Array<VisualQueryBinary<VisualQuery>>): string;
|
|
1103
|
+
abstract renderLabels(labels: QueryBuilderLabelFilter[]): string;
|
|
1104
|
+
abstract renderQuery(query: VisualQuery, nested?: boolean): string;
|
|
1105
|
+
getOperationsForCategory(category: string): QueryBuilderOperationDefinition<any>[];
|
|
1106
|
+
getAlternativeOperations(key: string): QueryBuilderOperationDefinition<any>[];
|
|
1107
|
+
getCategories(): string[];
|
|
1108
|
+
getOperationDefinition(id: string): QueryBuilderOperationDefinition | undefined;
|
|
1109
|
+
hasBinaryOp(query: VisualQuery): boolean;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
interface Props$8 {
|
|
1113
|
+
labelsFilters: QueryBuilderLabelFilter[];
|
|
1114
|
+
onChange: (labelFilters: QueryBuilderLabelFilter[]) => void;
|
|
1115
|
+
onGetLabelNames: (forLabel: Partial<QueryBuilderLabelFilter>) => Promise<SelectableValue[]>;
|
|
1116
|
+
onGetLabelValues: (forLabel: Partial<QueryBuilderLabelFilter>) => Promise<SelectableValue[]>;
|
|
1117
|
+
/** If set to true, component will show error message until at least 1 filter is selected */
|
|
1118
|
+
labelFilterRequired?: boolean;
|
|
1119
|
+
multiValueSeparator?: string;
|
|
1120
|
+
}
|
|
1121
|
+
declare function LabelFilters({ labelsFilters, onChange, onGetLabelNames, onGetLabelValues, labelFilterRequired, multiValueSeparator, }: Props$8): React.JSX.Element;
|
|
1122
|
+
|
|
1123
|
+
interface Props$7 {
|
|
1124
|
+
title?: React.ReactNode;
|
|
1125
|
+
markdown?: string;
|
|
1126
|
+
stepNumber?: number;
|
|
1127
|
+
}
|
|
1128
|
+
declare function OperationExplainedBox({ title, stepNumber, markdown, children }: React.PropsWithChildren<Props$7>): React.JSX.Element;
|
|
1129
|
+
|
|
1130
|
+
interface Props$6<T extends VisualQuery> {
|
|
1131
|
+
query: T;
|
|
1132
|
+
datasource: DataSourceApi;
|
|
1133
|
+
onChange: (query: T) => void;
|
|
1134
|
+
onRunQuery: () => void;
|
|
1135
|
+
queryModeller: VisualQueryModeller;
|
|
1136
|
+
explainMode?: boolean;
|
|
1137
|
+
highlightedOp?: QueryBuilderOperation;
|
|
1138
|
+
timeRange?: TimeRange;
|
|
1139
|
+
isConflictingOperation?: (operation: QueryBuilderOperation, otherOperations: QueryBuilderOperation[]) => boolean;
|
|
1140
|
+
}
|
|
1141
|
+
declare function OperationList<T extends VisualQuery>({ query, datasource, queryModeller, onChange, onRunQuery, highlightedOp, timeRange, isConflictingOperation, }: Props$6<T>): React.JSX.Element;
|
|
1142
|
+
|
|
1143
|
+
interface Props$5<T extends VisualQuery> {
|
|
1144
|
+
query: T;
|
|
1145
|
+
queryModeller: VisualQueryModeller;
|
|
1146
|
+
explainMode?: boolean;
|
|
1147
|
+
stepNumber: number;
|
|
1148
|
+
language: {
|
|
1149
|
+
grammar: Grammar;
|
|
1150
|
+
name: string;
|
|
1151
|
+
};
|
|
1152
|
+
onMouseEnter?: (op: QueryBuilderOperation, index: number) => void;
|
|
1153
|
+
onMouseLeave?: (op: QueryBuilderOperation, index: number) => void;
|
|
1154
|
+
}
|
|
1155
|
+
declare function OperationListExplained<T extends VisualQuery>({ query, queryModeller, stepNumber, language, onMouseEnter, onMouseLeave, }: Props$5<T>): React.JSX.Element;
|
|
1156
|
+
|
|
1157
|
+
declare function OperationsEditorRow({ children }: React.PropsWithChildren<{}>): React.JSX.Element;
|
|
1158
|
+
|
|
1159
|
+
interface Props$4<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery$1> {
|
|
1160
|
+
query: TVisualQuery;
|
|
1161
|
+
datasource: DataSourceApi<TDataQuery>;
|
|
1162
|
+
queryModeller: VisualQueryModeller;
|
|
1163
|
+
buildVisualQueryFromString: (queryString: string) => {
|
|
1164
|
+
query: TVisualQuery;
|
|
1165
|
+
};
|
|
1166
|
+
buildDataQueryFromQueryString: (queryString: string) => TDataQuery;
|
|
1167
|
+
buildQueryStringFromDataQuery: (dataQuery: TDataQuery) => string;
|
|
1168
|
+
onChange: (update: TVisualQuery) => void;
|
|
1169
|
+
data?: PanelData;
|
|
1170
|
+
}
|
|
1171
|
+
declare const QueryBuilderHints: {
|
|
1172
|
+
<TVisualQuery extends VisualQuery, TDataQuery extends DataQuery$1>({ datasource, query: visualQuery, onChange, data, queryModeller, buildVisualQueryFromString, buildDataQueryFromQueryString, buildQueryStringFromDataQuery, }: Props$4<TVisualQuery, TDataQuery>): React.JSX.Element;
|
|
1173
|
+
displayName: string;
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
interface Props$3 {
|
|
1177
|
+
mode: QueryEditorMode;
|
|
1178
|
+
onChange: (mode: QueryEditorMode) => void;
|
|
1179
|
+
}
|
|
1180
|
+
declare function QueryEditorModeToggle({ mode, onChange }: Props$3): React.JSX.Element;
|
|
1181
|
+
|
|
1182
|
+
interface Props$2 extends Omit<HTMLProps<HTMLInputElement>, 'value' | 'ref'> {
|
|
1183
|
+
value?: boolean;
|
|
1184
|
+
label: string;
|
|
1185
|
+
}
|
|
1186
|
+
declare function QueryHeaderSwitch({ label, ...inputProps }: Props$2): React.JSX.Element;
|
|
1187
|
+
|
|
1188
|
+
interface Props$1 {
|
|
1189
|
+
title: string;
|
|
1190
|
+
collapsedInfo: string[];
|
|
1191
|
+
queryStats?: QueryStats | null;
|
|
1192
|
+
}
|
|
1193
|
+
declare function QueryOptionGroup({ title, children, collapsedInfo, queryStats }: React.PropsWithChildren<Props$1>): React.JSX.Element;
|
|
1194
|
+
|
|
1195
|
+
interface Props {
|
|
1196
|
+
query: string;
|
|
1197
|
+
language: {
|
|
1198
|
+
grammar: Grammar;
|
|
1199
|
+
name: string;
|
|
1200
|
+
};
|
|
1201
|
+
className?: string;
|
|
1202
|
+
}
|
|
1203
|
+
declare function RawQuery({ query, language, className }: Props): React.JSX.Element;
|
|
1204
|
+
|
|
1205
|
+
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, getStandardSQLCompletionProvider, language as grafanaStandardSQLLanguage, conf as grafanaStandardSQLLanguageConf, toOption };
|