@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
|
@@ -1,29 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/VisualQueryBuilder/types.ts"],"names":[],"mappings":";;;AAoFA,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
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomHeadersSettings = exports.CertificationKey = exports.InlineSwitch = exports.formatDate = exports.DatePickerWithInput = exports.DatePicker = exports.Segment = exports.DebounceInput = exports.QueryEditorRow = exports.AsyncButtonCascader = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
var AsyncButtonCascader_1 = require("./AsyncButtonCascader/AsyncButtonCascader");
|
|
6
|
-
Object.defineProperty(exports, "AsyncButtonCascader", { enumerable: true, get: function () { return AsyncButtonCascader_1.AsyncButtonCascader; } });
|
|
7
|
-
var QueryEditorRow_1 = require("./QueryEditorRow/QueryEditorRow");
|
|
8
|
-
Object.defineProperty(exports, "QueryEditorRow", { enumerable: true, get: function () { return QueryEditorRow_1.QueryEditorRow; } });
|
|
9
|
-
var DebounceInput_1 = require("./DebounceInput/DebounceInput");
|
|
10
|
-
Object.defineProperty(exports, "DebounceInput", { enumerable: true, get: function () { return DebounceInput_1.DebounceInput; } });
|
|
11
|
-
var Segment_1 = require("./Segment/Segment");
|
|
12
|
-
Object.defineProperty(exports, "Segment", { enumerable: true, get: function () { return Segment_1.Segment; } });
|
|
13
|
-
var DatePicker_1 = require("./DatePicker/DatePicker");
|
|
14
|
-
Object.defineProperty(exports, "DatePicker", { enumerable: true, get: function () { return DatePicker_1.DatePicker; } });
|
|
15
|
-
var DatePickerWithInput_1 = require("./DatePickerWithInput/DatePickerWithInput");
|
|
16
|
-
Object.defineProperty(exports, "DatePickerWithInput", { enumerable: true, get: function () { return DatePickerWithInput_1.DatePickerWithInput; } });
|
|
17
|
-
Object.defineProperty(exports, "formatDate", { enumerable: true, get: function () { return DatePickerWithInput_1.formatDate; } });
|
|
18
|
-
tslib_1.__exportStar(require("./DataSourcePicker/DataSourcePicker"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./DataLinks"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./Cascader/Cascader"), exports);
|
|
21
|
-
var ui_1 = require("@grafana/ui");
|
|
22
|
-
Object.defineProperty(exports, "InlineSwitch", { enumerable: true, get: function () { return ui_1.InlineSwitch; } });
|
|
23
|
-
Object.defineProperty(exports, "CertificationKey", { enumerable: true, get: function () { return ui_1.CertificationKey; } });
|
|
24
|
-
tslib_1.__exportStar(require("./QueryEditor"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./ConfigEditor"), exports);
|
|
26
|
-
var CustomHeadersSettings_1 = require("./CustomHeadersSettings/CustomHeadersSettings");
|
|
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);
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSearchFilterScopedVar = exports.containsSearchFilter = exports.SEARCH_FILTER_VARIABLE = exports.SqlDatasource = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const rxjs_1 = require("rxjs");
|
|
6
|
-
const operators_1 = require("rxjs/operators");
|
|
7
|
-
const data_1 = require("@grafana/data");
|
|
8
|
-
const runtime_1 = require("@grafana/runtime");
|
|
9
|
-
const constants_1 = require("./constants");
|
|
10
|
-
// import { toTestingStatus } from '@grafana/runtime/utils/queryResponse';
|
|
11
|
-
const types_1 = require("../components/QueryEditor/types");
|
|
12
|
-
class SqlDatasource extends runtime_1.DataSourceWithBackend {
|
|
13
|
-
constructor(instanceSettings, templateSrv = (0, runtime_1.getTemplateSrv)()) {
|
|
14
|
-
super(instanceSettings);
|
|
15
|
-
this.templateSrv = templateSrv;
|
|
16
|
-
this.annotations = {};
|
|
17
|
-
this.interpolateVariable = (value, variable) => {
|
|
18
|
-
if (typeof value === 'string') {
|
|
19
|
-
if (variable.multi || variable.includeAll) {
|
|
20
|
-
const result = this.getQueryModel().quoteLiteral(value);
|
|
21
|
-
return result;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
return value;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (typeof value === 'number') {
|
|
28
|
-
return value;
|
|
29
|
-
}
|
|
30
|
-
if (Array.isArray(value)) {
|
|
31
|
-
const quotedValues = value.map((v) => this.getQueryModel().quoteLiteral(v));
|
|
32
|
-
return quotedValues.join(',');
|
|
33
|
-
}
|
|
34
|
-
return value;
|
|
35
|
-
};
|
|
36
|
-
this.name = instanceSettings.name;
|
|
37
|
-
this.id = instanceSettings.id;
|
|
38
|
-
const settingsData = instanceSettings.jsonData || {};
|
|
39
|
-
this.interval = settingsData.timeInterval || '1m';
|
|
40
|
-
this.db = this.getDB();
|
|
41
|
-
}
|
|
42
|
-
interpolateVariablesInQueries(queries, scopedVars) {
|
|
43
|
-
let expandedQueries = queries;
|
|
44
|
-
if (queries && queries.length > 0) {
|
|
45
|
-
expandedQueries = queries.map((query) => {
|
|
46
|
-
const expandedQuery = Object.assign(Object.assign({}, query), { datasource: this.getRef(), rawSql: this.templateSrv.replace(query.rawSql, scopedVars, this.interpolateVariable), rawQuery: true });
|
|
47
|
-
return expandedQuery;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return expandedQueries;
|
|
51
|
-
}
|
|
52
|
-
filterQuery(query) {
|
|
53
|
-
return !query.hide;
|
|
54
|
-
}
|
|
55
|
-
applyTemplateVariables(target, scopedVars) {
|
|
56
|
-
const queryModel = this.getQueryModel(target, this.templateSrv, scopedVars);
|
|
57
|
-
const rawSql = this.clean(queryModel.interpolate());
|
|
58
|
-
return {
|
|
59
|
-
refId: target.refId,
|
|
60
|
-
datasource: this.getRef(),
|
|
61
|
-
rawSql,
|
|
62
|
-
format: target.format,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
clean(value) {
|
|
66
|
-
return value.replace(/''/g, "'");
|
|
67
|
-
}
|
|
68
|
-
metricFindQuery(query, optionalOptions) {
|
|
69
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
const rawSql = this.templateSrv.replace(query, (0, exports.getSearchFilterScopedVar)({ query, wildcardChar: '%', options: optionalOptions }), this.interpolateVariable);
|
|
71
|
-
const interpolatedQuery = {
|
|
72
|
-
refId: 'tempvar',
|
|
73
|
-
datasource: this.getRef(),
|
|
74
|
-
rawSql,
|
|
75
|
-
format: types_1.QueryFormat.Table,
|
|
76
|
-
};
|
|
77
|
-
const response = yield this.runMetaQuery(interpolatedQuery, optionalOptions);
|
|
78
|
-
return this.getResponseParser().transformMetricFindResponse(response);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
runSql(query, options) {
|
|
82
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
const frame = yield this.runMetaQuery({ rawSql: query, format: types_1.QueryFormat.Table, refId: options === null || options === void 0 ? void 0 : options.refId }, options);
|
|
84
|
-
return new data_1.DataFrameView(frame);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
runMetaQuery(request, options) {
|
|
88
|
-
var _a, _b;
|
|
89
|
-
const refId = request.refId || 'meta';
|
|
90
|
-
const queries = [Object.assign(Object.assign({}, request), { datasource: request.datasource || this.getRef(), refId })];
|
|
91
|
-
return (0, rxjs_1.lastValueFrom)((0, runtime_1.getBackendSrv)()
|
|
92
|
-
.fetch({
|
|
93
|
-
url: '/api/ds/query',
|
|
94
|
-
method: 'POST',
|
|
95
|
-
data: {
|
|
96
|
-
from: (_a = options === null || options === void 0 ? void 0 : options.range) === null || _a === void 0 ? void 0 : _a.from.valueOf().toString(),
|
|
97
|
-
to: (_b = options === null || options === void 0 ? void 0 : options.range) === null || _b === void 0 ? void 0 : _b.to.valueOf().toString(),
|
|
98
|
-
queries,
|
|
99
|
-
},
|
|
100
|
-
requestId: refId,
|
|
101
|
-
})
|
|
102
|
-
.pipe((0, operators_1.map)((res) => {
|
|
103
|
-
const rsp = (0, runtime_1.toDataQueryResponse)(res, queries);
|
|
104
|
-
return rsp.data[0];
|
|
105
|
-
})));
|
|
106
|
-
}
|
|
107
|
-
testDatasource() {
|
|
108
|
-
return (0, rxjs_1.lastValueFrom)((0, runtime_1.getBackendSrv)()
|
|
109
|
-
.fetch({
|
|
110
|
-
url: '/api/ds/query',
|
|
111
|
-
method: 'POST',
|
|
112
|
-
data: {
|
|
113
|
-
from: '5m',
|
|
114
|
-
to: 'now',
|
|
115
|
-
queries: [
|
|
116
|
-
{
|
|
117
|
-
refId: 'A',
|
|
118
|
-
intervalMs: 1,
|
|
119
|
-
maxDataPoints: 1,
|
|
120
|
-
datasource: this.getRef(),
|
|
121
|
-
datasourceId: this.id,
|
|
122
|
-
rawSql: 'SELECT 1',
|
|
123
|
-
format: 'table',
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
},
|
|
127
|
-
})
|
|
128
|
-
.pipe((0, operators_1.map)(() => ({ status: 'success', message: 'Database Connection OK' })), (0, operators_1.catchError)((err) => {
|
|
129
|
-
// return of(toTestingStatus(err));
|
|
130
|
-
return (0, rxjs_1.of)(err);
|
|
131
|
-
})));
|
|
132
|
-
}
|
|
133
|
-
targetContainsTemplate(target) {
|
|
134
|
-
let queryWithoutMacros = target.rawSql;
|
|
135
|
-
constants_1.MACRO_NAMES.forEach((value) => {
|
|
136
|
-
queryWithoutMacros = (queryWithoutMacros === null || queryWithoutMacros === void 0 ? void 0 : queryWithoutMacros.replace(value, '')) || '';
|
|
137
|
-
});
|
|
138
|
-
return this.templateSrv.containsTemplate(queryWithoutMacros);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
exports.SqlDatasource = SqlDatasource;
|
|
142
|
-
exports.SEARCH_FILTER_VARIABLE = '__searchFilter';
|
|
143
|
-
const containsSearchFilter = (query) => query && typeof query === 'string' ? query.indexOf(exports.SEARCH_FILTER_VARIABLE) !== -1 : false;
|
|
144
|
-
exports.containsSearchFilter = containsSearchFilter;
|
|
145
|
-
const getSearchFilterScopedVar = (args) => {
|
|
146
|
-
const { query, wildcardChar } = args;
|
|
147
|
-
if (!(0, exports.containsSearchFilter)(query)) {
|
|
148
|
-
return {};
|
|
149
|
-
}
|
|
150
|
-
let { options } = args;
|
|
151
|
-
options = options || { searchFilter: '' };
|
|
152
|
-
const value = options.searchFilter ? `${options.searchFilter}${wildcardChar}` : `${wildcardChar}`;
|
|
153
|
-
return {
|
|
154
|
-
__searchFilter: {
|
|
155
|
-
value,
|
|
156
|
-
text: '',
|
|
157
|
-
},
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
exports.getSearchFilterScopedVar = getSearchFilterScopedVar;
|
|
161
|
-
//# sourceMappingURL=SqlDatasource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAFL,gBAAW,GAAX,WAAW,CAAgC;QAJhE,gBAAW,GAAG,EAAE,CAAC;QAoBjB,wBAAmB,GAAG,CAAC,KAAiC,EAAE,QAAkC,EAAE,EAAE;YAC9F,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,IAAI,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,UAAU,EAAE;oBACzC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;oBACxD,OAAO,MAAM,CAAC;iBACf;qBAAM;oBACL,OAAO,KAAK,CAAC;iBACd;aACF;YAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,OAAO,KAAK,CAAC;aACd;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxB,MAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC5E,OAAO,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAC/B;YAED,OAAO,KAAK,CAAC;QACf,CAAC,CAAC;QAjCA,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,EAAE,GAAG,gBAAgB,CAAC,EAAE,CAAC;QAC9B,MAAM,YAAY,GAAG,gBAAgB,CAAC,QAAQ,IAAI,EAAE,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC;QAClD,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IA8BD,6BAA6B,CAAC,OAAmB,EAAE,UAAsB;QACvE,IAAI,eAAe,GAAG,OAAO,CAAC;QAC9B,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACjC,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBACtC,MAAM,aAAa,mCACd,KAAK,KACR,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,EACzB,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,EACpF,QAAQ,EAAE,IAAI,GACf,CAAC;gBACF,OAAO,aAAa,CAAC;YACvB,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,WAAW,CAAC,KAAe;QACzB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,sBAAsB,CAAC,MAAgB,EAAE,UAAsB;QAC7D,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAC5E,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;QACpD,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;YACzB,MAAM;YACN,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAa;QACjB,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAEK,eAAe,CAAC,KAAa,EAAE,eAAwC;;YAC3E,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CACrC,KAAK,EACL,IAAA,gCAAwB,EAAC,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,EAChF,IAAI,CAAC,mBAAmB,CACzB,CAAC;YAEF,MAAM,iBAAiB,GAAa;gBAClC,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;gBACzB,MAAM;gBACN,MAAM,EAAE,mBAAW,CAAC,KAAK;aAC1B,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;YAC7E,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAC;QACxE,CAAC;KAAA;IAEK,MAAM,CAAmB,KAAa,EAAE,OAAuB;;YACnE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAW,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;YACpH,OAAO,IAAI,oBAAa,CAAI,KAAK,CAAC,CAAC;QACrC,CAAC;KAAA;IAEO,YAAY,CAAC,OAA0B,EAAE,OAAgC;;QAC/E,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC;QACtC,MAAM,OAAO,GAAgB,iCAAM,OAAO,KAAE,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,IAAG,CAAC;QAEtG,OAAO,IAAA,oBAAa,EAClB,IAAA,uBAAa,GAAE;aACZ,KAAK,CAA4B;YAChC,GAAG,EAAE,eAAe;YACpB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,IAAI,CAAC,OAAO,GAAG,QAAQ,EAAE;gBAC/C,EAAE,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,EAAE,CAAC,OAAO,GAAG,QAAQ,EAAE;gBAC3C,OAAO;aACR;YACD,SAAS,EAAE,KAAK;SACjB,CAAC;aACD,IAAI,CACH,IAAA,eAAG,EAAC,CAAC,GAA6C,EAAE,EAAE;YACpD,MAAM,GAAG,GAAG,IAAA,6BAAmB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YAC9C,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC,CAAC,CACH,CACJ,CAAC;IACJ,CAAC;IAED,cAAc;QACZ,OAAO,IAAA,oBAAa,EAClB,IAAA,uBAAa,GAAE;aACZ,KAAK,CAAC;YACL,GAAG,EAAE,eAAe;YACpB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE,IAAI;gBACV,EAAE,EAAE,KAAK;gBACT,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,GAAG;wBACV,UAAU,EAAE,CAAC;wBACb,aAAa,EAAE,CAAC;wBAChB,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;wBACzB,YAAY,EAAE,IAAI,CAAC,EAAE;wBACrB,MAAM,EAAE,UAAU;wBAClB,MAAM,EAAE,OAAO;qBAChB;iBACF;aACF;SACF,CAAC;aACD,IAAI,CACH,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC,CAAC,EACrE,IAAA,sBAAU,EAAC,CAAC,GAAG,EAAE,EAAE;YACjB,mCAAmC;YACnC,OAAO,IAAA,SAAE,EAAC,GAAG,CAAC,CAAC;QACjB,CAAC,CAAC,CACH,CACJ,CAAC;IACJ,CAAC;IAED,sBAAsB,CAAC,MAAgB;QACrC,IAAI,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;QACvC,uBAAW,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC5B,kBAAkB,GAAG,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,KAAI,EAAE,CAAC;QACpE,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;IAC/D,CAAC;CACF;AA1KD,sCA0KC;AAUY,QAAA,sBAAsB,GAAG,gBAAgB,CAAC;AAEhD,MAAM,oBAAoB,GAAG,CAAC,KAAuB,EAAW,EAAE,CACvE,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,8BAAsB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAD/E,QAAA,oBAAoB,wBAC2D;AAErF,MAAM,wBAAwB,GAAG,CAAC,IAIxC,EAAc,EAAE;IACf,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACrC,IAAI,CAAC,IAAA,4BAAoB,EAAC,KAAK,CAAC,EAAE;QAChC,OAAO,EAAE,CAAC;KACX;IAED,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEvB,OAAO,GAAG,OAAO,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;IAC1C,MAAM,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG,YAAY,EAAE,CAAC,CAAC,CAAC,GAAG,YAAY,EAAE,CAAC;IAElG,OAAO;QACL,cAAc,EAAE;YACd,KAAK;YACL,IAAI,EAAE,EAAE;SACT;KACF,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,wBAAwB,4BAqBnC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MACRO_NAMES = void 0;
|
|
4
|
-
exports.MACRO_NAMES = [
|
|
5
|
-
'$__time',
|
|
6
|
-
'$__timeEpoch',
|
|
7
|
-
'$__timeFilter',
|
|
8
|
-
'$__timeFrom',
|
|
9
|
-
'$__timeTo',
|
|
10
|
-
'$__timeGroup',
|
|
11
|
-
'$__timeGroupAlias',
|
|
12
|
-
'$__unixEpochFilter',
|
|
13
|
-
'$__unixEpochNanoFilter',
|
|
14
|
-
'$__unixEpochNanoFrom',
|
|
15
|
-
'$__unixEpochNanoTo',
|
|
16
|
-
'$__unixEpochGroup',
|
|
17
|
-
'$__unixEpochGroupAlias',
|
|
18
|
-
];
|
|
19
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/datasource/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,SAAS;IACT,cAAc;IACd,eAAe;IACf,aAAa;IACb,WAAW;IACX,cAAc;IACd,mBAAmB;IACnB,oBAAoB;IACpB,wBAAwB;IACxB,sBAAsB;IACtB,oBAAoB;IACpB,mBAAmB;IACnB,wBAAwB;CACzB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDebounce = exports.DEFAULT_DELAY = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
exports.DEFAULT_DELAY = 275;
|
|
6
|
-
const useDebounce = (value, delay = exports.DEFAULT_DELAY) => {
|
|
7
|
-
const [debouncedValue, setDebouncedValue] = (0, react_1.useState)(value);
|
|
8
|
-
(0, react_1.useEffect)(() => {
|
|
9
|
-
const handler = setTimeout(() => {
|
|
10
|
-
setDebouncedValue(value);
|
|
11
|
-
}, delay);
|
|
12
|
-
return () => {
|
|
13
|
-
clearTimeout(handler);
|
|
14
|
-
};
|
|
15
|
-
// TODO: We should fix this
|
|
16
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17
|
-
}, [value]);
|
|
18
|
-
return debouncedValue;
|
|
19
|
-
};
|
|
20
|
-
exports.useDebounce = useDebounce;
|
|
21
|
-
//# sourceMappingURL=useDebounce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SqlDatasource = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* A library containing the different design components of the Grafana plugins ecosystem.
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
tslib_1.__exportStar(require("./components"), exports);
|
|
11
|
-
var SqlDatasource_1 = require("./datasource/SqlDatasource");
|
|
12
|
-
Object.defineProperty(exports, "SqlDatasource", { enumerable: true, get: function () { return SqlDatasource_1.SqlDatasource; } });
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA;;;;GAIG;AACH,uDAA6B;AAC7B,4DAA2D;AAAlD,8GAAA,aAAa,OAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CascaderOption } from 'rc-cascader';
|
|
3
|
-
export interface AsyncButtonCascaderProps {
|
|
4
|
-
options: CascaderOption[];
|
|
5
|
-
children: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
value: string[];
|
|
8
|
-
fieldNames?: {
|
|
9
|
-
label: string;
|
|
10
|
-
value: string;
|
|
11
|
-
children: string;
|
|
12
|
-
};
|
|
13
|
-
loadData?: (selectedOptions: CascaderOption[]) => void;
|
|
14
|
-
onChange?: (value: string[], selectedOptions: CascaderOption[]) => void;
|
|
15
|
-
onPopupVisibleChange?: (visible: boolean) => void;
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const AsyncButtonCascader: {
|
|
19
|
-
(props: AsyncButtonCascaderProps): JSX.Element;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Cascader } from '@grafana/ui';
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AdvancedHttpSettings } from './AdvancedHttpSettings';
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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'];
|
|
@@ -1,5 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,5 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ConnectionSettings } from './ConnectionSettings';
|