@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.
Files changed (729) hide show
  1. package/dist/cjs/index.d.cts +1205 -0
  2. package/dist/cjs/index.js +9739 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +80 -0
  5. package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +1 -0
  6. package/dist/esm/components/ConfigEditor/Auth/Auth.js +43 -0
  7. package/dist/esm/components/ConfigEditor/Auth/Auth.js.map +1 -0
  8. package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +132 -0
  9. package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +1 -0
  10. package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js +82 -0
  11. package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +1 -0
  12. package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +91 -0
  13. package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +1 -0
  14. package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +101 -0
  15. package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +1 -0
  16. package/dist/esm/components/ConfigEditor/Auth/styles.js +18 -0
  17. package/dist/esm/components/ConfigEditor/Auth/styles.js.map +1 -0
  18. package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +58 -0
  19. package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +1 -0
  20. package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +18 -0
  21. package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +1 -0
  22. package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js +114 -0
  23. package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +1 -0
  24. package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js +31 -0
  25. package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js.map +1 -0
  26. package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +35 -0
  27. package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +1 -0
  28. package/dist/esm/components/ConfigEditor/Auth/types.js +12 -0
  29. package/dist/esm/components/ConfigEditor/Auth/types.js.map +1 -0
  30. package/dist/esm/components/ConfigEditor/Auth/utils.js +200 -0
  31. package/dist/esm/components/ConfigEditor/Auth/utils.js.map +1 -0
  32. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +38 -0
  33. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +1 -0
  34. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js +9 -0
  35. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js.map +1 -0
  36. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js +9 -0
  37. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +1 -0
  38. package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js +55 -0
  39. package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +1 -0
  40. package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js +53 -0
  41. package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js.map +1 -0
  42. package/dist/esm/components/ConfigEditor/DataSourceDescription.js +32 -0
  43. package/dist/esm/components/ConfigEditor/DataSourceDescription.js.map +1 -0
  44. package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js +45 -0
  45. package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js.map +1 -0
  46. package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js +182 -0
  47. package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js.map +1 -0
  48. package/dist/esm/components/DataLinks/DataLink.js +144 -0
  49. package/dist/esm/components/DataLinks/DataLink.js.map +1 -0
  50. package/dist/esm/components/DataLinks/DataLinks.js +66 -0
  51. package/dist/esm/components/DataLinks/DataLinks.js.map +1 -0
  52. package/dist/esm/components/DataSourcePicker/DataSourcePicker.js +103 -0
  53. package/dist/esm/components/DataSourcePicker/DataSourcePicker.js.map +1 -0
  54. package/dist/esm/components/DatePicker/DatePicker.js +39 -0
  55. package/dist/esm/components/DatePicker/DatePicker.js.map +1 -0
  56. package/dist/{components → esm/components}/DatePicker/styles.js +20 -21
  57. package/dist/esm/components/DatePicker/styles.js.map +1 -0
  58. package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js +28 -0
  59. package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js.map +1 -0
  60. package/dist/esm/components/DatePickerWithInput/styles.js +16 -0
  61. package/dist/esm/components/DatePickerWithInput/styles.js.map +1 -0
  62. package/dist/esm/components/DebounceInput/DebounceInput.js +15 -0
  63. package/dist/esm/components/DebounceInput/DebounceInput.js.map +1 -0
  64. package/dist/esm/components/Plugins/PluginSignatureBadge.js +57 -0
  65. package/dist/esm/components/Plugins/PluginSignatureBadge.js.map +1 -0
  66. package/dist/esm/components/QueryEditor/AccessoryButton.js +18 -0
  67. package/dist/esm/components/QueryEditor/AccessoryButton.js.map +1 -0
  68. package/dist/esm/components/QueryEditor/ConfirmModal.js +26 -0
  69. package/dist/esm/components/QueryEditor/ConfirmModal.js.map +1 -0
  70. package/dist/esm/components/QueryEditor/DatasetSelector.js +56 -0
  71. package/dist/esm/components/QueryEditor/DatasetSelector.js.map +1 -0
  72. package/dist/esm/components/QueryEditor/EditorField.js +42 -0
  73. package/dist/esm/components/QueryEditor/EditorField.js.map +1 -0
  74. package/dist/esm/components/QueryEditor/EditorFieldGroup.js +9 -0
  75. package/dist/esm/components/QueryEditor/EditorFieldGroup.js.map +1 -0
  76. package/dist/esm/components/QueryEditor/EditorHeader.js +21 -0
  77. package/dist/esm/components/QueryEditor/EditorHeader.js.map +1 -0
  78. package/dist/esm/components/QueryEditor/EditorList.js +28 -0
  79. package/dist/esm/components/QueryEditor/EditorList.js.map +1 -0
  80. package/dist/esm/components/QueryEditor/EditorRow.js +22 -0
  81. package/dist/esm/components/QueryEditor/EditorRow.js.map +1 -0
  82. package/dist/esm/components/QueryEditor/EditorRows.js +9 -0
  83. package/dist/esm/components/QueryEditor/EditorRows.js.map +1 -0
  84. package/dist/esm/components/QueryEditor/EditorStack.js +11 -0
  85. package/dist/esm/components/QueryEditor/EditorStack.js.map +1 -0
  86. package/dist/esm/components/QueryEditor/EditorSwitch.js +20 -0
  87. package/dist/esm/components/QueryEditor/EditorSwitch.js.map +1 -0
  88. package/dist/esm/components/QueryEditor/FlexItem.js +8 -0
  89. package/dist/esm/components/QueryEditor/FlexItem.js.map +1 -0
  90. package/dist/esm/components/QueryEditor/InlineSelect.js +50 -0
  91. package/dist/esm/components/QueryEditor/InlineSelect.js.map +1 -0
  92. package/dist/esm/components/QueryEditor/InputGroup.js +63 -0
  93. package/dist/esm/components/QueryEditor/InputGroup.js.map +1 -0
  94. package/dist/esm/components/QueryEditor/QueryEditor.js +110 -0
  95. package/dist/esm/components/QueryEditor/QueryEditor.js.map +1 -0
  96. package/dist/esm/components/QueryEditor/QueryHeader.js +172 -0
  97. package/dist/esm/components/QueryEditor/QueryHeader.js.map +1 -0
  98. package/dist/esm/components/QueryEditor/RunQueryButton.js +42 -0
  99. package/dist/esm/components/QueryEditor/RunQueryButton.js.map +1 -0
  100. package/dist/esm/components/QueryEditor/Space.js +35 -0
  101. package/dist/esm/components/QueryEditor/Space.js.map +1 -0
  102. package/dist/esm/components/QueryEditor/TableSelector.js +33 -0
  103. package/dist/esm/components/QueryEditor/TableSelector.js.map +1 -0
  104. package/dist/esm/components/QueryEditor/defaults.js +25 -0
  105. package/dist/esm/components/QueryEditor/defaults.js.map +1 -0
  106. package/dist/esm/components/QueryEditor/expressions.js +17 -0
  107. package/dist/esm/components/QueryEditor/expressions.js.map +1 -0
  108. package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +39 -0
  109. package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +1 -0
  110. package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js +63 -0
  111. package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +1 -0
  112. package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js +72 -0
  113. package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js.map +1 -0
  114. package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js +96 -0
  115. package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js.map +1 -0
  116. package/dist/esm/components/QueryEditor/types.js +33 -0
  117. package/dist/esm/components/QueryEditor/types.js.map +1 -0
  118. package/dist/esm/components/QueryEditor/utils/formatSQL.js +10 -0
  119. package/dist/esm/components/QueryEditor/utils/formatSQL.js.map +1 -0
  120. package/dist/esm/components/QueryEditor/utils/sql.utils.js +93 -0
  121. package/dist/esm/components/QueryEditor/utils/sql.utils.js.map +1 -0
  122. package/dist/esm/components/QueryEditor/utils/useSqlChange.js +19 -0
  123. package/dist/esm/components/QueryEditor/utils/useSqlChange.js.map +1 -0
  124. package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +216 -0
  125. package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +1 -0
  126. package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js +44 -0
  127. package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js.map +1 -0
  128. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js +22 -0
  129. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js.map +1 -0
  130. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js +9 -0
  131. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js.map +1 -0
  132. package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js +51 -0
  133. package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js.map +1 -0
  134. package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js +70 -0
  135. package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js.map +1 -0
  136. package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js +33 -0
  137. package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js.map +1 -0
  138. package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +14 -0
  139. package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +1 -0
  140. package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +35 -0
  141. package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +1 -0
  142. package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js +19 -0
  143. package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +1 -0
  144. package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js +40 -0
  145. package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +1 -0
  146. package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js +123 -0
  147. package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js.map +1 -0
  148. package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js +24 -0
  149. package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js.map +1 -0
  150. package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js +79 -0
  151. package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js.map +1 -0
  152. package/dist/esm/components/QueryEditorRow/QueryEditorRow.js +11 -0
  153. package/dist/esm/components/QueryEditorRow/QueryEditorRow.js.map +1 -0
  154. package/dist/esm/components/SQLEditor/components/SQLEditor.js +339 -0
  155. package/dist/esm/components/SQLEditor/components/SQLEditor.js.map +1 -0
  156. package/dist/esm/components/SQLEditor/mocks/Monaco.js +19 -0
  157. package/dist/esm/components/SQLEditor/mocks/Monaco.js.map +1 -0
  158. package/dist/esm/components/SQLEditor/mocks/TextModel.js +21 -0
  159. package/dist/esm/components/SQLEditor/mocks/TextModel.js.map +1 -0
  160. package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQuery.js +217 -0
  161. package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +1 -0
  162. package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +232 -0
  163. package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +1 -0
  164. package/dist/esm/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +272 -0
  165. package/dist/esm/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +1 -0
  166. package/dist/esm/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +9 -0
  167. package/dist/esm/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +1 -0
  168. package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQuery.js +197 -0
  169. package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +1 -0
  170. package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +212 -0
  171. package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +1 -0
  172. package/dist/esm/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +252 -0
  173. package/dist/esm/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +1 -0
  174. package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +387 -0
  175. package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +1 -0
  176. package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +417 -0
  177. package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +1 -0
  178. package/dist/{src/components/SQLEditor/mocks/testData.d.ts → esm/components/SQLEditor/mocks/testData.js} +10 -9
  179. package/dist/esm/components/SQLEditor/mocks/testData.js.map +1 -0
  180. package/dist/esm/components/SQLEditor/standardSql/definition.js +19 -0
  181. package/dist/esm/components/SQLEditor/standardSql/definition.js.map +1 -0
  182. package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js +20 -0
  183. package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js.map +1 -0
  184. package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js +24 -0
  185. package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js.map +1 -0
  186. package/dist/esm/components/SQLEditor/standardSql/language.js +867 -0
  187. package/dist/esm/components/SQLEditor/standardSql/language.js.map +1 -0
  188. package/dist/esm/components/SQLEditor/standardSql/macros.js +58 -0
  189. package/dist/esm/components/SQLEditor/standardSql/macros.js.map +1 -0
  190. package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +34 -0
  191. package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +1 -0
  192. package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +367 -0
  193. package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +1 -0
  194. package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +215 -0
  195. package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +1 -0
  196. package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js +152 -0
  197. package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +1 -0
  198. package/dist/esm/components/SQLEditor/test-utils/index.js +11 -0
  199. package/dist/esm/components/SQLEditor/test-utils/index.js.map +1 -0
  200. package/dist/esm/components/SQLEditor/test-utils/statementPosition.js +45 -0
  201. package/dist/esm/components/SQLEditor/test-utils/statementPosition.js.map +1 -0
  202. package/dist/esm/components/SQLEditor/types.js +140 -0
  203. package/dist/esm/components/SQLEditor/types.js.map +1 -0
  204. package/dist/esm/components/SQLEditor/utils/LinkedToken.js +145 -0
  205. package/dist/esm/components/SQLEditor/utils/LinkedToken.js.map +1 -0
  206. package/dist/esm/components/SQLEditor/utils/commands.js +7 -0
  207. package/dist/esm/components/SQLEditor/utils/commands.js.map +1 -0
  208. package/dist/esm/components/SQLEditor/utils/debugger.js +14 -0
  209. package/dist/esm/components/SQLEditor/utils/debugger.js.map +1 -0
  210. package/dist/esm/components/SQLEditor/utils/getSuggestionKind.js +16 -0
  211. package/dist/esm/components/SQLEditor/utils/getSuggestionKind.js.map +1 -0
  212. package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js +45 -0
  213. package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js.map +1 -0
  214. package/dist/esm/components/SQLEditor/utils/toCompletionItem.js +17 -0
  215. package/dist/esm/components/SQLEditor/utils/toCompletionItem.js.map +1 -0
  216. package/dist/esm/components/SQLEditor/utils/tokenUtils.js +36 -0
  217. package/dist/esm/components/SQLEditor/utils/tokenUtils.js.map +1 -0
  218. package/dist/esm/components/Segment/Segment.js +24 -0
  219. package/dist/esm/components/Segment/Segment.js.map +1 -0
  220. package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js +39 -0
  221. package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js.map +1 -0
  222. package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js +178 -0
  223. package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js.map +1 -0
  224. package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js +70 -0
  225. package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js.map +1 -0
  226. package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js +77 -0
  227. package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js.map +1 -0
  228. package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js +254 -0
  229. package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js.map +1 -0
  230. package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js +55 -0
  231. package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +1 -0
  232. package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js +107 -0
  233. package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js.map +1 -0
  234. package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js +87 -0
  235. package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js.map +1 -0
  236. package/dist/esm/components/VisualQueryBuilder/components/OperationList.js +169 -0
  237. package/dist/esm/components/VisualQueryBuilder/components/OperationList.js.map +1 -0
  238. package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js +43 -0
  239. package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js.map +1 -0
  240. package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js +136 -0
  241. package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js.map +1 -0
  242. package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js +39 -0
  243. package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +1 -0
  244. package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js +73 -0
  245. package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +1 -0
  246. package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +14 -0
  247. package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +1 -0
  248. package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +44 -0
  249. package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +1 -0
  250. package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js +97 -0
  251. package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +1 -0
  252. package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js +30 -0
  253. package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js.map +1 -0
  254. package/dist/esm/components/VisualQueryBuilder/types.js +12 -0
  255. package/dist/esm/components/VisualQueryBuilder/types.js.map +1 -0
  256. package/dist/esm/datasource/SqlDatasource.js +172 -0
  257. package/dist/esm/datasource/SqlDatasource.js.map +1 -0
  258. package/dist/esm/datasource/constants.js +18 -0
  259. package/dist/esm/datasource/constants.js.map +1 -0
  260. package/dist/esm/hooks/useDebounce.js +18 -0
  261. package/dist/esm/hooks/useDebounce.js.map +1 -0
  262. package/dist/esm/index.d.ts +1205 -0
  263. package/dist/esm/index.js +57 -0
  264. package/dist/esm/index.js.map +1 -0
  265. package/package.json +62 -41
  266. package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js +0 -33
  267. package/dist/components/AsyncButtonCascader/AsyncButtonCascader.js.map +0 -1
  268. package/dist/components/Cascader/Cascader.js +0 -6
  269. package/dist/components/Cascader/Cascader.js.map +0 -1
  270. package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js +0 -28
  271. package/dist/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +0 -1
  272. package/dist/components/ConfigEditor/AdvancedSettings/index.js +0 -6
  273. package/dist/components/ConfigEditor/AdvancedSettings/index.js.map +0 -1
  274. package/dist/components/ConfigEditor/Auth/Auth.js +0 -24
  275. package/dist/components/ConfigEditor/Auth/Auth.js.map +0 -1
  276. package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +0 -110
  277. package/dist/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +0 -1
  278. package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js +0 -23
  279. package/dist/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +0 -1
  280. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js +0 -41
  281. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +0 -1
  282. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +0 -76
  283. package/dist/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +0 -1
  284. package/dist/components/ConfigEditor/Auth/index.js +0 -10
  285. package/dist/components/ConfigEditor/Auth/index.js.map +0 -1
  286. package/dist/components/ConfigEditor/Auth/styles.js +0 -19
  287. package/dist/components/ConfigEditor/Auth/styles.js.map +0 -1
  288. package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +0 -18
  289. package/dist/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +0 -1
  290. package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js +0 -11
  291. package/dist/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +0 -1
  292. package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js +0 -22
  293. package/dist/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +0 -1
  294. package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js +0 -25
  295. package/dist/components/ConfigEditor/Auth/tls/TLSSettings.js.map +0 -1
  296. package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js +0 -35
  297. package/dist/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +0 -1
  298. package/dist/components/ConfigEditor/Auth/types.js +0 -11
  299. package/dist/components/ConfigEditor/Auth/types.js.map +0 -1
  300. package/dist/components/ConfigEditor/Auth/utils.js +0 -113
  301. package/dist/components/ConfigEditor/Auth/utils.js.map +0 -1
  302. package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +0 -32
  303. package/dist/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +0 -1
  304. package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js +0 -12
  305. package/dist/components/ConfigEditor/ConfigSection/ConfigSection.js.map +0 -1
  306. package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js +0 -12
  307. package/dist/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +0 -1
  308. package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js +0 -40
  309. package/dist/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +0 -1
  310. package/dist/components/ConfigEditor/ConfigSection/index.js +0 -10
  311. package/dist/components/ConfigEditor/ConfigSection/index.js.map +0 -1
  312. package/dist/components/ConfigEditor/Connection/ConnectionSettings.js +0 -26
  313. package/dist/components/ConfigEditor/Connection/ConnectionSettings.js.map +0 -1
  314. package/dist/components/ConfigEditor/Connection/index.js +0 -6
  315. package/dist/components/ConfigEditor/Connection/index.js.map +0 -1
  316. package/dist/components/ConfigEditor/DataSourceDescription.js +0 -39
  317. package/dist/components/ConfigEditor/DataSourceDescription.js.map +0 -1
  318. package/dist/components/ConfigEditor/SecureSocksProxyToggle.js +0 -24
  319. package/dist/components/ConfigEditor/SecureSocksProxyToggle.js.map +0 -1
  320. package/dist/components/ConfigEditor/index.js +0 -22
  321. package/dist/components/ConfigEditor/index.js.map +0 -1
  322. package/dist/components/ConfigEditor/types.js +0 -3
  323. package/dist/components/ConfigEditor/types.js.map +0 -1
  324. package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js +0 -124
  325. package/dist/components/CustomHeadersSettings/CustomHeadersSettings.js.map +0 -1
  326. package/dist/components/DataLinks/DataLink.js +0 -79
  327. package/dist/components/DataLinks/DataLink.js.map +0 -1
  328. package/dist/components/DataLinks/DataLinks.js +0 -56
  329. package/dist/components/DataLinks/DataLinks.js.map +0 -1
  330. package/dist/components/DataLinks/index.js +0 -7
  331. package/dist/components/DataLinks/index.js.map +0 -1
  332. package/dist/components/DataLinks/types.js +0 -3
  333. package/dist/components/DataLinks/types.js.map +0 -1
  334. package/dist/components/DataSourcePicker/DataSourcePicker.js +0 -88
  335. package/dist/components/DataSourcePicker/DataSourcePicker.js.map +0 -1
  336. package/dist/components/DatePicker/DatePicker.js +0 -31
  337. package/dist/components/DatePicker/DatePicker.js.map +0 -1
  338. package/dist/components/DatePicker/styles.js.map +0 -1
  339. package/dist/components/DatePickerWithInput/DatePickerWithInput.js +0 -23
  340. package/dist/components/DatePickerWithInput/DatePickerWithInput.js.map +0 -1
  341. package/dist/components/DatePickerWithInput/style.css +0 -8
  342. package/dist/components/DebounceInput/DebounceInput.js +0 -19
  343. package/dist/components/DebounceInput/DebounceInput.js.map +0 -1
  344. package/dist/components/Plugins/PluginSignatureBadge.js +0 -65
  345. package/dist/components/Plugins/PluginSignatureBadge.js.map +0 -1
  346. package/dist/components/QueryEditor/AccessoryButton.js +0 -20
  347. package/dist/components/QueryEditor/AccessoryButton.js.map +0 -1
  348. package/dist/components/QueryEditor/ConfirmModal.js +0 -28
  349. package/dist/components/QueryEditor/ConfirmModal.js.map +0 -1
  350. package/dist/components/QueryEditor/DatasetSelector.js +0 -40
  351. package/dist/components/QueryEditor/DatasetSelector.js.map +0 -1
  352. package/dist/components/QueryEditor/EditorField.js +0 -49
  353. package/dist/components/QueryEditor/EditorField.js.map +0 -1
  354. package/dist/components/QueryEditor/EditorFieldGroup.js +0 -11
  355. package/dist/components/QueryEditor/EditorFieldGroup.js.map +0 -1
  356. package/dist/components/QueryEditor/EditorHeader.js +0 -22
  357. package/dist/components/QueryEditor/EditorHeader.js.map +0 -1
  358. package/dist/components/QueryEditor/EditorList.js +0 -27
  359. package/dist/components/QueryEditor/EditorList.js.map +0 -1
  360. package/dist/components/QueryEditor/EditorRow.js +0 -24
  361. package/dist/components/QueryEditor/EditorRow.js.map +0 -1
  362. package/dist/components/QueryEditor/EditorRows.js +0 -11
  363. package/dist/components/QueryEditor/EditorRows.js.map +0 -1
  364. package/dist/components/QueryEditor/EditorStack.js +0 -13
  365. package/dist/components/QueryEditor/EditorStack.js.map +0 -1
  366. package/dist/components/QueryEditor/EditorSwitch.js +0 -24
  367. package/dist/components/QueryEditor/EditorSwitch.js.map +0 -1
  368. package/dist/components/QueryEditor/FlexItem.js +0 -10
  369. package/dist/components/QueryEditor/FlexItem.js.map +0 -1
  370. package/dist/components/QueryEditor/InlineSelect.js +0 -57
  371. package/dist/components/QueryEditor/InlineSelect.js.map +0 -1
  372. package/dist/components/QueryEditor/InputGroup.js +0 -66
  373. package/dist/components/QueryEditor/InputGroup.js.map +0 -1
  374. package/dist/components/QueryEditor/QueryEditor.js +0 -74
  375. package/dist/components/QueryEditor/QueryEditor.js.map +0 -1
  376. package/dist/components/QueryEditor/QueryHeader.js +0 -86
  377. package/dist/components/QueryEditor/QueryHeader.js.map +0 -1
  378. package/dist/components/QueryEditor/RunQueryButton.js +0 -19
  379. package/dist/components/QueryEditor/RunQueryButton.js.map +0 -1
  380. package/dist/components/QueryEditor/Space.js +0 -36
  381. package/dist/components/QueryEditor/Space.js.map +0 -1
  382. package/dist/components/QueryEditor/TableSelector.js +0 -20
  383. package/dist/components/QueryEditor/TableSelector.js.map +0 -1
  384. package/dist/components/QueryEditor/defaults.js +0 -20
  385. package/dist/components/QueryEditor/defaults.js.map +0 -1
  386. package/dist/components/QueryEditor/expressions.js +0 -18
  387. package/dist/components/QueryEditor/expressions.js.map +0 -1
  388. package/dist/components/QueryEditor/index.js +0 -37
  389. package/dist/components/QueryEditor/index.js.map +0 -1
  390. package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +0 -21
  391. package/dist/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +0 -1
  392. package/dist/components/QueryEditor/query-editor-raw/QueryToolbox.js +0 -59
  393. package/dist/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +0 -1
  394. package/dist/components/QueryEditor/query-editor-raw/QueryValidator.js +0 -79
  395. package/dist/components/QueryEditor/query-editor-raw/QueryValidator.js.map +0 -1
  396. package/dist/components/QueryEditor/query-editor-raw/RawEditor.js +0 -60
  397. package/dist/components/QueryEditor/query-editor-raw/RawEditor.js.map +0 -1
  398. package/dist/components/QueryEditor/types.js +0 -26
  399. package/dist/components/QueryEditor/types.js.map +0 -1
  400. package/dist/components/QueryEditor/utils/formatSQL.js +0 -13
  401. package/dist/components/QueryEditor/utils/formatSQL.js.map +0 -1
  402. package/dist/components/QueryEditor/utils/sql.utils.js +0 -103
  403. package/dist/components/QueryEditor/utils/sql.utils.js.map +0 -1
  404. package/dist/components/QueryEditor/utils/useSqlChange.js +0 -16
  405. package/dist/components/QueryEditor/utils/useSqlChange.js.map +0 -1
  406. package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +0 -109
  407. package/dist/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +0 -1
  408. package/dist/components/QueryEditor/visual-query-builder/EditorField.js +0 -51
  409. package/dist/components/QueryEditor/visual-query-builder/EditorField.js.map +0 -1
  410. package/dist/components/QueryEditor/visual-query-builder/EditorRow.js +0 -24
  411. package/dist/components/QueryEditor/visual-query-builder/EditorRow.js.map +0 -1
  412. package/dist/components/QueryEditor/visual-query-builder/EditorRows.js +0 -11
  413. package/dist/components/QueryEditor/visual-query-builder/EditorRows.js.map +0 -1
  414. package/dist/components/QueryEditor/visual-query-builder/GroupByRow.js +0 -33
  415. package/dist/components/QueryEditor/visual-query-builder/GroupByRow.js.map +0 -1
  416. package/dist/components/QueryEditor/visual-query-builder/OrderByRow.js +0 -50
  417. package/dist/components/QueryEditor/visual-query-builder/OrderByRow.js.map +0 -1
  418. package/dist/components/QueryEditor/visual-query-builder/Preview.js +0 -28
  419. package/dist/components/QueryEditor/visual-query-builder/Preview.js.map +0 -1
  420. package/dist/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +0 -13
  421. package/dist/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +0 -1
  422. package/dist/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +0 -34
  423. package/dist/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +0 -1
  424. package/dist/components/QueryEditor/visual-query-builder/SQLSelectRow.js +0 -19
  425. package/dist/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +0 -1
  426. package/dist/components/QueryEditor/visual-query-builder/SQLWhereRow.js +0 -35
  427. package/dist/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +0 -1
  428. package/dist/components/QueryEditor/visual-query-builder/SelectRow.js +0 -68
  429. package/dist/components/QueryEditor/visual-query-builder/SelectRow.js.map +0 -1
  430. package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js +0 -38
  431. package/dist/components/QueryEditor/visual-query-builder/VisualEditor.js.map +0 -1
  432. package/dist/components/QueryEditor/visual-query-builder/WhereRow.js +0 -67
  433. package/dist/components/QueryEditor/visual-query-builder/WhereRow.js.map +0 -1
  434. package/dist/components/QueryEditor/visual-query-builder/index.js +0 -6
  435. package/dist/components/QueryEditor/visual-query-builder/index.js.map +0 -1
  436. package/dist/components/QueryEditorRow/QueryEditorRow.js +0 -16
  437. package/dist/components/QueryEditorRow/QueryEditorRow.js.map +0 -1
  438. package/dist/components/SQLEditor/components/SQLEditor.js +0 -330
  439. package/dist/components/SQLEditor/components/SQLEditor.js.map +0 -1
  440. package/dist/components/SQLEditor/index.js +0 -25
  441. package/dist/components/SQLEditor/index.js.map +0 -1
  442. package/dist/components/SQLEditor/mocks/Monaco.js +0 -23
  443. package/dist/components/SQLEditor/mocks/Monaco.js.map +0 -1
  444. package/dist/components/SQLEditor/mocks/TextModel.js +0 -22
  445. package/dist/components/SQLEditor/mocks/TextModel.js.map +0 -1
  446. package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js +0 -216
  447. package/dist/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +0 -1
  448. package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js +0 -231
  449. package/dist/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +0 -1
  450. package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js +0 -271
  451. package/dist/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +0 -1
  452. package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js +0 -8
  453. package/dist/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +0 -1
  454. package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js +0 -196
  455. package/dist/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +0 -1
  456. package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js +0 -211
  457. package/dist/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +0 -1
  458. package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js +0 -251
  459. package/dist/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +0 -1
  460. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js +0 -386
  461. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +0 -1
  462. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js +0 -416
  463. package/dist/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +0 -1
  464. package/dist/components/SQLEditor/mocks/testData.js +0 -22
  465. package/dist/components/SQLEditor/mocks/testData.js.map +0 -1
  466. package/dist/components/SQLEditor/standardSql/definition.js +0 -13
  467. package/dist/components/SQLEditor/standardSql/definition.js.map +0 -1
  468. package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js +0 -26
  469. package/dist/components/SQLEditor/standardSql/getStandardSuggestions.js.map +0 -1
  470. package/dist/components/SQLEditor/standardSql/getStatementPosition.js +0 -24
  471. package/dist/components/SQLEditor/standardSql/getStatementPosition.js.map +0 -1
  472. package/dist/components/SQLEditor/standardSql/language.js +0 -875
  473. package/dist/components/SQLEditor/standardSql/language.js.map +0 -1
  474. package/dist/components/SQLEditor/standardSql/macros.js +0 -166
  475. package/dist/components/SQLEditor/standardSql/macros.js.map +0 -1
  476. package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +0 -30
  477. package/dist/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +0 -1
  478. package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +0 -378
  479. package/dist/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +0 -1
  480. package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +0 -234
  481. package/dist/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +0 -1
  482. package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js +0 -153
  483. package/dist/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +0 -1
  484. package/dist/components/SQLEditor/standardSql/types.js +0 -3
  485. package/dist/components/SQLEditor/standardSql/types.js.map +0 -1
  486. package/dist/components/SQLEditor/test-utils/index.js +0 -11
  487. package/dist/components/SQLEditor/test-utils/index.js.map +0 -1
  488. package/dist/components/SQLEditor/test-utils/statementPosition.js +0 -40
  489. package/dist/components/SQLEditor/test-utils/statementPosition.js.map +0 -1
  490. package/dist/components/SQLEditor/test-utils/types.js +0 -3
  491. package/dist/components/SQLEditor/test-utils/types.js.map +0 -1
  492. package/dist/components/SQLEditor/types.js +0 -139
  493. package/dist/components/SQLEditor/types.js.map +0 -1
  494. package/dist/components/SQLEditor/utils/LinkedToken.js +0 -147
  495. package/dist/components/SQLEditor/utils/LinkedToken.js.map +0 -1
  496. package/dist/components/SQLEditor/utils/commands.js +0 -8
  497. package/dist/components/SQLEditor/utils/commands.js.map +0 -1
  498. package/dist/components/SQLEditor/utils/debugger.js +0 -14
  499. package/dist/components/SQLEditor/utils/debugger.js.map +0 -1
  500. package/dist/components/SQLEditor/utils/getSuggestionKind.js +0 -18
  501. package/dist/components/SQLEditor/utils/getSuggestionKind.js.map +0 -1
  502. package/dist/components/SQLEditor/utils/linkedTokenBuilder.js +0 -46
  503. package/dist/components/SQLEditor/utils/linkedTokenBuilder.js.map +0 -1
  504. package/dist/components/SQLEditor/utils/toCompletionItem.js +0 -10
  505. package/dist/components/SQLEditor/utils/toCompletionItem.js.map +0 -1
  506. package/dist/components/SQLEditor/utils/tokenUtils.js +0 -72
  507. package/dist/components/SQLEditor/utils/tokenUtils.js.map +0 -1
  508. package/dist/components/SQLEditor/utils/types.js +0 -3
  509. package/dist/components/SQLEditor/utils/types.js.map +0 -1
  510. package/dist/components/Segment/Segment.js +0 -19
  511. package/dist/components/Segment/Segment.js.map +0 -1
  512. package/dist/components/VisualQueryBuilder/QueryModellerBase.js +0 -35
  513. package/dist/components/VisualQueryBuilder/QueryModellerBase.js.map +0 -1
  514. package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js +0 -125
  515. package/dist/components/VisualQueryBuilder/components/LabelFilterItem.js.map +0 -1
  516. package/dist/components/VisualQueryBuilder/components/LabelFilters.js +0 -37
  517. package/dist/components/VisualQueryBuilder/components/LabelFilters.js.map +0 -1
  518. package/dist/components/VisualQueryBuilder/components/OperationEditor.js +0 -41
  519. package/dist/components/VisualQueryBuilder/components/OperationEditor.js.map +0 -1
  520. package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js +0 -181
  521. package/dist/components/VisualQueryBuilder/components/OperationEditorBody.js.map +0 -1
  522. package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js +0 -64
  523. package/dist/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +0 -1
  524. package/dist/components/VisualQueryBuilder/components/OperationHeader.js +0 -68
  525. package/dist/components/VisualQueryBuilder/components/OperationHeader.js.map +0 -1
  526. package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js +0 -71
  527. package/dist/components/VisualQueryBuilder/components/OperationInfoButton.js.map +0 -1
  528. package/dist/components/VisualQueryBuilder/components/OperationList.js +0 -132
  529. package/dist/components/VisualQueryBuilder/components/OperationList.js.map +0 -1
  530. package/dist/components/VisualQueryBuilder/components/OperationListExplained.js +0 -22
  531. package/dist/components/VisualQueryBuilder/components/OperationListExplained.js.map +0 -1
  532. package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js +0 -71
  533. package/dist/components/VisualQueryBuilder/components/OperationParamEditor.js.map +0 -1
  534. package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js +0 -24
  535. package/dist/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +0 -1
  536. package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js +0 -54
  537. package/dist/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +0 -1
  538. package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js +0 -17
  539. package/dist/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +0 -1
  540. package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +0 -32
  541. package/dist/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +0 -1
  542. package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js +0 -81
  543. package/dist/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +0 -1
  544. package/dist/components/VisualQueryBuilder/components/RawQuery.js +0 -25
  545. package/dist/components/VisualQueryBuilder/components/RawQuery.js.map +0 -1
  546. package/dist/components/VisualQueryBuilder/index.js +0 -29
  547. package/dist/components/VisualQueryBuilder/index.js.map +0 -1
  548. package/dist/components/VisualQueryBuilder/types.js +0 -10
  549. package/dist/components/VisualQueryBuilder/types.js.map +0 -1
  550. package/dist/components/index.js +0 -30
  551. package/dist/components/index.js.map +0 -1
  552. package/dist/datasource/SqlDatasource.js +0 -161
  553. package/dist/datasource/SqlDatasource.js.map +0 -1
  554. package/dist/datasource/constants.js +0 -19
  555. package/dist/datasource/constants.js.map +0 -1
  556. package/dist/hooks/useDebounce.js +0 -21
  557. package/dist/hooks/useDebounce.js.map +0 -1
  558. package/dist/index.js +0 -13
  559. package/dist/index.js.map +0 -1
  560. package/dist/src/components/AsyncButtonCascader/AsyncButtonCascader.d.ts +0 -21
  561. package/dist/src/components/Cascader/Cascader.d.ts +0 -1
  562. package/dist/src/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.d.ts +0 -8
  563. package/dist/src/components/ConfigEditor/AdvancedSettings/index.d.ts +0 -1
  564. package/dist/src/components/ConfigEditor/Auth/Auth.d.ts +0 -18
  565. package/dist/src/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.d.ts +0 -14
  566. package/dist/src/components/ConfigEditor/Auth/auth-method/BasicAuth.d.ts +0 -17
  567. package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeader.d.ts +0 -10
  568. package/dist/src/components/ConfigEditor/Auth/custom-headers/CustomHeaders.d.ts +0 -8
  569. package/dist/src/components/ConfigEditor/Auth/index.d.ts +0 -4
  570. package/dist/src/components/ConfigEditor/Auth/styles.d.ts +0 -4
  571. package/dist/src/components/ConfigEditor/Auth/tls/SelfSignedCertificate.d.ts +0 -13
  572. package/dist/src/components/ConfigEditor/Auth/tls/SkipTLSVerification.d.ts +0 -7
  573. package/dist/src/components/ConfigEditor/Auth/tls/TLSClientAuth.d.ts +0 -20
  574. package/dist/src/components/ConfigEditor/Auth/tls/TLSSettings.d.ts +0 -11
  575. package/dist/src/components/ConfigEditor/Auth/tls/TLSSettingsSection.d.ts +0 -9
  576. package/dist/src/components/ConfigEditor/Auth/types.d.ts +0 -28
  577. package/dist/src/components/ConfigEditor/Auth/utils.d.ts +0 -12
  578. package/dist/src/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.d.ts +0 -8
  579. package/dist/src/components/ConfigEditor/ConfigSection/ConfigSection.d.ts +0 -5
  580. package/dist/src/components/ConfigEditor/ConfigSection/ConfigSubSection.d.ts +0 -5
  581. package/dist/src/components/ConfigEditor/ConfigSection/GenericConfigSection.d.ts +0 -10
  582. package/dist/src/components/ConfigEditor/ConfigSection/index.d.ts +0 -3
  583. package/dist/src/components/ConfigEditor/Connection/ConnectionSettings.d.ts +0 -13
  584. package/dist/src/components/ConfigEditor/Connection/index.d.ts +0 -1
  585. package/dist/src/components/ConfigEditor/DataSourceDescription.d.ts +0 -9
  586. package/dist/src/components/ConfigEditor/SecureSocksProxyToggle.d.ts +0 -10
  587. package/dist/src/components/ConfigEditor/index.d.ts +0 -9
  588. package/dist/src/components/ConfigEditor/types.d.ts +0 -15
  589. package/dist/src/components/CustomHeadersSettings/CustomHeadersSettings.d.ts +0 -27
  590. package/dist/src/components/DataLinks/DataLink.d.ts +0 -13
  591. package/dist/src/components/DataLinks/DataLinks.d.ts +0 -8
  592. package/dist/src/components/DataLinks/index.d.ts +0 -3
  593. package/dist/src/components/DataLinks/types.d.ts +0 -7
  594. package/dist/src/components/DataSourcePicker/DataSourcePicker.d.ts +0 -34
  595. package/dist/src/components/DatePicker/DatePicker.d.ts +0 -8
  596. package/dist/src/components/DatePicker/styles.d.ts +0 -11
  597. package/dist/src/components/DatePickerWithInput/DatePickerWithInput.d.ts +0 -9
  598. package/dist/src/components/DebounceInput/DebounceInput.d.ts +0 -8
  599. package/dist/src/components/Plugins/PluginSignatureBadge.d.ts +0 -12
  600. package/dist/src/components/QueryEditor/AccessoryButton.d.ts +0 -6
  601. package/dist/src/components/QueryEditor/ConfirmModal.d.ts +0 -9
  602. package/dist/src/components/QueryEditor/DatasetSelector.d.ts +0 -13
  603. package/dist/src/components/QueryEditor/EditorField.d.ts +0 -12
  604. package/dist/src/components/QueryEditor/EditorFieldGroup.d.ts +0 -6
  605. package/dist/src/components/QueryEditor/EditorHeader.d.ts +0 -6
  606. package/dist/src/components/QueryEditor/EditorList.d.ts +0 -8
  607. package/dist/src/components/QueryEditor/EditorRow.d.ts +0 -6
  608. package/dist/src/components/QueryEditor/EditorRows.d.ts +0 -6
  609. package/dist/src/components/QueryEditor/EditorStack.d.ts +0 -13
  610. package/dist/src/components/QueryEditor/EditorSwitch.d.ts +0 -3
  611. package/dist/src/components/QueryEditor/FlexItem.d.ts +0 -7
  612. package/dist/src/components/QueryEditor/InlineSelect.d.ts +0 -7
  613. package/dist/src/components/QueryEditor/InputGroup.d.ts +0 -10
  614. package/dist/src/components/QueryEditor/QueryEditor.d.ts +0 -8
  615. package/dist/src/components/QueryEditor/QueryHeader.d.ts +0 -17
  616. package/dist/src/components/QueryEditor/RunQueryButton.d.ts +0 -13
  617. package/dist/src/components/QueryEditor/Space.d.ts +0 -14
  618. package/dist/src/components/QueryEditor/TableSelector.d.ts +0 -13
  619. package/dist/src/components/QueryEditor/defaults.d.ts +0 -3
  620. package/dist/src/components/QueryEditor/expressions.d.ts +0 -50
  621. package/dist/src/components/QueryEditor/index.d.ts +0 -17
  622. package/dist/src/components/QueryEditor/query-editor-raw/QueryEditorRaw.d.ts +0 -15
  623. package/dist/src/components/QueryEditor/query-editor-raw/QueryToolbox.d.ts +0 -11
  624. package/dist/src/components/QueryEditor/query-editor-raw/QueryValidator.d.ts +0 -10
  625. package/dist/src/components/QueryEditor/query-editor-raw/RawEditor.d.ts +0 -10
  626. package/dist/src/components/QueryEditor/types.d.ts +0 -149
  627. package/dist/src/components/QueryEditor/utils/formatSQL.d.ts +0 -1
  628. package/dist/src/components/QueryEditor/utils/sql.utils.d.ts +0 -14
  629. package/dist/src/components/QueryEditor/utils/useSqlChange.d.ts +0 -10
  630. package/dist/src/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.d.ts +0 -7
  631. package/dist/src/components/QueryEditor/visual-query-builder/EditorField.d.ts +0 -11
  632. package/dist/src/components/QueryEditor/visual-query-builder/EditorRow.d.ts +0 -6
  633. package/dist/src/components/QueryEditor/visual-query-builder/EditorRows.d.ts +0 -6
  634. package/dist/src/components/QueryEditor/visual-query-builder/GroupByRow.d.ts +0 -10
  635. package/dist/src/components/QueryEditor/visual-query-builder/OrderByRow.d.ts +0 -11
  636. package/dist/src/components/QueryEditor/visual-query-builder/Preview.d.ts +0 -6
  637. package/dist/src/components/QueryEditor/visual-query-builder/SQLGroupByRow.d.ts +0 -12
  638. package/dist/src/components/QueryEditor/visual-query-builder/SQLOrderByRow.d.ts +0 -12
  639. package/dist/src/components/QueryEditor/visual-query-builder/SQLSelectRow.d.ts +0 -12
  640. package/dist/src/components/QueryEditor/visual-query-builder/SQLWhereRow.d.ts +0 -12
  641. package/dist/src/components/QueryEditor/visual-query-builder/SelectRow.d.ts +0 -11
  642. package/dist/src/components/QueryEditor/visual-query-builder/VisualEditor.d.ts +0 -13
  643. package/dist/src/components/QueryEditor/visual-query-builder/WhereRow.d.ts +0 -10
  644. package/dist/src/components/QueryEditor/visual-query-builder/index.d.ts +0 -1
  645. package/dist/src/components/QueryEditorRow/QueryEditorRow.d.ts +0 -8
  646. package/dist/src/components/SQLEditor/components/SQLEditor.d.ts +0 -29
  647. package/dist/src/components/SQLEditor/index.d.ts +0 -7
  648. package/dist/src/components/SQLEditor/mocks/Monaco.d.ts +0 -3
  649. package/dist/src/components/SQLEditor/mocks/TextModel.d.ts +0 -7
  650. package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQuery.d.ts +0 -2
  651. package/dist/src/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.d.ts +0 -2
  652. package/dist/src/components/SQLEditor/mocks/queries/multiLineMultipleColumns.d.ts +0 -2
  653. package/dist/src/components/SQLEditor/mocks/queries/singleLineEmptyQuery.d.ts +0 -2
  654. package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQuery.d.ts +0 -2
  655. package/dist/src/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.d.ts +0 -2
  656. package/dist/src/components/SQLEditor/mocks/queries/singleLineMultipleColumns.d.ts +0 -2
  657. package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueries.d.ts +0 -2
  658. package/dist/src/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.d.ts +0 -2
  659. package/dist/src/components/SQLEditor/standardSql/definition.d.ts +0 -3
  660. package/dist/src/components/SQLEditor/standardSql/getStandardSuggestions.d.ts +0 -6
  661. package/dist/src/components/SQLEditor/standardSql/getStatementPosition.d.ts +0 -5
  662. package/dist/src/components/SQLEditor/standardSql/language.d.ts +0 -23
  663. package/dist/src/components/SQLEditor/standardSql/macros.d.ts +0 -2
  664. package/dist/src/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.d.ts +0 -4
  665. package/dist/src/components/SQLEditor/standardSql/standardSuggestionsRegistry.d.ts +0 -7
  666. package/dist/src/components/SQLEditor/standardSql/statementPositionResolversRegistry.d.ts +0 -2
  667. package/dist/src/components/SQLEditor/standardSql/suggestionsKindRegistry.d.ts +0 -7
  668. package/dist/src/components/SQLEditor/standardSql/types.d.ts +0 -33
  669. package/dist/src/components/SQLEditor/test-utils/index.d.ts +0 -7
  670. package/dist/src/components/SQLEditor/test-utils/statementPosition.d.ts +0 -3
  671. package/dist/src/components/SQLEditor/test-utils/types.d.ts +0 -12
  672. package/dist/src/components/SQLEditor/types.d.ts +0 -249
  673. package/dist/src/components/SQLEditor/utils/LinkedToken.d.ts +0 -29
  674. package/dist/src/components/SQLEditor/utils/commands.d.ts +0 -4
  675. package/dist/src/components/SQLEditor/utils/debugger.d.ts +0 -5
  676. package/dist/src/components/SQLEditor/utils/getSuggestionKind.d.ts +0 -7
  677. package/dist/src/components/SQLEditor/utils/linkedTokenBuilder.d.ts +0 -4
  678. package/dist/src/components/SQLEditor/utils/toCompletionItem.d.ts +0 -2
  679. package/dist/src/components/SQLEditor/utils/tokenUtils.d.ts +0 -14
  680. package/dist/src/components/SQLEditor/utils/types.d.ts +0 -11
  681. package/dist/src/components/Segment/Segment.d.ts +0 -8
  682. package/dist/src/components/VisualQueryBuilder/QueryModellerBase.d.ts +0 -18
  683. package/dist/src/components/VisualQueryBuilder/components/LabelFilterItem.d.ts +0 -18
  684. package/dist/src/components/VisualQueryBuilder/components/LabelFilters.d.ts +0 -14
  685. package/dist/src/components/VisualQueryBuilder/components/OperationEditor.d.ts +0 -20
  686. package/dist/src/components/VisualQueryBuilder/components/OperationEditorBody.d.ts +0 -23
  687. package/dist/src/components/VisualQueryBuilder/components/OperationExplainedBox.d.ts +0 -7
  688. package/dist/src/components/VisualQueryBuilder/components/OperationHeader.d.ts +0 -15
  689. package/dist/src/components/VisualQueryBuilder/components/OperationInfoButton.d.ts +0 -9
  690. package/dist/src/components/VisualQueryBuilder/components/OperationList.d.ts +0 -15
  691. package/dist/src/components/VisualQueryBuilder/components/OperationListExplained.d.ts +0 -17
  692. package/dist/src/components/VisualQueryBuilder/components/OperationParamEditor.d.ts +0 -4
  693. package/dist/src/components/VisualQueryBuilder/components/OperationsEditorRow.d.ts +0 -2
  694. package/dist/src/components/VisualQueryBuilder/components/QueryBuilderHints.d.ts +0 -20
  695. package/dist/src/components/VisualQueryBuilder/components/QueryEditorModeToggle.d.ts +0 -8
  696. package/dist/src/components/VisualQueryBuilder/components/QueryHeaderSwitch.d.ts +0 -7
  697. package/dist/src/components/VisualQueryBuilder/components/QueryOptionGroup.d.ts +0 -9
  698. package/dist/src/components/VisualQueryBuilder/components/RawQuery.d.ts +0 -12
  699. package/dist/src/components/VisualQueryBuilder/index.d.ts +0 -13
  700. package/dist/src/components/VisualQueryBuilder/types.d.ts +0 -91
  701. package/dist/src/components/index.d.ts +0 -15
  702. package/dist/src/datasource/SqlDatasource.d.ts +0 -62
  703. package/dist/src/datasource/constants.d.ts +0 -1
  704. package/dist/src/hooks/useDebounce.d.ts +0 -2
  705. package/dist/src/index.d.ts +0 -7
  706. package/dist/src/test/mocks/DataQuery.d.ts +0 -2
  707. package/dist/src/test/mocks/Datasource.d.ts +0 -40
  708. package/dist/src/test/mocks/Plugin.d.ts +0 -10
  709. package/dist/src/test/mocks/QueryEditorProps.d.ts +0 -4
  710. package/dist/src/test/mocks/index.d.ts +0 -5
  711. package/dist/src/test/mocks/utils.d.ts +0 -18
  712. package/dist/src/utils/changeset/functions.d.ts +0 -3
  713. package/dist/src/utils/changeset/index.d.ts +0 -2
  714. package/dist/test/mocks/DataQuery.js +0 -14
  715. package/dist/test/mocks/DataQuery.js.map +0 -1
  716. package/dist/test/mocks/Datasource.js +0 -78
  717. package/dist/test/mocks/Datasource.js.map +0 -1
  718. package/dist/test/mocks/Plugin.js +0 -105
  719. package/dist/test/mocks/Plugin.js.map +0 -1
  720. package/dist/test/mocks/QueryEditorProps.js +0 -46
  721. package/dist/test/mocks/QueryEditorProps.js.map +0 -1
  722. package/dist/test/mocks/index.js +0 -9
  723. package/dist/test/mocks/index.js.map +0 -1
  724. package/dist/test/mocks/utils.js +0 -48
  725. package/dist/test/mocks/utils.js.map +0 -1
  726. package/dist/utils/changeset/functions.js +0 -11
  727. package/dist/utils/changeset/functions.js.map +0 -1
  728. package/dist/utils/changeset/index.js +0 -99
  729. package/dist/utils/changeset/index.js.map +0 -1
