@grafana/plugin-ui 0.9.5 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.cts +1205 -0
- package/dist/cjs/index.js +9739 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +80 -0
- package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/Auth.js +43 -0
- package/dist/esm/components/ConfigEditor/Auth/Auth.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +132 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js +82 -0
- package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +91 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +101 -0
- package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/styles.js +18 -0
- package/dist/esm/components/ConfigEditor/Auth/styles.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +58 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +18 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js +114 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js +31 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +35 -0
- package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/types.js +12 -0
- package/dist/esm/components/ConfigEditor/Auth/types.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Auth/utils.js +200 -0
- package/dist/esm/components/ConfigEditor/Auth/utils.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +38 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js +9 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js +9 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js +55 -0
- package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +1 -0
- package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js +53 -0
- package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js.map +1 -0
- package/dist/esm/components/ConfigEditor/DataSourceDescription.js +32 -0
- package/dist/esm/components/ConfigEditor/DataSourceDescription.js.map +1 -0
- package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js +45 -0
- package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js.map +1 -0
- package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js +182 -0
- package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js.map +1 -0
- package/dist/esm/components/DataLinks/DataLink.js +144 -0
- package/dist/esm/components/DataLinks/DataLink.js.map +1 -0
- package/dist/esm/components/DataLinks/DataLinks.js +66 -0
- package/dist/esm/components/DataLinks/DataLinks.js.map +1 -0
- package/dist/esm/components/DataSourcePicker/DataSourcePicker.js +103 -0
- package/dist/esm/components/DataSourcePicker/DataSourcePicker.js.map +1 -0
- package/dist/esm/components/DatePicker/DatePicker.js +39 -0
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/{components → esm/components}/DatePicker/styles.js +20 -21
- package/dist/esm/components/DatePicker/styles.js.map +1 -0
- package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js +28 -0
- package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js.map +1 -0
- package/dist/esm/components/DatePickerWithInput/styles.js +16 -0
- package/dist/esm/components/DatePickerWithInput/styles.js.map +1 -0
- package/dist/esm/components/DebounceInput/DebounceInput.js +15 -0
- package/dist/esm/components/DebounceInput/DebounceInput.js.map +1 -0
- package/dist/esm/components/Plugins/PluginSignatureBadge.js +57 -0
- package/dist/esm/components/Plugins/PluginSignatureBadge.js.map +1 -0
- package/dist/esm/components/QueryEditor/AccessoryButton.js +18 -0
- package/dist/esm/components/QueryEditor/AccessoryButton.js.map +1 -0
- package/dist/esm/components/QueryEditor/ConfirmModal.js +26 -0
- package/dist/esm/components/QueryEditor/ConfirmModal.js.map +1 -0
- package/dist/esm/components/QueryEditor/DatasetSelector.js +56 -0
- package/dist/esm/components/QueryEditor/DatasetSelector.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorField.js +42 -0
- package/dist/esm/components/QueryEditor/EditorField.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorFieldGroup.js +9 -0
- package/dist/esm/components/QueryEditor/EditorFieldGroup.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorHeader.js +21 -0
- package/dist/esm/components/QueryEditor/EditorHeader.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorList.js +28 -0
- package/dist/esm/components/QueryEditor/EditorList.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorRow.js +22 -0
- package/dist/esm/components/QueryEditor/EditorRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorRows.js +9 -0
- package/dist/esm/components/QueryEditor/EditorRows.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorStack.js +11 -0
- package/dist/esm/components/QueryEditor/EditorStack.js.map +1 -0
- package/dist/esm/components/QueryEditor/EditorSwitch.js +20 -0
- package/dist/esm/components/QueryEditor/EditorSwitch.js.map +1 -0
- package/dist/esm/components/QueryEditor/FlexItem.js +8 -0
- package/dist/esm/components/QueryEditor/FlexItem.js.map +1 -0
- package/dist/esm/components/QueryEditor/InlineSelect.js +50 -0
- package/dist/esm/components/QueryEditor/InlineSelect.js.map +1 -0
- package/dist/esm/components/QueryEditor/InputGroup.js +63 -0
- package/dist/esm/components/QueryEditor/InputGroup.js.map +1 -0
- package/dist/esm/components/QueryEditor/QueryEditor.js +110 -0
- package/dist/esm/components/QueryEditor/QueryEditor.js.map +1 -0
- package/dist/esm/components/QueryEditor/QueryHeader.js +172 -0
- package/dist/esm/components/QueryEditor/QueryHeader.js.map +1 -0
- package/dist/esm/components/QueryEditor/RunQueryButton.js +42 -0
- package/dist/esm/components/QueryEditor/RunQueryButton.js.map +1 -0
- package/dist/esm/components/QueryEditor/Space.js +35 -0
- package/dist/esm/components/QueryEditor/Space.js.map +1 -0
- package/dist/esm/components/QueryEditor/TableSelector.js +33 -0
- package/dist/esm/components/QueryEditor/TableSelector.js.map +1 -0
- package/dist/esm/components/QueryEditor/defaults.js +25 -0
- package/dist/esm/components/QueryEditor/defaults.js.map +1 -0
- package/dist/esm/components/QueryEditor/expressions.js +17 -0
- package/dist/esm/components/QueryEditor/expressions.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +39 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js +63 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js +72 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js.map +1 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js +96 -0
- package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js.map +1 -0
- package/dist/esm/components/QueryEditor/types.js +33 -0
- package/dist/esm/components/QueryEditor/types.js.map +1 -0
- package/dist/esm/components/QueryEditor/utils/formatSQL.js +10 -0
- package/dist/esm/components/QueryEditor/utils/formatSQL.js.map +1 -0
- package/dist/esm/components/QueryEditor/utils/sql.utils.js +93 -0
- package/dist/esm/components/QueryEditor/utils/sql.utils.js.map +1 -0
- package/dist/esm/components/QueryEditor/utils/useSqlChange.js +19 -0
- package/dist/esm/components/QueryEditor/utils/useSqlChange.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +216 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js +44 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js +22 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js +9 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js +51 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js +70 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js +33 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +14 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +35 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js +19 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js +40 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js +123 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js +24 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js.map +1 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js +79 -0
- package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js.map +1 -0
- package/dist/esm/components/QueryEditorRow/QueryEditorRow.js +11 -0
- package/dist/esm/components/QueryEditorRow/QueryEditorRow.js.map +1 -0
- package/dist/esm/components/SQLEditor/components/SQLEditor.js +339 -0
- package/dist/esm/components/SQLEditor/components/SQLEditor.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/Monaco.js +19 -0
- package/dist/esm/components/SQLEditor/mocks/Monaco.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/TextModel.js +21 -0
- package/dist/esm/components/SQLEditor/mocks/TextModel.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQuery.js +217 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +232 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +272 -0
- package/dist/esm/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +9 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQuery.js +197 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +212 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +252 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +387 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +1 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +417 -0
- package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +1 -0
- package/dist/{src/components/SQLEditor/mocks/testData.d.ts → esm/components/SQLEditor/mocks/testData.js} +10 -9
- package/dist/esm/components/SQLEditor/mocks/testData.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/definition.js +19 -0
- package/dist/esm/components/SQLEditor/standardSql/definition.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js +20 -0
- package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js +24 -0
- package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/language.js +867 -0
- package/dist/esm/components/SQLEditor/standardSql/language.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/macros.js +58 -0
- package/dist/esm/components/SQLEditor/standardSql/macros.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +34 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +367 -0
- package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +215 -0
- package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +1 -0
- package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js +152 -0
- package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +1 -0
- package/dist/esm/components/SQLEditor/test-utils/index.js +11 -0
- package/dist/esm/components/SQLEditor/test-utils/index.js.map +1 -0
- package/dist/esm/components/SQLEditor/test-utils/statementPosition.js +45 -0
- package/dist/esm/components/SQLEditor/test-utils/statementPosition.js.map +1 -0
- package/dist/esm/components/SQLEditor/types.js +140 -0
- package/dist/esm/components/SQLEditor/types.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/LinkedToken.js +145 -0
- package/dist/esm/components/SQLEditor/utils/LinkedToken.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/commands.js +7 -0
- package/dist/esm/components/SQLEditor/utils/commands.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/debugger.js +14 -0
- package/dist/esm/components/SQLEditor/utils/debugger.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/getSuggestionKind.js +16 -0
- package/dist/esm/components/SQLEditor/utils/getSuggestionKind.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js +45 -0
- package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/toCompletionItem.js +17 -0
- package/dist/esm/components/SQLEditor/utils/toCompletionItem.js.map +1 -0
- package/dist/esm/components/SQLEditor/utils/tokenUtils.js +36 -0
- package/dist/esm/components/SQLEditor/utils/tokenUtils.js.map +1 -0
- package/dist/esm/components/Segment/Segment.js +24 -0
- package/dist/esm/components/Segment/Segment.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js +39 -0
- package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js +178 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js +70 -0
- package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js +77 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js +254 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js +55 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js +107 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js +87 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationList.js +169 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationList.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js +43 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js +136 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js +39 -0
- package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js +73 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +14 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +44 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js +97 -0
- package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js +30 -0
- package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js.map +1 -0
- package/dist/esm/components/VisualQueryBuilder/types.js +12 -0
- package/dist/esm/components/VisualQueryBuilder/types.js.map +1 -0
- package/dist/esm/datasource/SqlDatasource.js +172 -0
- package/dist/esm/datasource/SqlDatasource.js.map +1 -0
- package/dist/esm/datasource/constants.js +18 -0
- package/dist/esm/datasource/constants.js.map +1 -0
- package/dist/esm/hooks/useDebounce.js +18 -0
- package/dist/esm/hooks/useDebounce.js.map +1 -0
- package/dist/esm/index.d.ts +1205 -0
- package/dist/esm/index.js +57 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +62 -41
- package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js +0 -33
- package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js.map +0 -1
- package/dist/components/Cascader/Cascader.js +0 -6
- package/dist/components/Cascader/Cascader.js.map +0 -1
- package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +0 -28
- package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +0 -1
- package/dist/components/ConfigEditor/AdvancedSettings/index.js +0 -6
- package/dist/components/ConfigEditor/AdvancedSettings/index.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/Auth.js +0 -24
- package/dist/components/ConfigEditor/Auth/Auth.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +0 -110
- package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js +0 -23
- package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +0 -41
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +0 -76
- package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/index.js +0 -10
- package/dist/components/ConfigEditor/Auth/index.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/styles.js +0 -19
- package/dist/components/ConfigEditor/Auth/styles.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +0 -18
- package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +0 -11
- package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js +0 -22
- package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js +0 -25
- package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +0 -35
- package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/types.js +0 -11
- package/dist/components/ConfigEditor/Auth/types.js.map +0 -1
- package/dist/components/ConfigEditor/Auth/utils.js +0 -113
- package/dist/components/ConfigEditor/Auth/utils.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +0 -32
- package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js +0 -12
- package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js +0 -12
- package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js +0 -40
- package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +0 -1
- package/dist/components/ConfigEditor/ConfigSection/index.js +0 -10
- package/dist/components/ConfigEditor/ConfigSection/index.js.map +0 -1
- package/dist/components/ConfigEditor/Connection/ConnectionSettings.js +0 -26
- package/dist/components/ConfigEditor/Connection/ConnectionSettings.js.map +0 -1
- package/dist/components/ConfigEditor/Connection/index.js +0 -6
- package/dist/components/ConfigEditor/Connection/index.js.map +0 -1
- package/dist/components/ConfigEditor/DataSourceDescription.js +0 -39
- package/dist/components/ConfigEditor/DataSourceDescription.js.map +0 -1
- package/dist/components/ConfigEditor/SecureSocksProxyToggle.js +0 -24
- package/dist/components/ConfigEditor/SecureSocksProxyToggle.js.map +0 -1
- package/dist/components/ConfigEditor/index.js +0 -22
- package/dist/components/ConfigEditor/index.js.map +0 -1
- package/dist/components/ConfigEditor/types.js +0 -3
- package/dist/components/ConfigEditor/types.js.map +0 -1
- package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js +0 -124
- package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js.map +0 -1
- package/dist/components/DataLinks/DataLink.js +0 -79
- package/dist/components/DataLinks/DataLink.js.map +0 -1
- package/dist/components/DataLinks/DataLinks.js +0 -56
- package/dist/components/DataLinks/DataLinks.js.map +0 -1
- package/dist/components/DataLinks/index.js +0 -7
- package/dist/components/DataLinks/index.js.map +0 -1
- package/dist/components/DataLinks/types.js +0 -3
- package/dist/components/DataLinks/types.js.map +0 -1
- package/dist/components/DataSourcePicker/DataSourcePicker.js +0 -88
- package/dist/components/DataSourcePicker/DataSourcePicker.js.map +0 -1
- package/dist/components/DatePicker/DatePicker.js +0 -31
- package/dist/components/DatePicker/DatePicker.js.map +0 -1
- package/dist/components/DatePicker/styles.js.map +0 -1
- package/dist/components/DatePickerWithInput/DatePickerWithInput.js +0 -23
- package/dist/components/DatePickerWithInput/DatePickerWithInput.js.map +0 -1
- package/dist/components/DatePickerWithInput/style.css +0 -8
- package/dist/components/DebounceInput/DebounceInput.js +0 -19
- package/dist/components/DebounceInput/DebounceInput.js.map +0 -1
- package/dist/components/Plugins/PluginSignatureBadge.js +0 -65
- package/dist/components/Plugins/PluginSignatureBadge.js.map +0 -1
- package/dist/components/QueryEditor/AccessoryButton.js +0 -20
- package/dist/components/QueryEditor/AccessoryButton.js.map +0 -1
- package/dist/components/QueryEditor/ConfirmModal.js +0 -28
- package/dist/components/QueryEditor/ConfirmModal.js.map +0 -1
- package/dist/components/QueryEditor/DatasetSelector.js +0 -40
- package/dist/components/QueryEditor/DatasetSelector.js.map +0 -1
- package/dist/components/QueryEditor/EditorField.js +0 -49
- package/dist/components/QueryEditor/EditorField.js.map +0 -1
- package/dist/components/QueryEditor/EditorFieldGroup.js +0 -11
- package/dist/components/QueryEditor/EditorFieldGroup.js.map +0 -1
- package/dist/components/QueryEditor/EditorHeader.js +0 -22
- package/dist/components/QueryEditor/EditorHeader.js.map +0 -1
- package/dist/components/QueryEditor/EditorList.js +0 -27
- package/dist/components/QueryEditor/EditorList.js.map +0 -1
- package/dist/components/QueryEditor/EditorRow.js +0 -24
- package/dist/components/QueryEditor/EditorRow.js.map +0 -1
- package/dist/components/QueryEditor/EditorRows.js +0 -11
- package/dist/components/QueryEditor/EditorRows.js.map +0 -1
- package/dist/components/QueryEditor/EditorStack.js +0 -13
- package/dist/components/QueryEditor/EditorStack.js.map +0 -1
- package/dist/components/QueryEditor/EditorSwitch.js +0 -24
- package/dist/components/QueryEditor/EditorSwitch.js.map +0 -1
- package/dist/components/QueryEditor/FlexItem.js +0 -10
- package/dist/components/QueryEditor/FlexItem.js.map +0 -1
- package/dist/components/QueryEditor/InlineSelect.js +0 -57
- package/dist/components/QueryEditor/InlineSelect.js.map +0 -1
- package/dist/components/QueryEditor/InputGroup.js +0 -66
- package/dist/components/QueryEditor/InputGroup.js.map +0 -1
- package/dist/components/QueryEditor/QueryEditor.js +0 -74
- package/dist/components/QueryEditor/QueryEditor.js.map +0 -1
- package/dist/components/QueryEditor/QueryHeader.js +0 -86
- package/dist/components/QueryEditor/QueryHeader.js.map +0 -1
- package/dist/components/QueryEditor/RunQueryButton.js +0 -19
- package/dist/components/QueryEditor/RunQueryButton.js.map +0 -1
- package/dist/components/QueryEditor/Space.js +0 -36
- package/dist/components/QueryEditor/Space.js.map +0 -1
- package/dist/components/QueryEditor/TableSelector.js +0 -20
- package/dist/components/QueryEditor/TableSelector.js.map +0 -1
- package/dist/components/QueryEditor/defaults.js +0 -20
- package/dist/components/QueryEditor/defaults.js.map +0 -1
- package/dist/components/QueryEditor/expressions.js +0 -18
- package/dist/components/QueryEditor/expressions.js.map +0 -1
- package/dist/components/QueryEditor/index.js +0 -37
- package/dist/components/QueryEditor/index.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +0 -21
- package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/QueryToolbox.js +0 -59
- package/dist/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/QueryValidator.js +0 -79
- package/dist/components/QueryEditor/query-editor-raw/QueryValidator.js.map +0 -1
- package/dist/components/QueryEditor/query-editor-raw/RawEditor.js +0 -60
- package/dist/components/QueryEditor/query-editor-raw/RawEditor.js.map +0 -1
- package/dist/components/QueryEditor/types.js +0 -26
- package/dist/components/QueryEditor/types.js.map +0 -1
- package/dist/components/QueryEditor/utils/formatSQL.js +0 -13
- package/dist/components/QueryEditor/utils/formatSQL.js.map +0 -1
- package/dist/components/QueryEditor/utils/sql.utils.js +0 -103
- package/dist/components/QueryEditor/utils/sql.utils.js.map +0 -1
- package/dist/components/QueryEditor/utils/useSqlChange.js +0 -16
- package/dist/components/QueryEditor/utils/useSqlChange.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +0 -109
- package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorField.js +0 -51
- package/dist/components/QueryEditor/visual-query-builder/EditorField.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorRow.js +0 -24
- package/dist/components/QueryEditor/visual-query-builder/EditorRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/EditorRows.js +0 -11
- package/dist/components/QueryEditor/visual-query-builder/EditorRows.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/GroupByRow.js +0 -33
- package/dist/components/QueryEditor/visual-query-builder/GroupByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/OrderByRow.js +0 -50
- package/dist/components/QueryEditor/visual-query-builder/OrderByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/Preview.js +0 -28
- package/dist/components/QueryEditor/visual-query-builder/Preview.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +0 -13
- package/dist/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +0 -34
- package/dist/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLSelectRow.js +0 -19
- package/dist/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SQLWhereRow.js +0 -35
- package/dist/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/SelectRow.js +0 -68
- package/dist/components/QueryEditor/visual-query-builder/SelectRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js +0 -38
- package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/WhereRow.js +0 -67
- package/dist/components/QueryEditor/visual-query-builder/WhereRow.js.map +0 -1
- package/dist/components/QueryEditor/visual-query-builder/index.js +0 -6
- package/dist/components/QueryEditor/visual-query-builder/index.js.map +0 -1
- package/dist/components/QueryEditorRow/QueryEditorRow.js +0 -16
- package/dist/components/QueryEditorRow/QueryEditorRow.js.map +0 -1
- package/dist/components/SQLEditor/components/SQLEditor.js +0 -330
- package/dist/components/SQLEditor/components/SQLEditor.js.map +0 -1
- package/dist/components/SQLEditor/index.js +0 -25
- package/dist/components/SQLEditor/index.js.map +0 -1
- package/dist/components/SQLEditor/mocks/Monaco.js +0 -23
- package/dist/components/SQLEditor/mocks/Monaco.js.map +0 -1
- package/dist/components/SQLEditor/mocks/TextModel.js +0 -22
- package/dist/components/SQLEditor/mocks/TextModel.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js +0 -216
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +0 -231
- package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +0 -271
- package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +0 -8
- package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js +0 -196
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +0 -211
- package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +0 -251
- package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +0 -386
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +0 -1
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +0 -416
- package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +0 -1
- package/dist/components/SQLEditor/mocks/testData.js +0 -22
- package/dist/components/SQLEditor/mocks/testData.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/definition.js +0 -13
- package/dist/components/SQLEditor/standardSql/definition.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js +0 -26
- package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/getStatementPosition.js +0 -24
- package/dist/components/SQLEditor/standardSql/getStatementPosition.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/language.js +0 -875
- package/dist/components/SQLEditor/standardSql/language.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/macros.js +0 -166
- package/dist/components/SQLEditor/standardSql/macros.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +0 -30
- package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +0 -378
- package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +0 -234
- package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js +0 -153
- package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +0 -1
- package/dist/components/SQLEditor/standardSql/types.js +0 -3
- package/dist/components/SQLEditor/standardSql/types.js.map +0 -1
- package/dist/components/SQLEditor/test-utils/index.js +0 -11
- package/dist/components/SQLEditor/test-utils/index.js.map +0 -1
- package/dist/components/SQLEditor/test-utils/statementPosition.js +0 -40
- package/dist/components/SQLEditor/test-utils/statementPosition.js.map +0 -1
- package/dist/components/SQLEditor/test-utils/types.js +0 -3
- package/dist/components/SQLEditor/test-utils/types.js.map +0 -1
- package/dist/components/SQLEditor/types.js +0 -139
- package/dist/components/SQLEditor/types.js.map +0 -1
- package/dist/components/SQLEditor/utils/LinkedToken.js +0 -147
- package/dist/components/SQLEditor/utils/LinkedToken.js.map +0 -1
- package/dist/components/SQLEditor/utils/commands.js +0 -8
- package/dist/components/SQLEditor/utils/commands.js.map +0 -1
- package/dist/components/SQLEditor/utils/debugger.js +0 -14
- package/dist/components/SQLEditor/utils/debugger.js.map +0 -1
- package/dist/components/SQLEditor/utils/getSuggestionKind.js +0 -18
- package/dist/components/SQLEditor/utils/getSuggestionKind.js.map +0 -1
- package/dist/components/SQLEditor/utils/linkedTokenBuilder.js +0 -46
- package/dist/components/SQLEditor/utils/linkedTokenBuilder.js.map +0 -1
- package/dist/components/SQLEditor/utils/toCompletionItem.js +0 -10
- package/dist/components/SQLEditor/utils/toCompletionItem.js.map +0 -1
- package/dist/components/SQLEditor/utils/tokenUtils.js +0 -72
- package/dist/components/SQLEditor/utils/tokenUtils.js.map +0 -1
- package/dist/components/SQLEditor/utils/types.js +0 -3
- package/dist/components/SQLEditor/utils/types.js.map +0 -1
- package/dist/components/Segment/Segment.js +0 -19
- package/dist/components/Segment/Segment.js.map +0 -1
- package/dist/components/VisualQueryBuilder/QueryModellerBase.js +0 -35
- package/dist/components/VisualQueryBuilder/QueryModellerBase.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js +0 -125
- package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/LabelFilters.js +0 -37
- package/dist/components/VisualQueryBuilder/components/LabelFilters.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationEditor.js +0 -41
- package/dist/components/VisualQueryBuilder/components/OperationEditor.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js +0 -181
- package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js +0 -64
- package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationHeader.js +0 -68
- package/dist/components/VisualQueryBuilder/components/OperationHeader.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js +0 -71
- package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationList.js +0 -132
- package/dist/components/VisualQueryBuilder/components/OperationList.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationListExplained.js +0 -22
- package/dist/components/VisualQueryBuilder/components/OperationListExplained.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js +0 -71
- package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js +0 -24
- package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js +0 -54
- package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +0 -17
- package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +0 -32
- package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js +0 -81
- package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +0 -1
- package/dist/components/VisualQueryBuilder/components/RawQuery.js +0 -25
- package/dist/components/VisualQueryBuilder/components/RawQuery.js.map +0 -1
- package/dist/components/VisualQueryBuilder/index.js +0 -29
- package/dist/components/VisualQueryBuilder/index.js.map +0 -1
- package/dist/components/VisualQueryBuilder/types.js +0 -10
- package/dist/components/VisualQueryBuilder/types.js.map +0 -1
- package/dist/components/index.js +0 -30
- package/dist/components/index.js.map +0 -1
- package/dist/datasource/SqlDatasource.js +0 -161
- package/dist/datasource/SqlDatasource.js.map +0 -1
- package/dist/datasource/constants.js +0 -19
- package/dist/datasource/constants.js.map +0 -1
- package/dist/hooks/useDebounce.js +0 -21
- package/dist/hooks/useDebounce.js.map +0 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +0 -1
- package/dist/src/components/AsyncButtonCascader/AsyncButtonCascader.d.ts +0 -21
- package/dist/src/components/Cascader/Cascader.d.ts +0 -1
- package/dist/src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.d.ts +0 -8
- package/dist/src/components/ConfigEditor/AdvancedSettings/index.d.ts +0 -1
- package/dist/src/components/ConfigEditor/Auth/Auth.d.ts +0 -18
- package/dist/src/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.d.ts +0 -14
- package/dist/src/components/ConfigEditor/Auth/auth-method/BasicAuth.d.ts +0 -17
- package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeader.d.ts +0 -10
- package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeaders.d.ts +0 -8
- package/dist/src/components/ConfigEditor/Auth/index.d.ts +0 -4
- package/dist/src/components/ConfigEditor/Auth/styles.d.ts +0 -4
- package/dist/src/components/ConfigEditor/Auth/tls/SelfSignedCertificate.d.ts +0 -13
- package/dist/src/components/ConfigEditor/Auth/tls/SkipTLSVerification.d.ts +0 -7
- package/dist/src/components/ConfigEditor/Auth/tls/TLSClientAuth.d.ts +0 -20
- package/dist/src/components/ConfigEditor/Auth/tls/TLSSettings.d.ts +0 -11
- package/dist/src/components/ConfigEditor/Auth/tls/TLSSettingsSection.d.ts +0 -9
- package/dist/src/components/ConfigEditor/Auth/types.d.ts +0 -28
- package/dist/src/components/ConfigEditor/Auth/utils.d.ts +0 -12
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.d.ts +0 -8
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigSection.d.ts +0 -5
- package/dist/src/components/ConfigEditor/ConfigSection/ConfigSubSection.d.ts +0 -5
- package/dist/src/components/ConfigEditor/ConfigSection/GenericConfigSection.d.ts +0 -10
- package/dist/src/components/ConfigEditor/ConfigSection/index.d.ts +0 -3
- package/dist/src/components/ConfigEditor/Connection/ConnectionSettings.d.ts +0 -13
- package/dist/src/components/ConfigEditor/Connection/index.d.ts +0 -1
- package/dist/src/components/ConfigEditor/DataSourceDescription.d.ts +0 -9
- package/dist/src/components/ConfigEditor/SecureSocksProxyToggle.d.ts +0 -10
- package/dist/src/components/ConfigEditor/index.d.ts +0 -9
- package/dist/src/components/ConfigEditor/types.d.ts +0 -15
- package/dist/src/components/CustomHeadersSettings/CustomHeadersSettings.d.ts +0 -27
- package/dist/src/components/DataLinks/DataLink.d.ts +0 -13
- package/dist/src/components/DataLinks/DataLinks.d.ts +0 -8
- package/dist/src/components/DataLinks/index.d.ts +0 -3
- package/dist/src/components/DataLinks/types.d.ts +0 -7
- package/dist/src/components/DataSourcePicker/DataSourcePicker.d.ts +0 -34
- package/dist/src/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/src/components/DatePicker/styles.d.ts +0 -11
- package/dist/src/components/DatePickerWithInput/DatePickerWithInput.d.ts +0 -9
- package/dist/src/components/DebounceInput/DebounceInput.d.ts +0 -8
- package/dist/src/components/Plugins/PluginSignatureBadge.d.ts +0 -12
- package/dist/src/components/QueryEditor/AccessoryButton.d.ts +0 -6
- package/dist/src/components/QueryEditor/ConfirmModal.d.ts +0 -9
- package/dist/src/components/QueryEditor/DatasetSelector.d.ts +0 -13
- package/dist/src/components/QueryEditor/EditorField.d.ts +0 -12
- package/dist/src/components/QueryEditor/EditorFieldGroup.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorHeader.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorList.d.ts +0 -8
- package/dist/src/components/QueryEditor/EditorRow.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorRows.d.ts +0 -6
- package/dist/src/components/QueryEditor/EditorStack.d.ts +0 -13
- package/dist/src/components/QueryEditor/EditorSwitch.d.ts +0 -3
- package/dist/src/components/QueryEditor/FlexItem.d.ts +0 -7
- package/dist/src/components/QueryEditor/InlineSelect.d.ts +0 -7
- package/dist/src/components/QueryEditor/InputGroup.d.ts +0 -10
- package/dist/src/components/QueryEditor/QueryEditor.d.ts +0 -8
- package/dist/src/components/QueryEditor/QueryHeader.d.ts +0 -17
- package/dist/src/components/QueryEditor/RunQueryButton.d.ts +0 -13
- package/dist/src/components/QueryEditor/Space.d.ts +0 -14
- package/dist/src/components/QueryEditor/TableSelector.d.ts +0 -13
- package/dist/src/components/QueryEditor/defaults.d.ts +0 -3
- package/dist/src/components/QueryEditor/expressions.d.ts +0 -50
- package/dist/src/components/QueryEditor/index.d.ts +0 -17
- package/dist/src/components/QueryEditor/query-editor-raw/QueryEditorRaw.d.ts +0 -15
- package/dist/src/components/QueryEditor/query-editor-raw/QueryToolbox.d.ts +0 -11
- package/dist/src/components/QueryEditor/query-editor-raw/QueryValidator.d.ts +0 -10
- package/dist/src/components/QueryEditor/query-editor-raw/RawEditor.d.ts +0 -10
- package/dist/src/components/QueryEditor/types.d.ts +0 -149
- package/dist/src/components/QueryEditor/utils/formatSQL.d.ts +0 -1
- package/dist/src/components/QueryEditor/utils/sql.utils.d.ts +0 -14
- package/dist/src/components/QueryEditor/utils/useSqlChange.d.ts +0 -10
- package/dist/src/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.d.ts +0 -7
- package/dist/src/components/QueryEditor/visual-query-builder/EditorField.d.ts +0 -11
- package/dist/src/components/QueryEditor/visual-query-builder/EditorRow.d.ts +0 -6
- package/dist/src/components/QueryEditor/visual-query-builder/EditorRows.d.ts +0 -6
- package/dist/src/components/QueryEditor/visual-query-builder/GroupByRow.d.ts +0 -10
- package/dist/src/components/QueryEditor/visual-query-builder/OrderByRow.d.ts +0 -11
- package/dist/src/components/QueryEditor/visual-query-builder/Preview.d.ts +0 -6
- package/dist/src/components/QueryEditor/visual-query-builder/SQLGroupByRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SQLOrderByRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SQLSelectRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SQLWhereRow.d.ts +0 -12
- package/dist/src/components/QueryEditor/visual-query-builder/SelectRow.d.ts +0 -11
- package/dist/src/components/QueryEditor/visual-query-builder/VisualEditor.d.ts +0 -13
- package/dist/src/components/QueryEditor/visual-query-builder/WhereRow.d.ts +0 -10
- package/dist/src/components/QueryEditor/visual-query-builder/index.d.ts +0 -1
- package/dist/src/components/QueryEditorRow/QueryEditorRow.d.ts +0 -8
- package/dist/src/components/SQLEditor/components/SQLEditor.d.ts +0 -29
- package/dist/src/components/SQLEditor/index.d.ts +0 -7
- package/dist/src/components/SQLEditor/mocks/Monaco.d.ts +0 -3
- package/dist/src/components/SQLEditor/mocks/TextModel.d.ts +0 -7
- package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQuery.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/multiLineMultipleColumns.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineEmptyQuery.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQuery.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineMultipleColumns.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueries.d.ts +0 -2
- package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.d.ts +0 -2
- package/dist/src/components/SQLEditor/standardSql/definition.d.ts +0 -3
- package/dist/src/components/SQLEditor/standardSql/getStandardSuggestions.d.ts +0 -6
- package/dist/src/components/SQLEditor/standardSql/getStatementPosition.d.ts +0 -5
- package/dist/src/components/SQLEditor/standardSql/language.d.ts +0 -23
- package/dist/src/components/SQLEditor/standardSql/macros.d.ts +0 -2
- package/dist/src/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.d.ts +0 -4
- package/dist/src/components/SQLEditor/standardSql/standardSuggestionsRegistry.d.ts +0 -7
- package/dist/src/components/SQLEditor/standardSql/statementPositionResolversRegistry.d.ts +0 -2
- package/dist/src/components/SQLEditor/standardSql/suggestionsKindRegistry.d.ts +0 -7
- package/dist/src/components/SQLEditor/standardSql/types.d.ts +0 -33
- package/dist/src/components/SQLEditor/test-utils/index.d.ts +0 -7
- package/dist/src/components/SQLEditor/test-utils/statementPosition.d.ts +0 -3
- package/dist/src/components/SQLEditor/test-utils/types.d.ts +0 -12
- package/dist/src/components/SQLEditor/types.d.ts +0 -249
- package/dist/src/components/SQLEditor/utils/LinkedToken.d.ts +0 -29
- package/dist/src/components/SQLEditor/utils/commands.d.ts +0 -4
- package/dist/src/components/SQLEditor/utils/debugger.d.ts +0 -5
- package/dist/src/components/SQLEditor/utils/getSuggestionKind.d.ts +0 -7
- package/dist/src/components/SQLEditor/utils/linkedTokenBuilder.d.ts +0 -4
- package/dist/src/components/SQLEditor/utils/toCompletionItem.d.ts +0 -2
- package/dist/src/components/SQLEditor/utils/tokenUtils.d.ts +0 -14
- package/dist/src/components/SQLEditor/utils/types.d.ts +0 -11
- package/dist/src/components/Segment/Segment.d.ts +0 -8
- package/dist/src/components/VisualQueryBuilder/QueryModellerBase.d.ts +0 -18
- package/dist/src/components/VisualQueryBuilder/components/LabelFilterItem.d.ts +0 -18
- package/dist/src/components/VisualQueryBuilder/components/LabelFilters.d.ts +0 -14
- package/dist/src/components/VisualQueryBuilder/components/OperationEditor.d.ts +0 -20
- package/dist/src/components/VisualQueryBuilder/components/OperationEditorBody.d.ts +0 -23
- package/dist/src/components/VisualQueryBuilder/components/OperationExplainedBox.d.ts +0 -7
- package/dist/src/components/VisualQueryBuilder/components/OperationHeader.d.ts +0 -15
- package/dist/src/components/VisualQueryBuilder/components/OperationInfoButton.d.ts +0 -9
- package/dist/src/components/VisualQueryBuilder/components/OperationList.d.ts +0 -15
- package/dist/src/components/VisualQueryBuilder/components/OperationListExplained.d.ts +0 -17
- package/dist/src/components/VisualQueryBuilder/components/OperationParamEditor.d.ts +0 -4
- package/dist/src/components/VisualQueryBuilder/components/OperationsEditorRow.d.ts +0 -2
- package/dist/src/components/VisualQueryBuilder/components/QueryBuilderHints.d.ts +0 -20
- package/dist/src/components/VisualQueryBuilder/components/QueryEditorModeToggle.d.ts +0 -8
- package/dist/src/components/VisualQueryBuilder/components/QueryHeaderSwitch.d.ts +0 -7
- package/dist/src/components/VisualQueryBuilder/components/QueryOptionGroup.d.ts +0 -9
- package/dist/src/components/VisualQueryBuilder/components/RawQuery.d.ts +0 -12
- package/dist/src/components/VisualQueryBuilder/index.d.ts +0 -13
- package/dist/src/components/VisualQueryBuilder/types.d.ts +0 -91
- package/dist/src/components/index.d.ts +0 -15
- package/dist/src/datasource/SqlDatasource.d.ts +0 -62
- package/dist/src/datasource/constants.d.ts +0 -1
- package/dist/src/hooks/useDebounce.d.ts +0 -2
- package/dist/src/index.d.ts +0 -7
- package/dist/src/test/mocks/DataQuery.d.ts +0 -2
- package/dist/src/test/mocks/Datasource.d.ts +0 -40
- package/dist/src/test/mocks/Plugin.d.ts +0 -10
- package/dist/src/test/mocks/QueryEditorProps.d.ts +0 -4
- package/dist/src/test/mocks/index.d.ts +0 -5
- package/dist/src/test/mocks/utils.d.ts +0 -18
- package/dist/src/utils/changeset/functions.d.ts +0 -3
- package/dist/src/utils/changeset/index.d.ts +0 -2
- package/dist/test/mocks/DataQuery.js +0 -14
- package/dist/test/mocks/DataQuery.js.map +0 -1
- package/dist/test/mocks/Datasource.js +0 -78
- package/dist/test/mocks/Datasource.js.map +0 -1
- package/dist/test/mocks/Plugin.js +0 -105
- package/dist/test/mocks/Plugin.js.map +0 -1
- package/dist/test/mocks/QueryEditorProps.js +0 -46
- package/dist/test/mocks/QueryEditorProps.js.map +0 -1
- package/dist/test/mocks/index.js +0 -9
- package/dist/test/mocks/index.js.map +0 -1
- package/dist/test/mocks/utils.js +0 -48
- package/dist/test/mocks/utils.js.map +0 -1
- package/dist/utils/changeset/functions.js +0 -11
- package/dist/utils/changeset/functions.js.map +0 -1
- package/dist/utils/changeset/index.js +0 -99
- package/dist/utils/changeset/index.js.map +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export { QueryEditorRow } from './components/QueryEditorRow/QueryEditorRow.js';
|
|
2
|
+
export { DebounceInput } from './components/DebounceInput/DebounceInput.js';
|
|
3
|
+
export { Segment } from './components/Segment/Segment.js';
|
|
4
|
+
export { DatePicker } from './components/DatePicker/DatePicker.js';
|
|
5
|
+
export { DatePickerWithInput, formatDate } from './components/DatePickerWithInput/DatePickerWithInput.js';
|
|
6
|
+
export { DataSourcePicker } from './components/DataSourcePicker/DataSourcePicker.js';
|
|
7
|
+
export { DataLinks } from './components/DataLinks/DataLinks.js';
|
|
8
|
+
export { DataLink } from './components/DataLinks/DataLink.js';
|
|
9
|
+
export { GroupByRow } from './components/QueryEditor/visual-query-builder/GroupByRow.js';
|
|
10
|
+
export { AccessoryButton } from './components/QueryEditor/AccessoryButton.js';
|
|
11
|
+
export { EditorFieldGroup } from './components/QueryEditor/EditorFieldGroup.js';
|
|
12
|
+
export { EditorHeader } from './components/QueryEditor/EditorHeader.js';
|
|
13
|
+
export { EditorField } from './components/QueryEditor/EditorField.js';
|
|
14
|
+
export { EditorRow } from './components/QueryEditor/EditorRow.js';
|
|
15
|
+
export { EditorList } from './components/QueryEditor/EditorList.js';
|
|
16
|
+
export { EditorRows } from './components/QueryEditor/EditorRows.js';
|
|
17
|
+
export { EditorSwitch } from './components/QueryEditor/EditorSwitch.js';
|
|
18
|
+
export { FlexItem } from './components/QueryEditor/FlexItem.js';
|
|
19
|
+
export { EditorStack } from './components/QueryEditor/EditorStack.js';
|
|
20
|
+
export { InlineSelect } from './components/QueryEditor/InlineSelect.js';
|
|
21
|
+
export { InputGroup } from './components/QueryEditor/InputGroup.js';
|
|
22
|
+
export { Space } from './components/QueryEditor/Space.js';
|
|
23
|
+
export { SqlQueryEditor } from './components/QueryEditor/QueryEditor.js';
|
|
24
|
+
export { RunQueryButton } from './components/QueryEditor/RunQueryButton.js';
|
|
25
|
+
export { EditorMode, QUERY_FORMAT_OPTIONS, QueryFormat, toOption } from './components/QueryEditor/types.js';
|
|
26
|
+
export { SecureSocksProxyToggle } from './components/ConfigEditor/SecureSocksProxyToggle.js';
|
|
27
|
+
export { DataSourceDescription } from './components/ConfigEditor/DataSourceDescription.js';
|
|
28
|
+
export { ConfigSection } from './components/ConfigEditor/ConfigSection/ConfigSection.js';
|
|
29
|
+
export { ConfigSubSection } from './components/ConfigEditor/ConfigSection/ConfigSubSection.js';
|
|
30
|
+
export { ConfigDescriptionLink } from './components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js';
|
|
31
|
+
export { Auth } from './components/ConfigEditor/Auth/Auth.js';
|
|
32
|
+
export { AuthMethod } from './components/ConfigEditor/Auth/types.js';
|
|
33
|
+
export { convertLegacyAuthProps } from './components/ConfigEditor/Auth/utils.js';
|
|
34
|
+
export { TLSSettings } from './components/ConfigEditor/Auth/tls/TLSSettings.js';
|
|
35
|
+
export { ConnectionSettings } from './components/ConfigEditor/Connection/ConnectionSettings.js';
|
|
36
|
+
export { AdvancedHttpSettings } from './components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js';
|
|
37
|
+
export { CustomHeadersSettings } from './components/CustomHeadersSettings/CustomHeadersSettings.js';
|
|
38
|
+
export { QueryModellerBase } from './components/VisualQueryBuilder/QueryModellerBase.js';
|
|
39
|
+
export { LabelFilters } from './components/VisualQueryBuilder/components/LabelFilters.js';
|
|
40
|
+
export { OperationExplainedBox } from './components/VisualQueryBuilder/components/OperationExplainedBox.js';
|
|
41
|
+
export { OperationList } from './components/VisualQueryBuilder/components/OperationList.js';
|
|
42
|
+
export { OperationListExplained } from './components/VisualQueryBuilder/components/OperationListExplained.js';
|
|
43
|
+
export { OperationsEditorRow } from './components/VisualQueryBuilder/components/OperationsEditorRow.js';
|
|
44
|
+
export { QueryBuilderHints } from './components/VisualQueryBuilder/components/QueryBuilderHints.js';
|
|
45
|
+
export { QueryEditorModeToggle } from './components/VisualQueryBuilder/components/QueryEditorModeToggle.js';
|
|
46
|
+
export { QueryHeaderSwitch } from './components/VisualQueryBuilder/components/QueryHeaderSwitch.js';
|
|
47
|
+
export { QueryOptionGroup } from './components/VisualQueryBuilder/components/QueryOptionGroup.js';
|
|
48
|
+
export { RawQuery } from './components/VisualQueryBuilder/components/RawQuery.js';
|
|
49
|
+
export { BINARY_OPERATIONS_KEY, QueryEditorMode } from './components/VisualQueryBuilder/types.js';
|
|
50
|
+
export { SQLEditor } from './components/SQLEditor/components/SQLEditor.js';
|
|
51
|
+
export { SQLEditorTestUtils } from './components/SQLEditor/test-utils/index.js';
|
|
52
|
+
export { LinkedToken } from './components/SQLEditor/utils/LinkedToken.js';
|
|
53
|
+
export { language as grafanaStandardSQLLanguage, conf as grafanaStandardSQLLanguageConf } from './components/SQLEditor/standardSql/language.js';
|
|
54
|
+
export { getStandardSQLCompletionProvider } from './components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js';
|
|
55
|
+
export { CompletionItemInsertTextRule, CompletionItemKind, CompletionItemPriority, MacroType, OperatorType, SQLEditorMode, StatementPosition, SuggestionKind, TokenType } from './components/SQLEditor/types.js';
|
|
56
|
+
export { SqlDatasource } from './datasource/SqlDatasource.js';
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,78 +1,96 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"repository": "git@github.com:grafana/plugin-ui.git",
|
|
5
5
|
"author": "Grafana Labs",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/cjs/index.cjs",
|
|
8
|
+
"module": "dist/esm/index.js",
|
|
9
|
+
"types": "dist/cjs/index.d.cts",
|
|
10
|
+
"exports": {
|
|
11
|
+
"./package.json": "./package.json",
|
|
12
|
+
".": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/esm/index.d.ts",
|
|
15
|
+
"default": "./dist/esm/index.js"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./dist/cjs/index.d.cts",
|
|
19
|
+
"default": "./dist/cjs/index.cjs"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
8
24
|
"scripts": {
|
|
9
|
-
"build": "tsc -p tsconfig.build.json &&
|
|
10
|
-
"
|
|
25
|
+
"build": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.ts --configPlugin esbuild",
|
|
26
|
+
"clean": "rm -rf ./dist ./compiled",
|
|
11
27
|
"test": "jest --watch",
|
|
28
|
+
"test:ci": "jest --ci",
|
|
12
29
|
"spellcheck": "cspell -c cspell.config.json \"**/*.{ts,tsx,js,md,mdx,yml,yaml,json,scss,css}\"",
|
|
13
|
-
"storybook": "
|
|
14
|
-
"storybook:build": "build
|
|
15
|
-
"changeset": "ts-node src/utils/changeset/index.ts",
|
|
30
|
+
"storybook": "storybook dev",
|
|
31
|
+
"storybook:build": "storybook build",
|
|
16
32
|
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
|
|
17
33
|
"lint:fix": "yarn run lint --fix",
|
|
18
|
-
"typecheck": "tsc
|
|
19
|
-
|
|
20
|
-
"bin": {
|
|
21
|
-
"changeset-improved": "./dist/utils/changeset/index.js"
|
|
34
|
+
"typecheck": "tsc",
|
|
35
|
+
"verify-types": "attw --pack ."
|
|
22
36
|
},
|
|
23
37
|
"dependencies": {
|
|
38
|
+
"@emotion/css": "^11.11.2",
|
|
24
39
|
"@hello-pangea/dnd": "^17.0.0",
|
|
40
|
+
"@types/prismjs": "^1.26.4",
|
|
25
41
|
"lodash": "^4.17.21",
|
|
26
42
|
"prismjs": "^1.29.0",
|
|
27
|
-
"prompts": "^2.4.2",
|
|
28
|
-
"rc-cascader": "1.0.1",
|
|
29
43
|
"react-awesome-query-builder": "^5.3.1",
|
|
44
|
+
"react-calendar": "^4.8.0",
|
|
30
45
|
"react-popper-tooltip": "^4.4.2",
|
|
31
|
-
"react-use": "17.3.1",
|
|
46
|
+
"react-use": "^17.3.1",
|
|
32
47
|
"react-virtualized-auto-sizer": "^1.0.6",
|
|
33
48
|
"sql-formatter-plus": "^1.3.6",
|
|
34
49
|
"uuid": "^8.3.2"
|
|
35
50
|
},
|
|
36
51
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@babel/plugin-transform-classes": "7.10.4",
|
|
39
|
-
"@babel/plugin-transform-runtime": "^7.12.10",
|
|
40
|
-
"@babel/preset-env": "^7.12.7",
|
|
41
|
-
"@babel/preset-react": "^7.12.7",
|
|
42
|
-
"@babel/preset-typescript": "^7.12.7",
|
|
43
|
-
"@changesets/cli": "^2.26.2",
|
|
44
|
-
"@changesets/read": "^0.5.9",
|
|
45
|
-
"@changesets/types": "^5.2.1",
|
|
46
|
-
"@changesets/write": "^0.2.3",
|
|
52
|
+
"@arethetypeswrong/cli": "^0.17.3",
|
|
47
53
|
"@grafana/data": "^10.4.0",
|
|
48
54
|
"@grafana/e2e-selectors": "^10.4.0",
|
|
49
|
-
"@grafana/eslint-config": "^
|
|
55
|
+
"@grafana/eslint-config": "^8.0.0",
|
|
50
56
|
"@grafana/runtime": "^10.4.0",
|
|
51
57
|
"@grafana/tsconfig": "^1.3.0-rc1",
|
|
52
58
|
"@grafana/ui": "^10.4.0",
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@storybook/addon-
|
|
59
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
60
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
61
|
+
"@storybook/addon-actions": "^8.5.2",
|
|
62
|
+
"@storybook/addon-essentials": "^8.5.2",
|
|
63
|
+
"@storybook/addon-links": "^8.5.2",
|
|
64
|
+
"@storybook/addon-mdx-gfm": "^8.5.2",
|
|
65
|
+
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
|
|
56
66
|
"@storybook/addons": "^6.5.16",
|
|
57
|
-
"@storybook/react": "^
|
|
58
|
-
"@storybook/
|
|
67
|
+
"@storybook/react": "^8.5.2",
|
|
68
|
+
"@storybook/react-webpack5": "^8.5.2",
|
|
69
|
+
"@storybook/theming": "^8.5.2",
|
|
70
|
+
"@stylistic/eslint-plugin-ts": "^2.9.0",
|
|
71
|
+
"@swc/jest": "^0.2.37",
|
|
59
72
|
"@testing-library/jest-dom": "5.16.5",
|
|
60
73
|
"@testing-library/react": "15.0.2",
|
|
61
74
|
"@testing-library/user-event": "14.5.2",
|
|
62
75
|
"@types/chance": "^1.1.0",
|
|
63
76
|
"@types/lodash": "^4.14.194",
|
|
64
77
|
"@types/memoize-one": "^5.1.2",
|
|
65
|
-
"@types/
|
|
66
|
-
"@types/prompts": "^2.4.4",
|
|
67
|
-
"@types/react": "17.0.38",
|
|
78
|
+
"@types/react": "18.3.18",
|
|
68
79
|
"@types/react-calendar": "^3.1.2",
|
|
69
80
|
"@types/testing-library__jest-dom": "^5.9.5",
|
|
70
81
|
"@types/uuid": "^8.3.2",
|
|
71
|
-
"
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^6.18.0",
|
|
83
|
+
"@typescript-eslint/parser": "^6.18.0",
|
|
72
84
|
"chance": "^1.1.7",
|
|
73
85
|
"copyfiles": "^2.4.1",
|
|
74
86
|
"cspell": "^8.14.4",
|
|
87
|
+
"esbuild": "^0.24.2",
|
|
88
|
+
"eslint": "^8.52.0",
|
|
89
|
+
"eslint-config-prettier": "^8.8.0",
|
|
90
|
+
"eslint-plugin-jsdoc": "^46.8.2",
|
|
75
91
|
"eslint-plugin-prettier": "^5.2.1",
|
|
92
|
+
"eslint-plugin-react": "^7.33.2",
|
|
93
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
76
94
|
"fast-glob": "^3.3.1",
|
|
77
95
|
"jest": "^29.7.0",
|
|
78
96
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -83,13 +101,16 @@
|
|
|
83
101
|
"react": "18.2.0",
|
|
84
102
|
"react-dom": "18.2.0",
|
|
85
103
|
"react-select-event": "^5.5.1",
|
|
104
|
+
"rollup": "^4.32.1",
|
|
105
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
106
|
+
"rollup-plugin-esbuild": "^6.1.1",
|
|
107
|
+
"rollup-plugin-node-externals": "^8.0.0",
|
|
86
108
|
"rxjs": "^7.8.1",
|
|
87
|
-
"
|
|
109
|
+
"storybook": "^8.5.2",
|
|
88
110
|
"ts-node": "^10.9.1",
|
|
89
|
-
"typescript": "^
|
|
111
|
+
"typescript": "^5.7.3"
|
|
90
112
|
},
|
|
91
113
|
"peerDependencies": {
|
|
92
|
-
"@changesets/cli": ">=2.x",
|
|
93
114
|
"@grafana/data": "^10.4.0 || ^11.0.0",
|
|
94
115
|
"@grafana/e2e-selectors": "^10.4.0 || ^11.0.0",
|
|
95
116
|
"@grafana/runtime": "^10.4.0 || ^11.0.0",
|
|
@@ -99,7 +120,7 @@
|
|
|
99
120
|
"rxjs": "^7.8.1"
|
|
100
121
|
},
|
|
101
122
|
"files": [
|
|
102
|
-
"dist
|
|
103
|
-
|
|
104
|
-
|
|
123
|
+
"dist"
|
|
124
|
+
],
|
|
125
|
+
"packageManager": "yarn@4.6.0"
|
|
105
126
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AsyncButtonCascader = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const ui_1 = require("@grafana/ui");
|
|
7
|
-
const css_1 = require("@emotion/css");
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
const rc_cascader_1 = tslib_1.__importDefault(require("rc-cascader"));
|
|
10
|
-
const getStyles = (theme) => {
|
|
11
|
-
return {
|
|
12
|
-
popup: (0, css_1.css) `
|
|
13
|
-
label: popup;
|
|
14
|
-
z-index: ${theme.zIndex.dropdown};
|
|
15
|
-
`,
|
|
16
|
-
icon: (0, css_1.css) `
|
|
17
|
-
margin: 1px 0 0 4px;
|
|
18
|
-
`,
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
const AsyncButtonCascader = (props) => {
|
|
22
|
-
const { onChange, className, loadData } = props, rest = tslib_1.__rest(props, ["onChange", "className", "loadData"]);
|
|
23
|
-
const theme = (0, ui_1.useTheme2)();
|
|
24
|
-
const styles = getStyles(theme);
|
|
25
|
-
return (react_1.default.createElement(rc_cascader_1.default, Object.assign({ onChange: onChange, loadData: loadData, changeOnSelect: true, popupClassName: styles.popup }, rest, { expandIcon: null }),
|
|
26
|
-
react_1.default.createElement("button", { className: (0, css_1.cx)('gf-form-label', className), disabled: props.disabled },
|
|
27
|
-
props.children,
|
|
28
|
-
" ",
|
|
29
|
-
react_1.default.createElement(ui_1.Icon, { name: "angle-down", className: styles.icon }))));
|
|
30
|
-
};
|
|
31
|
-
exports.AsyncButtonCascader = AsyncButtonCascader;
|
|
32
|
-
exports.AsyncButtonCascader.displayName = 'AsyncButtonCascader';
|
|
33
|
-
//# sourceMappingURL=AsyncButtonCascader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncButtonCascader.js","sourceRoot":"","sources":["../../../src/components/AsyncButtonCascader/AsyncButtonCascader.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,oCAA8C;AAE9C,sCAAuC;AAEvC,aAAa;AACb,sEAAyD;AAczD,MAAM,SAAS,GAAG,CAAC,KAAoB,EAAE,EAAE;IACzC,OAAO;QACL,KAAK,EAAE,IAAA,SAAG,EAAA;;iBAEG,KAAK,CAAC,MAAM,CAAC,QAAQ;KACjC;QACD,IAAI,EAAE,IAAA,SAAG,EAAA;;KAER;KACF,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,KAA+B,EAAE,EAAE;IACrE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,KAAc,KAAK,EAAd,IAAI,kBAAK,KAAK,EAAlD,qCAA0C,CAAQ,CAAC;IACzD,MAAM,KAAK,GAAG,IAAA,cAAS,GAAE,CAAC;IAC1B,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAEhC,OAAO,CACL,8BAAC,qBAAU,kBACT,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,IAAI,EACpB,cAAc,EAAE,MAAM,CAAC,KAAK,IACxB,IAAI,IACR,UAAU,EAAE,IAAI;QAEhB,0CAAQ,SAAS,EAAE,IAAA,QAAE,EAAC,eAAe,EAAE,SAAS,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxE,KAAK,CAAC,QAAQ;;YAAE,8BAAC,SAAI,IAAC,IAAI,EAAC,YAAY,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,CAC5D,CACE,CACd,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,mBAAmB,uBAmB9B;AAEF,2BAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cascader = void 0;
|
|
4
|
-
var ui_1 = require("@grafana/ui");
|
|
5
|
-
Object.defineProperty(exports, "Cascader", { enumerable: true, get: function () { return ui_1.Cascader; } });
|
|
6
|
-
//# sourceMappingURL=Cascader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cascader.js","sourceRoot":"","sources":["../../../src/components/Cascader/Cascader.tsx"],"names":[],"mappings":";;;AAAA,kCAAuC;AAA9B,8FAAA,QAAQ,OAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdvancedHttpSettings = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const css_1 = require("@emotion/css");
|
|
7
|
-
const ui_1 = require("@grafana/ui");
|
|
8
|
-
const ConfigSection_1 = require("../ConfigSection");
|
|
9
|
-
const AdvancedHttpSettings = ({ config, onChange, className, }) => {
|
|
10
|
-
const onCookiesChange = (cookies) => {
|
|
11
|
-
onChange(Object.assign(Object.assign({}, config), { jsonData: Object.assign(Object.assign({}, config.jsonData), { keepCookies: cookies }) }));
|
|
12
|
-
};
|
|
13
|
-
const onTimeoutChange = (event) => {
|
|
14
|
-
onChange(Object.assign(Object.assign({}, config), { jsonData: Object.assign(Object.assign({}, config.jsonData), { timeout: parseInt(event.currentTarget.value, 10) }) }));
|
|
15
|
-
};
|
|
16
|
-
const styles = {
|
|
17
|
-
container: (0, css_1.css)({
|
|
18
|
-
maxWidth: 578,
|
|
19
|
-
}),
|
|
20
|
-
};
|
|
21
|
-
return (react_1.default.createElement(ConfigSection_1.ConfigSubSection, { title: "Advanced HTTP settings", className: (0, css_1.cx)(styles.container, className) },
|
|
22
|
-
react_1.default.createElement(ui_1.InlineField, { htmlFor: "advanced-http-cookies", label: "Allowed cookies", labelWidth: 24, tooltip: "Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.", disabled: config.readOnly, grow: true },
|
|
23
|
-
react_1.default.createElement(ui_1.TagsInput, { id: "advanced-http-cookies", placeholder: "New cookie (hit enter to add)", tags: config.jsonData.keepCookies, onChange: onCookiesChange })),
|
|
24
|
-
react_1.default.createElement(ui_1.InlineField, { htmlFor: "advanced-http-timeout", label: "Timeout", labelWidth: 24, tooltip: "HTTP request timeout in seconds", disabled: config.readOnly, grow: true },
|
|
25
|
-
react_1.default.createElement(ui_1.Input, { id: "advanced-http-timeout", type: "number", min: 0, placeholder: "Timeout in seconds", "aria-label": "Timeout in seconds", value: config.jsonData.timeout, onChange: onTimeoutChange }))));
|
|
26
|
-
};
|
|
27
|
-
exports.AdvancedHttpSettings = AdvancedHttpSettings;
|
|
28
|
-
//# sourceMappingURL=AdvancedHttpSettings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedHttpSettings.js","sourceRoot":"","sources":["../../../../src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,sCAAuC;AACvC,oCAA4D;AAC5D,oD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UAAK,IACJ,EAAE,EAAC,uBAAuB,EAC1B,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,CAAC,EACN,WAAW,EAAC,oBAAoB,gBACrB,oBAAoB,EAC/B,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,EAC9B,QAAQ,EAAE,eAAe,GACzB,CACU,CACG,CACpB,CAAC;AACJ,CAAC,CAAC;AArEW,QAAA,oBAAoB,wBAqE/B"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdvancedHttpSettings = void 0;
|
|
4
|
-
var AdvancedHttpSettings_1 = require("./AdvancedHttpSettings");
|
|
5
|
-
Object.defineProperty(exports, "AdvancedHttpSettings", { enumerable: true, get: function () { return AdvancedHttpSettings_1.AdvancedHttpSettings; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ConfigEditor/AdvancedSettings/index.ts"],"names":[],"mappings":";;;AAAA,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Auth = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const css_1 = require("@emotion/css");
|
|
7
|
-
const AuthMethodSettings_1 = require("./auth-method/AuthMethodSettings");
|
|
8
|
-
const TLSSettings_1 = require("./tls/TLSSettings");
|
|
9
|
-
const CustomHeaders_1 = require("./custom-headers/CustomHeaders");
|
|
10
|
-
const ConfigSection_1 = require("../ConfigSection");
|
|
11
|
-
const Auth = ({ selectedMethod, mostCommonMethod, visibleMethods, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, TLS, customHeaders, readOnly = false, }) => {
|
|
12
|
-
const styles = {
|
|
13
|
-
container: (0, css_1.css)({
|
|
14
|
-
maxWidth: 578,
|
|
15
|
-
}),
|
|
16
|
-
};
|
|
17
|
-
return (react_1.default.createElement("div", { className: styles.container },
|
|
18
|
-
react_1.default.createElement(ConfigSection_1.ConfigSection, { title: "Authentication" },
|
|
19
|
-
react_1.default.createElement(AuthMethodSettings_1.AuthMethodSettings, { selectedMethod: selectedMethod, mostCommonMethod: mostCommonMethod, customMethods: customMethods, visibleMethods: visibleMethods, defaultOptionsOverrides: defaultOptionsOverrides, onAuthMethodSelect: onAuthMethodSelect, basicAuth: basicAuth, readOnly: readOnly }),
|
|
20
|
-
TLS && react_1.default.createElement(TLSSettings_1.TLSSettings, Object.assign({}, TLS, { readOnly: readOnly })),
|
|
21
|
-
customHeaders && react_1.default.createElement(CustomHeaders_1.CustomHeaders, Object.assign({}, customHeaders, { readOnly: readOnly })))));
|
|
22
|
-
};
|
|
23
|
-
exports.Auth = Auth;
|
|
24
|
-
//# sourceMappingURL=Auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Auth.js","sourceRoot":"","sources":["../../../../src/components/ConfigEditor/Auth/Auth.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,sCAAmC;AAEnC,yEAAsE;AACtE,mDAA2E;AAE3E,kEAA4F;AAC5F,oDAAiD;AAe1C,MAAM,IAAI,GAAG,CAAC,EACnB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,GAAG,EACH,aAAa,EACb,QAAQ,GAAG,KAAK,GACV,EAAE,EAAE;IACV,MAAM,MAAM,GAAG;QACb,SAAS,EAAE,IAAA,SAAG,EAAC;YACb,QAAQ,EAAE,GAAG;SACd,CAAC;KACH,CAAC;IAEF,OAAO,CACL,uCAAK,SAAS,EAAE,MAAM,CAAC,SAAS;QAC9B,8BAAC,6BAAa,IAAC,KAAK,EAAC,gBAAgB;YACnC,8BAAC,uCAAkB,IACjB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,uBAAuB,EAAE,uBAAuB,EAChD,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,GAClB;YACD,GAAG,IAAI,8BAAC,yBAAW,oBAAK,GAAG,IAAE,QAAQ,EAAE,QAAQ,IAAI;YACnD,aAAa,IAAI,8BAAC,6BAAa,oBAAK,aAAa,IAAE,QAAQ,EAAE,QAAQ,IAAI,CAC5D,CACZ,CACP,CAAC;AACJ,CAAC,CAAC;AApCW,QAAA,IAAI,QAoCf"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthMethodSettings = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const css_1 = require("@emotion/css");
|
|
7
|
-
const ui_1 = require("@grafana/ui");
|
|
8
|
-
const BasicAuth_1 = require("./BasicAuth");
|
|
9
|
-
const ConfigSection_1 = require("../../ConfigSection");
|
|
10
|
-
const types_1 = require("../types");
|
|
11
|
-
const defaultOptions = {
|
|
12
|
-
[types_1.AuthMethod.BasicAuth]: {
|
|
13
|
-
label: 'Basic authentication',
|
|
14
|
-
value: types_1.AuthMethod.BasicAuth,
|
|
15
|
-
description: 'Authenticate with your data source username and password',
|
|
16
|
-
},
|
|
17
|
-
[types_1.AuthMethod.CrossSiteCredentials]: {
|
|
18
|
-
label: 'Enable cross-site access control requests',
|
|
19
|
-
value: types_1.AuthMethod.CrossSiteCredentials,
|
|
20
|
-
description: 'Allow cross-site Access-Control requests with your existing credentials and cookies. This enables the server to authenticate the user and perform authorized requests on their behalf on other domains.',
|
|
21
|
-
},
|
|
22
|
-
[types_1.AuthMethod.OAuthForward]: {
|
|
23
|
-
label: 'Forward OAuth Identity',
|
|
24
|
-
value: types_1.AuthMethod.OAuthForward,
|
|
25
|
-
description: 'Forward the OAuth access token (and if available: the OIDC ID token) of the user querying to the data source',
|
|
26
|
-
},
|
|
27
|
-
[types_1.AuthMethod.NoAuth]: {
|
|
28
|
-
label: 'No Authentication',
|
|
29
|
-
value: types_1.AuthMethod.NoAuth,
|
|
30
|
-
description: 'Data source is available without authentication',
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
const AuthMethodSettings = ({ selectedMethod, mostCommonMethod, visibleMethods: visibleMethodsFromProps, defaultOptionsOverrides, customMethods, onAuthMethodSelect, basicAuth, readOnly, }) => {
|
|
34
|
-
var _a, _b, _c, _d;
|
|
35
|
-
const [authMethodChanged, setAuthMethodChanged] = (0, react_1.useState)(false);
|
|
36
|
-
const { colors, spacing } = (0, ui_1.useTheme2)();
|
|
37
|
-
const visibleMethods = (0, react_1.useMemo)(() => {
|
|
38
|
-
var _a;
|
|
39
|
-
return visibleMethodsFromProps !== null && visibleMethodsFromProps !== void 0 ? visibleMethodsFromProps : [
|
|
40
|
-
types_1.AuthMethod.BasicAuth,
|
|
41
|
-
types_1.AuthMethod.OAuthForward,
|
|
42
|
-
types_1.AuthMethod.NoAuth,
|
|
43
|
-
...((_a = customMethods === null || customMethods === void 0 ? void 0 : customMethods.map((m) => m.id)) !== null && _a !== void 0 ? _a : []),
|
|
44
|
-
];
|
|
45
|
-
}, [customMethods, visibleMethodsFromProps]);
|
|
46
|
-
const hasSelect = visibleMethods.length > 1;
|
|
47
|
-
const preparedOptions = (0, react_1.useMemo)(() => {
|
|
48
|
-
var _a;
|
|
49
|
-
const customOptions = (_a = customMethods === null || customMethods === void 0 ? void 0 : customMethods.reduce((acc, method) => {
|
|
50
|
-
acc[method.id] = {
|
|
51
|
-
label: method.label,
|
|
52
|
-
value: method.id,
|
|
53
|
-
description: method.description,
|
|
54
|
-
};
|
|
55
|
-
return acc;
|
|
56
|
-
}, {})) !== null && _a !== void 0 ? _a : {};
|
|
57
|
-
const preparedDefaultOptions = {};
|
|
58
|
-
let k;
|
|
59
|
-
for (k in defaultOptions) {
|
|
60
|
-
preparedDefaultOptions[k] = Object.assign(Object.assign({}, defaultOptions[k]), defaultOptionsOverrides === null || defaultOptionsOverrides === void 0 ? void 0 : defaultOptionsOverrides[k]);
|
|
61
|
-
}
|
|
62
|
-
const allOptions = Object.assign(Object.assign({}, customOptions), preparedDefaultOptions);
|
|
63
|
-
return visibleMethods
|
|
64
|
-
.filter((method) => Boolean(allOptions[method]))
|
|
65
|
-
.map((method) => {
|
|
66
|
-
const option = allOptions[method];
|
|
67
|
-
if (method === mostCommonMethod && hasSelect) {
|
|
68
|
-
return Object.assign(Object.assign({}, option), { label: `${option.label} (most common)` });
|
|
69
|
-
}
|
|
70
|
-
return option;
|
|
71
|
-
});
|
|
72
|
-
}, [visibleMethods, customMethods, defaultOptionsOverrides, mostCommonMethod, hasSelect]);
|
|
73
|
-
let selected = selectedMethod;
|
|
74
|
-
if (!hasSelect) {
|
|
75
|
-
selected = visibleMethods[0];
|
|
76
|
-
}
|
|
77
|
-
else if (selectedMethod === types_1.AuthMethod.NoAuth && mostCommonMethod && !authMethodChanged) {
|
|
78
|
-
selected = mostCommonMethod;
|
|
79
|
-
}
|
|
80
|
-
let AuthFieldsComponent = null;
|
|
81
|
-
if (selected === types_1.AuthMethod.BasicAuth && basicAuth) {
|
|
82
|
-
AuthFieldsComponent = react_1.default.createElement(BasicAuth_1.BasicAuth, Object.assign({}, basicAuth, { readOnly: readOnly }));
|
|
83
|
-
}
|
|
84
|
-
else if (selected.startsWith('custom-')) {
|
|
85
|
-
AuthFieldsComponent = (_b = (_a = customMethods === null || customMethods === void 0 ? void 0 : customMethods.find((m) => m.id === selected)) === null || _a === void 0 ? void 0 : _a.component) !== null && _b !== void 0 ? _b : null;
|
|
86
|
-
}
|
|
87
|
-
const title = hasSelect ? 'Authentication methods' : (_c = preparedOptions[0].label) !== null && _c !== void 0 ? _c : '';
|
|
88
|
-
const description = hasSelect
|
|
89
|
-
? 'Choose an authentication method to access the data source'
|
|
90
|
-
: (_d = preparedOptions[0].description) !== null && _d !== void 0 ? _d : '';
|
|
91
|
-
const styles = {
|
|
92
|
-
authMethods: (0, css_1.css)(Object.assign({ marginTop: spacing(2.5) }, (hasSelect && {
|
|
93
|
-
padding: spacing(2),
|
|
94
|
-
border: `1px solid ${colors.border.weak}`,
|
|
95
|
-
}))),
|
|
96
|
-
selectedMethodFields: (0, css_1.css)({
|
|
97
|
-
marginTop: spacing(1.5),
|
|
98
|
-
}),
|
|
99
|
-
};
|
|
100
|
-
return (react_1.default.createElement(ConfigSection_1.ConfigSubSection, { title: title, description: description },
|
|
101
|
-
react_1.default.createElement("div", { className: styles.authMethods },
|
|
102
|
-
hasSelect && (react_1.default.createElement(ui_1.Field, { label: "Authentication method" },
|
|
103
|
-
react_1.default.createElement(ui_1.Select, { inputId: "auth-method-select", options: preparedOptions, value: selected, onChange: (option) => {
|
|
104
|
-
setAuthMethodChanged(true);
|
|
105
|
-
onAuthMethodSelect(option.value);
|
|
106
|
-
}, disabled: readOnly }))),
|
|
107
|
-
AuthFieldsComponent && react_1.default.createElement("div", { className: styles.selectedMethodFields }, AuthFieldsComponent))));
|
|
108
|
-
};
|
|
109
|
-
exports.AuthMethodSettings = AuthMethodSettings;
|
|
110
|
-
//# sourceMappingURL=AuthMethodSettings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMethodSettings.js","sourceRoot":"","sources":["../../../../../src/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.tsx"],"names":[],"mappings":";;;;AAAA,uDAA+D;AAC/D,sCAAmC;AACnC,oCAAuD;AAEvD,2CAAiE;AACjE,uDAAuD;AACvD,oCAA4F;AAE5F,MAAM,cAAc,GAAoD;IACtE,CAAC,kBAAU,CAAC,SAAS,C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CAAC,MAAM,CAAC,IAAI,EAAE;SAC1C,CAAC,EACF;QACF,oBAAoB,EAAE,IAAA,SAAG,EAAC;YACxB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC;SACxB,CAAC;KACH,CAAC;IAEF,OAAO,CACL,8BAAC,gCAAgB,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW;QACtD,uCAAK,SAAS,EAAE,MAAM,CAAC,WAAW;YAC/B,SAAS,IAAI,CACZ,8BAAC,UAAK,IAAC,KAAK,EAAC,uBAAuB;gBAClC,8BAAC,WAAM,IACL,OAAO,EAAC,oBAAoB,EAC5B,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;wBACnB,oBAAoB,CAAC,IAAI,CAAC,CAAC;wBAC3B,kBAAkB,CAAC,MAAM,CAAC,KAAM,CAAC,CAAC;oBACpC,CAAC,EACD,QAAQ,EAAE,QAAQ,GAClB,CACI,CACT;YACA,mBAAmB,IAAI,uCAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,IAAG,mBAAmB,CAAO,CAC5F,CACW,CACpB,CAAC;AACJ,CAAC,CAAC;AArHW,QAAA,kBAAkB,sBAqH7B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BasicAuth = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const css_1 = require("@emotion/css");
|
|
7
|
-
const ui_1 = require("@grafana/ui");
|
|
8
|
-
const styles_1 = require("../styles");
|
|
9
|
-
const BasicAuth = ({ user, passwordConfigured, userLabel = 'User', userTooltip = 'The username of the data source account', userPlaceholder = 'User', passwordLabel = 'Password', passwordTooltip = 'The password of the data source account', passwordPlaceholder = 'Password', onUserChange, onPasswordChange, onPasswordReset, readOnly, }) => {
|
|
10
|
-
const commonStyles = (0, styles_1.useCommonStyles)();
|
|
11
|
-
const styles = {
|
|
12
|
-
lastInlineField: (0, css_1.css)({
|
|
13
|
-
marginBottom: 0,
|
|
14
|
-
}),
|
|
15
|
-
};
|
|
16
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
17
|
-
react_1.default.createElement(ui_1.InlineField, { className: commonStyles.inlineFieldNoMarginRight, label: userLabel, labelWidth: 24, tooltip: userTooltip, required: true, htmlFor: "basic-auth-user-input", interactive: true, grow: true, disabled: readOnly },
|
|
18
|
-
react_1.default.createElement(ui_1.Input, { id: "basic-auth-user-input", placeholder: userPlaceholder, value: user, onChange: (e) => onUserChange(e.currentTarget.value), required: true })),
|
|
19
|
-
react_1.default.createElement(ui_1.InlineField, { className: (0, css_1.cx)(commonStyles.inlineFieldNoMarginRight, commonStyles.inlineFieldWithSecret, styles.lastInlineField), label: passwordLabel, labelWidth: 24, tooltip: passwordTooltip, required: true, htmlFor: "basic-auth-password-input", interactive: true, grow: true, disabled: readOnly },
|
|
20
|
-
react_1.default.createElement(ui_1.SecretInput, { id: "basic-auth-password-input", isConfigured: passwordConfigured, onReset: readOnly ? () => { } : onPasswordReset, placeholder: passwordPlaceholder, onChange: (e) => onPasswordChange(e.currentTarget.value), required: true }))));
|
|
21
|
-
};
|
|
22
|
-
exports.BasicAuth = BasicAuth;
|
|
23
|
-
//# sourceMappingURL=BasicAuth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BasicAuth.js","sourceRoot":"","sources":["../../../../../src/components/ConfigEditor/Auth/auth-method/BasicAuth.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,sCAAuC;AACvC,oCAA8E;AAC9E,sCAA4C;AAiBrC,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,kBAAkB,EAClB,SAAS,GAAG,MAAM,EAClB,WAAW,GAAG,yCAAyC,EACvD,eAAe,GAAG,MAAM,EACxB,aAAa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AAE,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,EACxD,QAAQ,SACR,CACU,CACb,CACJ,CAAC;AACJ,CAAC,CAAC;AAnEW,QAAA,SAAS,aAmEpB"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomHeader = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const css_1 = require("@emotion/css");
|
|
7
|
-
const ui_1 = require("@grafana/ui");
|
|
8
|
-
const styles_1 = require("../styles");
|
|
9
|
-
const CustomHeader = ({ header, onChange, onBlur, onDelete, readOnly }) => {
|
|
10
|
-
const { spacing } = (0, ui_1.useTheme2)();
|
|
11
|
-
const commonStyles = (0, styles_1.useCommonStyles)();
|
|
12
|
-
const styles = {
|
|
13
|
-
container: (0, css_1.css)({
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
}),
|
|
16
|
-
input: (0, css_1.css)({
|
|
17
|
-
minWidth: '100%',
|
|
18
|
-
}),
|
|
19
|
-
headerNameField: (0, css_1.css)({
|
|
20
|
-
width: '40%',
|
|
21
|
-
marginRight: 0,
|
|
22
|
-
paddingRight: spacing(1),
|
|
23
|
-
}),
|
|
24
|
-
headerValueField: (0, css_1.css)({
|
|
25
|
-
width: '45%',
|
|
26
|
-
marginRight: 0,
|
|
27
|
-
}),
|
|
28
|
-
removeHeaderBtn: (0, css_1.css)({
|
|
29
|
-
margin: `0 0 3px 10px`,
|
|
30
|
-
}),
|
|
31
|
-
};
|
|
32
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
33
|
-
react_1.default.createElement(ui_1.InlineFieldRow, { className: styles.container },
|
|
34
|
-
react_1.default.createElement(ui_1.InlineField, { label: "Header", labelWidth: 9, grow: true, className: styles.headerNameField, htmlFor: `custom-header-${header.id}-name-input`, disabled: readOnly },
|
|
35
|
-
react_1.default.createElement(ui_1.Input, { id: `custom-header-${header.id}-name-input`, placeholder: "X-Custom-Header", value: header.name, width: 12, onChange: (e) => onChange(Object.assign(Object.assign({}, header), { name: e.currentTarget.value })), onBlur: onBlur, className: styles.input })),
|
|
36
|
-
react_1.default.createElement(ui_1.InlineField, { label: "Value", labelWidth: 9, grow: true, className: (0, css_1.cx)(commonStyles.inlineFieldWithSecret, styles.headerValueField), htmlFor: `custom-header-${header.id}-value-input`, disabled: readOnly },
|
|
37
|
-
react_1.default.createElement(ui_1.SecretInput, { id: `custom-header-${header.id}-value-input`, isConfigured: header.configured, placeholder: "Header value", value: header.value, width: 12, onChange: (e) => onChange(Object.assign(Object.assign({}, header), { value: e.currentTarget.value })), onReset: readOnly ? () => { } : () => onChange(Object.assign(Object.assign({}, header), { configured: false, value: '' })), onBlur: onBlur, className: styles.input })),
|
|
38
|
-
react_1.default.createElement(ui_1.IconButton, { name: "trash-alt", tooltip: "Remove header", tooltipPlacement: "top", className: styles.removeHeaderBtn, onClick: onDelete, type: "button", disabled: readOnly }))));
|
|
39
|
-
};
|
|
40
|
-
exports.CustomHeader = CustomHeader;
|
|
41
|
-
//# sourceMappingURL=CustomHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomHeader.js","sourceRoot":"","sources":["../../../../../src/components/ConfigEditor/Auth/custom-headers/CustomHeader.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,sCAAuC;AACvC,oCAAqG;AAErG,sCAA4C;AAUrC,MAAM,YAAY,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAS,EAAE,EAAE;IACtF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,cAAS,GAAE,CAAC;IAChC,MAAM,YAAY,GAAG,IAAA,wBAAe,GAAE,CAAC;IACvC,MAAM,MAAM,GAAG;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