@grafana/plugin-ui 0.7.2 → 0.9.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/README.md +3 -34
- package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js +4 -5
- package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js.map +1 -1
- package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +28 -0
- package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +1 -0
- package/dist/components/ConfigEditor/AdvancedSettings/index.js +6 -0
- package/dist/components/ConfigEditor/AdvancedSettings/index.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/Auth.js +24 -0
- package/dist/components/ConfigEditor/Auth/Auth.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +109 -0
- package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js +23 -0
- package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +41 -0
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +76 -0
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/index.js +10 -0
- package/dist/components/ConfigEditor/Auth/index.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/styles.js +19 -0
- package/dist/components/ConfigEditor/Auth/styles.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +18 -0
- package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +11 -0
- package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js +22 -0
- package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js +25 -0
- package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +35 -0
- package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/types.js +11 -0
- package/dist/components/ConfigEditor/Auth/types.js.map +1 -0
- package/dist/components/ConfigEditor/Auth/utils.js +112 -0
- package/dist/components/ConfigEditor/Auth/utils.js.map +1 -0
- package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +32 -0
- package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +1 -0
- package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js +12 -0
- package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js.map +1 -0
- package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js +12 -0
- package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +1 -0
- package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js +40 -0
- package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +1 -0
- package/dist/components/ConfigEditor/ConfigSection/index.js +10 -0
- package/dist/components/ConfigEditor/ConfigSection/index.js.map +1 -0
- package/dist/components/ConfigEditor/Connection/ConnectionSettings.js +25 -0
- package/dist/components/ConfigEditor/Connection/ConnectionSettings.js.map +1 -0
- package/dist/components/ConfigEditor/Connection/index.js +6 -0
- package/dist/components/ConfigEditor/Connection/index.js.map +1 -0
- package/dist/components/ConfigEditor/DataSourceDescription.js +39 -0
- package/dist/components/ConfigEditor/DataSourceDescription.js.map +1 -0
- package/dist/components/ConfigEditor/SecureSocksProxyToggle.js +8 -13
- package/dist/components/ConfigEditor/SecureSocksProxyToggle.js.map +1 -1
- package/dist/components/ConfigEditor/index.js +15 -3
- package/dist/components/ConfigEditor/index.js.map +1 -1
- package/dist/components/ConfigEditor/types.js +3 -0
- package/dist/components/ConfigEditor/types.js.map +1 -0
- package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js +12 -17
- package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js.map +1 -1
- package/dist/components/DataLinks/DataLink.js +3 -3
- package/dist/components/DataLinks/DataLink.js.map +1 -1
- package/dist/components/DataLinks/DataLinks.js +6 -9
- package/dist/components/DataLinks/DataLinks.js.map +1 -1
- package/dist/components/DataLinks/index.js.map +1 -1
- package/dist/components/DataSourcePicker/DataSourcePicker.js +4 -6
- package/dist/components/DataSourcePicker/DataSourcePicker.js.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +5 -3
- package/dist/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/DatePicker/styles.js +8 -10
- package/dist/components/DatePicker/styles.js.map +1 -1
- package/dist/components/DatePickerWithInput/DatePickerWithInput.js +1 -1
- package/dist/components/DatePickerWithInput/DatePickerWithInput.js.map +1 -1
- package/dist/components/DebounceInput/DebounceInput.js +3 -1
- package/dist/components/DebounceInput/DebounceInput.js.map +1 -1
- package/dist/components/Plugins/PluginSignatureBadge.js.map +1 -1
- package/dist/components/QueryEditor/AccessoryButton.js +3 -4
- package/dist/components/QueryEditor/AccessoryButton.js.map +1 -1
- package/dist/components/QueryEditor/DatasetSelector.js.map +1 -1
- package/dist/components/QueryEditor/EditorField.js +7 -9
- package/dist/components/QueryEditor/EditorField.js.map +1 -1
- package/dist/components/QueryEditor/EditorFieldGroup.js +2 -2
- package/dist/components/QueryEditor/EditorFieldGroup.js.map +1 -1
- package/dist/components/QueryEditor/EditorHeader.js +3 -4
- package/dist/components/QueryEditor/EditorHeader.js.map +1 -1
- package/dist/components/QueryEditor/EditorList.js +5 -6
- package/dist/components/QueryEditor/EditorList.js.map +1 -1
- package/dist/components/QueryEditor/EditorRow.js +3 -3
- package/dist/components/QueryEditor/EditorRow.js.map +1 -1
- package/dist/components/QueryEditor/EditorRows.js +2 -2
- package/dist/components/QueryEditor/EditorRows.js.map +1 -1
- package/dist/components/QueryEditor/EditorStack.js +13 -0
- package/dist/components/QueryEditor/EditorStack.js.map +1 -0
- package/dist/components/QueryEditor/EditorSwitch.js.map +1 -1
- package/dist/components/QueryEditor/FlexItem.js.map +1 -1
- package/dist/components/QueryEditor/InlineSelect.js +5 -8
- package/dist/components/QueryEditor/InlineSelect.js.map +1 -1
- package/dist/components/QueryEditor/InputGroup.js +29 -9
- package/dist/components/QueryEditor/InputGroup.js.map +1 -1
- package/dist/components/QueryEditor/QueryHeader.js +1 -4
- package/dist/components/QueryEditor/QueryHeader.js.map +1 -1
- package/dist/components/QueryEditor/RunQueryButton.js +3 -5
- package/dist/components/QueryEditor/RunQueryButton.js.map +1 -1
- package/dist/components/QueryEditor/TableSelector.js.map +1 -1
- package/dist/components/QueryEditor/index.js +3 -3
- package/dist/components/QueryEditor/index.js.map +1 -1
- package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +2 -2
- package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +1 -1
- package/dist/components/QueryEditor/types.js +2 -2
- package/dist/components/QueryEditor/types.js.map +1 -1
- package/dist/components/QueryEditor/utils/sql.utils.js.map +1 -1
- package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +1 -1
- package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +1 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorField.js.map +1 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorRow.js +2 -2
- package/dist/components/QueryEditor/visual-query-builder/EditorRow.js.map +1 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorRows.js +2 -2
- package/dist/components/QueryEditor/visual-query-builder/EditorRows.js.map +1 -1
- package/dist/components/QueryEditor/visual-query-builder/SelectRow.js +3 -3
- package/dist/components/QueryEditor/visual-query-builder/SelectRow.js.map +1 -1
- package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js +1 -1
- package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js.map +1 -1
- package/dist/components/QueryEditorRow/QueryEditorRow.js +3 -4
- package/dist/components/QueryEditorRow/QueryEditorRow.js.map +1 -1
- package/dist/components/SQLEditor/components/SQLEditor.js +330 -0
- package/dist/components/SQLEditor/components/SQLEditor.js.map +1 -0
- package/dist/components/SQLEditor/index.js +25 -0
- package/dist/components/SQLEditor/index.js.map +1 -0
- package/dist/components/SQLEditor/mocks/Monaco.js +23 -0
- package/dist/components/SQLEditor/mocks/Monaco.js.map +1 -0
- package/dist/components/SQLEditor/mocks/TextModel.js +22 -0
- package/dist/components/SQLEditor/mocks/TextModel.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js +216 -0
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +231 -0
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +271 -0
- package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +8 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js +196 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +211 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +251 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +386 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +1 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +416 -0
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +1 -0
- package/dist/components/SQLEditor/mocks/testData.js +22 -0
- package/dist/components/SQLEditor/mocks/testData.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/definition.js +13 -0
- package/dist/components/SQLEditor/standardSql/definition.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js +26 -0
- package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/getStatementPosition.js +24 -0
- package/dist/components/SQLEditor/standardSql/getStatementPosition.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/language.js +875 -0
- package/dist/components/SQLEditor/standardSql/language.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/macros.js +166 -0
- package/dist/components/SQLEditor/standardSql/macros.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +30 -0
- package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +378 -0
- package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +234 -0
- package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js +153 -0
- package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +1 -0
- package/dist/components/SQLEditor/standardSql/types.js +3 -0
- package/dist/components/SQLEditor/standardSql/types.js.map +1 -0
- package/dist/components/SQLEditor/test-utils/index.js +11 -0
- package/dist/components/SQLEditor/test-utils/index.js.map +1 -0
- package/dist/components/SQLEditor/test-utils/statementPosition.js +40 -0
- package/dist/components/SQLEditor/test-utils/statementPosition.js.map +1 -0
- package/dist/components/SQLEditor/test-utils/types.js +3 -0
- package/dist/components/SQLEditor/test-utils/types.js.map +1 -0
- package/dist/components/SQLEditor/types.js +139 -0
- package/dist/components/SQLEditor/types.js.map +1 -0
- package/dist/components/SQLEditor/utils/LinkedToken.js +147 -0
- package/dist/components/SQLEditor/utils/LinkedToken.js.map +1 -0
- package/dist/components/SQLEditor/utils/commands.js +8 -0
- package/dist/components/SQLEditor/utils/commands.js.map +1 -0
- package/dist/components/SQLEditor/utils/debugger.js +14 -0
- package/dist/components/SQLEditor/utils/debugger.js.map +1 -0
- package/dist/components/SQLEditor/utils/getSuggestionKind.js +18 -0
- package/dist/components/SQLEditor/utils/getSuggestionKind.js.map +1 -0
- package/dist/components/SQLEditor/utils/linkedTokenBuilder.js +46 -0
- package/dist/components/SQLEditor/utils/linkedTokenBuilder.js.map +1 -0
- package/dist/components/SQLEditor/utils/toCompletionItem.js +10 -0
- package/dist/components/SQLEditor/utils/toCompletionItem.js.map +1 -0
- package/dist/components/SQLEditor/utils/tokenUtils.js +72 -0
- package/dist/components/SQLEditor/utils/tokenUtils.js.map +1 -0
- package/dist/components/SQLEditor/utils/types.js +3 -0
- package/dist/components/SQLEditor/utils/types.js.map +1 -0
- package/dist/components/Segment/Segment.js +2 -1
- package/dist/components/Segment/Segment.js.map +1 -1
- package/dist/components/VisualQueryBuilder/QueryModellerBase.js +35 -0
- package/dist/components/VisualQueryBuilder/QueryModellerBase.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js +125 -0
- package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/LabelFilters.js +37 -0
- package/dist/components/VisualQueryBuilder/components/LabelFilters.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationEditor.js +41 -0
- package/dist/components/VisualQueryBuilder/components/OperationEditor.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js +173 -0
- package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js +64 -0
- package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationHeader.js +67 -0
- package/dist/components/VisualQueryBuilder/components/OperationHeader.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js +71 -0
- package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationList.js +129 -0
- package/dist/components/VisualQueryBuilder/components/OperationList.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationListExplained.js +22 -0
- package/dist/components/VisualQueryBuilder/components/OperationListExplained.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js +71 -0
- package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js +24 -0
- package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js +54 -0
- package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +17 -0
- package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +32 -0
- package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js +81 -0
- package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +1 -0
- package/dist/components/VisualQueryBuilder/components/RawQuery.js +25 -0
- package/dist/components/VisualQueryBuilder/components/RawQuery.js.map +1 -0
- package/dist/components/VisualQueryBuilder/index.js +29 -0
- package/dist/components/VisualQueryBuilder/index.js.map +1 -0
- package/dist/components/VisualQueryBuilder/types.js +10 -0
- package/dist/components/VisualQueryBuilder/types.js.map +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/datasource/SqlDatasource.js.map +1 -1
- package/dist/hooks/useDebounce.js +2 -0
- package/dist/hooks/useDebounce.js.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/src/components/AsyncButtonCascader/AsyncButtonCascader.d.ts +5 -2
- package/dist/src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.d.ts +8 -0
- package/dist/src/components/ConfigEditor/AdvancedSettings/index.d.ts +1 -0
- package/dist/src/components/ConfigEditor/Auth/Auth.d.ts +18 -0
- package/dist/src/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.d.ts +14 -0
- package/dist/src/components/ConfigEditor/Auth/auth-method/BasicAuth.d.ts +17 -0
- package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeader.d.ts +10 -0
- package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeaders.d.ts +8 -0
- package/dist/src/components/ConfigEditor/Auth/index.d.ts +4 -0
- package/dist/src/components/ConfigEditor/Auth/styles.d.ts +4 -0
- package/dist/src/components/ConfigEditor/Auth/tls/SelfSignedCertificate.d.ts +13 -0
- package/dist/src/components/ConfigEditor/Auth/tls/SkipTLSVerification.d.ts +7 -0
- package/dist/src/components/ConfigEditor/Auth/tls/TLSClientAuth.d.ts +20 -0
- package/dist/src/components/ConfigEditor/Auth/tls/TLSSettings.d.ts +11 -0
- package/dist/src/components/ConfigEditor/Auth/tls/TLSSettingsSection.d.ts +9 -0
- package/dist/src/components/ConfigEditor/Auth/types.d.ts +28 -0
- package/dist/src/components/ConfigEditor/Auth/utils.d.ts +12 -0
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.d.ts +8 -0
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigSection.d.ts +5 -0
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigSubSection.d.ts +5 -0
- package/dist/src/components/ConfigEditor/ConfigSection/GenericConfigSection.d.ts +10 -0
- package/dist/src/components/ConfigEditor/ConfigSection/index.d.ts +3 -0
- package/dist/src/components/ConfigEditor/Connection/ConnectionSettings.d.ts +13 -0
- package/dist/src/components/ConfigEditor/Connection/index.d.ts +1 -0
- package/dist/src/components/ConfigEditor/DataSourceDescription.d.ts +9 -0
- package/dist/src/components/ConfigEditor/SecureSocksProxyToggle.d.ts +4 -4
- package/dist/src/components/ConfigEditor/index.d.ts +7 -2
- package/dist/src/components/ConfigEditor/types.d.ts +3 -0
- package/dist/src/components/CustomHeadersSettings/CustomHeadersSettings.d.ts +2 -2
- package/dist/src/components/DataLinks/DataLink.d.ts +1 -1
- package/dist/src/components/Plugins/PluginSignatureBadge.d.ts +5 -2
- package/dist/src/components/QueryEditor/AccessoryButton.d.ts +2 -2
- package/dist/src/components/QueryEditor/DatasetSelector.d.ts +2 -2
- package/dist/src/components/QueryEditor/EditorField.d.ts +2 -1
- package/dist/src/components/QueryEditor/EditorFieldGroup.d.ts +2 -1
- package/dist/src/components/QueryEditor/EditorHeader.d.ts +2 -1
- package/dist/src/components/QueryEditor/EditorList.d.ts +1 -1
- package/dist/src/components/QueryEditor/EditorRow.d.ts +2 -1
- package/dist/src/components/QueryEditor/EditorRows.d.ts +2 -1
- package/dist/src/components/QueryEditor/EditorStack.d.ts +13 -0
- package/dist/src/components/QueryEditor/EditorSwitch.d.ts +2 -2
- package/dist/src/components/QueryEditor/FlexItem.d.ts +2 -2
- package/dist/src/components/QueryEditor/InputGroup.d.ts +7 -2
- package/dist/src/components/QueryEditor/RunQueryButton.d.ts +3 -3
- package/dist/src/components/QueryEditor/TableSelector.d.ts +2 -2
- package/dist/src/components/QueryEditor/index.d.ts +1 -1
- package/dist/src/components/QueryEditor/query-editor-raw/QueryEditorRaw.d.ts +1 -1
- package/dist/src/components/QueryEditor/types.d.ts +9 -14
- package/dist/src/components/QueryEditor/visual-query-builder/EditorField.d.ts +1 -1
- package/dist/src/components/QueryEditor/visual-query-builder/EditorRow.d.ts +2 -1
- package/dist/src/components/QueryEditor/visual-query-builder/EditorRows.d.ts +2 -1
- package/dist/src/components/QueryEditor/visual-query-builder/VisualEditor.d.ts +3 -4
- package/dist/src/components/SQLEditor/components/SQLEditor.d.ts +29 -0
- package/dist/src/components/SQLEditor/index.d.ts +7 -0
- package/dist/src/components/SQLEditor/mocks/Monaco.d.ts +3 -0
- package/dist/src/components/SQLEditor/mocks/TextModel.d.ts +7 -0
- package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQuery.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/multiLineMultipleColumns.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/singleLineEmptyQuery.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQuery.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/singleLineMultipleColumns.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueries.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.d.ts +2 -0
- package/dist/src/components/SQLEditor/mocks/testData.d.ts +9 -0
- package/dist/src/components/SQLEditor/standardSql/definition.d.ts +3 -0
- package/dist/src/components/SQLEditor/standardSql/getStandardSuggestions.d.ts +6 -0
- package/dist/src/components/SQLEditor/standardSql/getStatementPosition.d.ts +5 -0
- package/dist/src/components/SQLEditor/standardSql/language.d.ts +23 -0
- package/dist/src/components/SQLEditor/standardSql/macros.d.ts +2 -0
- package/dist/src/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.d.ts +4 -0
- package/dist/src/components/SQLEditor/standardSql/standardSuggestionsRegistry.d.ts +7 -0
- package/dist/src/components/SQLEditor/standardSql/statementPositionResolversRegistry.d.ts +2 -0
- package/dist/src/components/SQLEditor/standardSql/suggestionsKindRegistry.d.ts +7 -0
- package/dist/src/components/SQLEditor/standardSql/types.d.ts +33 -0
- package/dist/src/components/SQLEditor/test-utils/index.d.ts +7 -0
- package/dist/src/components/SQLEditor/test-utils/statementPosition.d.ts +3 -0
- package/dist/src/components/SQLEditor/test-utils/types.d.ts +12 -0
- package/dist/src/components/SQLEditor/types.d.ts +249 -0
- package/dist/src/components/SQLEditor/utils/LinkedToken.d.ts +29 -0
- package/dist/src/components/SQLEditor/utils/commands.d.ts +4 -0
- package/dist/src/components/SQLEditor/utils/debugger.d.ts +5 -0
- package/dist/src/components/SQLEditor/utils/getSuggestionKind.d.ts +7 -0
- package/dist/src/components/SQLEditor/utils/linkedTokenBuilder.d.ts +4 -0
- package/dist/src/components/SQLEditor/utils/toCompletionItem.d.ts +2 -0
- package/dist/src/components/SQLEditor/utils/tokenUtils.d.ts +14 -0
- package/dist/src/components/SQLEditor/utils/types.d.ts +11 -0
- package/dist/src/components/VisualQueryBuilder/QueryModellerBase.d.ts +18 -0
- package/dist/src/components/VisualQueryBuilder/components/LabelFilterItem.d.ts +18 -0
- package/dist/src/components/VisualQueryBuilder/components/LabelFilters.d.ts +14 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationEditor.d.ts +19 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationEditorBody.d.ts +22 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationExplainedBox.d.ts +7 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationHeader.d.ts +14 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationInfoButton.d.ts +9 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationList.d.ts +15 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationListExplained.d.ts +17 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationParamEditor.d.ts +4 -0
- package/dist/src/components/VisualQueryBuilder/components/OperationsEditorRow.d.ts +2 -0
- package/dist/src/components/VisualQueryBuilder/components/QueryBuilderHints.d.ts +20 -0
- package/dist/src/components/VisualQueryBuilder/components/QueryEditorModeToggle.d.ts +8 -0
- package/dist/src/components/VisualQueryBuilder/components/QueryHeaderSwitch.d.ts +7 -0
- package/dist/src/components/VisualQueryBuilder/components/QueryOptionGroup.d.ts +9 -0
- package/dist/src/components/VisualQueryBuilder/components/RawQuery.d.ts +12 -0
- package/dist/src/components/VisualQueryBuilder/index.d.ts +13 -0
- package/dist/src/components/VisualQueryBuilder/types.d.ts +89 -0
- package/dist/src/components/index.d.ts +5 -3
- package/dist/src/datasource/SqlDatasource.d.ts +3 -6
- package/dist/src/index.d.ts +0 -4
- package/dist/src/utils/changeset/functions.d.ts +1 -1
- package/dist/test/mocks/Datasource.js +1 -1
- package/dist/test/mocks/Datasource.js.map +1 -1
- package/dist/test/mocks/Plugin.js +2 -11
- package/dist/test/mocks/Plugin.js.map +1 -1
- package/dist/test/mocks/QueryEditorProps.js +0 -1
- package/dist/test/mocks/QueryEditorProps.js.map +1 -1
- package/dist/test/mocks/utils.js.map +1 -1
- package/dist/utils/changeset/functions.js +1 -1
- package/dist/utils/changeset/functions.js.map +1 -1
- package/dist/utils/changeset/index.js +20 -20
- package/dist/utils/changeset/index.js.map +1 -1
- package/package.json +41 -14
- package/CHANGELOG.md +0 -25
- package/dist/8x/fixtures/index.js +0 -7
- package/dist/8x/fixtures/index.js.map +0 -1
- package/dist/8x/fixtures/select.js +0 -43
- package/dist/8x/fixtures/select.js.map +0 -1
- package/dist/8x/index.js +0 -5
- package/dist/8x/index.js.map +0 -1
- package/dist/components/ConfigEditor/InlineLabel.js +0 -24
- package/dist/components/ConfigEditor/InlineLabel.js.map +0 -1
- package/dist/components/QueryEditor/ErrorBoundary.js +0 -23
- package/dist/components/QueryEditor/ErrorBoundary.js.map +0 -1
- package/dist/components/QueryEditor/Stack.js +0 -27
- package/dist/components/QueryEditor/Stack.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/Stack.js +0 -27
- package/dist/components/QueryEditor/visual-query-builder/Stack.js.map +0 -1
- package/dist/src/8x/fixtures/index.d.ts +0 -1
- package/dist/src/8x/fixtures/select.d.ts +0 -11
- package/dist/src/8x/index.d.ts +0 -1
- package/dist/src/components/ConfigEditor/InlineLabel.d.ts +0 -7
- package/dist/src/components/QueryEditor/ErrorBoundary.d.ts +0 -14
- package/dist/src/components/QueryEditor/Stack.d.ts +0 -9
- package/dist/src/components/QueryEditor/visual-query-builder/Stack.d.ts +0 -9
- package/dist/src/test/mocks/TestDatasource.d.ts +0 -6
- package/dist/src/test/mocks/style.d.ts +0 -1
- package/dist/src/test/setupTests.d.ts +0 -1
- package/dist/src/unreleasedComponents/SecretInput.d.ts +0 -15
- package/dist/src/unreleasedComponents/SecretTextarea.d.ts +0 -19
- package/dist/src/unreleasedComponents/index.d.ts +0 -2
- package/dist/src/utils/compatFeatures.d.ts +0 -9
- package/dist/src/utils/compatibility.d.ts +0 -13
- package/dist/src/utils/index.d.ts +0 -3
- package/dist/src/utils/testDatasource.d.ts +0 -19
- package/dist/test/mocks/TestDatasource.js +0 -24
- package/dist/test/mocks/TestDatasource.js.map +0 -1
- package/dist/test/mocks/style.js +0 -5
- package/dist/test/mocks/style.js.map +0 -1
- package/dist/test/setupTests.js +0 -17
- package/dist/test/setupTests.js.map +0 -1
- package/dist/unreleasedComponents/SecretInput.js +0 -21
- package/dist/unreleasedComponents/SecretInput.js.map +0 -1
- package/dist/unreleasedComponents/SecretTextarea.js +0 -36
- package/dist/unreleasedComponents/SecretTextarea.js.map +0 -1
- package/dist/unreleasedComponents/index.js +0 -9
- package/dist/unreleasedComponents/index.js.map +0 -1
- package/dist/utils/compatFeatures.js +0 -20
- package/dist/utils/compatFeatures.js.map +0 -1
- package/dist/utils/compatibility.js +0 -31
- package/dist/utils/compatibility.js.map +0 -1
- package/dist/utils/index.js +0 -8
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/testDatasource.js +0 -30
- package/dist/utils/testDatasource.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BINARY_OPERATIONS_KEY = exports.QueryEditorMode = exports.RawQuery = exports.QueryOptionGroup = exports.QueryHeaderSwitch = exports.QueryEditorModeToggle = exports.QueryBuilderHints = exports.OperationsEditorRow = exports.OperationListExplained = exports.OperationList = exports.OperationExplainedBox = exports.LabelFilters = exports.QueryModellerBase = void 0;
|
|
4
|
+
var QueryModellerBase_1 = require("./QueryModellerBase");
|
|
5
|
+
Object.defineProperty(exports, "QueryModellerBase", { enumerable: true, get: function () { return QueryModellerBase_1.QueryModellerBase; } });
|
|
6
|
+
var LabelFilters_1 = require("./components/LabelFilters");
|
|
7
|
+
Object.defineProperty(exports, "LabelFilters", { enumerable: true, get: function () { return LabelFilters_1.LabelFilters; } });
|
|
8
|
+
var OperationExplainedBox_1 = require("./components/OperationExplainedBox");
|
|
9
|
+
Object.defineProperty(exports, "OperationExplainedBox", { enumerable: true, get: function () { return OperationExplainedBox_1.OperationExplainedBox; } });
|
|
10
|
+
var OperationList_1 = require("./components/OperationList");
|
|
11
|
+
Object.defineProperty(exports, "OperationList", { enumerable: true, get: function () { return OperationList_1.OperationList; } });
|
|
12
|
+
var OperationListExplained_1 = require("./components/OperationListExplained");
|
|
13
|
+
Object.defineProperty(exports, "OperationListExplained", { enumerable: true, get: function () { return OperationListExplained_1.OperationListExplained; } });
|
|
14
|
+
var OperationsEditorRow_1 = require("./components/OperationsEditorRow");
|
|
15
|
+
Object.defineProperty(exports, "OperationsEditorRow", { enumerable: true, get: function () { return OperationsEditorRow_1.OperationsEditorRow; } });
|
|
16
|
+
var QueryBuilderHints_1 = require("./components/QueryBuilderHints");
|
|
17
|
+
Object.defineProperty(exports, "QueryBuilderHints", { enumerable: true, get: function () { return QueryBuilderHints_1.QueryBuilderHints; } });
|
|
18
|
+
var QueryEditorModeToggle_1 = require("./components/QueryEditorModeToggle");
|
|
19
|
+
Object.defineProperty(exports, "QueryEditorModeToggle", { enumerable: true, get: function () { return QueryEditorModeToggle_1.QueryEditorModeToggle; } });
|
|
20
|
+
var QueryHeaderSwitch_1 = require("./components/QueryHeaderSwitch");
|
|
21
|
+
Object.defineProperty(exports, "QueryHeaderSwitch", { enumerable: true, get: function () { return QueryHeaderSwitch_1.QueryHeaderSwitch; } });
|
|
22
|
+
var QueryOptionGroup_1 = require("./components/QueryOptionGroup");
|
|
23
|
+
Object.defineProperty(exports, "QueryOptionGroup", { enumerable: true, get: function () { return QueryOptionGroup_1.QueryOptionGroup; } });
|
|
24
|
+
var RawQuery_1 = require("./components/RawQuery");
|
|
25
|
+
Object.defineProperty(exports, "RawQuery", { enumerable: true, get: function () { return RawQuery_1.RawQuery; } });
|
|
26
|
+
var types_1 = require("./types");
|
|
27
|
+
Object.defineProperty(exports, "QueryEditorMode", { enumerable: true, get: function () { return types_1.QueryEditorMode; } });
|
|
28
|
+
Object.defineProperty(exports, "BINARY_OPERATIONS_KEY", { enumerable: true, get: function () { return types_1.BINARY_OPERATIONS_KEY; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VisualQueryBuilder/index.ts"],"names":[],"mappings":";;;AAAA,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,0DAAyD;AAAhD,4GAAA,YAAY,OAAA;AACrB,4EAA2E;AAAlE,8HAAA,qBAAqB,OAAA;AAC9B,4DAA2D;AAAlD,8GAAA,aAAa,OAAA;AACtB,8EAA6E;AAApE,gIAAA,sBAAsB,OAAA;AAC/B,wEAAuE;AAA9D,0HAAA,mBAAmB,OAAA;AAC5B,oEAAmE;AAA1D,sHAAA,iBAAiB,OAAA;AAC1B,4EAA2E;AAAlE,8HAAA,qBAAqB,OAAA;AAC9B,oEAAmE;AAA1D,sHAAA,iBAAiB,OAAA;AAC1B,kEAAiE;AAAxD,oHAAA,gBAAgB,OAAA;AACzB,kDAAiD;AAAxC,oGAAA,QAAQ,OAAA;AAEjB,iCAAiE;AAAxD,wGAAA,eAAe,OAAA;AAAE,8GAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BINARY_OPERATIONS_KEY = exports.QueryEditorMode = void 0;
|
|
4
|
+
var QueryEditorMode;
|
|
5
|
+
(function (QueryEditorMode) {
|
|
6
|
+
QueryEditorMode["Code"] = "code";
|
|
7
|
+
QueryEditorMode["Builder"] = "builder";
|
|
8
|
+
})(QueryEditorMode = exports.QueryEditorMode || (exports.QueryEditorMode = {}));
|
|
9
|
+
exports.BINARY_OPERATIONS_KEY = 'Binary operations';
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/VisualQueryBuilder/types.ts"],"names":[],"mappings":";;;AAkFA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAyBY,QAAA,qBAAqB,GAAG,mBAAmB,CAAA"}
|
package/dist/components/index.js
CHANGED
|
@@ -25,4 +25,6 @@ tslib_1.__exportStar(require("./QueryEditor"), exports);
|
|
|
25
25
|
tslib_1.__exportStar(require("./ConfigEditor"), exports);
|
|
26
26
|
var CustomHeadersSettings_1 = require("./CustomHeadersSettings/CustomHeadersSettings");
|
|
27
27
|
Object.defineProperty(exports, "CustomHeadersSettings", { enumerable: true, get: function () { return CustomHeadersSettings_1.CustomHeadersSettings; } });
|
|
28
|
+
tslib_1.__exportStar(require("./VisualQueryBuilder"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./SQLEditor"), exports);
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;AAAA,iFAAgF;AAAvE,0HAAA,mBAAmB,OAAA;AAC5B,kEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;AAAA,iFAAgF;AAAvE,0HAAA,mBAAmB,OAAA;AAC5B,kEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,+DAAkF;AAAzE,8GAAA,aAAa,OAAA;AACtB,6CAA0D;AAAjD,kGAAA,OAAO,OAAA;AAChB,sDAAsE;AAA7D,wGAAA,UAAU,OAAA;AACnB,iFAAsH;AAA7G,0HAAA,mBAAmB,OAAA;AAA4B,iHAAA,UAAU,OAAA;AAClE,8EAAoD;AACpD,sDAA4B;AAC5B,8DAAoC;AACpC,kCAA6D;AAApD,kGAAA,YAAY,OAAA;AAAE,sGAAA,gBAAgB,OAAA;AACvC,wDAA8B;AAC9B,yDAA+B;AAC/B,uFAAsF;AAA7E,8HAAA,qBAAqB,OAAA;AAC9B,+DAAqC;AACrC,sDAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlDatasource.js","sourceRoot":"","sources":["../../src/datasource/SqlDatasource.ts"],"names":[],"mappings":";;;;AAAA,+BAAyC;AACzC,8CAAiD;AAEjD,
|
|
1
|
+
{"version":3,"file":"SqlDatasource.js","sourceRoot":"","sources":["../../src/datasource/SqlDatasource.ts"],"names":[],"mappings":";;;;AAAA,+BAAyC;AACzC,8CAAiD;AAEjD,wCAQuB;AACvB,8CAQ0B;AAG1B,2CAA0C;AAC1C,0EAA0E;AAC1E,2DAAuH;AAyBvH,MAAsB,aAAc,SAAQ,+BAA2C;IAQrF,YACE,gBAAwD,EACrC,cAA2B,IAAA,wBAAc,GAAE;QAE9D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I,KAAQ,EAAE,QAAgB,qBAAa,EAAE,EAAE;IACxE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useDebounce.js","sourceRoot":"","sources":["../../src/hooks/useDebounce.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAE/B,QAAA,aAAa,GAAG,GAAG,CAAC;AAE1B,MAAM,WAAW,GAAG,CAAI,KAAQ,EAAE,QAAgB,qBAAa,EAAE,EAAE;IACxE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;QACF,2BAA2B;QAC3B,uDAAuD;IACzD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAhBW,QAAA,WAAW,eAgBtB"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SqlDatasource = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/**
|
|
6
6
|
* A library containing the different design components of the Grafana plugins ecosystem.
|
|
@@ -8,12 +8,6 @@ const tslib_1 = require("tslib");
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
10
|
tslib_1.__exportStar(require("./components"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./unreleasedComponents"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./test/mocks"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./utils"), exports);
|
|
14
11
|
var SqlDatasource_1 = require("./datasource/SqlDatasource");
|
|
15
12
|
Object.defineProperty(exports, "SqlDatasource", { enumerable: true, get: function () { return SqlDatasource_1.SqlDatasource; } });
|
|
16
|
-
var _8x_1 = require("./8x");
|
|
17
|
-
Object.defineProperty(exports, "selectOption", { enumerable: true, get: function () { return _8x_1.selectOption; } });
|
|
18
|
-
Object.defineProperty(exports, "generateOptions", { enumerable: true, get: function () { return _8x_1.generateOptions; } });
|
|
19
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA;;;;GAIG;AACH,uDAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA;;;;GAIG;AACH,uDAA6B;AAC7B,4DAA2D;AAAlD,8GAAA,aAAa,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { CascaderOption } from 'rc-cascader';
|
|
3
3
|
export interface AsyncButtonCascaderProps {
|
|
4
4
|
options: CascaderOption[];
|
|
@@ -15,4 +15,7 @@ export interface AsyncButtonCascaderProps {
|
|
|
15
15
|
onPopupVisibleChange?: (visible: boolean) => void;
|
|
16
16
|
className?: string;
|
|
17
17
|
}
|
|
18
|
-
export declare const AsyncButtonCascader:
|
|
18
|
+
export declare const AsyncButtonCascader: {
|
|
19
|
+
(props: AsyncButtonCascaderProps): JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Config, OnChangeHandler } from '../types';
|
|
3
|
+
export type Props<C extends Config = Config> = {
|
|
4
|
+
config: C;
|
|
5
|
+
onChange: OnChangeHandler<C>;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const AdvancedHttpSettings: <C extends Config = Config>(props: Props<C>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdvancedHttpSettings } from './AdvancedHttpSettings';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AuthMethod, AuthMethodSelectOption, CustomMethod, CustomMethodId } from './types';
|
|
3
|
+
import { Props as TLSSettingsProps } from './tls/TLSSettings';
|
|
4
|
+
import { Props as BasicAuthProps } from './auth-method/BasicAuth';
|
|
5
|
+
import { Props as CustomHeadersProps } from './custom-headers/CustomHeaders';
|
|
6
|
+
export type Props = {
|
|
7
|
+
selectedMethod: AuthMethod | CustomMethodId;
|
|
8
|
+
mostCommonMethod?: AuthMethod | CustomMethodId;
|
|
9
|
+
visibleMethods?: Array<AuthMethod | CustomMethodId>;
|
|
10
|
+
defaultOptionsOverrides?: Partial<Record<AuthMethod, AuthMethodSelectOption>>;
|
|
11
|
+
customMethods?: CustomMethod[];
|
|
12
|
+
onAuthMethodSelect: (authType: AuthMethod | CustomMethodId) => void;
|
|
13
|
+
basicAuth?: Omit<BasicAuthProps, 'readOnly'>;
|
|
14
|
+
TLS?: Omit<TLSSettingsProps, 'readOnly'>;
|
|
15
|
+
customHeaders?: Omit<CustomHeadersProps, 'readOnly'>;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const Auth: ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly, }: Props) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props as BasicAuthProps } from './BasicAuth';
|
|
3
|
+
import { AuthMethod, CustomMethod, CustomMethodId, AuthMethodSelectOption } from '../types';
|
|
4
|
+
export type Props = {
|
|
5
|
+
selectedMethod: AuthMethod | CustomMethodId;
|
|
6
|
+
mostCommonMethod?: AuthMethod | CustomMethodId;
|
|
7
|
+
visibleMethods?: Array<AuthMethod | CustomMethodId>;
|
|
8
|
+
defaultOptionsOverrides?: Partial<Record<AuthMethod, AuthMethodSelectOption>>;
|
|
9
|
+
customMethods?: CustomMethod[];
|
|
10
|
+
onAuthMethodSelect: (authType: AuthMethod | CustomMethodId) => void;
|
|
11
|
+
basicAuth?: Omit<BasicAuthProps, 'readOnly'>;
|
|
12
|
+
readOnly: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const AuthMethodSettings: ({ selectedMethod, mostCommonMethod, visibleMethods: visibleMethodsFromProps, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, readOnly, }: Props) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopoverContent } from '@grafana/ui';
|
|
3
|
+
export type Props = {
|
|
4
|
+
user?: string;
|
|
5
|
+
passwordConfigured: boolean;
|
|
6
|
+
userLabel?: string;
|
|
7
|
+
userTooltip?: PopoverContent;
|
|
8
|
+
userPlaceholder?: string;
|
|
9
|
+
passwordLabel?: string;
|
|
10
|
+
passwordTooltip?: PopoverContent;
|
|
11
|
+
passwordPlaceholder?: string;
|
|
12
|
+
onUserChange: (user: string) => void;
|
|
13
|
+
onPasswordChange: (password: string) => void;
|
|
14
|
+
onPasswordReset: () => void;
|
|
15
|
+
readOnly: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const BasicAuth: ({ user, passwordConfigured, userLabel, userTooltip, userPlaceholder, passwordLabel, passwordTooltip, passwordPlaceholder, onUserChange, onPasswordChange, onPasswordReset, readOnly, }: Props) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LocalHeader } from '../types';
|
|
3
|
+
export type Props = {
|
|
4
|
+
header: LocalHeader;
|
|
5
|
+
onChange: (header: LocalHeader) => void;
|
|
6
|
+
onBlur: () => void;
|
|
7
|
+
onDelete: () => void;
|
|
8
|
+
readOnly: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const CustomHeader: ({ header, onChange, onBlur, onDelete, readOnly }: Props) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Header, HeaderWithValue } from '../types';
|
|
3
|
+
export type Props = {
|
|
4
|
+
headers: Header[];
|
|
5
|
+
onChange: (headers: HeaderWithValue[]) => void;
|
|
6
|
+
readOnly: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const CustomHeaders: ({ headers: headersFromProps, onChange, readOnly }: Props) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type Props = {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
onToggle: (enabled: boolean) => void;
|
|
5
|
+
certificateConfigured: boolean;
|
|
6
|
+
onCertificateChange: (certificate: string) => void;
|
|
7
|
+
onCertificateReset: () => void;
|
|
8
|
+
tooltips?: {
|
|
9
|
+
certificateLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const SelfSignedCertificate: ({ enabled, certificateConfigured, onToggle, onCertificateChange, onCertificateReset, tooltips, readOnly, }: Props) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type Props = {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
onToggle: (enabled: boolean) => void;
|
|
5
|
+
serverName: string;
|
|
6
|
+
clientCertificateConfigured: boolean;
|
|
7
|
+
clientKeyConfigured: boolean;
|
|
8
|
+
onServerNameChange: (serverName: string) => void;
|
|
9
|
+
onClientCertificateChange: (clientCertificate: string) => void;
|
|
10
|
+
onClientKeyChange: (clientKey: string) => void;
|
|
11
|
+
onClientCertificateReset: () => void;
|
|
12
|
+
onClientKeyReset: () => void;
|
|
13
|
+
tooltips?: {
|
|
14
|
+
serverNameLabel?: string;
|
|
15
|
+
certificateLabel?: string;
|
|
16
|
+
keyLabel?: string;
|
|
17
|
+
};
|
|
18
|
+
readOnly: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const TLSClientAuth: ({ enabled, serverName, clientCertificateConfigured, clientKeyConfigured, onToggle, onServerNameChange, onClientCertificateChange, onClientKeyChange, onClientCertificateReset, onClientKeyReset, tooltips, readOnly, }: Props) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props as SelfSignedCertificateProps } from './SelfSignedCertificate';
|
|
3
|
+
import { Props as TLSClientAuthProps } from './TLSClientAuth';
|
|
4
|
+
import { Props as SkipTLSVerificationProps } from './SkipTLSVerification';
|
|
5
|
+
export type Props = {
|
|
6
|
+
selfSignedCertificate: Omit<SelfSignedCertificateProps, 'readOnly'>;
|
|
7
|
+
TLSClientAuth: Omit<TLSClientAuthProps, 'readOnly'>;
|
|
8
|
+
skipTLSVerification: Omit<SkipTLSVerificationProps, 'readOnly'>;
|
|
9
|
+
readOnly: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const TLSSettings: ({ selfSignedCertificate, TLSClientAuth, skipTLSVerification, readOnly }: Props) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Props = {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
label: string;
|
|
5
|
+
tooltipText: string;
|
|
6
|
+
onToggle: (enabled: boolean) => void;
|
|
7
|
+
readOnly: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const TLSSettingsSection: ({ children, enabled, label, tooltipText, onToggle, readOnly, }: React.PropsWithChildren<Props>) => JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export declare enum AuthMethod {
|
|
3
|
+
NoAuth = "NoAuth",
|
|
4
|
+
BasicAuth = "BasicAuth",
|
|
5
|
+
OAuthForward = "OAuthForward",
|
|
6
|
+
CrossSiteCredentials = "CrossSiteCredentials"
|
|
7
|
+
}
|
|
8
|
+
export interface AuthMethodSelectOption {
|
|
9
|
+
label?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
export type CustomMethodId = `custom-${string}`;
|
|
13
|
+
export type CustomMethod = {
|
|
14
|
+
id: CustomMethodId;
|
|
15
|
+
label: string;
|
|
16
|
+
description: string;
|
|
17
|
+
component: ReactElement;
|
|
18
|
+
};
|
|
19
|
+
export type Header = {
|
|
20
|
+
name: string;
|
|
21
|
+
configured: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type HeaderWithValue = Header & {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
export type LocalHeader = HeaderWithValue & {
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Props as AuthProps } from './Auth';
|
|
2
|
+
import { AuthMethod, CustomMethodId } from './types';
|
|
3
|
+
import { Config, OnChangeHandler } from '../types';
|
|
4
|
+
export declare function convertLegacyAuthProps<C extends Config = Config>({ config, onChange, }: {
|
|
5
|
+
config: C;
|
|
6
|
+
onChange: OnChangeHandler<C>;
|
|
7
|
+
}): AuthProps;
|
|
8
|
+
export declare function getSelectedMethod<C extends Config = Config>(config: C): AuthMethod;
|
|
9
|
+
export declare function getOnAuthMethodSelectHandler<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): (method: AuthMethod | CustomMethodId) => void;
|
|
10
|
+
export declare function getBasicAuthProps<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): AuthProps['basicAuth'];
|
|
11
|
+
export declare function getTLSProps<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): AuthProps['TLS'];
|
|
12
|
+
export declare function getCustomHeaders<C extends Config = Config>(config: C, onChange: OnChangeHandler<C>): AuthProps['customHeaders'];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props as GenericConfigSectionProps } from './GenericConfigSection';
|
|
3
|
+
type Props = Omit<GenericConfigSectionProps, 'kind'>;
|
|
4
|
+
export declare const ConfigSection: ({ children, ...props }: React.PropsWithChildren<Props>) => JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props as GenericConfigSectionProps } from './GenericConfigSection';
|
|
3
|
+
type Props = Omit<GenericConfigSectionProps, 'kind'>;
|
|
4
|
+
export declare const ConfigSubSection: ({ children, ...props }: React.PropsWithChildren<Props>) => JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
isCollapsible?: boolean;
|
|
6
|
+
isInitiallyOpen?: boolean;
|
|
7
|
+
kind?: 'section' | 'sub-section';
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const GenericConfigSection: ({ children, title, description, isCollapsible, isInitiallyOpen, kind, className, }: React.PropsWithChildren<Props>) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PopoverContent } from '@grafana/ui';
|
|
3
|
+
import { Config, OnChangeHandler } from '../types';
|
|
4
|
+
export type Props<C extends Config = Config> = {
|
|
5
|
+
config: C;
|
|
6
|
+
onChange: OnChangeHandler<C>;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
urlPlaceholder?: string;
|
|
9
|
+
urlTooltip?: PopoverContent;
|
|
10
|
+
urlLabel?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const ConnectionSettings: <C extends Config = Config>(props: Props<C>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConnectionSettings } from './ConnectionSettings';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
dataSourceName: string;
|
|
4
|
+
docsLink: string;
|
|
5
|
+
hasRequiredFields?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DataSourceDescription: ({ dataSourceName, docsLink, hasRequiredFields, className }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { InlineLabel as OriginalInlineLabel } from
|
|
3
|
-
import { DataSourceSettings } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InlineLabel as OriginalInlineLabel } from '@grafana/ui';
|
|
3
|
+
import { DataSourceSettings } from '@grafana/data';
|
|
4
4
|
type Props = Omit<React.ComponentProps<typeof OriginalInlineLabel>, 'children'> & {
|
|
5
5
|
dataSourceConfig: DataSourceSettings<any, any>;
|
|
6
6
|
onChange: (config: DataSourceSettings) => void;
|
|
7
7
|
labelWidth: number;
|
|
8
8
|
};
|
|
9
|
-
export declare const SecureSocksProxyToggle:
|
|
9
|
+
export declare const SecureSocksProxyToggle: ({ labelWidth, ...props }: Props) => any;
|
|
10
10
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { SecureSocksProxyToggle } from './SecureSocksProxyToggle';
|
|
2
|
+
export { DataSourceDescription } from './DataSourceDescription';
|
|
3
|
+
export { ConfigSection, ConfigSubSection, ConfigDescriptionLink } from './ConfigSection';
|
|
4
|
+
export { Auth, AuthMethod, convertLegacyAuthProps } from './Auth';
|
|
5
|
+
export type { AuthProps } from './Auth';
|
|
6
|
+
export { ConnectionSettings } from './Connection';
|
|
7
|
+
export { AdvancedHttpSettings } from './AdvancedSettings';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DataSourceSettings, DataSourceJsonData } from '@grafana/data';
|
|
2
|
+
export type Config<JSONData extends DataSourceJsonData = any, SecureJSONData = any> = DataSourceSettings<JSONData, SecureJSONData>;
|
|
3
|
+
export type OnChangeHandler<C extends Config = Config> = (config: C) => void;
|
|
@@ -3,7 +3,7 @@ import { VariableSuggestion, DataSourceInstanceSettings, DataSourceJsonData } fr
|
|
|
3
3
|
import { DataLinkConfig } from './types';
|
|
4
4
|
type Props = {
|
|
5
5
|
value: DataLinkConfig;
|
|
6
|
-
datasources?: DataSourceInstanceSettings<DataSourceJsonData
|
|
6
|
+
datasources?: Array<DataSourceInstanceSettings<DataSourceJsonData>>;
|
|
7
7
|
onChange: (value: DataLinkConfig) => void;
|
|
8
8
|
onDelete: () => void;
|
|
9
9
|
suggestions: VariableSuggestion[];
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { PluginErrorCode, PluginSignatureStatus } from '@grafana/data';
|
|
3
3
|
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
status?: PluginSignatureStatus;
|
|
5
5
|
}
|
|
6
|
-
export declare const PluginSignatureBadge:
|
|
6
|
+
export declare const PluginSignatureBadge: {
|
|
7
|
+
({ status, ...otherProps }: Props): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
7
10
|
export declare function isUnsignedPluginSignature(signature?: PluginSignatureStatus): boolean | undefined;
|
|
8
11
|
export declare function mapPluginErrorCodeToSignatureStatus(code: PluginErrorCode): PluginSignatureStatus.invalid | PluginSignatureStatus.modified | PluginSignatureStatus.missing;
|
|
9
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from '@grafana/ui';
|
|
3
3
|
interface AccessoryButtonProps extends ButtonProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const AccessoryButton:
|
|
5
|
+
export declare const AccessoryButton: ({ className, ...props }: AccessoryButtonProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { SelectableValue } from '@grafana/data';
|
|
3
3
|
import { DB, ResourceSelectorProps } from './types';
|
|
4
4
|
interface DatasetSelectorProps extends ResourceSelectorProps {
|
|
@@ -9,5 +9,5 @@ interface DatasetSelectorProps extends ResourceSelectorProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onChange: (v: SelectableValue) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare const DatasetSelector:
|
|
12
|
+
export declare const DatasetSelector: ({ db, dataset, value, onChange, disabled, className, applyDefault, }: DatasetSelectorProps) => JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -6,6 +6,7 @@ interface EditorFieldProps extends ComponentProps<typeof Field> {
|
|
|
6
6
|
width?: number | string;
|
|
7
7
|
optional?: boolean;
|
|
8
8
|
tooltip?: PopoverContent;
|
|
9
|
+
tooltipInteractive?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare const EditorField:
|
|
11
|
+
export declare const EditorField: (props: EditorFieldProps) => JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface EditorFieldGroupProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
3
4
|
}
|
|
4
|
-
export declare const EditorFieldGroup:
|
|
5
|
+
export declare const EditorFieldGroup: ({ children }: EditorFieldGroupProps) => JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -4,5 +4,5 @@ interface EditorListProps<T> {
|
|
|
4
4
|
renderItem: (item: Partial<T>, onChangeItem: (item: Partial<T>) => void, onDeleteItem: () => void) => React.ReactElement;
|
|
5
5
|
onChange: (items: Array<Partial<T>>) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare
|
|
7
|
+
export declare const EditorList: React.ForwardRefExoticComponent<EditorListProps<unknown> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeSpacingTokens } from '@grafana/data';
|
|
3
|
+
export type Direction = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
4
|
+
export type AlignItems = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'start' | 'end' | 'self-start' | 'self-end';
|
|
5
|
+
interface StackProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
direction?: Direction;
|
|
8
|
+
alignItems?: AlignItems;
|
|
9
|
+
wrap?: boolean;
|
|
10
|
+
gap?: ThemeSpacingTokens;
|
|
11
|
+
}
|
|
12
|
+
export declare const EditorStack: ({ children, wrap: wrapItems, ...props }: StackProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Switch } from '@grafana/ui';
|
|
2
|
-
import
|
|
3
|
-
export declare const EditorSwitch:
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export declare const EditorSwitch: (props: ComponentProps<typeof Switch>) => JSX.Element;
|