@@ -1,149 +0,0 @@
1
- import { JsonTree } from 'react-awesome-query-builder';
2
- import { DataFrame, DataSourceJsonData, MetricFindValue, SelectableValue, TimeRange } from '@grafana/data';
3
- import { DataQuery } from '@grafana/schema';
4
- import { QueryWithDefaults } from './defaults';
5
- import { QueryEditorFunctionExpression, QueryEditorGroupByExpression, QueryEditorPropertyExpression } from './expressions';
6
- import { CompletionItemKind, LanguageCompletionProvider } from '../SQLEditor';
7
- export interface SqlQueryForInterpolation {
8
- dataset?: string;
9
- alias?: string;
10
- format?: QueryFormat;
11
- rawSql?: string;
12
- refId: string;
13
- hide?: boolean;
14
- }
15
- export interface SQLConnectionLimits {
16
- maxOpenConns: number;
17
- maxIdleConns: number;
18
- connMaxLifetime: number;
19
- }
20
- export interface SQLOptions extends SQLConnectionLimits, DataSourceJsonData {
21
- tlsAuth: boolean;
22
- tlsAuthWithCACert: boolean;
23
- timezone: string;
24
- tlsSkipVerify: boolean;
25
- user: string;
26
- database: string;
27
- url: string;
28
- timeInterval: string;
29
- }
30
- export declare enum QueryFormat {
31
- Timeseries = 0,
32
- Table = 1,
33
- Logs = 2,
34
- Trace = 3,
35
- OptionMulti = 4
36
- }
37
- export declare enum EditorMode {
38
- Builder = "builder",
39
- Code = "code"
40
- }
41
- export interface SQLQuery extends DataQuery {
42
- alias?: string;
43
- format?: QueryFormat;
44
- rawSql?: string;
45
- dataset?: string;
46
- table?: string;
47
- sql?: SQLExpression;
48
- editorMode?: EditorMode;
49
- rawQuery?: boolean;
50
- }
51
- export interface NameValue {
52
- name: string;
53
- value: string;
54
- }
55
- export type SQLFilters = NameValue[];
56
- export interface SQLExpression {
57
- columns?: QueryEditorFunctionExpression[];
58
- whereJsonTree?: JsonTree;
59
- whereString?: string;
60
- filters?: SQLFilters;
61
- groupBy?: QueryEditorGroupByExpression[];
62
- orderBy?: QueryEditorPropertyExpression;
63
- orderByDirection?: 'ASC' | 'DESC';
64
- limit?: number;
65
- offset?: number;
66
- }
67
- export interface TableSchema {
68
- name?: string;
69
- schema?: TableFieldSchema[];
70
- }
71
- export interface TableFieldSchema {
72
- name: string;
73
- description?: string;
74
- type: string;
75
- repeated: boolean;
76
- schema: TableFieldSchema[];
77
- }
78
- export interface QueryRowFilter {
79
- filter: boolean;
80
- group: boolean;
81
- order: boolean;
82
- preview: boolean;
83
- }
84
- export declare const QUERY_FORMAT_OPTIONS: {
85
- label: string;
86
- value: QueryFormat;
87
- }[];
88
- export declare const toOption: (value: string) => SelectableValue<string>;
89
- export interface ResourceSelectorProps {
90
- disabled?: boolean;
91
- className?: string;
92
- applyDefault?: boolean;
93
- }
94
- export type RAQBFieldTypes = 'text' | 'number' | 'boolean' | 'datetime' | 'date' | 'time';
95
- export interface SQLSelectableValue extends SelectableValue {
96
- type?: string;
97
- raqbFieldType?: RAQBFieldTypes;
98
- }
99
- export interface Aggregate {
100
- id: string;
101
- name: string;
102
- description?: string;
103
- }
104
- export interface DB {
105
- init?: (datasourceId?: string) => Promise<boolean>;
106
- datasets: () => Promise<string[]>;
107
- tables: (dataset?: string) => Promise<string[]>;
108
- fields: (query: SQLQuery, order?: boolean) => Promise<SQLSelectableValue[]>;
109
- validateQuery: (query: SQLQuery, range?: TimeRange) => Promise<ValidationResults>;
110
- dsID: () => number;
111
- dispose?: (dsID?: string) => void;
112
- lookup: (path?: string) => Promise<Array<{
113
- name: string;
114
- completion: string;
115
- }>>;
116
- getSqlCompletionProvider: () => LanguageCompletionProvider;
117
- toRawSql?: (query: SQLQuery) => string;
118
- functions: () => Promise<Aggregate[]>;
119
- labels?: Map<'dataset', string>;
120
- disableDatasets?: boolean;
121
- }
122
- export interface QueryEditorProps {
123
- db: DB;
124
- query: QueryWithDefaults;
125
- onChange: (query: SQLQuery) => void;
126
- range?: TimeRange;
127
- }
128
- export interface ValidationResults {
129
- query: SQLQuery;
130
- rawSql?: string;
131
- error: string;
132
- isError: boolean;
133
- isValid: boolean;
134
- statistics?: {
135
- TotalBytesProcessed: number;
136
- } | null;
137
- }
138
- export interface SqlQueryModel {
139
- interpolate: () => string;
140
- quoteLiteral: (v: string) => string;
141
- }
142
- export interface ResponseParser {
143
- transformMetricFindResponse: (frame: DataFrame) => MetricFindValue[];
144
- }
145
- export interface MetaDefinition {
146
- name: string;
147
- completion?: string;
148
- kind: CompletionItemKind;
149
- }
@@ -1 +0,0 @@
1
- export declare function formatSQL(q: string): any;
@@ -1,14 +0,0 @@
1
- import { QueryEditorFunctionExpression, QueryEditorGroupByExpression, QueryEditorPropertyExpression } from '../expressions';
2
- import { SQLQuery, SQLExpression, DB } from '../types';
3
- export declare function getRawSqlFn(db: DB): (query: SQLQuery) => string;
4
- export declare function toRawSql({ sql, dataset, table }: SQLQuery, disableDatasets: boolean): string;
5
- export declare function haveColumns(columns: SQLExpression['columns']): columns is NonNullable<SQLExpression['columns']>;
6
- /**
7
- * Creates a GroupByExpression for a specified field
8
- */
9
- export declare function setGroupByField(field?: string): QueryEditorGroupByExpression;
10
- /**
11
- * Creates a PropertyExpression for a specified field
12
- */
13
- export declare function setPropertyField(field?: string): QueryEditorPropertyExpression;
14
- export declare function createFunctionField(functionName?: string): QueryEditorFunctionExpression;
@@ -1,10 +0,0 @@
1
- import { DB, SQLExpression, SQLQuery } from '../types';
2
- interface UseSqlChange {
3
- db: DB;
4
- query: SQLQuery;
5
- onQueryChange: (query: SQLQuery) => void;
6
- }
7
- export declare function useSqlChange({ query, onQueryChange, db }: UseSqlChange): {
8
- onSqlChange: (sql: SQLExpression) => void;
9
- };
10
- export {};
@@ -1,7 +0,0 @@
1
- import { Config, JsonItem, JsonTree, Settings, Widgets } from 'react-awesome-query-builder';
2
- export declare const emptyInitValue: JsonItem;
3
- export declare const emptyInitTree: JsonTree;
4
- export declare const widgets: Widgets;
5
- export declare const settings: Settings;
6
- export declare const raqbConfig: Config;
7
- export type { Config };
@@ -1,11 +0,0 @@
1
- import React, { ComponentProps } from 'react';
2
- import { Field, PopoverContent } from '@grafana/ui';
3
- interface EditorFieldProps extends ComponentProps<typeof Field> {
4
- label: string;
5
- children: React.ReactElement;
6
- width?: number | string;
7
- optional?: boolean;
8
- tooltip?: PopoverContent;
9
- }
10
- export declare const EditorField: (props: EditorFieldProps) => JSX.Element;
11
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface EditorRowProps {
3
- children?: React.ReactNode;
4
- }
5
- export declare const EditorRow: ({ children }: EditorRowProps) => JSX.Element;
6
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface EditorRowsProps {
3
- children?: React.ReactNode;
4
- }
5
- export declare const EditorRows: ({ children }: EditorRowsProps) => JSX.Element;
6
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectableValue } from '@grafana/data';
3
- import { SQLExpression } from '../types';
4
- interface GroupByRowProps {
5
- sql: SQLExpression;
6
- onSqlChange: (sql: SQLExpression) => void;
7
- columns?: Array<SelectableValue<string>>;
8
- }
9
- export declare function GroupByRow({ sql, columns, onSqlChange }: GroupByRowProps): JSX.Element;
10
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectableValue } from '@grafana/data';
3
- import { SQLExpression } from '../types';
4
- type OrderByRowProps = {
5
- sql: SQLExpression;
6
- onSqlChange: (sql: SQLExpression) => void;
7
- columns?: Array<SelectableValue<string>>;
8
- showOffset?: boolean;
9
- };
10
- export declare function OrderByRow({ sql, onSqlChange, columns, showOffset }: OrderByRowProps): JSX.Element;
11
- export {};
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- type PreviewProps = {
3
- rawSql: string;
4
- };
5
- export declare function Preview({ rawSql }: PreviewProps): JSX.Element;
6
- export {};
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectableValue } from '@grafana/data';
3
- import { QueryWithDefaults } from '../defaults';
4
- import { SQLQuery, DB } from '../types';
5
- interface SQLGroupByRowProps {
6
- fields: SelectableValue[];
7
- query: QueryWithDefaults;
8
- onQueryChange: (query: SQLQuery) => void;
9
- db: DB;
10
- }
11
- export declare function SQLGroupByRow({ fields, query, onQueryChange, db }: SQLGroupByRowProps): JSX.Element;
12
- export {};
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectableValue } from '@grafana/data';
3
- import { QueryWithDefaults } from '../defaults';
4
- import { SQLQuery, DB } from '../types';
5
- type SQLOrderByRowProps = {
6
- fields: SelectableValue[];
7
- query: QueryWithDefaults;
8
- onQueryChange: (query: SQLQuery) => void;
9
- db: DB;
10
- };
11
- export declare function SQLOrderByRow({ fields, query, onQueryChange, db }: SQLOrderByRowProps): JSX.Element;
12
- export {};
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectableValue } from '@grafana/data';
3
- import { QueryWithDefaults } from '../defaults';
4
- import { SQLQuery, DB } from '../types';
5
- interface SQLSelectRowProps {
6
- fields: SelectableValue[];
7
- query: QueryWithDefaults;
8
- onQueryChange: (query: SQLQuery) => void;
9
- db: DB;
10
- }
11
- export declare function SQLSelectRow({ fields, query, onQueryChange, db }: SQLSelectRowProps): JSX.Element;
12
- export {};
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectableValue } from '@grafana/data';
3
- import { QueryWithDefaults } from '../defaults';
4
- import { SQLQuery, DB } from '../types';
5
- interface WhereRowProps {
6
- query: QueryWithDefaults;
7
- fields: SelectableValue[];
8
- onQueryChange: (query: SQLQuery) => void;
9
- db: DB;
10
- }
11
- export declare function SQLWhereRow({ query, fields, onQueryChange, db }: WhereRowProps): JSX.Element;
12
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectableValue } from '@grafana/data';
3
- import { SQLExpression } from '../types';
4
- interface SelectRowProps {
5
- sql: SQLExpression;
6
- onSqlChange: (sql: SQLExpression) => void;
7
- columns?: Array<SelectableValue<string>>;
8
- functions?: Array<SelectableValue<string>>;
9
- }
10
- export declare function SelectRow({ sql, columns, onSqlChange, functions }: SelectRowProps): JSX.Element;
11
- export {};
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { DB, QueryEditorProps, QueryRowFilter, SQLQuery } from '../types';
3
- import { TimeRange } from '@grafana/data';
4
- interface VisualEditorProps extends QueryEditorProps {
5
- query: SQLQuery;
6
- db: DB;
7
- queryRowFilter: QueryRowFilter;
8
- onChange: (q: SQLQuery) => void;
9
- onValidate: (isValid: boolean) => void;
10
- range?: TimeRange;
11
- }
12
- export declare const VisualEditor: ({ query, db, queryRowFilter, onChange, onValidate, range }: VisualEditorProps) => JSX.Element;
13
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Config } from 'react-awesome-query-builder';
3
- import { SQLExpression } from '../types';
4
- interface SQLBuilderWhereRowProps {
5
- sql: SQLExpression;
6
- onSqlChange: (sql: SQLExpression) => void;
7
- config?: Partial<Config>;
8
- }
9
- export declare function WhereRow({ sql, config, onSqlChange }: SQLBuilderWhereRowProps): JSX.Element | null;
10
- export {};
@@ -1 +0,0 @@
1
- export { GroupByRow } from './GroupByRow';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface QueryEditorRowProps {
3
- label?: string;
4
- className?: string;
5
- noFillEnd?: boolean;
6
- children?: React.ReactNode;
7
- }
8
- export declare const QueryEditorRow: (props: QueryEditorRowProps) => JSX.Element;
@@ -1,29 +0,0 @@
1
- import { Monaco, monacoTypes } from '@grafana/ui';
2
- import React from 'react';
3
- import { SQLCompletionItemProvider } from '../types';
4
- import { SQLMonarchLanguage } from '../standardSql/types';
5
- export interface LanguageDefinition extends monacoTypes.languages.ILanguageExtensionPoint {
6
- loader?: (module: any) => Promise<{
7
- language: SQLMonarchLanguage;
8
- conf: monacoTypes.languages.LanguageConfiguration;
9
- }>;
10
- completionProvider?: (m: Monaco, language: SQLMonarchLanguage) => SQLCompletionItemProvider;
11
- formatter?: (q: string) => string;
12
- }
13
- interface SQLEditorProps {
14
- query: string;
15
- /**
16
- * Use for inspecting the query as it changes. I.e. for validation.
17
- */
18
- onChange?: (q: string, processQuery: boolean) => void;
19
- onBlur?: (text: string) => void;
20
- language?: LanguageDefinition;
21
- children?: (props: {
22
- formatQuery: () => void;
23
- }) => React.ReactNode;
24
- width?: number;
25
- height?: number;
26
- }
27
- export declare const SQLEditor: ({ children, onBlur, onChange, query, language, width, height, }: SQLEditorProps) => JSX.Element;
28
- export declare const registerLanguageAndSuggestions: (monaco: Monaco, l: LanguageDefinition, lid: string) => Promise<void>;
29
- export {};
@@ -1,7 +0,0 @@
1
- export { SQLEditor, type LanguageDefinition } from './components/SQLEditor';
2
- export { SQLEditorTestUtils, type TestQueryModel } from './test-utils';
3
- export { LinkedToken } from './utils/LinkedToken';
4
- export { language as grafanaStandardSQLLanguage, conf as grafanaStandardSQLLanguageConf } from './standardSql/language';
5
- export { getStandardSQLCompletionProvider } from './standardSql/standardSQLCompletionItemProvider';
6
- export type { SQLMonarchLanguage } from './standardSql/types';
7
- export { type SchemaDefinition, type TableDefinition, type ColumnDefinition, type TableIdentifier, type StatementPlacementProvider, type SuggestionKindProvider, type LanguageCompletionProvider, OperatorType, MacroType, TokenType, StatementPosition, SuggestionKind, CompletionItemKind, CompletionItemPriority, CompletionItemInsertTextRule, type PositionContext, SQLEditorMode, } from './types';
@@ -1,3 +0,0 @@
1
- import { monacoTypes } from '@grafana/ui';
2
- declare const getMonacoMock: (testData: Map<string, Array<Array<Pick<monacoTypes.Token, 'language' | 'offset' | 'type'>>>>) => any;
3
- export { getMonacoMock };
@@ -1,7 +0,0 @@
1
- import { monacoTypes } from '@grafana/ui';
2
- declare function TextModel(value: string): {
3
- getValue: (eol?: monacoTypes.editor.EndOfLinePreference, preserveBOM?: boolean) => string;
4
- getValueInRange: (range: monacoTypes.IRange, eol?: monacoTypes.editor.EndOfLinePreference) => string;
5
- getLineLength: (lineNumber: number) => number;
6
- };
7
- export { TextModel };
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const multiLineFullQuery: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const multiLineFullQueryWithAggregation: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const multiLineMultipleColumns: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const singleLineEmptyQuery: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const singleLineFullQuery: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const singleLineFullQueryWithAggregation: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const singleLineMultipleColumns: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const singleLineTwoQueries: TestQueryModel;
@@ -1,2 +0,0 @@
1
- import { TestQueryModel } from '../../test-utils/types';
2
- export declare const singleLineTwoQueriesWithAggregation: TestQueryModel;
@@ -1,3 +0,0 @@
1
- import { LanguageDefinition } from '../components/SQLEditor';
2
- declare const standardSQLLanguageDefinition: LanguageDefinition;
3
- export default standardSQLLanguageDefinition;
@@ -1,6 +0,0 @@
1
- import { Registry } from '@grafana/data';
2
- import { Monaco, monacoTypes } from '@grafana/ui';
3
- import { PositionContext, SuggestionKind } from '../types';
4
- import { LinkedToken } from '../utils/LinkedToken';
5
- import { SuggestionsRegistryItem } from './types';
6
- export declare const getStandardSuggestions: (monaco: Monaco, currentToken: LinkedToken | null, suggestionKinds: SuggestionKind[], positionContext: PositionContext, suggestionsRegistry: Registry<SuggestionsRegistryItem>) => Promise<monacoTypes.languages.CompletionItem[]>;
@@ -1,5 +0,0 @@
1
- import { StatementPosition } from '../types';
2
- import { LinkedToken } from '../utils/LinkedToken';
3
- import { StatementPositionResolversRegistryItem } from './types';
4
- import { Registry } from '@grafana/data';
5
- export declare function getStatementPosition(currentToken: LinkedToken | null, statementPositionResolversRegistry: Registry<StatementPositionResolversRegistryItem>): StatementPosition[];
@@ -1,23 +0,0 @@
1
- import { monacoTypes } from '@grafana/ui';
2
- import { SQLMonarchLanguage } from './types';
3
- export declare const SELECT = "select";
4
- export declare const FROM = "from";
5
- export declare const WHERE = "where";
6
- export declare const GROUP = "group";
7
- export declare const ORDER = "order";
8
- export declare const BY = "by";
9
- export declare const DESC = "desc";
10
- export declare const ASC = "asc";
11
- export declare const LIMIT = "limit";
12
- export declare const WITH = "with";
13
- export declare const AS = "as";
14
- export declare const SCHEMA = "schema";
15
- export declare const AND = "AND";
16
- export declare const OR = "OR";
17
- export declare const LOGICAL_OPERATORS: string[];
18
- export declare const EQUALS = "=";
19
- export declare const NOT_EQUALS = "!=";
20
- export declare const COMPARISON_OPERATORS: string[];
21
- export declare const STD_OPERATORS: string[];
22
- export declare const conf: monacoTypes.languages.LanguageConfiguration;
23
- export declare const language: SQLMonarchLanguage;
@@ -1,2 +0,0 @@
1
- import { MacrosRegistryItem } from './types';
2
- export declare const MACROS: MacrosRegistryItem[];
@@ -1,4 +0,0 @@
1
- import { Monaco } from '@grafana/ui';
2
- import { SQLCompletionItemProvider } from '../types';
3
- import { SQLMonarchLanguage } from './types';
4
- export declare function getStandardSQLCompletionProvider(monaco: Monaco, language: SQLMonarchLanguage): SQLCompletionItemProvider;
@@ -1,7 +0,0 @@
1
- import { Registry } from '@grafana/data';
2
- import { FunctionsRegistryItem, MacrosRegistryItem, OperatorsRegistryItem, SuggestionsRegistryItem } from './types';
3
- /**
4
- * This registry glues particular SuggestionKind with an async function that provides completion items for it.
5
- * To add a new suggestion kind, SQLEditor should be configured with a provider that implements customSuggestionKinds.
6
- */
7
- export declare const initStandardSuggestions: (functions: Registry<FunctionsRegistryItem>, operators: Registry<OperatorsRegistryItem>, macros: Registry<MacrosRegistryItem>) => () => SuggestionsRegistryItem[];
@@ -1,2 +0,0 @@
1
- import { StatementPositionResolversRegistryItem } from './types';
2
- export declare function initStatementPositionResolvers(): StatementPositionResolversRegistryItem[];
@@ -1,7 +0,0 @@
1
- import { RegistryItem } from '@grafana/data';
2
- import { StatementPosition, SuggestionKind } from '../types';
3
- export interface SuggestionKindRegistryItem extends RegistryItem {
4
- id: StatementPosition;
5
- kind: SuggestionKind[];
6
- }
7
- export declare const initSuggestionsKindRegistry: () => SuggestionKindRegistryItem[];
@@ -1,33 +0,0 @@
1
- import { RegistryItem } from '@grafana/data';
2
- import { monacoTypes } from '@grafana/ui';
3
- import { CustomSuggestion, MacroType, OperatorType, PositionContext, StatementPosition, SuggestionKind } from '../types';
4
- import { LinkedToken } from '../utils/LinkedToken';
5
- export interface SuggestionsRegistryItem extends RegistryItem {
6
- id: SuggestionKind;
7
- suggestions: (position: PositionContext, m: typeof monacoTypes) => Promise<CustomSuggestion[]>;
8
- }
9
- export interface MacrosRegistryItem extends RegistryItem {
10
- type: MacroType;
11
- text: string;
12
- args: string[];
13
- }
14
- export interface FunctionsRegistryItem extends RegistryItem {
15
- }
16
- export interface OperatorsRegistryItem extends RegistryItem {
17
- operator: string;
18
- type: OperatorType;
19
- }
20
- export type StatementPositionResolver = (currentToken: LinkedToken | null, previousKeyword: LinkedToken | null, previousNonWhiteSpace: LinkedToken | null, previousIsSlash: Boolean) => Boolean;
21
- export interface StatementPositionResolversRegistryItem extends RegistryItem {
22
- id: StatementPosition;
23
- resolve: StatementPositionResolver;
24
- }
25
- export type SuggestionsResolver = <T extends PositionContext = PositionContext>(positionContext: T) => Promise<CustomSuggestion[]>;
26
- export interface SQLMonarchLanguage extends monacoTypes.languages.IMonarchLanguage {
27
- keywords?: string[];
28
- builtinFunctions?: string[];
29
- logicalOperators?: string[];
30
- comparisonOperators?: string[];
31
- /** Used by basic languages in the monaco registry **/
32
- operators?: string[];
33
- }
@@ -1,7 +0,0 @@
1
- import * as testData from '../mocks/testData';
2
- import { TestQueryModel } from './types';
3
- export declare const SQLEditorTestUtils: {
4
- testData: typeof testData;
5
- testStatementPosition: (expected: string, cases: import("./types").StatementPositionResolverTestCase[], resolvers: () => import("../types").CustomStatementPlacement[]) => void;
6
- };
7
- export type { TestQueryModel };
@@ -1,3 +0,0 @@
1
- import { CustomStatementPlacement, StatementPosition } from '../types';
2
- import { StatementPositionResolverTestCase } from './types';
3
- export declare const testStatementPosition: (expected: StatementPosition | string, cases: StatementPositionResolverTestCase[], resolvers: () => CustomStatementPlacement[]) => void;
@@ -1,12 +0,0 @@
1
- import { monacoTypes } from '@grafana/ui';
2
- export interface TestQueryModel {
3
- query: string;
4
- tokens: Array<Array<Pick<monacoTypes.Token, 'language' | 'offset' | 'type'>>>;
5
- }
6
- export interface StatementPositionResolverTestCase {
7
- query: TestQueryModel;
8
- position: {
9
- line: number;
10
- column: number;
11
- };
12
- }