@ohos-ports/superset-ui-core 0.20.4-beta.1

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 (1500) hide show
  1. package/README.md +42 -0
  2. package/esm/api/index.js +1 -0
  3. package/esm/api/types/core.js +0 -0
  4. package/esm/api/types/core.js.map +1 -0
  5. package/esm/chart/clients/ChartClient.js +201 -0
  6. package/esm/chart/clients/ChartClient.js.map +1 -0
  7. package/esm/chart/components/ChartDataProvider.js +171 -0
  8. package/esm/chart/components/ChartDataProvider.js.map +1 -0
  9. package/esm/chart/components/FallbackComponent.js +61 -0
  10. package/esm/chart/components/FallbackComponent.js.map +1 -0
  11. package/esm/chart/components/NoResultsComponent.js +88 -0
  12. package/esm/chart/components/NoResultsComponent.js.map +1 -0
  13. package/esm/chart/components/SuperChart.js +267 -0
  14. package/esm/chart/components/SuperChart.js.map +1 -0
  15. package/esm/chart/components/SuperChartCore.js +235 -0
  16. package/esm/chart/components/SuperChartCore.js.map +1 -0
  17. package/esm/chart/components/createLoadableRenderer.js +75 -0
  18. package/esm/chart/components/createLoadableRenderer.js.map +1 -0
  19. package/esm/chart/components/reactify.js +115 -0
  20. package/esm/chart/components/reactify.js.map +1 -0
  21. package/esm/chart/index.js +49 -0
  22. package/esm/chart/index.js.map +1 -0
  23. package/esm/chart/models/ChartControlPanel.js +1 -0
  24. package/esm/chart/models/ChartControlPanel.js.map +1 -0
  25. package/esm/chart/models/ChartMetadata.js +160 -0
  26. package/esm/chart/models/ChartMetadata.js.map +1 -0
  27. package/esm/chart/models/ChartPlugin.js +162 -0
  28. package/esm/chart/models/ChartPlugin.js.map +1 -0
  29. package/esm/chart/models/ChartProps.js +270 -0
  30. package/esm/chart/models/ChartProps.js.map +1 -0
  31. package/esm/chart/registries/ChartBuildQueryRegistrySingleton.js +53 -0
  32. package/esm/chart/registries/ChartBuildQueryRegistrySingleton.js.map +1 -0
  33. package/esm/chart/registries/ChartComponentRegistrySingleton.js +32 -0
  34. package/esm/chart/registries/ChartComponentRegistrySingleton.js.map +1 -0
  35. package/esm/chart/registries/ChartControlPanelRegistrySingleton.js +35 -0
  36. package/esm/chart/registries/ChartControlPanelRegistrySingleton.js.map +1 -0
  37. package/esm/chart/registries/ChartMetadataRegistrySingleton.js +32 -0
  38. package/esm/chart/registries/ChartMetadataRegistrySingleton.js.map +1 -0
  39. package/esm/chart/registries/ChartTransformPropsRegistrySingleton.js +35 -0
  40. package/esm/chart/registries/ChartTransformPropsRegistrySingleton.js.map +1 -0
  41. package/esm/chart/types/Annotation.js +1 -0
  42. package/esm/chart/types/Annotation.js.map +1 -0
  43. package/esm/chart/types/Base.js +108 -0
  44. package/esm/chart/types/Base.js.map +1 -0
  45. package/esm/chart/types/QueryResponse.js +53 -0
  46. package/esm/chart/types/QueryResponse.js.map +1 -0
  47. package/esm/chart/types/TransformFunction.js +55 -0
  48. package/esm/chart/types/TransformFunction.js.map +1 -0
  49. package/esm/chart/types/VizType.js +20 -0
  50. package/esm/chart/types/VizType.js.map +1 -0
  51. package/esm/chart-composition/ChartFrame.js +75 -0
  52. package/esm/chart-composition/ChartFrame.js.map +1 -0
  53. package/esm/chart-composition/index.js +24 -0
  54. package/esm/chart-composition/index.js.map +1 -0
  55. package/esm/chart-composition/legend/WithLegend.js +147 -0
  56. package/esm/chart-composition/legend/WithLegend.js.map +1 -0
  57. package/esm/chart-composition/tooltip/TooltipFrame.js +48 -0
  58. package/esm/chart-composition/tooltip/TooltipFrame.js.map +1 -0
  59. package/esm/chart-composition/tooltip/TooltipTable.js +70 -0
  60. package/esm/chart-composition/tooltip/TooltipTable.js.map +1 -0
  61. package/esm/color/CategoricalColorNamespace.js +122 -0
  62. package/esm/color/CategoricalColorNamespace.js.map +1 -0
  63. package/esm/color/CategoricalColorScale.js +375 -0
  64. package/esm/color/CategoricalColorScale.js.map +1 -0
  65. package/esm/color/CategoricalScheme.js +23 -0
  66. package/esm/color/CategoricalScheme.js.map +1 -0
  67. package/esm/color/CategoricalSchemeRegistrySingleton.js +36 -0
  68. package/esm/color/CategoricalSchemeRegistrySingleton.js.map +1 -0
  69. package/esm/color/ColorScheme.js +60 -0
  70. package/esm/color/ColorScheme.js.map +1 -0
  71. package/esm/color/ColorSchemeRegistry.js +44 -0
  72. package/esm/color/ColorSchemeRegistry.js.map +1 -0
  73. package/esm/color/LabelsColorMapSingleton.js +177 -0
  74. package/esm/color/LabelsColorMapSingleton.js.map +1 -0
  75. package/esm/color/SequentialScheme.js +97 -0
  76. package/esm/color/SequentialScheme.js.map +1 -0
  77. package/esm/color/SequentialSchemeRegistrySingleton.js +36 -0
  78. package/esm/color/SequentialSchemeRegistrySingleton.js.map +1 -0
  79. package/esm/color/colorSchemes/categorical/airbnb.js +46 -0
  80. package/esm/color/colorSchemes/categorical/airbnb.js.map +1 -0
  81. package/esm/color/colorSchemes/categorical/blueToGreen.js +45 -0
  82. package/esm/color/colorSchemes/categorical/blueToGreen.js.map +1 -0
  83. package/esm/color/colorSchemes/categorical/colorsOfRainbow.js +47 -0
  84. package/esm/color/colorSchemes/categorical/colorsOfRainbow.js.map +1 -0
  85. package/esm/color/colorSchemes/categorical/d3.js +121 -0
  86. package/esm/color/colorSchemes/categorical/d3.js.map +1 -0
  87. package/esm/color/colorSchemes/categorical/echarts.js +59 -0
  88. package/esm/color/colorSchemes/categorical/echarts.js.map +1 -0
  89. package/esm/color/colorSchemes/categorical/google.js +69 -0
  90. package/esm/color/colorSchemes/categorical/google.js.map +1 -0
  91. package/esm/color/colorSchemes/categorical/index.js +33 -0
  92. package/esm/color/colorSchemes/categorical/index.js.map +1 -0
  93. package/esm/color/colorSchemes/categorical/lyft.js +43 -0
  94. package/esm/color/colorSchemes/categorical/lyft.js.map +1 -0
  95. package/esm/color/colorSchemes/categorical/modernSunset.js +47 -0
  96. package/esm/color/colorSchemes/categorical/modernSunset.js.map +1 -0
  97. package/esm/color/colorSchemes/categorical/preset.js +57 -0
  98. package/esm/color/colorSchemes/categorical/preset.js.map +1 -0
  99. package/esm/color/colorSchemes/categorical/presetAndSuperset.js +47 -0
  100. package/esm/color/colorSchemes/categorical/presetAndSuperset.js.map +1 -0
  101. package/esm/color/colorSchemes/categorical/redToYellow.js +45 -0
  102. package/esm/color/colorSchemes/categorical/redToYellow.js.map +1 -0
  103. package/esm/color/colorSchemes/categorical/superset.js +57 -0
  104. package/esm/color/colorSchemes/categorical/superset.js.map +1 -0
  105. package/esm/color/colorSchemes/categorical/wavesOfBlue.js +45 -0
  106. package/esm/color/colorSchemes/categorical/wavesOfBlue.js.map +1 -0
  107. package/esm/color/colorSchemes/index.js +22 -0
  108. package/esm/color/colorSchemes/index.js.map +1 -0
  109. package/esm/color/colorSchemes/sequential/common.js +229 -0
  110. package/esm/color/colorSchemes/sequential/common.js.map +1 -0
  111. package/esm/color/colorSchemes/sequential/d3.js +530 -0
  112. package/esm/color/colorSchemes/sequential/d3.js.map +1 -0
  113. package/esm/color/colorSchemes/sequential/index.js +22 -0
  114. package/esm/color/colorSchemes/sequential/index.js.map +1 -0
  115. package/esm/color/index.js +43 -0
  116. package/esm/color/index.js.map +1 -0
  117. package/esm/color/stringifyAndTrim.js +27 -0
  118. package/esm/color/stringifyAndTrim.js.map +1 -0
  119. package/esm/color/types.js +36 -0
  120. package/esm/color/types.js.map +1 -0
  121. package/esm/color/utils.js +123 -0
  122. package/esm/color/utils.js.map +1 -0
  123. package/esm/components/SafeMarkdown.js +90 -0
  124. package/esm/components/SafeMarkdown.js.map +1 -0
  125. package/esm/components/constants.js +29 -0
  126. package/esm/components/constants.js.map +1 -0
  127. package/esm/components/index.js +22 -0
  128. package/esm/components/index.js.map +1 -0
  129. package/esm/connection/README.md +106 -0
  130. package/esm/connection/SupersetClient.js +56 -0
  131. package/esm/connection/SupersetClient.js.map +1 -0
  132. package/esm/connection/SupersetClientClass.js +279 -0
  133. package/esm/connection/SupersetClientClass.js.map +1 -0
  134. package/esm/connection/callApi/callApi.js +182 -0
  135. package/esm/connection/callApi/callApi.js.map +1 -0
  136. package/esm/connection/callApi/callApiAndParseWithTimeout.js +40 -0
  137. package/esm/connection/callApi/callApiAndParseWithTimeout.js.map +1 -0
  138. package/esm/connection/callApi/index.js +21 -0
  139. package/esm/connection/callApi/index.js.map +1 -0
  140. package/esm/connection/callApi/parseResponse.js +81 -0
  141. package/esm/connection/callApi/parseResponse.js.map +1 -0
  142. package/esm/connection/callApi/rejectAfterTimeout.js +35 -0
  143. package/esm/connection/callApi/rejectAfterTimeout.js.map +1 -0
  144. package/esm/connection/constants.js +42 -0
  145. package/esm/connection/constants.js.map +1 -0
  146. package/esm/connection/index.js +27 -0
  147. package/esm/connection/index.js.map +1 -0
  148. package/esm/connection/types.js +170 -0
  149. package/esm/connection/types.js.map +1 -0
  150. package/esm/currency-format/CurrencyFormatter.js +80 -0
  151. package/esm/currency-format/CurrencyFormatter.js.map +1 -0
  152. package/esm/currency-format/index.js +23 -0
  153. package/esm/currency-format/index.js.map +1 -0
  154. package/esm/currency-format/utils.js +100 -0
  155. package/esm/currency-format/utils.js.map +1 -0
  156. package/esm/dimension/computeMaxFontSize.js +95 -0
  157. package/esm/dimension/computeMaxFontSize.js.map +1 -0
  158. package/esm/dimension/getMultipleTextDimensions.js +85 -0
  159. package/esm/dimension/getMultipleTextDimensions.js.map +1 -0
  160. package/esm/dimension/getTextDimension.js +62 -0
  161. package/esm/dimension/getTextDimension.js.map +1 -0
  162. package/esm/dimension/index.js +28 -0
  163. package/esm/dimension/index.js.map +1 -0
  164. package/esm/dimension/mergeMargin.js +48 -0
  165. package/esm/dimension/mergeMargin.js.map +1 -0
  166. package/esm/dimension/parseLength.js +42 -0
  167. package/esm/dimension/parseLength.js.map +1 -0
  168. package/esm/dimension/svg/LazyFactory.js +61 -0
  169. package/esm/dimension/svg/LazyFactory.js.map +1 -0
  170. package/esm/dimension/svg/constants.js +22 -0
  171. package/esm/dimension/svg/constants.js.map +1 -0
  172. package/esm/dimension/svg/createHiddenSvgNode.js +34 -0
  173. package/esm/dimension/svg/createHiddenSvgNode.js.map +1 -0
  174. package/esm/dimension/svg/createTextNode.js +25 -0
  175. package/esm/dimension/svg/createTextNode.js.map +1 -0
  176. package/esm/dimension/svg/factories.js +26 -0
  177. package/esm/dimension/svg/factories.js.map +1 -0
  178. package/esm/dimension/svg/getBBoxCeil.js +35 -0
  179. package/esm/dimension/svg/getBBoxCeil.js.map +1 -0
  180. package/esm/dimension/svg/updateTextNode.js +72 -0
  181. package/esm/dimension/svg/updateTextNode.js.map +1 -0
  182. package/esm/dimension/types.js +42 -0
  183. package/esm/dimension/types.js.map +1 -0
  184. package/esm/dynamic-plugins/index.js +21 -0
  185. package/esm/dynamic-plugins/index.js.map +1 -0
  186. package/esm/dynamic-plugins/shared-modules.js +98 -0
  187. package/esm/dynamic-plugins/shared-modules.js.map +1 -0
  188. package/esm/hooks/index.js +26 -0
  189. package/esm/hooks/index.js.map +1 -0
  190. package/esm/hooks/useChangeEffect/index.js +21 -0
  191. package/esm/hooks/useChangeEffect/index.js.map +1 -0
  192. package/esm/hooks/useChangeEffect/useChangeEffect.js +39 -0
  193. package/esm/hooks/useChangeEffect/useChangeEffect.js.map +1 -0
  194. package/esm/hooks/useChangeEffect/useChangeEffect.test.js +55 -0
  195. package/esm/hooks/useChangeEffect/useChangeEffect.test.js.map +1 -0
  196. package/esm/hooks/useComponentDidMount/index.js +21 -0
  197. package/esm/hooks/useComponentDidMount/index.js.map +1 -0
  198. package/esm/hooks/useComponentDidMount/useComponentDidMount.js +25 -0
  199. package/esm/hooks/useComponentDidMount/useComponentDidMount.js.map +1 -0
  200. package/esm/hooks/useComponentDidMount/useComponentDidMount.test.js +29 -0
  201. package/esm/hooks/useComponentDidMount/useComponentDidMount.test.js.map +1 -0
  202. package/esm/hooks/useComponentDidUpdate/index.js +21 -0
  203. package/esm/hooks/useComponentDidUpdate/index.js.map +1 -0
  204. package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.js +36 -0
  205. package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.js.map +1 -0
  206. package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js +32 -0
  207. package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js.map +1 -0
  208. package/esm/hooks/useElementOnScreen/index.js +21 -0
  209. package/esm/hooks/useElementOnScreen/index.js.map +1 -0
  210. package/esm/hooks/useElementOnScreen/useElementOnScreen.js +47 -0
  211. package/esm/hooks/useElementOnScreen/useElementOnScreen.js.map +1 -0
  212. package/esm/hooks/useElementOnScreen/useElementOnScreen.test.js +111 -0
  213. package/esm/hooks/useElementOnScreen/useElementOnScreen.test.js.map +1 -0
  214. package/esm/hooks/usePrevious/index.js +21 -0
  215. package/esm/hooks/usePrevious/index.js.map +1 -0
  216. package/esm/hooks/usePrevious/usePrevious.js +37 -0
  217. package/esm/hooks/usePrevious/usePrevious.js.map +1 -0
  218. package/esm/hooks/usePrevious/usePrevious.test.js +44 -0
  219. package/esm/hooks/usePrevious/usePrevious.test.js.map +1 -0
  220. package/esm/hooks/useTruncation/index.js +24 -0
  221. package/esm/hooks/useTruncation/index.js.map +1 -0
  222. package/esm/hooks/useTruncation/useCSSTextTruncation.js +62 -0
  223. package/esm/hooks/useTruncation/useCSSTextTruncation.js.map +1 -0
  224. package/esm/hooks/useTruncation/useCSSTextTruncation.test.js +62 -0
  225. package/esm/hooks/useTruncation/useCSSTextTruncation.test.js.map +1 -0
  226. package/esm/hooks/useTruncation/useChildElementTruncation.js +95 -0
  227. package/esm/hooks/useTruncation/useChildElementTruncation.js.map +1 -0
  228. package/esm/hooks/useTruncation/useChildElementTruncation.test.js +223 -0
  229. package/esm/hooks/useTruncation/useChildElementTruncation.test.js.map +1 -0
  230. package/esm/index.js +41 -0
  231. package/esm/index.js.map +1 -0
  232. package/esm/math-expression/index.js +122 -0
  233. package/esm/math-expression/index.js.map +1 -0
  234. package/esm/models/ExtensibleFunction.js +31 -0
  235. package/esm/models/ExtensibleFunction.js.map +1 -0
  236. package/esm/models/Plugin.js +54 -0
  237. package/esm/models/Plugin.js.map +1 -0
  238. package/esm/models/Preset.js +57 -0
  239. package/esm/models/Preset.js.map +1 -0
  240. package/esm/models/Registry.js +286 -0
  241. package/esm/models/Registry.js.map +1 -0
  242. package/esm/models/RegistryWithDefaultKey.js +95 -0
  243. package/esm/models/RegistryWithDefaultKey.js.map +1 -0
  244. package/esm/models/TypedRegistry.js +61 -0
  245. package/esm/models/TypedRegistry.js.map +1 -0
  246. package/esm/models/index.js +25 -0
  247. package/esm/models/index.js.map +1 -0
  248. package/esm/number-format/D3FormatConfig.js +27 -0
  249. package/esm/number-format/D3FormatConfig.js.map +1 -0
  250. package/esm/number-format/NumberFormats.js +90 -0
  251. package/esm/number-format/NumberFormats.js.map +1 -0
  252. package/esm/number-format/NumberFormatter.js +87 -0
  253. package/esm/number-format/NumberFormatter.js.map +1 -0
  254. package/esm/number-format/NumberFormatterRegistry.js +86 -0
  255. package/esm/number-format/NumberFormatterRegistry.js.map +1 -0
  256. package/esm/number-format/NumberFormatterRegistrySingleton.js +41 -0
  257. package/esm/number-format/NumberFormatterRegistrySingleton.js.map +1 -0
  258. package/esm/number-format/README.md +82 -0
  259. package/esm/number-format/factories/createD3NumberFormatter.js +58 -0
  260. package/esm/number-format/factories/createD3NumberFormatter.js.map +1 -0
  261. package/esm/number-format/factories/createDurationFormatter.js +41 -0
  262. package/esm/number-format/factories/createDurationFormatter.js.map +1 -0
  263. package/esm/number-format/factories/createMemoryFormatter.js +56 -0
  264. package/esm/number-format/factories/createMemoryFormatter.js.map +1 -0
  265. package/esm/number-format/factories/createSiAtMostNDigitFormatter.js +46 -0
  266. package/esm/number-format/factories/createSiAtMostNDigitFormatter.js.map +1 -0
  267. package/esm/number-format/factories/createSmartNumberFormatter.js +71 -0
  268. package/esm/number-format/factories/createSmartNumberFormatter.js.map +1 -0
  269. package/esm/number-format/index.js +37 -0
  270. package/esm/number-format/index.js.map +1 -0
  271. package/esm/number-format/types.js +1 -0
  272. package/esm/number-format/types.js.map +1 -0
  273. package/esm/query/DatasourceKey.js +45 -0
  274. package/esm/query/DatasourceKey.js.map +1 -0
  275. package/esm/query/README.md +30 -0
  276. package/esm/query/api/legacy/getDatasourceMetadata.js +40 -0
  277. package/esm/query/api/legacy/getDatasourceMetadata.js.map +1 -0
  278. package/esm/query/api/legacy/getFormData.js +46 -0
  279. package/esm/query/api/legacy/getFormData.js.map +1 -0
  280. package/esm/query/api/legacy/index.js +25 -0
  281. package/esm/query/api/legacy/index.js.map +1 -0
  282. package/esm/query/api/legacy/types.js +27 -0
  283. package/esm/query/api/legacy/types.js.map +1 -0
  284. package/esm/query/api/types.js +1 -0
  285. package/esm/query/api/types.js.map +1 -0
  286. package/esm/query/api/v1/handleError.js +107 -0
  287. package/esm/query/api/v1/handleError.js.map +1 -0
  288. package/esm/query/api/v1/index.js +33 -0
  289. package/esm/query/api/v1/index.js.map +1 -0
  290. package/esm/query/api/v1/makeApi.js +159 -0
  291. package/esm/query/api/v1/makeApi.js.map +1 -0
  292. package/esm/query/api/v1/types.js +142 -0
  293. package/esm/query/api/v1/types.js.map +1 -0
  294. package/esm/query/buildQueryContext.js +72 -0
  295. package/esm/query/buildQueryContext.js.map +1 -0
  296. package/esm/query/buildQueryObject.js +141 -0
  297. package/esm/query/buildQueryObject.js.map +1 -0
  298. package/esm/query/constants.js +60 -0
  299. package/esm/query/constants.js.map +1 -0
  300. package/esm/query/convertFilter.js +57 -0
  301. package/esm/query/convertFilter.js.map +1 -0
  302. package/esm/query/extractExtras.js +84 -0
  303. package/esm/query/extractExtras.js.map +1 -0
  304. package/esm/query/extractQueryFields.js +129 -0
  305. package/esm/query/extractQueryFields.js.map +1 -0
  306. package/esm/query/extractTimegrain.js +39 -0
  307. package/esm/query/extractTimegrain.js.map +1 -0
  308. package/esm/query/getClientErrorObject.js +304 -0
  309. package/esm/query/getClientErrorObject.js.map +1 -0
  310. package/esm/query/getColumnLabel.js +31 -0
  311. package/esm/query/getColumnLabel.js.map +1 -0
  312. package/esm/query/getMetricLabel.js +36 -0
  313. package/esm/query/getMetricLabel.js.map +1 -0
  314. package/esm/query/getXAxis.js +52 -0
  315. package/esm/query/getXAxis.js.map +1 -0
  316. package/esm/query/index.js +48 -0
  317. package/esm/query/index.js.map +1 -0
  318. package/esm/query/normalizeOrderBy.js +80 -0
  319. package/esm/query/normalizeOrderBy.js.map +1 -0
  320. package/esm/query/normalizeTimeColumn.js +82 -0
  321. package/esm/query/normalizeTimeColumn.js.map +1 -0
  322. package/esm/query/processExtraFormData.js +50 -0
  323. package/esm/query/processExtraFormData.js.map +1 -0
  324. package/esm/query/processFilters.js +76 -0
  325. package/esm/query/processFilters.js.map +1 -0
  326. package/esm/query/types/AdvancedAnalytics.js +44 -0
  327. package/esm/query/types/AdvancedAnalytics.js.map +1 -0
  328. package/esm/query/types/AnnotationLayer.js +185 -0
  329. package/esm/query/types/AnnotationLayer.js.map +1 -0
  330. package/esm/query/types/Column.js +82 -0
  331. package/esm/query/types/Column.js.map +1 -0
  332. package/esm/query/types/Dashboard.js +171 -0
  333. package/esm/query/types/Dashboard.js.map +1 -0
  334. package/esm/query/types/Datasource.js +65 -0
  335. package/esm/query/types/Datasource.js.map +1 -0
  336. package/esm/query/types/Filter.js +100 -0
  337. package/esm/query/types/Filter.js.map +1 -0
  338. package/esm/query/types/Metric.js +98 -0
  339. package/esm/query/types/Metric.js.map +1 -0
  340. package/esm/query/types/Operator.js +75 -0
  341. package/esm/query/types/Operator.js.map +1 -0
  342. package/esm/query/types/PostProcessing.js +360 -0
  343. package/esm/query/types/PostProcessing.js.map +1 -0
  344. package/esm/query/types/Query.js +486 -0
  345. package/esm/query/types/Query.js.map +1 -0
  346. package/esm/query/types/QueryFormData.js +212 -0
  347. package/esm/query/types/QueryFormData.js.map +1 -0
  348. package/esm/query/types/QueryResponse.js +98 -0
  349. package/esm/query/types/QueryResponse.js.map +1 -0
  350. package/esm/query/types/Time.js +40 -0
  351. package/esm/query/types/Time.js.map +1 -0
  352. package/esm/query/types/index.js +43 -0
  353. package/esm/query/types/index.js.map +1 -0
  354. package/esm/style/index.js +174 -0
  355. package/esm/style/index.js.map +1 -0
  356. package/esm/time-comparison/README.md +47 -0
  357. package/esm/time-comparison/customTimeRangeDecode.js +174 -0
  358. package/esm/time-comparison/customTimeRangeDecode.js.map +1 -0
  359. package/esm/time-comparison/fetchTimeRange.js +113 -0
  360. package/esm/time-comparison/fetchTimeRange.js.map +1 -0
  361. package/esm/time-comparison/getComparisonFilters.js +68 -0
  362. package/esm/time-comparison/getComparisonFilters.js.map +1 -0
  363. package/esm/time-comparison/getComparisonInfo.js +66 -0
  364. package/esm/time-comparison/getComparisonInfo.js.map +1 -0
  365. package/esm/time-comparison/getTimeOffset.js +319 -0
  366. package/esm/time-comparison/getTimeOffset.js.map +1 -0
  367. package/esm/time-comparison/index.js +31 -0
  368. package/esm/time-comparison/index.js.map +1 -0
  369. package/esm/time-comparison/types.js +25 -0
  370. package/esm/time-comparison/types.js.map +1 -0
  371. package/esm/time-format/D3FormatConfig.js +66 -0
  372. package/esm/time-format/D3FormatConfig.js.map +1 -0
  373. package/esm/time-format/README.md +68 -0
  374. package/esm/time-format/TimeFormats.js +39 -0
  375. package/esm/time-format/TimeFormats.js.map +1 -0
  376. package/esm/time-format/TimeFormatsForGranularity.js +50 -0
  377. package/esm/time-format/TimeFormatsForGranularity.js.map +1 -0
  378. package/esm/time-format/TimeFormatter.js +77 -0
  379. package/esm/time-format/TimeFormatter.js.map +1 -0
  380. package/esm/time-format/TimeFormatterRegistry.js +78 -0
  381. package/esm/time-format/TimeFormatterRegistry.js.map +1 -0
  382. package/esm/time-format/TimeFormatterRegistrySingleton.js +92 -0
  383. package/esm/time-format/TimeFormatterRegistrySingleton.js.map +1 -0
  384. package/esm/time-format/TimeRangeFormatter.js +69 -0
  385. package/esm/time-format/TimeRangeFormatter.js.map +1 -0
  386. package/esm/time-format/factories/createD3TimeFormatter.js +65 -0
  387. package/esm/time-format/factories/createD3TimeFormatter.js.map +1 -0
  388. package/esm/time-format/factories/createMultiFormatter.js +124 -0
  389. package/esm/time-format/factories/createMultiFormatter.js.map +1 -0
  390. package/esm/time-format/formatters/finestTemporalGrain.js +81 -0
  391. package/esm/time-format/formatters/finestTemporalGrain.js.map +1 -0
  392. package/esm/time-format/formatters/finestTemporalGrain.test.js +64 -0
  393. package/esm/time-format/formatters/finestTemporalGrain.test.js.map +1 -0
  394. package/esm/time-format/formatters/smartDate.js +42 -0
  395. package/esm/time-format/formatters/smartDate.js.map +1 -0
  396. package/esm/time-format/formatters/smartDateDetailed.js +44 -0
  397. package/esm/time-format/formatters/smartDateDetailed.js.map +1 -0
  398. package/esm/time-format/formatters/smartDateVerbose.js +42 -0
  399. package/esm/time-format/formatters/smartDateVerbose.js.map +1 -0
  400. package/esm/time-format/index.js +54 -0
  401. package/esm/time-format/index.js.map +1 -0
  402. package/esm/time-format/types.js +48 -0
  403. package/esm/time-format/types.js.map +1 -0
  404. package/esm/time-format/utils/createTime.js +41 -0
  405. package/esm/time-format/utils/createTime.js.map +1 -0
  406. package/esm/time-format/utils/createTimeRangeFromGranularity.js +112 -0
  407. package/esm/time-format/utils/createTimeRangeFromGranularity.js.map +1 -0
  408. package/esm/time-format/utils/d3Time.js +142 -0
  409. package/esm/time-format/utils/d3Time.js.map +1 -0
  410. package/esm/time-format/utils/denormalizeTimestamp.js +29 -0
  411. package/esm/time-format/utils/denormalizeTimestamp.js.map +1 -0
  412. package/esm/time-format/utils/normalizeTimestamp.js +29 -0
  413. package/esm/time-format/utils/normalizeTimestamp.js.map +1 -0
  414. package/esm/time-format/utils/stringifyTimeInput.js +30 -0
  415. package/esm/time-format/utils/stringifyTimeInput.js.map +1 -0
  416. package/esm/translation/README.md +71 -0
  417. package/esm/translation/Translator.js +106 -0
  418. package/esm/translation/Translator.js.map +1 -0
  419. package/esm/translation/TranslatorSingleton.js +82 -0
  420. package/esm/translation/TranslatorSingleton.js.map +1 -0
  421. package/esm/translation/index.js +26 -0
  422. package/esm/translation/index.js.map +1 -0
  423. package/esm/translation/types/index.js +74 -0
  424. package/esm/translation/types/index.js.map +1 -0
  425. package/esm/translation/types/jed.js +57 -0
  426. package/esm/translation/types/jed.js.map +1 -0
  427. package/esm/types/index.js +23 -0
  428. package/esm/types/index.js.map +1 -0
  429. package/esm/ui-overrides/ExtensionsRegistry.js +32 -0
  430. package/esm/ui-overrides/ExtensionsRegistry.js.map +1 -0
  431. package/esm/ui-overrides/index.js +21 -0
  432. package/esm/ui-overrides/index.js.map +1 -0
  433. package/esm/ui-overrides/types.js +1 -0
  434. package/esm/ui-overrides/types.js.map +1 -0
  435. package/esm/utils/convertKeysToCamelCase.js +34 -0
  436. package/esm/utils/convertKeysToCamelCase.js.map +1 -0
  437. package/esm/utils/ensureIsArray.js +30 -0
  438. package/esm/utils/ensureIsArray.js.map +1 -0
  439. package/esm/utils/ensureIsInt.js +28 -0
  440. package/esm/utils/ensureIsInt.js.map +1 -0
  441. package/esm/utils/featureFlags.js +105 -0
  442. package/esm/utils/featureFlags.js.map +1 -0
  443. package/esm/utils/getSelectedText.js +20 -0
  444. package/esm/utils/getSelectedText.js.map +1 -0
  445. package/esm/utils/html.js +122 -0
  446. package/esm/utils/html.js.map +1 -0
  447. package/esm/utils/html.test.js +192 -0
  448. package/esm/utils/html.test.js.map +1 -0
  449. package/esm/utils/index.js +36 -0
  450. package/esm/utils/index.js.map +1 -0
  451. package/esm/utils/isDefined.js +23 -0
  452. package/esm/utils/isDefined.js.map +1 -0
  453. package/esm/utils/isEqualArray.js +34 -0
  454. package/esm/utils/isEqualArray.js.map +1 -0
  455. package/esm/utils/isEqualArray.test.js +32 -0
  456. package/esm/utils/isEqualArray.test.js.map +1 -0
  457. package/esm/utils/isRequired.js +23 -0
  458. package/esm/utils/isRequired.js.map +1 -0
  459. package/esm/utils/logging.js +39 -0
  460. package/esm/utils/logging.js.map +1 -0
  461. package/esm/utils/lruCache.js +75 -0
  462. package/esm/utils/lruCache.js.map +1 -0
  463. package/esm/utils/makeSingleton.js +38 -0
  464. package/esm/utils/makeSingleton.js.map +1 -0
  465. package/esm/utils/promiseTimeout.js +33 -0
  466. package/esm/utils/promiseTimeout.js.map +1 -0
  467. package/esm/utils/random.js +28 -0
  468. package/esm/utils/random.js.map +1 -0
  469. package/esm/utils/removeDuplicates.js +39 -0
  470. package/esm/utils/removeDuplicates.js.map +1 -0
  471. package/esm/utils/tooltip.js +58 -0
  472. package/esm/utils/tooltip.js.map +1 -0
  473. package/esm/utils/typedMemo.js +22 -0
  474. package/esm/utils/typedMemo.js.map +1 -0
  475. package/esm/validator/index.js +28 -0
  476. package/esm/validator/index.js.map +1 -0
  477. package/esm/validator/legacyValidateInteger.js +35 -0
  478. package/esm/validator/legacyValidateInteger.js.map +1 -0
  479. package/esm/validator/legacyValidateNumber.js +32 -0
  480. package/esm/validator/legacyValidateNumber.js.map +1 -0
  481. package/esm/validator/validateInteger.js +34 -0
  482. package/esm/validator/validateInteger.js.map +1 -0
  483. package/esm/validator/validateMapboxStylesUrl.js +37 -0
  484. package/esm/validator/validateMapboxStylesUrl.js.map +1 -0
  485. package/esm/validator/validateMaxValue.js +27 -0
  486. package/esm/validator/validateMaxValue.js.map +1 -0
  487. package/esm/validator/validateNonEmpty.js +33 -0
  488. package/esm/validator/validateNonEmpty.js.map +1 -0
  489. package/esm/validator/validateNumber.js +34 -0
  490. package/esm/validator/validateNumber.js.map +1 -0
  491. package/esm/validator/validateTimeComparisonRangeValues.js +38 -0
  492. package/esm/validator/validateTimeComparisonRangeValues.js.map +1 -0
  493. package/lib/api/index.js +1 -0
  494. package/lib/api/types/core.d.ts +30 -0
  495. package/lib/api/types/core.d.ts.map +1 -0
  496. package/lib/api/types/core.js +19 -0
  497. package/lib/api/types/core.js.map +1 -0
  498. package/lib/chart/clients/ChartClient.d.ts +34 -0
  499. package/lib/chart/clients/ChartClient.d.ts.map +1 -0
  500. package/lib/chart/clients/ChartClient.js +119 -0
  501. package/lib/chart/clients/ChartClient.js.map +1 -0
  502. package/lib/chart/components/ChartDataProvider.d.ts +52 -0
  503. package/lib/chart/components/ChartDataProvider.d.ts.map +1 -0
  504. package/lib/chart/components/ChartDataProvider.js +171 -0
  505. package/lib/chart/components/ChartDataProvider.js.map +1 -0
  506. package/lib/chart/components/ChartDataProvider.jsx +97 -0
  507. package/lib/chart/components/ChartDataProvider.jsx.map +1 -0
  508. package/lib/chart/components/FallbackComponent.d.ts +5 -0
  509. package/lib/chart/components/FallbackComponent.d.ts.map +1 -0
  510. package/lib/chart/components/FallbackComponent.js +61 -0
  511. package/lib/chart/components/FallbackComponent.js.map +1 -0
  512. package/lib/chart/components/FallbackComponent.jsx +41 -0
  513. package/lib/chart/components/FallbackComponent.jsx.map +1 -0
  514. package/lib/chart/components/NoResultsComponent.d.ts +9 -0
  515. package/lib/chart/components/NoResultsComponent.d.ts.map +1 -0
  516. package/lib/chart/components/NoResultsComponent.js +88 -0
  517. package/lib/chart/components/NoResultsComponent.js.map +1 -0
  518. package/lib/chart/components/NoResultsComponent.jsx +57 -0
  519. package/lib/chart/components/NoResultsComponent.jsx.map +1 -0
  520. package/lib/chart/components/SuperChart.d.ts +108 -0
  521. package/lib/chart/components/SuperChart.d.ts.map +1 -0
  522. package/lib/chart/components/SuperChart.js +267 -0
  523. package/lib/chart/components/SuperChart.js.map +1 -0
  524. package/lib/chart/components/SuperChart.jsx +121 -0
  525. package/lib/chart/components/SuperChart.jsx.map +1 -0
  526. package/lib/chart/components/SuperChartCore.d.ts +59 -0
  527. package/lib/chart/components/SuperChartCore.d.ts.map +1 -0
  528. package/lib/chart/components/SuperChartCore.js +236 -0
  529. package/lib/chart/components/SuperChartCore.js.map +1 -0
  530. package/lib/chart/components/SuperChartCore.jsx +139 -0
  531. package/lib/chart/components/SuperChartCore.jsx.map +1 -0
  532. package/lib/chart/components/createLoadableRenderer.d.ts +12 -0
  533. package/lib/chart/components/createLoadableRenderer.d.ts.map +1 -0
  534. package/lib/chart/components/createLoadableRenderer.js +52 -0
  535. package/lib/chart/components/createLoadableRenderer.js.map +1 -0
  536. package/lib/chart/components/reactify.d.ts +16 -0
  537. package/lib/chart/components/reactify.d.ts.map +1 -0
  538. package/lib/chart/components/reactify.js +115 -0
  539. package/lib/chart/components/reactify.js.map +1 -0
  540. package/lib/chart/components/reactify.jsx +69 -0
  541. package/lib/chart/components/reactify.jsx.map +1 -0
  542. package/lib/chart/index.d.ts +24 -0
  543. package/lib/chart/index.d.ts.map +1 -0
  544. package/lib/chart/index.js +40 -0
  545. package/lib/chart/index.js.map +1 -0
  546. package/lib/chart/models/ChartControlPanel.d.ts +4 -0
  547. package/lib/chart/models/ChartControlPanel.d.ts.map +1 -0
  548. package/lib/chart/models/ChartControlPanel.js +20 -0
  549. package/lib/chart/models/ChartControlPanel.js.map +1 -0
  550. package/lib/chart/models/ChartMetadata.d.ts +57 -0
  551. package/lib/chart/models/ChartMetadata.d.ts.map +1 -0
  552. package/lib/chart/models/ChartMetadata.js +74 -0
  553. package/lib/chart/models/ChartMetadata.js.map +1 -0
  554. package/lib/chart/models/ChartPlugin.d.ts +44 -0
  555. package/lib/chart/models/ChartPlugin.d.ts.map +1 -0
  556. package/lib/chart/models/ChartPlugin.js +92 -0
  557. package/lib/chart/models/ChartPlugin.js.map +1 -0
  558. package/lib/chart/models/ChartProps.d.ts +99 -0
  559. package/lib/chart/models/ChartProps.d.ts.map +1 -0
  560. package/lib/chart/models/ChartProps.js +95 -0
  561. package/lib/chart/models/ChartProps.js.map +1 -0
  562. package/lib/chart/registries/ChartBuildQueryRegistrySingleton.d.ts +17 -0
  563. package/lib/chart/registries/ChartBuildQueryRegistrySingleton.d.ts.map +1 -0
  564. package/lib/chart/registries/ChartBuildQueryRegistrySingleton.js +27 -0
  565. package/lib/chart/registries/ChartBuildQueryRegistrySingleton.js.map +1 -0
  566. package/lib/chart/registries/ChartComponentRegistrySingleton.d.ts +8 -0
  567. package/lib/chart/registries/ChartComponentRegistrySingleton.d.ts.map +1 -0
  568. package/lib/chart/registries/ChartComponentRegistrySingleton.js +27 -0
  569. package/lib/chart/registries/ChartComponentRegistrySingleton.js.map +1 -0
  570. package/lib/chart/registries/ChartControlPanelRegistrySingleton.d.ts +8 -0
  571. package/lib/chart/registries/ChartControlPanelRegistrySingleton.d.ts.map +1 -0
  572. package/lib/chart/registries/ChartControlPanelRegistrySingleton.js +27 -0
  573. package/lib/chart/registries/ChartControlPanelRegistrySingleton.js.map +1 -0
  574. package/lib/chart/registries/ChartMetadataRegistrySingleton.d.ts +8 -0
  575. package/lib/chart/registries/ChartMetadataRegistrySingleton.d.ts.map +1 -0
  576. package/lib/chart/registries/ChartMetadataRegistrySingleton.js +27 -0
  577. package/lib/chart/registries/ChartMetadataRegistrySingleton.js.map +1 -0
  578. package/lib/chart/registries/ChartTransformPropsRegistrySingleton.d.ts +8 -0
  579. package/lib/chart/registries/ChartTransformPropsRegistrySingleton.d.ts.map +1 -0
  580. package/lib/chart/registries/ChartTransformPropsRegistrySingleton.js +30 -0
  581. package/lib/chart/registries/ChartTransformPropsRegistrySingleton.js.map +1 -0
  582. package/lib/chart/types/Annotation.d.ts +5 -0
  583. package/lib/chart/types/Annotation.d.ts.map +1 -0
  584. package/lib/chart/types/Annotation.js +20 -0
  585. package/lib/chart/types/Annotation.js.map +1 -0
  586. package/lib/chart/types/Base.d.ts +67 -0
  587. package/lib/chart/types/Base.d.ts.map +1 -0
  588. package/lib/chart/types/Base.js +63 -0
  589. package/lib/chart/types/Base.js.map +1 -0
  590. package/lib/chart/types/QueryResponse.d.ts +25 -0
  591. package/lib/chart/types/QueryResponse.d.ts.map +1 -0
  592. package/lib/chart/types/QueryResponse.js +20 -0
  593. package/lib/chart/types/QueryResponse.js.map +1 -0
  594. package/lib/chart/types/TransformFunction.d.ts +21 -0
  595. package/lib/chart/types/TransformFunction.d.ts.map +1 -0
  596. package/lib/chart/types/TransformFunction.js +20 -0
  597. package/lib/chart/types/TransformFunction.js.map +1 -0
  598. package/lib/chart/types/VizType.d.ts +55 -0
  599. package/lib/chart/types/VizType.d.ts.map +1 -0
  600. package/lib/chart/types/VizType.js +74 -0
  601. package/lib/chart/types/VizType.js.map +1 -0
  602. package/lib/chart-composition/ChartFrame.d.ts +19 -0
  603. package/lib/chart-composition/ChartFrame.d.ts.map +1 -0
  604. package/lib/chart-composition/ChartFrame.js +76 -0
  605. package/lib/chart-composition/ChartFrame.js.map +1 -0
  606. package/lib/chart-composition/ChartFrame.jsx +48 -0
  607. package/lib/chart-composition/ChartFrame.jsx.map +1 -0
  608. package/lib/chart-composition/index.d.ts +5 -0
  609. package/lib/chart-composition/index.d.ts.map +1 -0
  610. package/lib/chart-composition/index.js +23 -0
  611. package/lib/chart-composition/index.js.map +1 -0
  612. package/lib/chart-composition/legend/WithLegend.d.ts +35 -0
  613. package/lib/chart-composition/legend/WithLegend.d.ts.map +1 -0
  614. package/lib/chart-composition/legend/WithLegend.js +147 -0
  615. package/lib/chart-composition/legend/WithLegend.js.map +1 -0
  616. package/lib/chart-composition/legend/WithLegend.jsx +105 -0
  617. package/lib/chart-composition/legend/WithLegend.jsx.map +1 -0
  618. package/lib/chart-composition/tooltip/TooltipFrame.d.ts +16 -0
  619. package/lib/chart-composition/tooltip/TooltipFrame.d.ts.map +1 -0
  620. package/lib/chart-composition/tooltip/TooltipFrame.js +48 -0
  621. package/lib/chart-composition/tooltip/TooltipFrame.js.map +1 -0
  622. package/lib/chart-composition/tooltip/TooltipFrame.jsx +34 -0
  623. package/lib/chart-composition/tooltip/TooltipFrame.jsx.map +1 -0
  624. package/lib/chart-composition/tooltip/TooltipTable.d.ts +25 -0
  625. package/lib/chart-composition/tooltip/TooltipTable.d.ts.map +1 -0
  626. package/lib/chart-composition/tooltip/TooltipTable.js +71 -0
  627. package/lib/chart-composition/tooltip/TooltipTable.js.map +1 -0
  628. package/lib/chart-composition/tooltip/TooltipTable.jsx +43 -0
  629. package/lib/chart-composition/tooltip/TooltipTable.jsx.map +1 -0
  630. package/lib/color/CategoricalColorNamespace.d.ts +32 -0
  631. package/lib/color/CategoricalColorNamespace.d.ts.map +1 -0
  632. package/lib/color/CategoricalColorNamespace.js +91 -0
  633. package/lib/color/CategoricalColorNamespace.js.map +1 -0
  634. package/lib/color/CategoricalColorScale.d.ts +132 -0
  635. package/lib/color/CategoricalColorScale.d.ts.map +1 -0
  636. package/lib/color/CategoricalColorScale.js +255 -0
  637. package/lib/color/CategoricalColorScale.js.map +1 -0
  638. package/lib/color/CategoricalScheme.d.ts +4 -0
  639. package/lib/color/CategoricalScheme.d.ts.map +1 -0
  640. package/lib/color/CategoricalScheme.js +22 -0
  641. package/lib/color/CategoricalScheme.js.map +1 -0
  642. package/lib/color/CategoricalSchemeRegistrySingleton.d.ts +8 -0
  643. package/lib/color/CategoricalSchemeRegistrySingleton.d.ts.map +1 -0
  644. package/lib/color/CategoricalSchemeRegistrySingleton.js +30 -0
  645. package/lib/color/CategoricalSchemeRegistrySingleton.js.map +1 -0
  646. package/lib/color/ColorScheme.d.ts +19 -0
  647. package/lib/color/ColorScheme.d.ts.map +1 -0
  648. package/lib/color/ColorScheme.js +35 -0
  649. package/lib/color/ColorScheme.js.map +1 -0
  650. package/lib/color/ColorSchemeRegistry.d.ts +6 -0
  651. package/lib/color/ColorSchemeRegistry.d.ts.map +1 -0
  652. package/lib/color/ColorSchemeRegistry.js +40 -0
  653. package/lib/color/ColorSchemeRegistry.js.map +1 -0
  654. package/lib/color/LabelsColorMapSingleton.d.ts +58 -0
  655. package/lib/color/LabelsColorMapSingleton.d.ts.map +1 -0
  656. package/lib/color/LabelsColorMapSingleton.js +141 -0
  657. package/lib/color/LabelsColorMapSingleton.js.map +1 -0
  658. package/lib/color/SequentialScheme.d.ts +30 -0
  659. package/lib/color/SequentialScheme.d.ts.map +1 -0
  660. package/lib/color/SequentialScheme.js +67 -0
  661. package/lib/color/SequentialScheme.js.map +1 -0
  662. package/lib/color/SequentialSchemeRegistrySingleton.d.ts +8 -0
  663. package/lib/color/SequentialSchemeRegistrySingleton.d.ts.map +1 -0
  664. package/lib/color/SequentialSchemeRegistrySingleton.js +30 -0
  665. package/lib/color/SequentialSchemeRegistrySingleton.js.map +1 -0
  666. package/lib/color/colorSchemes/categorical/airbnb.d.ts +4 -0
  667. package/lib/color/colorSchemes/categorical/airbnb.d.ts.map +1 -0
  668. package/lib/color/colorSchemes/categorical/airbnb.js +43 -0
  669. package/lib/color/colorSchemes/categorical/airbnb.js.map +1 -0
  670. package/lib/color/colorSchemes/categorical/blueToGreen.d.ts +4 -0
  671. package/lib/color/colorSchemes/categorical/blueToGreen.d.ts.map +1 -0
  672. package/lib/color/colorSchemes/categorical/blueToGreen.js +42 -0
  673. package/lib/color/colorSchemes/categorical/blueToGreen.js.map +1 -0
  674. package/lib/color/colorSchemes/categorical/colorsOfRainbow.d.ts +4 -0
  675. package/lib/color/colorSchemes/categorical/colorsOfRainbow.d.ts.map +1 -0
  676. package/lib/color/colorSchemes/categorical/colorsOfRainbow.js +44 -0
  677. package/lib/color/colorSchemes/categorical/colorsOfRainbow.js.map +1 -0
  678. package/lib/color/colorSchemes/categorical/d3.d.ts +4 -0
  679. package/lib/color/colorSchemes/categorical/d3.d.ts.map +1 -0
  680. package/lib/color/colorSchemes/categorical/d3.js +118 -0
  681. package/lib/color/colorSchemes/categorical/d3.js.map +1 -0
  682. package/lib/color/colorSchemes/categorical/echarts.d.ts +4 -0
  683. package/lib/color/colorSchemes/categorical/echarts.d.ts.map +1 -0
  684. package/lib/color/colorSchemes/categorical/echarts.js +56 -0
  685. package/lib/color/colorSchemes/categorical/echarts.js.map +1 -0
  686. package/lib/color/colorSchemes/categorical/google.d.ts +4 -0
  687. package/lib/color/colorSchemes/categorical/google.d.ts.map +1 -0
  688. package/lib/color/colorSchemes/categorical/google.js +66 -0
  689. package/lib/color/colorSchemes/categorical/google.js.map +1 -0
  690. package/lib/color/colorSchemes/categorical/index.d.ts +14 -0
  691. package/lib/color/colorSchemes/categorical/index.d.ts.map +1 -0
  692. package/lib/color/colorSchemes/categorical/index.js +32 -0
  693. package/lib/color/colorSchemes/categorical/index.js.map +1 -0
  694. package/lib/color/colorSchemes/categorical/lyft.d.ts +4 -0
  695. package/lib/color/colorSchemes/categorical/lyft.d.ts.map +1 -0
  696. package/lib/color/colorSchemes/categorical/lyft.js +40 -0
  697. package/lib/color/colorSchemes/categorical/lyft.js.map +1 -0
  698. package/lib/color/colorSchemes/categorical/modernSunset.d.ts +4 -0
  699. package/lib/color/colorSchemes/categorical/modernSunset.d.ts.map +1 -0
  700. package/lib/color/colorSchemes/categorical/modernSunset.js +44 -0
  701. package/lib/color/colorSchemes/categorical/modernSunset.js.map +1 -0
  702. package/lib/color/colorSchemes/categorical/preset.d.ts +4 -0
  703. package/lib/color/colorSchemes/categorical/preset.d.ts.map +1 -0
  704. package/lib/color/colorSchemes/categorical/preset.js +54 -0
  705. package/lib/color/colorSchemes/categorical/preset.js.map +1 -0
  706. package/lib/color/colorSchemes/categorical/presetAndSuperset.d.ts +4 -0
  707. package/lib/color/colorSchemes/categorical/presetAndSuperset.d.ts.map +1 -0
  708. package/lib/color/colorSchemes/categorical/presetAndSuperset.js +44 -0
  709. package/lib/color/colorSchemes/categorical/presetAndSuperset.js.map +1 -0
  710. package/lib/color/colorSchemes/categorical/redToYellow.d.ts +4 -0
  711. package/lib/color/colorSchemes/categorical/redToYellow.d.ts.map +1 -0
  712. package/lib/color/colorSchemes/categorical/redToYellow.js +42 -0
  713. package/lib/color/colorSchemes/categorical/redToYellow.js.map +1 -0
  714. package/lib/color/colorSchemes/categorical/superset.d.ts +4 -0
  715. package/lib/color/colorSchemes/categorical/superset.d.ts.map +1 -0
  716. package/lib/color/colorSchemes/categorical/superset.js +54 -0
  717. package/lib/color/colorSchemes/categorical/superset.js.map +1 -0
  718. package/lib/color/colorSchemes/categorical/wavesOfBlue.d.ts +4 -0
  719. package/lib/color/colorSchemes/categorical/wavesOfBlue.d.ts.map +1 -0
  720. package/lib/color/colorSchemes/categorical/wavesOfBlue.js +42 -0
  721. package/lib/color/colorSchemes/categorical/wavesOfBlue.js.map +1 -0
  722. package/lib/color/colorSchemes/index.d.ts +3 -0
  723. package/lib/color/colorSchemes/index.d.ts.map +1 -0
  724. package/lib/color/colorSchemes/index.js +21 -0
  725. package/lib/color/colorSchemes/index.js.map +1 -0
  726. package/lib/color/colorSchemes/sequential/common.d.ts +4 -0
  727. package/lib/color/colorSchemes/sequential/common.d.ts.map +1 -0
  728. package/lib/color/colorSchemes/sequential/common.js +226 -0
  729. package/lib/color/colorSchemes/sequential/common.js.map +1 -0
  730. package/lib/color/colorSchemes/sequential/d3.d.ts +4 -0
  731. package/lib/color/colorSchemes/sequential/d3.d.ts.map +1 -0
  732. package/lib/color/colorSchemes/sequential/d3.js +527 -0
  733. package/lib/color/colorSchemes/sequential/d3.js.map +1 -0
  734. package/lib/color/colorSchemes/sequential/index.d.ts +3 -0
  735. package/lib/color/colorSchemes/sequential/index.d.ts.map +1 -0
  736. package/lib/color/colorSchemes/sequential/index.js +21 -0
  737. package/lib/color/colorSchemes/sequential/index.js.map +1 -0
  738. package/lib/color/index.d.ts +18 -0
  739. package/lib/color/index.d.ts.map +1 -0
  740. package/lib/color/index.js +36 -0
  741. package/lib/color/index.js.map +1 -0
  742. package/lib/color/stringifyAndTrim.d.ts +6 -0
  743. package/lib/color/stringifyAndTrim.d.ts.map +1 -0
  744. package/lib/color/stringifyAndTrim.js +26 -0
  745. package/lib/color/stringifyAndTrim.js.map +1 -0
  746. package/lib/color/types.d.ts +18 -0
  747. package/lib/color/types.d.ts.map +1 -0
  748. package/lib/color/types.js +25 -0
  749. package/lib/color/types.js.map +1 -0
  750. package/lib/color/utils.d.ts +6 -0
  751. package/lib/color/utils.d.ts.map +1 -0
  752. package/lib/color/utils.js +113 -0
  753. package/lib/color/utils.js.map +1 -0
  754. package/lib/components/SafeMarkdown.d.ts +11 -0
  755. package/lib/components/SafeMarkdown.d.ts.map +1 -0
  756. package/lib/components/SafeMarkdown.js +90 -0
  757. package/lib/components/SafeMarkdown.js.map +1 -0
  758. package/lib/components/SafeMarkdown.jsx +57 -0
  759. package/lib/components/SafeMarkdown.jsx.map +1 -0
  760. package/lib/components/constants.d.ts +27 -0
  761. package/lib/components/constants.d.ts.map +1 -0
  762. package/lib/components/constants.js +27 -0
  763. package/lib/components/constants.js.map +1 -0
  764. package/lib/components/index.d.ts +3 -0
  765. package/lib/components/index.d.ts.map +1 -0
  766. package/lib/components/index.js +21 -0
  767. package/lib/components/index.js.map +1 -0
  768. package/lib/connection/README.md +106 -0
  769. package/lib/connection/SupersetClient.d.ts +4 -0
  770. package/lib/connection/SupersetClient.d.ts.map +1 -0
  771. package/lib/connection/SupersetClient.js +48 -0
  772. package/lib/connection/SupersetClient.js.map +1 -0
  773. package/lib/connection/SupersetClientClass.d.ts +45 -0
  774. package/lib/connection/SupersetClientClass.d.ts.map +1 -0
  775. package/lib/connection/SupersetClientClass.js +187 -0
  776. package/lib/connection/SupersetClientClass.js.map +1 -0
  777. package/lib/connection/callApi/callApi.d.ts +11 -0
  778. package/lib/connection/callApi/callApi.d.ts.map +1 -0
  779. package/lib/connection/callApi/callApi.js +145 -0
  780. package/lib/connection/callApi/callApi.js.map +1 -0
  781. package/lib/connection/callApi/callApiAndParseWithTimeout.d.ts +6 -0
  782. package/lib/connection/callApi/callApiAndParseWithTimeout.d.ts.map +1 -0
  783. package/lib/connection/callApi/callApiAndParseWithTimeout.js +29 -0
  784. package/lib/connection/callApi/callApiAndParseWithTimeout.js.map +1 -0
  785. package/lib/connection/callApi/index.d.ts +2 -0
  786. package/lib/connection/callApi/index.d.ts.map +1 -0
  787. package/lib/connection/callApi/index.js +20 -0
  788. package/lib/connection/callApi/index.js.map +1 -0
  789. package/lib/connection/callApi/parseResponse.d.ts +3 -0
  790. package/lib/connection/callApi/parseResponse.d.ts.map +1 -0
  791. package/lib/connection/callApi/parseResponse.js +63 -0
  792. package/lib/connection/callApi/parseResponse.js.map +1 -0
  793. package/lib/connection/callApi/rejectAfterTimeout.d.ts +2 -0
  794. package/lib/connection/callApi/rejectAfterTimeout.d.ts.map +1 -0
  795. package/lib/connection/callApi/rejectAfterTimeout.js +31 -0
  796. package/lib/connection/callApi/rejectAfterTimeout.js.map +1 -0
  797. package/lib/connection/constants.d.ts +11 -0
  798. package/lib/connection/constants.d.ts.map +1 -0
  799. package/lib/connection/constants.js +34 -0
  800. package/lib/connection/constants.js.map +1 -0
  801. package/lib/connection/index.d.ts +7 -0
  802. package/lib/connection/index.d.ts.map +1 -0
  803. package/lib/connection/index.js +25 -0
  804. package/lib/connection/index.js.map +1 -0
  805. package/lib/connection/types.d.ts +132 -0
  806. package/lib/connection/types.d.ts.map +1 -0
  807. package/lib/connection/types.js +2 -0
  808. package/lib/connection/types.js.map +1 -0
  809. package/lib/currency-format/CurrencyFormatter.d.ts +40 -0
  810. package/lib/currency-format/CurrencyFormatter.d.ts.map +1 -0
  811. package/lib/currency-format/CurrencyFormatter.js +55 -0
  812. package/lib/currency-format/CurrencyFormatter.js.map +1 -0
  813. package/lib/currency-format/index.d.ts +4 -0
  814. package/lib/currency-format/index.d.ts.map +1 -0
  815. package/lib/currency-format/index.js +22 -0
  816. package/lib/currency-format/index.js.map +1 -0
  817. package/lib/currency-format/utils.d.ts +23 -0
  818. package/lib/currency-format/utils.d.ts.map +1 -0
  819. package/lib/currency-format/utils.js +61 -0
  820. package/lib/currency-format/utils.js.map +1 -0
  821. package/lib/dimension/computeMaxFontSize.d.ts +7 -0
  822. package/lib/dimension/computeMaxFontSize.d.ts.map +1 -0
  823. package/lib/dimension/computeMaxFontSize.js +64 -0
  824. package/lib/dimension/computeMaxFontSize.js.map +1 -0
  825. package/lib/dimension/getMultipleTextDimensions.d.ts +13 -0
  826. package/lib/dimension/getMultipleTextDimensions.d.ts.map +1 -0
  827. package/lib/dimension/getMultipleTextDimensions.js +67 -0
  828. package/lib/dimension/getMultipleTextDimensions.js.map +1 -0
  829. package/lib/dimension/getTextDimension.d.ts +9 -0
  830. package/lib/dimension/getTextDimension.d.ts.map +1 -0
  831. package/lib/dimension/getTextDimension.js +45 -0
  832. package/lib/dimension/getTextDimension.js.map +1 -0
  833. package/lib/dimension/index.d.ts +8 -0
  834. package/lib/dimension/index.d.ts.map +1 -0
  835. package/lib/dimension/index.js +26 -0
  836. package/lib/dimension/index.js.map +1 -0
  837. package/lib/dimension/mergeMargin.d.ts +8 -0
  838. package/lib/dimension/mergeMargin.d.ts.map +1 -0
  839. package/lib/dimension/mergeMargin.js +36 -0
  840. package/lib/dimension/mergeMargin.js.map +1 -0
  841. package/lib/dimension/parseLength.d.ts +8 -0
  842. package/lib/dimension/parseLength.d.ts.map +1 -0
  843. package/lib/dimension/parseLength.js +32 -0
  844. package/lib/dimension/parseLength.js.map +1 -0
  845. package/lib/dimension/svg/LazyFactory.d.ts +8 -0
  846. package/lib/dimension/svg/LazyFactory.d.ts.map +1 -0
  847. package/lib/dimension/svg/LazyFactory.js +47 -0
  848. package/lib/dimension/svg/LazyFactory.js.map +1 -0
  849. package/lib/dimension/svg/constants.d.ts +2 -0
  850. package/lib/dimension/svg/constants.d.ts.map +1 -0
  851. package/lib/dimension/svg/constants.js +21 -0
  852. package/lib/dimension/svg/constants.js.map +1 -0
  853. package/lib/dimension/svg/createHiddenSvgNode.d.ts +2 -0
  854. package/lib/dimension/svg/createHiddenSvgNode.d.ts.map +1 -0
  855. package/lib/dimension/svg/createHiddenSvgNode.js +31 -0
  856. package/lib/dimension/svg/createHiddenSvgNode.js.map +1 -0
  857. package/lib/dimension/svg/createTextNode.d.ts +2 -0
  858. package/lib/dimension/svg/createTextNode.d.ts.map +1 -0
  859. package/lib/dimension/svg/createTextNode.js +23 -0
  860. package/lib/dimension/svg/createTextNode.js.map +1 -0
  861. package/lib/dimension/svg/factories.d.ts +4 -0
  862. package/lib/dimension/svg/factories.d.ts.map +1 -0
  863. package/lib/dimension/svg/factories.js +24 -0
  864. package/lib/dimension/svg/factories.js.map +1 -0
  865. package/lib/dimension/svg/getBBoxCeil.d.ts +6 -0
  866. package/lib/dimension/svg/getBBoxCeil.d.ts.map +1 -0
  867. package/lib/dimension/svg/getBBoxCeil.js +27 -0
  868. package/lib/dimension/svg/getBBoxCeil.js.map +1 -0
  869. package/lib/dimension/svg/updateTextNode.d.ts +7 -0
  870. package/lib/dimension/svg/updateTextNode.d.ts.map +1 -0
  871. package/lib/dimension/svg/updateTextNode.js +50 -0
  872. package/lib/dimension/svg/updateTextNode.js.map +1 -0
  873. package/lib/dimension/types.d.ts +21 -0
  874. package/lib/dimension/types.d.ts.map +1 -0
  875. package/lib/dimension/types.js +20 -0
  876. package/lib/dimension/types.js.map +1 -0
  877. package/lib/dynamic-plugins/index.d.ts +20 -0
  878. package/lib/dynamic-plugins/index.d.ts.map +1 -0
  879. package/lib/dynamic-plugins/index.js +20 -0
  880. package/lib/dynamic-plugins/index.js.map +1 -0
  881. package/lib/dynamic-plugins/shared-modules.d.ts +46 -0
  882. package/lib/dynamic-plugins/shared-modules.d.ts.map +1 -0
  883. package/lib/dynamic-plugins/shared-modules.js +68 -0
  884. package/lib/dynamic-plugins/shared-modules.js.map +1 -0
  885. package/lib/hooks/index.d.ts +25 -0
  886. package/lib/hooks/index.d.ts.map +1 -0
  887. package/lib/hooks/index.js +25 -0
  888. package/lib/hooks/index.js.map +1 -0
  889. package/lib/hooks/useChangeEffect/index.d.ts +20 -0
  890. package/lib/hooks/useChangeEffect/index.d.ts.map +1 -0
  891. package/lib/hooks/useChangeEffect/index.js +20 -0
  892. package/lib/hooks/useChangeEffect/index.js.map +1 -0
  893. package/lib/hooks/useChangeEffect/useChangeEffect.d.ts +25 -0
  894. package/lib/hooks/useChangeEffect/useChangeEffect.d.ts.map +1 -0
  895. package/lib/hooks/useChangeEffect/useChangeEffect.js +34 -0
  896. package/lib/hooks/useChangeEffect/useChangeEffect.js.map +1 -0
  897. package/lib/hooks/useChangeEffect/useChangeEffect.test.d.ts +2 -0
  898. package/lib/hooks/useChangeEffect/useChangeEffect.test.d.ts.map +1 -0
  899. package/lib/hooks/useChangeEffect/useChangeEffect.test.js +46 -0
  900. package/lib/hooks/useChangeEffect/useChangeEffect.test.js.map +1 -0
  901. package/lib/hooks/useComponentDidMount/index.d.ts +20 -0
  902. package/lib/hooks/useComponentDidMount/index.d.ts.map +1 -0
  903. package/lib/hooks/useComponentDidMount/index.js +20 -0
  904. package/lib/hooks/useComponentDidMount/index.js.map +1 -0
  905. package/lib/hooks/useComponentDidMount/useComponentDidMount.d.ts +21 -0
  906. package/lib/hooks/useComponentDidMount/useComponentDidMount.d.ts.map +1 -0
  907. package/lib/hooks/useComponentDidMount/useComponentDidMount.js +24 -0
  908. package/lib/hooks/useComponentDidMount/useComponentDidMount.js.map +1 -0
  909. package/lib/hooks/useComponentDidMount/useComponentDidMount.test.d.ts +2 -0
  910. package/lib/hooks/useComponentDidMount/useComponentDidMount.test.d.ts.map +1 -0
  911. package/lib/hooks/useComponentDidMount/useComponentDidMount.test.js +28 -0
  912. package/lib/hooks/useComponentDidMount/useComponentDidMount.test.js.map +1 -0
  913. package/lib/hooks/useComponentDidUpdate/index.d.ts +20 -0
  914. package/lib/hooks/useComponentDidUpdate/index.d.ts.map +1 -0
  915. package/lib/hooks/useComponentDidUpdate/index.js +20 -0
  916. package/lib/hooks/useComponentDidUpdate/index.js.map +1 -0
  917. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.d.ts +21 -0
  918. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.d.ts.map +1 -0
  919. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.js +32 -0
  920. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.js.map +1 -0
  921. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.d.ts +2 -0
  922. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.d.ts.map +1 -0
  923. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js +31 -0
  924. package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js.map +1 -0
  925. package/lib/hooks/useElementOnScreen/index.d.ts +20 -0
  926. package/lib/hooks/useElementOnScreen/index.d.ts.map +1 -0
  927. package/lib/hooks/useElementOnScreen/index.js +20 -0
  928. package/lib/hooks/useElementOnScreen/index.js.map +1 -0
  929. package/lib/hooks/useElementOnScreen/useElementOnScreen.d.ts +21 -0
  930. package/lib/hooks/useElementOnScreen/useElementOnScreen.d.ts.map +1 -0
  931. package/lib/hooks/useElementOnScreen/useElementOnScreen.js +41 -0
  932. package/lib/hooks/useElementOnScreen/useElementOnScreen.js.map +1 -0
  933. package/lib/hooks/useElementOnScreen/useElementOnScreen.test.d.ts +2 -0
  934. package/lib/hooks/useElementOnScreen/useElementOnScreen.test.d.ts.map +1 -0
  935. package/lib/hooks/useElementOnScreen/useElementOnScreen.test.js +85 -0
  936. package/lib/hooks/useElementOnScreen/useElementOnScreen.test.js.map +1 -0
  937. package/lib/hooks/usePrevious/index.d.ts +20 -0
  938. package/lib/hooks/usePrevious/index.d.ts.map +1 -0
  939. package/lib/hooks/usePrevious/index.js +20 -0
  940. package/lib/hooks/usePrevious/index.js.map +1 -0
  941. package/lib/hooks/usePrevious/usePrevious.d.ts +26 -0
  942. package/lib/hooks/usePrevious/usePrevious.d.ts.map +1 -0
  943. package/lib/hooks/usePrevious/usePrevious.js +28 -0
  944. package/lib/hooks/usePrevious/usePrevious.js.map +1 -0
  945. package/lib/hooks/usePrevious/usePrevious.test.d.ts +2 -0
  946. package/lib/hooks/usePrevious/usePrevious.test.d.ts.map +1 -0
  947. package/lib/hooks/usePrevious/usePrevious.test.js +40 -0
  948. package/lib/hooks/usePrevious/usePrevious.test.js.map +1 -0
  949. package/lib/hooks/useTruncation/index.d.ts +22 -0
  950. package/lib/hooks/useTruncation/index.d.ts.map +1 -0
  951. package/lib/hooks/useTruncation/index.js +22 -0
  952. package/lib/hooks/useTruncation/index.js.map +1 -0
  953. package/lib/hooks/useTruncation/useCSSTextTruncation.d.ts +33 -0
  954. package/lib/hooks/useTruncation/useCSSTextTruncation.d.ts.map +1 -0
  955. package/lib/hooks/useTruncation/useCSSTextTruncation.js +52 -0
  956. package/lib/hooks/useTruncation/useCSSTextTruncation.js.map +1 -0
  957. package/lib/hooks/useTruncation/useCSSTextTruncation.test.d.ts +2 -0
  958. package/lib/hooks/useTruncation/useCSSTextTruncation.test.d.ts.map +1 -0
  959. package/lib/hooks/useTruncation/useCSSTextTruncation.test.js +62 -0
  960. package/lib/hooks/useTruncation/useCSSTextTruncation.test.js.map +1 -0
  961. package/lib/hooks/useTruncation/useCSSTextTruncation.test.jsx +48 -0
  962. package/lib/hooks/useTruncation/useCSSTextTruncation.test.jsx.map +1 -0
  963. package/lib/hooks/useTruncation/useChildElementTruncation.d.ts +12 -0
  964. package/lib/hooks/useTruncation/useChildElementTruncation.d.ts.map +1 -0
  965. package/lib/hooks/useTruncation/useChildElementTruncation.js +86 -0
  966. package/lib/hooks/useTruncation/useChildElementTruncation.js.map +1 -0
  967. package/lib/hooks/useTruncation/useChildElementTruncation.test.d.ts +2 -0
  968. package/lib/hooks/useTruncation/useChildElementTruncation.test.d.ts.map +1 -0
  969. package/lib/hooks/useTruncation/useChildElementTruncation.test.js +161 -0
  970. package/lib/hooks/useTruncation/useChildElementTruncation.test.js.map +1 -0
  971. package/lib/index.d.ts +40 -0
  972. package/lib/index.d.ts.map +1 -0
  973. package/lib/index.js +40 -0
  974. package/lib/index.js.map +1 -0
  975. package/lib/math-expression/index.d.ts +3 -0
  976. package/lib/math-expression/index.d.ts.map +1 -0
  977. package/lib/math-expression/index.js +118 -0
  978. package/lib/math-expression/index.js.map +1 -0
  979. package/lib/models/ExtensibleFunction.d.ts +7 -0
  980. package/lib/models/ExtensibleFunction.d.ts.map +1 -0
  981. package/lib/models/ExtensibleFunction.js +29 -0
  982. package/lib/models/ExtensibleFunction.js.map +1 -0
  983. package/lib/models/Plugin.d.ts +13 -0
  984. package/lib/models/Plugin.d.ts.map +1 -0
  985. package/lib/models/Plugin.js +41 -0
  986. package/lib/models/Plugin.js.map +1 -0
  987. package/lib/models/Preset.d.ts +15 -0
  988. package/lib/models/Preset.d.ts.map +1 -0
  989. package/lib/models/Preset.js +41 -0
  990. package/lib/models/Preset.js.map +1 -0
  991. package/lib/models/Registry.d.ts +99 -0
  992. package/lib/models/Registry.d.ts.map +1 -0
  993. package/lib/models/Registry.js +191 -0
  994. package/lib/models/Registry.js.map +1 -0
  995. package/lib/models/RegistryWithDefaultKey.d.ts +20 -0
  996. package/lib/models/RegistryWithDefaultKey.d.ts.map +1 -0
  997. package/lib/models/RegistryWithDefaultKey.js +68 -0
  998. package/lib/models/RegistryWithDefaultKey.js.map +1 -0
  999. package/lib/models/TypedRegistry.d.ts +47 -0
  1000. package/lib/models/TypedRegistry.d.ts.map +1 -0
  1001. package/lib/models/TypedRegistry.js +55 -0
  1002. package/lib/models/TypedRegistry.js.map +1 -0
  1003. package/lib/models/index.d.ts +25 -0
  1004. package/lib/models/index.d.ts.map +1 -0
  1005. package/lib/models/index.js +25 -0
  1006. package/lib/models/index.js.map +1 -0
  1007. package/lib/number-format/D3FormatConfig.d.ts +21 -0
  1008. package/lib/number-format/D3FormatConfig.d.ts.map +1 -0
  1009. package/lib/number-format/D3FormatConfig.js +7 -0
  1010. package/lib/number-format/D3FormatConfig.js.map +1 -0
  1011. package/lib/number-format/NumberFormats.d.ts +33 -0
  1012. package/lib/number-format/NumberFormats.d.ts.map +1 -0
  1013. package/lib/number-format/NumberFormats.js +80 -0
  1014. package/lib/number-format/NumberFormats.js.map +1 -0
  1015. package/lib/number-format/NumberFormatter.d.ts +43 -0
  1016. package/lib/number-format/NumberFormatter.d.ts.map +1 -0
  1017. package/lib/number-format/NumberFormatter.js +54 -0
  1018. package/lib/number-format/NumberFormatter.js.map +1 -0
  1019. package/lib/number-format/NumberFormatterRegistry.d.ts +29 -0
  1020. package/lib/number-format/NumberFormatterRegistry.d.ts.map +1 -0
  1021. package/lib/number-format/NumberFormatterRegistry.js +43 -0
  1022. package/lib/number-format/NumberFormatterRegistry.js.map +1 -0
  1023. package/lib/number-format/NumberFormatterRegistrySingleton.d.ts +26 -0
  1024. package/lib/number-format/NumberFormatterRegistrySingleton.d.ts.map +1 -0
  1025. package/lib/number-format/NumberFormatterRegistrySingleton.js +14 -0
  1026. package/lib/number-format/NumberFormatterRegistrySingleton.js.map +1 -0
  1027. package/lib/number-format/README.md +82 -0
  1028. package/lib/number-format/factories/createD3NumberFormatter.d.ts +27 -0
  1029. package/lib/number-format/factories/createD3NumberFormatter.d.ts.map +1 -0
  1030. package/lib/number-format/factories/createD3NumberFormatter.js +44 -0
  1031. package/lib/number-format/factories/createD3NumberFormatter.js.map +1 -0
  1032. package/lib/number-format/factories/createDurationFormatter.d.ts +9 -0
  1033. package/lib/number-format/factories/createDurationFormatter.d.ts.map +1 -0
  1034. package/lib/number-format/factories/createDurationFormatter.js +30 -0
  1035. package/lib/number-format/factories/createDurationFormatter.js.map +1 -0
  1036. package/lib/number-format/factories/createMemoryFormatter.d.ts +9 -0
  1037. package/lib/number-format/factories/createMemoryFormatter.d.ts.map +1 -0
  1038. package/lib/number-format/factories/createMemoryFormatter.js +40 -0
  1039. package/lib/number-format/factories/createMemoryFormatter.js.map +1 -0
  1040. package/lib/number-format/factories/createSiAtMostNDigitFormatter.d.ts +8 -0
  1041. package/lib/number-format/factories/createSiAtMostNDigitFormatter.d.ts.map +1 -0
  1042. package/lib/number-format/factories/createSiAtMostNDigitFormatter.js +35 -0
  1043. package/lib/number-format/factories/createSiAtMostNDigitFormatter.js.map +1 -0
  1044. package/lib/number-format/factories/createSmartNumberFormatter.d.ts +8 -0
  1045. package/lib/number-format/factories/createSmartNumberFormatter.d.ts.map +1 -0
  1046. package/lib/number-format/factories/createSmartNumberFormatter.js +58 -0
  1047. package/lib/number-format/factories/createSmartNumberFormatter.js.map +1 -0
  1048. package/lib/number-format/index.d.ts +11 -0
  1049. package/lib/number-format/index.d.ts.map +1 -0
  1050. package/lib/number-format/index.js +29 -0
  1051. package/lib/number-format/index.js.map +1 -0
  1052. package/lib/number-format/types.d.ts +2 -0
  1053. package/lib/number-format/types.d.ts.map +1 -0
  1054. package/lib/number-format/types.js +20 -0
  1055. package/lib/number-format/types.js.map +1 -0
  1056. package/lib/query/DatasourceKey.d.ts +12 -0
  1057. package/lib/query/DatasourceKey.d.ts.map +1 -0
  1058. package/lib/query/DatasourceKey.js +39 -0
  1059. package/lib/query/DatasourceKey.js.map +1 -0
  1060. package/lib/query/README.md +30 -0
  1061. package/lib/query/api/legacy/getDatasourceMetadata.d.ts +7 -0
  1062. package/lib/query/api/legacy/getDatasourceMetadata.d.ts.map +1 -0
  1063. package/lib/query/api/legacy/getDatasourceMetadata.js +28 -0
  1064. package/lib/query/api/legacy/getDatasourceMetadata.js.map +1 -0
  1065. package/lib/query/api/legacy/getFormData.d.ts +8 -0
  1066. package/lib/query/api/legacy/getFormData.d.ts.map +1 -0
  1067. package/lib/query/api/legacy/getFormData.js +31 -0
  1068. package/lib/query/api/legacy/getFormData.js.map +1 -0
  1069. package/lib/query/api/legacy/index.d.ts +5 -0
  1070. package/lib/query/api/legacy/index.d.ts.map +1 -0
  1071. package/lib/query/api/legacy/index.js +23 -0
  1072. package/lib/query/api/legacy/index.js.map +1 -0
  1073. package/lib/query/api/legacy/types.d.ts +25 -0
  1074. package/lib/query/api/legacy/types.d.ts.map +1 -0
  1075. package/lib/query/api/legacy/types.js +2 -0
  1076. package/lib/query/api/legacy/types.js.map +1 -0
  1077. package/lib/query/api/types.d.ts +24 -0
  1078. package/lib/query/api/types.d.ts.map +1 -0
  1079. package/lib/query/api/types.js +2 -0
  1080. package/lib/query/api/types.js.map +1 -0
  1081. package/lib/query/api/v1/handleError.d.ts +26 -0
  1082. package/lib/query/api/v1/handleError.d.ts.map +1 -0
  1083. package/lib/query/api/v1/handleError.js +97 -0
  1084. package/lib/query/api/v1/handleError.js.map +1 -0
  1085. package/lib/query/api/v1/index.d.ts +20 -0
  1086. package/lib/query/api/v1/index.d.ts.map +1 -0
  1087. package/lib/query/api/v1/index.js +30 -0
  1088. package/lib/query/api/v1/index.js.map +1 -0
  1089. package/lib/query/api/v1/makeApi.d.ts +40 -0
  1090. package/lib/query/api/v1/makeApi.d.ts.map +1 -0
  1091. package/lib/query/api/v1/makeApi.js +91 -0
  1092. package/lib/query/api/v1/makeApi.js.map +1 -0
  1093. package/lib/query/api/v1/types.d.ts +80 -0
  1094. package/lib/query/api/v1/types.d.ts.map +1 -0
  1095. package/lib/query/api/v1/types.js +54 -0
  1096. package/lib/query/api/v1/types.js.map +1 -0
  1097. package/lib/query/buildQueryContext.d.ts +14 -0
  1098. package/lib/query/buildQueryContext.d.ts.map +1 -0
  1099. package/lib/query/buildQueryContext.js +50 -0
  1100. package/lib/query/buildQueryContext.js.map +1 -0
  1101. package/lib/query/buildQueryObject.d.ts +11 -0
  1102. package/lib/query/buildQueryObject.d.ts.map +1 -0
  1103. package/lib/query/buildQueryObject.js +89 -0
  1104. package/lib/query/buildQueryObject.js.map +1 -0
  1105. package/lib/query/constants.d.ts +27 -0
  1106. package/lib/query/constants.d.ts.map +1 -0
  1107. package/lib/query/constants.js +24 -0
  1108. package/lib/query/constants.js.map +1 -0
  1109. package/lib/query/convertFilter.d.ts +4 -0
  1110. package/lib/query/convertFilter.d.ts.map +1 -0
  1111. package/lib/query/convertFilter.js +44 -0
  1112. package/lib/query/convertFilter.js.map +1 -0
  1113. package/lib/query/extractExtras.d.ts +16 -0
  1114. package/lib/query/extractExtras.d.ts.map +1 -0
  1115. package/lib/query/extractExtras.js +55 -0
  1116. package/lib/query/extractExtras.js.map +1 -0
  1117. package/lib/query/extractQueryFields.d.ts +11 -0
  1118. package/lib/query/extractQueryFields.d.ts.map +1 -0
  1119. package/lib/query/extractQueryFields.js +105 -0
  1120. package/lib/query/extractQueryFields.js.map +1 -0
  1121. package/lib/query/extractTimegrain.d.ts +22 -0
  1122. package/lib/query/extractTimegrain.d.ts.map +1 -0
  1123. package/lib/query/extractTimegrain.js +31 -0
  1124. package/lib/query/extractTimegrain.js.map +1 -0
  1125. package/lib/query/getClientErrorObject.d.ts +48 -0
  1126. package/lib/query/getClientErrorObject.d.ts.map +1 -0
  1127. package/lib/query/getClientErrorObject.js +226 -0
  1128. package/lib/query/getClientErrorObject.js.map +1 -0
  1129. package/lib/query/getColumnLabel.d.ts +21 -0
  1130. package/lib/query/getColumnLabel.d.ts.map +1 -0
  1131. package/lib/query/getColumnLabel.js +29 -0
  1132. package/lib/query/getColumnLabel.js.map +1 -0
  1133. package/lib/query/getMetricLabel.d.ts +3 -0
  1134. package/lib/query/getMetricLabel.d.ts.map +1 -0
  1135. package/lib/query/getMetricLabel.js +32 -0
  1136. package/lib/query/getMetricLabel.js.map +1 -0
  1137. package/lib/query/getXAxis.d.ts +23 -0
  1138. package/lib/query/getXAxis.d.ts.map +1 -0
  1139. package/lib/query/getXAxis.js +38 -0
  1140. package/lib/query/getXAxis.js.map +1 -0
  1141. package/lib/query/index.d.ts +43 -0
  1142. package/lib/query/index.d.ts.map +1 -0
  1143. package/lib/query/index.js +44 -0
  1144. package/lib/query/index.js.map +1 -0
  1145. package/lib/query/normalizeOrderBy.d.ts +3 -0
  1146. package/lib/query/normalizeOrderBy.d.ts.map +1 -0
  1147. package/lib/query/normalizeOrderBy.js +64 -0
  1148. package/lib/query/normalizeOrderBy.js.map +1 -0
  1149. package/lib/query/normalizeTimeColumn.d.ts +3 -0
  1150. package/lib/query/normalizeTimeColumn.d.ts.map +1 -0
  1151. package/lib/query/normalizeTimeColumn.js +62 -0
  1152. package/lib/query/normalizeTimeColumn.js.map +1 -0
  1153. package/lib/query/processExtraFormData.d.ts +21 -0
  1154. package/lib/query/processExtraFormData.d.ts.map +1 -0
  1155. package/lib/query/processExtraFormData.js +22 -0
  1156. package/lib/query/processExtraFormData.js.map +1 -0
  1157. package/lib/query/processFilters.d.ts +4 -0
  1158. package/lib/query/processFilters.d.ts.map +1 -0
  1159. package/lib/query/processFilters.js +67 -0
  1160. package/lib/query/processFilters.js.map +1 -0
  1161. package/lib/query/types/AdvancedAnalytics.d.ts +42 -0
  1162. package/lib/query/types/AdvancedAnalytics.d.ts.map +1 -0
  1163. package/lib/query/types/AdvancedAnalytics.js +35 -0
  1164. package/lib/query/types/AdvancedAnalytics.js.map +1 -0
  1165. package/lib/query/types/AnnotationLayer.d.ts +110 -0
  1166. package/lib/query/types/AnnotationLayer.d.ts.map +1 -0
  1167. package/lib/query/types/AnnotationLayer.js +68 -0
  1168. package/lib/query/types/AnnotationLayer.js.map +1 -0
  1169. package/lib/query/types/Column.d.ts +61 -0
  1170. package/lib/query/types/Column.d.ts.map +1 -0
  1171. package/lib/query/types/Column.js +33 -0
  1172. package/lib/query/types/Column.js.map +1 -0
  1173. package/lib/query/types/Dashboard.d.ts +120 -0
  1174. package/lib/query/types/Dashboard.d.ts.map +1 -0
  1175. package/lib/query/types/Dashboard.js +48 -0
  1176. package/lib/query/types/Dashboard.js.map +1 -0
  1177. package/lib/query/types/Datasource.d.ts +55 -0
  1178. package/lib/query/types/Datasource.d.ts.map +1 -0
  1179. package/lib/query/types/Datasource.js +16 -0
  1180. package/lib/query/types/Datasource.js.map +1 -0
  1181. package/lib/query/types/Filter.d.ts +35 -0
  1182. package/lib/query/types/Filter.d.ts.map +1 -0
  1183. package/lib/query/types/Filter.js +38 -0
  1184. package/lib/query/types/Filter.js.map +1 -0
  1185. package/lib/query/types/Metric.d.ts +68 -0
  1186. package/lib/query/types/Metric.d.ts.map +1 -0
  1187. package/lib/query/types/Metric.js +16 -0
  1188. package/lib/query/types/Metric.js.map +1 -0
  1189. package/lib/query/types/Operator.d.ts +17 -0
  1190. package/lib/query/types/Operator.d.ts.map +1 -0
  1191. package/lib/query/types/Operator.js +52 -0
  1192. package/lib/query/types/Operator.js.map +1 -0
  1193. package/lib/query/types/PostProcessing.d.ts +208 -0
  1194. package/lib/query/types/PostProcessing.d.ts.map +1 -0
  1195. package/lib/query/types/PostProcessing.js +51 -0
  1196. package/lib/query/types/PostProcessing.js.map +1 -0
  1197. package/lib/query/types/Query.d.ts +384 -0
  1198. package/lib/query/types/Query.d.ts.map +1 -0
  1199. package/lib/query/types/Query.js +233 -0
  1200. package/lib/query/types/Query.js.map +1 -0
  1201. package/lib/query/types/QueryFormData.d.ts +168 -0
  1202. package/lib/query/types/QueryFormData.d.ts.map +1 -0
  1203. package/lib/query/types/QueryFormData.js +29 -0
  1204. package/lib/query/types/QueryFormData.js.map +1 -0
  1205. package/lib/query/types/QueryResponse.d.ts +83 -0
  1206. package/lib/query/types/QueryResponse.d.ts.map +1 -0
  1207. package/lib/query/types/QueryResponse.js +30 -0
  1208. package/lib/query/types/QueryResponse.js.map +1 -0
  1209. package/lib/query/types/Time.d.ts +12 -0
  1210. package/lib/query/types/Time.d.ts.map +1 -0
  1211. package/lib/query/types/Time.js +20 -0
  1212. package/lib/query/types/Time.js.map +1 -0
  1213. package/lib/query/types/index.d.ts +42 -0
  1214. package/lib/query/types/index.d.ts.map +1 -0
  1215. package/lib/query/types/index.js +41 -0
  1216. package/lib/query/types/index.js.map +1 -0
  1217. package/lib/style/index.d.ts +236 -0
  1218. package/lib/style/index.d.ts.map +1 -0
  1219. package/lib/style/index.js +174 -0
  1220. package/lib/style/index.js.map +1 -0
  1221. package/lib/style/index.jsx +148 -0
  1222. package/lib/style/index.jsx.map +1 -0
  1223. package/lib/time-comparison/README.md +47 -0
  1224. package/lib/time-comparison/customTimeRangeDecode.d.ts +22 -0
  1225. package/lib/time-comparison/customTimeRangeDecode.d.ts.map +1 -0
  1226. package/lib/time-comparison/customTimeRangeDecode.js +135 -0
  1227. package/lib/time-comparison/customTimeRangeDecode.js.map +1 -0
  1228. package/lib/time-comparison/fetchTimeRange.d.ts +12 -0
  1229. package/lib/time-comparison/fetchTimeRange.d.ts.map +1 -0
  1230. package/lib/time-comparison/fetchTimeRange.js +74 -0
  1231. package/lib/time-comparison/fetchTimeRange.js.map +1 -0
  1232. package/lib/time-comparison/getComparisonFilters.d.ts +31 -0
  1233. package/lib/time-comparison/getComparisonFilters.d.ts.map +1 -0
  1234. package/lib/time-comparison/getComparisonFilters.js +47 -0
  1235. package/lib/time-comparison/getComparisonFilters.js.map +1 -0
  1236. package/lib/time-comparison/getComparisonInfo.d.ts +31 -0
  1237. package/lib/time-comparison/getComparisonInfo.d.ts.map +1 -0
  1238. package/lib/time-comparison/getComparisonInfo.js +56 -0
  1239. package/lib/time-comparison/getComparisonInfo.js.map +1 -0
  1240. package/lib/time-comparison/getTimeOffset.d.ts +11 -0
  1241. package/lib/time-comparison/getTimeOffset.d.ts.map +1 -0
  1242. package/lib/time-comparison/getTimeOffset.js +266 -0
  1243. package/lib/time-comparison/getTimeOffset.js.map +1 -0
  1244. package/lib/time-comparison/index.d.ts +7 -0
  1245. package/lib/time-comparison/index.d.ts.map +1 -0
  1246. package/lib/time-comparison/index.js +25 -0
  1247. package/lib/time-comparison/index.js.map +1 -0
  1248. package/lib/time-comparison/types.d.ts +30 -0
  1249. package/lib/time-comparison/types.d.ts.map +1 -0
  1250. package/lib/time-comparison/types.js +30 -0
  1251. package/lib/time-comparison/types.js.map +1 -0
  1252. package/lib/time-format/D3FormatConfig.d.ts +21 -0
  1253. package/lib/time-format/D3FormatConfig.d.ts.map +1 -0
  1254. package/lib/time-format/D3FormatConfig.js +63 -0
  1255. package/lib/time-format/D3FormatConfig.js.map +1 -0
  1256. package/lib/time-format/README.md +68 -0
  1257. package/lib/time-format/TimeFormats.d.ts +11 -0
  1258. package/lib/time-format/TimeFormats.d.ts.map +1 -0
  1259. package/lib/time-format/TimeFormats.js +35 -0
  1260. package/lib/time-format/TimeFormats.js.map +1 -0
  1261. package/lib/time-format/TimeFormatsForGranularity.d.ts +7 -0
  1262. package/lib/time-format/TimeFormatsForGranularity.d.ts.map +1 -0
  1263. package/lib/time-format/TimeFormatsForGranularity.js +46 -0
  1264. package/lib/time-format/TimeFormatsForGranularity.js.map +1 -0
  1265. package/lib/time-format/TimeFormatter.d.ts +42 -0
  1266. package/lib/time-format/TimeFormatter.d.ts.map +1 -0
  1267. package/lib/time-format/TimeFormatter.js +46 -0
  1268. package/lib/time-format/TimeFormatter.js.map +1 -0
  1269. package/lib/time-format/TimeFormatterRegistry.d.ts +29 -0
  1270. package/lib/time-format/TimeFormatterRegistry.d.ts.map +1 -0
  1271. package/lib/time-format/TimeFormatterRegistry.js +60 -0
  1272. package/lib/time-format/TimeFormatterRegistry.js.map +1 -0
  1273. package/lib/time-format/TimeFormatterRegistrySingleton.d.ts +17 -0
  1274. package/lib/time-format/TimeFormatterRegistrySingleton.d.ts.map +1 -0
  1275. package/lib/time-format/TimeFormatterRegistrySingleton.js +65 -0
  1276. package/lib/time-format/TimeFormatterRegistrySingleton.js.map +1 -0
  1277. package/lib/time-format/TimeRangeFormatter.d.ts +40 -0
  1278. package/lib/time-format/TimeRangeFormatter.d.ts.map +1 -0
  1279. package/lib/time-format/TimeRangeFormatter.js +40 -0
  1280. package/lib/time-format/TimeRangeFormatter.js.map +1 -0
  1281. package/lib/time-format/factories/createD3TimeFormatter.d.ts +28 -0
  1282. package/lib/time-format/factories/createD3TimeFormatter.d.ts.map +1 -0
  1283. package/lib/time-format/factories/createD3TimeFormatter.js +45 -0
  1284. package/lib/time-format/factories/createD3TimeFormatter.js.map +1 -0
  1285. package/lib/time-format/factories/createMultiFormatter.d.ts +22 -0
  1286. package/lib/time-format/factories/createMultiFormatter.d.ts.map +1 -0
  1287. package/lib/time-format/factories/createMultiFormatter.js +70 -0
  1288. package/lib/time-format/factories/createMultiFormatter.js.map +1 -0
  1289. package/lib/time-format/formatters/finestTemporalGrain.d.ts +3 -0
  1290. package/lib/time-format/formatters/finestTemporalGrain.d.ts.map +1 -0
  1291. package/lib/time-format/formatters/finestTemporalGrain.js +64 -0
  1292. package/lib/time-format/formatters/finestTemporalGrain.js.map +1 -0
  1293. package/lib/time-format/formatters/finestTemporalGrain.test.d.ts +2 -0
  1294. package/lib/time-format/formatters/finestTemporalGrain.test.d.ts.map +1 -0
  1295. package/lib/time-format/formatters/finestTemporalGrain.test.js +44 -0
  1296. package/lib/time-format/formatters/finestTemporalGrain.test.js.map +1 -0
  1297. package/lib/time-format/formatters/smartDate.d.ts +4 -0
  1298. package/lib/time-format/formatters/smartDate.d.ts.map +1 -0
  1299. package/lib/time-format/formatters/smartDate.js +38 -0
  1300. package/lib/time-format/formatters/smartDate.js.map +1 -0
  1301. package/lib/time-format/formatters/smartDateDetailed.d.ts +4 -0
  1302. package/lib/time-format/formatters/smartDateDetailed.d.ts.map +1 -0
  1303. package/lib/time-format/formatters/smartDateDetailed.js +38 -0
  1304. package/lib/time-format/formatters/smartDateDetailed.js.map +1 -0
  1305. package/lib/time-format/formatters/smartDateVerbose.d.ts +4 -0
  1306. package/lib/time-format/formatters/smartDateVerbose.d.ts.map +1 -0
  1307. package/lib/time-format/formatters/smartDateVerbose.js +38 -0
  1308. package/lib/time-format/formatters/smartDateVerbose.js.map +1 -0
  1309. package/lib/time-format/index.d.ts +14 -0
  1310. package/lib/time-format/index.d.ts.map +1 -0
  1311. package/lib/time-format/index.js +32 -0
  1312. package/lib/time-format/index.js.map +1 -0
  1313. package/lib/time-format/types.d.ts +28 -0
  1314. package/lib/time-format/types.d.ts.map +1 -0
  1315. package/lib/time-format/types.js +41 -0
  1316. package/lib/time-format/types.js.map +1 -0
  1317. package/lib/time-format/utils/createTime.d.ts +2 -0
  1318. package/lib/time-format/utils/createTime.d.ts.map +1 -0
  1319. package/lib/time-format/utils/createTime.js +31 -0
  1320. package/lib/time-format/utils/createTime.js.map +1 -0
  1321. package/lib/time-format/utils/createTimeRangeFromGranularity.d.ts +3 -0
  1322. package/lib/time-format/utils/createTimeRangeFromGranularity.d.ts.map +1 -0
  1323. package/lib/time-format/utils/createTimeRangeFromGranularity.js +83 -0
  1324. package/lib/time-format/utils/createTimeRangeFromGranularity.js.map +1 -0
  1325. package/lib/time-format/utils/d3Time.d.ts +63 -0
  1326. package/lib/time-format/utils/d3Time.d.ts.map +1 -0
  1327. package/lib/time-format/utils/d3Time.js +101 -0
  1328. package/lib/time-format/utils/d3Time.js.map +1 -0
  1329. package/lib/time-format/utils/denormalizeTimestamp.d.ts +2 -0
  1330. package/lib/time-format/utils/denormalizeTimestamp.d.ts.map +1 -0
  1331. package/lib/time-format/utils/denormalizeTimestamp.js +27 -0
  1332. package/lib/time-format/utils/denormalizeTimestamp.js.map +1 -0
  1333. package/lib/time-format/utils/normalizeTimestamp.d.ts +3 -0
  1334. package/lib/time-format/utils/normalizeTimestamp.d.ts.map +1 -0
  1335. package/lib/time-format/utils/normalizeTimestamp.js +27 -0
  1336. package/lib/time-format/utils/normalizeTimestamp.js.map +1 -0
  1337. package/lib/time-format/utils/stringifyTimeInput.d.ts +2 -0
  1338. package/lib/time-format/utils/stringifyTimeInput.d.ts.map +1 -0
  1339. package/lib/time-format/utils/stringifyTimeInput.js +25 -0
  1340. package/lib/time-format/utils/stringifyTimeInput.js.map +1 -0
  1341. package/lib/translation/README.md +71 -0
  1342. package/lib/translation/Translator.d.ts +18 -0
  1343. package/lib/translation/Translator.d.ts.map +1 -0
  1344. package/lib/translation/Translator.js +89 -0
  1345. package/lib/translation/Translator.js.map +1 -0
  1346. package/lib/translation/TranslatorSingleton.d.ts +11 -0
  1347. package/lib/translation/TranslatorSingleton.d.ts.map +1 -0
  1348. package/lib/translation/TranslatorSingleton.js +59 -0
  1349. package/lib/translation/TranslatorSingleton.js.map +1 -0
  1350. package/lib/translation/index.d.ts +6 -0
  1351. package/lib/translation/index.d.ts.map +1 -0
  1352. package/lib/translation/index.js +23 -0
  1353. package/lib/translation/index.js.map +1 -0
  1354. package/lib/translation/types/index.d.ts +55 -0
  1355. package/lib/translation/types/index.d.ts.map +1 -0
  1356. package/lib/translation/types/index.js +4 -0
  1357. package/lib/translation/types/index.js.map +1 -0
  1358. package/lib/translation/types/jed.d.ts +31 -0
  1359. package/lib/translation/types/jed.d.ts.map +1 -0
  1360. package/lib/translation/types/jed.js +20 -0
  1361. package/lib/translation/types/jed.js.map +1 -0
  1362. package/lib/types/index.d.ts +26 -0
  1363. package/lib/types/index.d.ts.map +1 -0
  1364. package/lib/types/index.js +2 -0
  1365. package/lib/types/index.js.map +1 -0
  1366. package/lib/ui-overrides/ExtensionsRegistry.d.ts +30 -0
  1367. package/lib/ui-overrides/ExtensionsRegistry.d.ts.map +1 -0
  1368. package/lib/ui-overrides/ExtensionsRegistry.js +29 -0
  1369. package/lib/ui-overrides/ExtensionsRegistry.js.map +1 -0
  1370. package/lib/ui-overrides/index.d.ts +21 -0
  1371. package/lib/ui-overrides/index.d.ts.map +1 -0
  1372. package/lib/ui-overrides/index.js +21 -0
  1373. package/lib/ui-overrides/index.js.map +1 -0
  1374. package/lib/ui-overrides/index.jsx +21 -0
  1375. package/lib/ui-overrides/index.jsx.map +1 -0
  1376. package/lib/ui-overrides/types.d.ts +192 -0
  1377. package/lib/ui-overrides/types.d.ts.map +1 -0
  1378. package/lib/ui-overrides/types.js +2 -0
  1379. package/lib/ui-overrides/types.js.map +1 -0
  1380. package/lib/utils/convertKeysToCamelCase.d.ts +2 -0
  1381. package/lib/utils/convertKeysToCamelCase.d.ts.map +1 -0
  1382. package/lib/utils/convertKeysToCamelCase.js +30 -0
  1383. package/lib/utils/convertKeysToCamelCase.js.map +1 -0
  1384. package/lib/utils/ensureIsArray.d.ts +24 -0
  1385. package/lib/utils/ensureIsArray.d.ts.map +1 -0
  1386. package/lib/utils/ensureIsArray.js +29 -0
  1387. package/lib/utils/ensureIsArray.js.map +1 -0
  1388. package/lib/utils/ensureIsInt.d.ts +20 -0
  1389. package/lib/utils/ensureIsInt.d.ts.map +1 -0
  1390. package/lib/utils/ensureIsInt.js +24 -0
  1391. package/lib/utils/ensureIsInt.js.map +1 -0
  1392. package/lib/utils/featureFlags.d.ts +66 -0
  1393. package/lib/utils/featureFlags.d.ts.map +1 -0
  1394. package/lib/utils/featureFlags.js +80 -0
  1395. package/lib/utils/featureFlags.js.map +1 -0
  1396. package/lib/utils/getSelectedText.d.ts +20 -0
  1397. package/lib/utils/getSelectedText.d.ts.map +1 -0
  1398. package/lib/utils/getSelectedText.js +20 -0
  1399. package/lib/utils/getSelectedText.js.map +1 -0
  1400. package/lib/utils/html.d.ts +12 -0
  1401. package/lib/utils/html.d.ts.map +1 -0
  1402. package/lib/utils/html.js +122 -0
  1403. package/lib/utils/html.js.map +1 -0
  1404. package/lib/utils/html.jsx +96 -0
  1405. package/lib/utils/html.jsx.map +1 -0
  1406. package/lib/utils/html.test.d.ts +2 -0
  1407. package/lib/utils/html.test.d.ts.map +1 -0
  1408. package/lib/utils/html.test.js +192 -0
  1409. package/lib/utils/html.test.js.map +1 -0
  1410. package/lib/utils/html.test.jsx +152 -0
  1411. package/lib/utils/html.test.jsx.map +1 -0
  1412. package/lib/utils/index.d.ts +36 -0
  1413. package/lib/utils/index.d.ts.map +1 -0
  1414. package/lib/utils/index.js +36 -0
  1415. package/lib/utils/index.js.map +1 -0
  1416. package/lib/utils/isDefined.d.ts +2 -0
  1417. package/lib/utils/isDefined.d.ts.map +1 -0
  1418. package/lib/utils/isDefined.js +22 -0
  1419. package/lib/utils/isDefined.js.map +1 -0
  1420. package/lib/utils/isEqualArray.d.ts +20 -0
  1421. package/lib/utils/isEqualArray.d.ts.map +1 -0
  1422. package/lib/utils/isEqualArray.js +27 -0
  1423. package/lib/utils/isEqualArray.js.map +1 -0
  1424. package/lib/utils/isEqualArray.test.d.ts +2 -0
  1425. package/lib/utils/isEqualArray.test.d.ts.map +1 -0
  1426. package/lib/utils/isEqualArray.test.js +31 -0
  1427. package/lib/utils/isEqualArray.test.js.map +1 -0
  1428. package/lib/utils/isRequired.d.ts +2 -0
  1429. package/lib/utils/isRequired.d.ts.map +1 -0
  1430. package/lib/utils/isRequired.js +22 -0
  1431. package/lib/utils/isRequired.js.map +1 -0
  1432. package/lib/utils/logging.d.ts +55 -0
  1433. package/lib/utils/logging.d.ts.map +1 -0
  1434. package/lib/utils/logging.js +36 -0
  1435. package/lib/utils/logging.js.map +1 -0
  1436. package/lib/utils/lruCache.d.ts +31 -0
  1437. package/lib/utils/lruCache.d.ts.map +1 -0
  1438. package/lib/utils/lruCache.js +65 -0
  1439. package/lib/utils/lruCache.js.map +1 -0
  1440. package/lib/utils/makeSingleton.d.ts +6 -0
  1441. package/lib/utils/makeSingleton.d.ts.map +1 -0
  1442. package/lib/utils/makeSingleton.js +28 -0
  1443. package/lib/utils/makeSingleton.js.map +1 -0
  1444. package/lib/utils/promiseTimeout.d.ts +7 -0
  1445. package/lib/utils/promiseTimeout.d.ts.map +1 -0
  1446. package/lib/utils/promiseTimeout.js +31 -0
  1447. package/lib/utils/promiseTimeout.js.map +1 -0
  1448. package/lib/utils/random.d.ts +22 -0
  1449. package/lib/utils/random.d.ts.map +1 -0
  1450. package/lib/utils/random.js +26 -0
  1451. package/lib/utils/random.js.map +1 -0
  1452. package/lib/utils/removeDuplicates.d.ts +24 -0
  1453. package/lib/utils/removeDuplicates.d.ts.map +1 -0
  1454. package/lib/utils/removeDuplicates.js +36 -0
  1455. package/lib/utils/removeDuplicates.js.map +1 -0
  1456. package/lib/utils/tooltip.d.ts +2 -0
  1457. package/lib/utils/tooltip.d.ts.map +1 -0
  1458. package/lib/utils/tooltip.js +51 -0
  1459. package/lib/utils/tooltip.js.map +1 -0
  1460. package/lib/utils/typedMemo.d.ts +2 -0
  1461. package/lib/utils/typedMemo.d.ts.map +1 -0
  1462. package/lib/utils/typedMemo.js +21 -0
  1463. package/lib/utils/typedMemo.js.map +1 -0
  1464. package/lib/validator/index.d.ts +9 -0
  1465. package/lib/validator/index.d.ts.map +1 -0
  1466. package/lib/validator/index.js +27 -0
  1467. package/lib/validator/index.js.map +1 -0
  1468. package/lib/validator/legacyValidateInteger.d.ts +6 -0
  1469. package/lib/validator/legacyValidateInteger.d.ts.map +1 -0
  1470. package/lib/validator/legacyValidateInteger.js +31 -0
  1471. package/lib/validator/legacyValidateInteger.js.map +1 -0
  1472. package/lib/validator/legacyValidateNumber.d.ts +6 -0
  1473. package/lib/validator/legacyValidateNumber.d.ts.map +1 -0
  1474. package/lib/validator/legacyValidateNumber.js +30 -0
  1475. package/lib/validator/legacyValidateNumber.js.map +1 -0
  1476. package/lib/validator/validateInteger.d.ts +2 -0
  1477. package/lib/validator/validateInteger.d.ts.map +1 -0
  1478. package/lib/validator/validateInteger.js +29 -0
  1479. package/lib/validator/validateInteger.js.map +1 -0
  1480. package/lib/validator/validateMapboxStylesUrl.d.ts +6 -0
  1481. package/lib/validator/validateMapboxStylesUrl.d.ts.map +1 -0
  1482. package/lib/validator/validateMapboxStylesUrl.js +32 -0
  1483. package/lib/validator/validateMapboxStylesUrl.js.map +1 -0
  1484. package/lib/validator/validateMaxValue.d.ts +2 -0
  1485. package/lib/validator/validateMaxValue.d.ts.map +1 -0
  1486. package/lib/validator/validateMaxValue.js +26 -0
  1487. package/lib/validator/validateMaxValue.js.map +1 -0
  1488. package/lib/validator/validateNonEmpty.d.ts +2 -0
  1489. package/lib/validator/validateNonEmpty.d.ts.map +1 -0
  1490. package/lib/validator/validateNonEmpty.js +29 -0
  1491. package/lib/validator/validateNonEmpty.js.map +1 -0
  1492. package/lib/validator/validateNumber.d.ts +2 -0
  1493. package/lib/validator/validateNumber.d.ts.map +1 -0
  1494. package/lib/validator/validateNumber.js +29 -0
  1495. package/lib/validator/validateNumber.js.map +1 -0
  1496. package/lib/validator/validateTimeComparisonRangeValues.d.ts +3 -0
  1497. package/lib/validator/validateTimeComparisonRangeValues.d.ts.map +1 -0
  1498. package/lib/validator/validateTimeComparisonRangeValues.js +30 -0
  1499. package/lib/validator/validateTimeComparisonRangeValues.js.map +1 -0
  1500. package/package.json +101 -0
@@ -0,0 +1,142 @@
1
+ /* eslint-disable camelcase */
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one
4
+ * or more contributor license agreements. See the NOTICE file
5
+ * distributed with this work for additional information
6
+ * regarding copyright ownership. The ASF licenses this file
7
+ * to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance
9
+ * with the License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+ /**
35
+ * Runtime options when calling a Superset API. Currently only allow overriding
36
+ * SupersetClient instance.
37
+ */
38
+
39
+
40
+
41
+
42
+ /**
43
+ * Superset API error types.
44
+ * Ref: https://github.com/apache/incubator-superset/blob/318e5347bc6f88119725775baa4ab9a398a6f0b0/superset/errors.py#L24
45
+ *
46
+ * TODO: migrate superset-frontend/src/components/ErrorMessage/types.ts over
47
+ */
48
+ export let SupersetApiErrorType = /*#__PURE__*/function (SupersetApiErrorType) {SupersetApiErrorType["UnknownError"] = "UNKNOWN_ERROR";SupersetApiErrorType["FrontendCsrfError"] = "FRONTEND_CSRF_ERROR";SupersetApiErrorType["FrontendNetworkError"] = "FRONTEND_NETWORK_ERROR";SupersetApiErrorType["FrontendTimeoutError"] = "FRONTEND_TIMEOUT_ERROR";SupersetApiErrorType["GenericDbEngineError"] = "GENERIC_DB_ENGINE_ERROR";SupersetApiErrorType["VizGetDfError"] = "VIZ_GET_DF_ERROR";SupersetApiErrorType["UnknownDatasourceTypeError"] = "UNKNOWN_DATASOURCE_TYPE_ERROR";SupersetApiErrorType["FailedFetchingDatasourceInfoError"] = "FAILED_FETCHING_DATASOURCE_INFO_ERROR";SupersetApiErrorType["TableSecurityAccessError"] = "TABLE_SECURITY_ACCESS_ERROR";SupersetApiErrorType["DatasourceSecurityAccessError"] = "DATASOURCE_SECURITY_ACCESS_ERROR";SupersetApiErrorType["MissingOwnershipError"] = "MISSING_OWNERSHIP_ERROR";return SupersetApiErrorType;}({});
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ /**
72
+ * API Error json response from the backend (or fetch API in the frontend).
73
+ * See SIP-40 and SIP-41: https://github.com/apache/incubator-superset/issues/9298
74
+ */
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+ export class SupersetApiError extends Error {
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ constructor({
104
+ status,
105
+ statusText,
106
+ message,
107
+ link,
108
+ extra,
109
+ stack,
110
+ error_type: errorType,
111
+ originalError
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+ }) {
120
+ super(message);this.status = void 0;this.statusText = void 0;this.errorType = void 0;this.extra = void 0;this.originalError = void 0;
121
+ const originalErrorStack =
122
+ stack || (
123
+ originalError instanceof Error ? originalError.stack : undefined);
124
+ this.stack =
125
+ originalErrorStack && this.stack ?
126
+ [
127
+ this.stack.split('\n')[0],
128
+ ...originalErrorStack.split('\n').slice(1)].
129
+ join('\n') :
130
+ this.stack;
131
+ this.name = 'SupersetApiError';
132
+ this.errorType = errorType || SupersetApiErrorType.UnknownError;
133
+ this.extra = extra || {};
134
+ if (link) {
135
+ this.extra.link = link;
136
+ }
137
+ this.status = status;
138
+ this.statusText = statusText;
139
+ this.originalError = originalError;
140
+ }
141
+ }
142
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["SupersetApiErrorType","SupersetApiError","Error","constructor","status","statusText","message","link","extra","stack","error_type","errorType","originalError","originalErrorStack","undefined","split","slice","join","name","UnknownError"],"sources":["../../../../src/query/api/v1/types.ts"],"sourcesContent":["/* eslint-disable camelcase */\n/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport {\n SupersetClientClass,\n SupersetClientInterface,\n StrictJsonObject,\n JsonValue,\n JsonObject,\n} from '../../../connection';\n\nexport type ParsedResponseType<T> = T extends 'text'\n ? string\n : T extends 'raw' | null\n ? Response\n : JsonValue;\n\n/**\n * Runtime options when calling a Superset API. Currently only allow overriding\n * SupersetClient instance.\n */\nexport interface SupersetApiRequestOptions {\n client?: SupersetClientInterface | SupersetClientClass;\n}\n\n/**\n * Superset API error types.\n * Ref: https://github.com/apache/incubator-superset/blob/318e5347bc6f88119725775baa4ab9a398a6f0b0/superset/errors.py#L24\n *\n * TODO: migrate superset-frontend/src/components/ErrorMessage/types.ts over\n */\nexport enum SupersetApiErrorType {\n // Generic unknown error\n UnknownError = 'UNKNOWN_ERROR',\n\n // Frontend errors\n FrontendCsrfError = 'FRONTEND_CSRF_ERROR',\n FrontendNetworkError = 'FRONTEND_NETWORK_ERROR',\n FrontendTimeoutError = 'FRONTEND_TIMEOUT_ERROR',\n\n // DB Engine errors,\n GenericDbEngineError = 'GENERIC_DB_ENGINE_ERROR',\n\n // Viz errors,\n VizGetDfError = 'VIZ_GET_DF_ERROR',\n UnknownDatasourceTypeError = 'UNKNOWN_DATASOURCE_TYPE_ERROR',\n FailedFetchingDatasourceInfoError = 'FAILED_FETCHING_DATASOURCE_INFO_ERROR',\n\n // Security access errors,\n TableSecurityAccessError = 'TABLE_SECURITY_ACCESS_ERROR',\n DatasourceSecurityAccessError = 'DATASOURCE_SECURITY_ACCESS_ERROR',\n MissingOwnershipError = 'MISSING_OWNERSHIP_ERROR',\n}\n\n/**\n * API Error json response from the backend (or fetch API in the frontend).\n * See SIP-40 and SIP-41: https://github.com/apache/incubator-superset/issues/9298\n */\nexport interface SupersetApiErrorPayload {\n message?: string; // error message via FlaskAppBuilder, e.g. `response_404(message=...)`\n error_type?: SupersetApiErrorType;\n level?: 'error' | 'warn' | 'info';\n extra?: StrictJsonObject;\n /**\n * Error message returned via `json_error_response`.\n * Ref https://github.com/apache/incubator-superset/blob/8e23d4f369f35724b34b14def8a5a8bafb1d2ecb/superset/views/base.py#L94\n */\n error?: string | SupersetApiErrorPayload;\n link?: string;\n}\n\nexport interface SupersetApiMultiErrorsPayload {\n errors: SupersetApiErrorPayload[];\n}\n\nexport class SupersetApiError extends Error {\n status?: number;\n\n statusText?: string;\n\n errorType: SupersetApiErrorType;\n\n extra: JsonObject;\n\n originalError?: Error | Response | JsonValue;\n\n constructor({\n status,\n statusText,\n message,\n link,\n extra,\n stack,\n error_type: errorType,\n originalError,\n }: Omit<SupersetApiErrorPayload, 'error'> & {\n status?: number;\n statusText?: string;\n message: string;\n stack?: Error['stack'];\n // original JavaScript error or backend JSON response captured\n originalError?: SupersetApiError['originalError'];\n }) {\n super(message);\n const originalErrorStack =\n stack ||\n (originalError instanceof Error ? originalError.stack : undefined);\n this.stack =\n originalErrorStack && this.stack\n ? [\n this.stack.split('\\n')[0],\n ...originalErrorStack.split('\\n').slice(1),\n ].join('\\n')\n : this.stack;\n this.name = 'SupersetApiError';\n this.errorType = errorType || SupersetApiErrorType.UnknownError;\n this.extra = extra || {};\n if (link) {\n this.extra.link = link;\n }\n this.status = status;\n this.statusText = statusText;\n this.originalError = originalError;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AAeA;AACA;AACA;AACA;;;;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,oBAAoB,0BAApBA,oBAAoB,GAApBA,oBAAoB,mCAApBA,oBAAoB,8CAApBA,oBAAoB,oDAApBA,oBAAoB,oDAApBA,oBAAoB,qDAApBA,oBAAoB,uCAApBA,oBAAoB,iEAApBA,oBAAoB,gFAApBA,oBAAoB,6DAApBA,oBAAoB,uEAApBA,oBAAoB,6DAApBA,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;AAuBhC;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMC,gBAAgB,SAASC,KAAK,CAAC;;;;;;;;;;;EAW1CC,WAAWA,CAAC;IACVC,MAAM;IACNC,UAAU;IACVC,OAAO;IACPC,IAAI;IACJC,KAAK;IACLC,KAAK;IACLC,UAAU,EAAEC,SAAS;IACrBC;;;;;;;;EAQF,CAAC,EAAE;IACD,KAAK,CAACN,OAAO,CAAC,CAAC,KA3BjBF,MAAM,eAENC,UAAU,eAEVM,SAAS,eAETH,KAAK,eAELI,aAAa;IAoBX,MAAMC,kBAAkB;IACtBJ,KAAK;IACJG,aAAa,YAAYV,KAAK,GAAGU,aAAa,CAACH,KAAK,GAAGK,SAAS,CAAC;IACpE,IAAI,CAACL,KAAK;IACRI,kBAAkB,IAAI,IAAI,CAACJ,KAAK;IAC5B;IACE,IAAI,CAACA,KAAK,CAACM,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACzB,GAAGF,kBAAkB,CAACE,KAAK,CAAC,IAAI,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC,CAC3C;IAACC,IAAI,CAAC,IAAI,CAAC;IACZ,IAAI,CAACR,KAAK;IAChB,IAAI,CAACS,IAAI,GAAG,kBAAkB;IAC9B,IAAI,CAACP,SAAS,GAAGA,SAAS,IAAIX,oBAAoB,CAACmB,YAAY;IAC/D,IAAI,CAACX,KAAK,GAAGA,KAAK,IAAI,CAAC,CAAC;IACxB,IAAID,IAAI,EAAE;MACR,IAAI,CAACC,KAAK,CAACD,IAAI,GAAGA,IAAI;IACxB;IACA,IAAI,CAACH,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACO,aAAa,GAAGA,aAAa;EACpC;AACF","ignoreList":[]}
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ import buildQueryObject from './buildQueryObject.js';
21
+ import DatasourceKey from './DatasourceKey.js';
22
+
23
+
24
+
25
+
26
+ import { normalizeTimeColumn } from './normalizeTimeColumn.js';
27
+ import { isXAxisSet } from './getXAxis.js';
28
+
29
+ const WRAP_IN_ARRAY = (baseQueryObject) => [baseQueryObject];
30
+
31
+
32
+
33
+
34
+
35
+ export default function buildQueryContext(
36
+ formData,
37
+ options)
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+ {
46
+ const { queryFields, buildQuery = WRAP_IN_ARRAY } =
47
+ typeof options === 'function' ?
48
+ { buildQuery: options, queryFields: {} } :
49
+ options || {};
50
+ let queries = buildQuery(buildQueryObject(formData, queryFields));
51
+ // --- query mutator begin ---
52
+ // todo(Yongjie): move the query mutator into buildQueryObject instead of buildQueryContext
53
+ queries.forEach((query) => {
54
+ if (Array.isArray(query.post_processing)) {
55
+ // eslint-disable-next-line no-param-reassign
56
+ query.post_processing = query.post_processing.filter(Boolean);
57
+ }
58
+ });
59
+ if (isXAxisSet(formData)) {
60
+ queries = queries.map((query) => normalizeTimeColumn(formData, query));
61
+ }
62
+ // --- query mutator end ---
63
+ return {
64
+ datasource: new DatasourceKey(formData.datasource).toObject(),
65
+ force: formData.force || false,
66
+ queries,
67
+ form_data: formData,
68
+ result_format: formData.result_format || 'json',
69
+ result_type: formData.result_type || 'full'
70
+ };
71
+ }
72
+ //# sourceMappingURL=buildQueryContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildQueryContext.js","names":["buildQueryObject","DatasourceKey","normalizeTimeColumn","isXAxisSet","WRAP_IN_ARRAY","baseQueryObject","buildQueryContext","formData","options","queryFields","buildQuery","queries","forEach","query","Array","isArray","post_processing","filter","Boolean","map","datasource","toObject","force","form_data","result_format","result_type"],"sources":["../../src/query/buildQueryContext.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport buildQueryObject from './buildQueryObject';\nimport DatasourceKey from './DatasourceKey';\nimport { QueryFieldAliases, QueryFormData } from './types/QueryFormData';\nimport { QueryContext, QueryObject } from './types/Query';\nimport { SetDataMaskHook } from '../chart';\nimport { JsonObject } from '../connection';\nimport { normalizeTimeColumn } from './normalizeTimeColumn';\nimport { isXAxisSet } from './getXAxis';\n\nconst WRAP_IN_ARRAY = (baseQueryObject: QueryObject) => [baseQueryObject];\n\nexport type BuildFinalQueryObjects = (\n baseQueryObject: QueryObject,\n) => QueryObject[];\n\nexport default function buildQueryContext(\n formData: QueryFormData,\n options?:\n | {\n buildQuery?: BuildFinalQueryObjects;\n queryFields?: QueryFieldAliases;\n ownState?: JsonObject;\n hooks?: { setDataMask: SetDataMaskHook };\n }\n | BuildFinalQueryObjects,\n): QueryContext {\n const { queryFields, buildQuery = WRAP_IN_ARRAY } =\n typeof options === 'function'\n ? { buildQuery: options, queryFields: {} }\n : options || {};\n let queries = buildQuery(buildQueryObject(formData, queryFields));\n // --- query mutator begin ---\n // todo(Yongjie): move the query mutator into buildQueryObject instead of buildQueryContext\n queries.forEach(query => {\n if (Array.isArray(query.post_processing)) {\n // eslint-disable-next-line no-param-reassign\n query.post_processing = query.post_processing.filter(Boolean);\n }\n });\n if (isXAxisSet(formData)) {\n queries = queries.map(query => normalizeTimeColumn(formData, query));\n }\n // --- query mutator end ---\n return {\n datasource: new DatasourceKey(formData.datasource).toObject(),\n force: formData.force || false,\n queries,\n form_data: formData,\n result_format: formData.result_format || 'json',\n result_type: formData.result_type || 'full',\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,aAAa,MAAM,iBAAiB;;;;;AAK3C,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,UAAU,QAAQ,YAAY;;AAEvC,MAAMC,aAAa,GAAGA,CAACC,eAA4B,KAAK,CAACA,eAAe,CAAC;;;;;;AAMzE,eAAe,SAASC,iBAAiBA;AACvCC,QAAuB;AACvBC,OAO0B;;;;;;;;AACZ;EACd,MAAM,EAAEC,WAAW,EAAEC,UAAU,GAAGN,aAAa,CAAC,CAAC;EAC/C,OAAOI,OAAO,KAAK,UAAU;EACzB,EAAEE,UAAU,EAAEF,OAAO,EAAEC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;EACxCD,OAAO,IAAI,CAAC,CAAC;EACnB,IAAIG,OAAO,GAAGD,UAAU,CAACV,gBAAgB,CAACO,QAAQ,EAAEE,WAAW,CAAC,CAAC;EACjE;EACA;EACAE,OAAO,CAACC,OAAO,CAAC,CAAAC,KAAK,KAAI;IACvB,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAACG,eAAe,CAAC,EAAE;MACxC;MACAH,KAAK,CAACG,eAAe,GAAGH,KAAK,CAACG,eAAe,CAACC,MAAM,CAACC,OAAO,CAAC;IAC/D;EACF,CAAC,CAAC;EACF,IAAIf,UAAU,CAACI,QAAQ,CAAC,EAAE;IACxBI,OAAO,GAAGA,OAAO,CAACQ,GAAG,CAAC,CAAAN,KAAK,KAAIX,mBAAmB,CAACK,QAAQ,EAAEM,KAAK,CAAC,CAAC;EACtE;EACA;EACA,OAAO;IACLO,UAAU,EAAE,IAAInB,aAAa,CAACM,QAAQ,CAACa,UAAU,CAAC,CAACC,QAAQ,CAAC,CAAC;IAC7DC,KAAK,EAAEf,QAAQ,CAACe,KAAK,IAAI,KAAK;IAC9BX,OAAO;IACPY,SAAS,EAAEhB,QAAQ;IACnBiB,aAAa,EAAEjB,QAAQ,CAACiB,aAAa,IAAI,MAAM;IAC/CC,WAAW,EAAElB,QAAQ,CAACkB,WAAW,IAAI;EACvC,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,141 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ /* eslint-disable camelcase */
21
+ import {
22
+
23
+
24
+
25
+ isQueryFormMetric } from
26
+ './types/index.js';
27
+
28
+
29
+
30
+
31
+
32
+ import processFilters from './processFilters.js';
33
+ import extractExtras from './extractExtras.js';
34
+ import extractQueryFields from './extractQueryFields.js';
35
+ import { overrideExtraFormData } from './processExtraFormData.js';
36
+ import { isDefined } from '../utils/index.js';
37
+
38
+ /**
39
+ * Build the common segments of all query objects (e.g. the granularity field derived from
40
+ * SQLAlchemy). The segments specific to each viz type is constructed in the
41
+ * buildQuery method for each viz type (see `wordcloud/buildQuery.ts` for an example).
42
+ * Note the type of the formData argument passed in here is the type of the formData for a
43
+ * specific viz, which is a subtype of the generic formData shared among all viz types.
44
+ */
45
+ export default function buildQueryObject(
46
+ formData,
47
+ queryFields)
48
+ {var _ref, _normalizeSeriesLimit;
49
+ const {
50
+ annotation_layers = [],
51
+ extra_form_data,
52
+ time_range,
53
+ since,
54
+ until,
55
+ row_limit,
56
+ row_offset,
57
+ order_desc,
58
+ limit,
59
+ timeseries_limit_metric,
60
+ granularity,
61
+ url_params = {},
62
+ custom_params = {},
63
+ series_columns,
64
+ series_limit,
65
+ series_limit_metric,
66
+ ...residualFormData
67
+ } = formData;
68
+ const {
69
+ adhoc_filters: appendAdhocFilters = [],
70
+ filters: appendFilters = [],
71
+ custom_form_data = {},
72
+ ...overrides
73
+ } = extra_form_data || {};
74
+
75
+ const numericRowLimit = Number(row_limit);
76
+ const numericRowOffset = Number(row_offset);
77
+ const { metrics, columns, orderby } = extractQueryFields(
78
+ residualFormData,
79
+ queryFields
80
+ );
81
+
82
+ // collect all filters for conversion to simple filters/freeform clauses
83
+ const extras = extractExtras(formData);
84
+ const { filters: extraFilters } = extras;
85
+ const filterFormData =
86
+
87
+
88
+ {
89
+ filters: [...extraFilters, ...appendFilters],
90
+ adhoc_filters: [...(formData.adhoc_filters || []), ...appendAdhocFilters]
91
+ };
92
+ const extrasAndfilters = processFilters({
93
+ ...formData,
94
+ ...extras,
95
+ ...filterFormData
96
+ });
97
+ const normalizeSeriesLimitMetric = (metric) => {
98
+ if (isQueryFormMetric(metric)) {
99
+ return metric;
100
+ }
101
+ return undefined;
102
+ };
103
+
104
+ let queryObject = {
105
+ // fallback `null` to `undefined` so they won't be sent to the backend
106
+ // (JSON.stringify will ignore `undefined`.)
107
+ time_range: time_range || undefined,
108
+ since: since || undefined,
109
+ until: until || undefined,
110
+ granularity: granularity || undefined,
111
+ ...extras,
112
+ ...extrasAndfilters,
113
+ columns,
114
+ metrics,
115
+ orderby,
116
+ annotation_layers,
117
+ row_limit:
118
+ row_limit == null || Number.isNaN(numericRowLimit) ?
119
+ undefined :
120
+ numericRowLimit,
121
+ row_offset:
122
+ row_offset == null || Number.isNaN(numericRowOffset) ?
123
+ undefined :
124
+ numericRowOffset,
125
+ series_columns,
126
+ series_limit: series_limit != null ? series_limit : isDefined(limit) ? Number(limit) : 0,
127
+ series_limit_metric: (_ref = (_normalizeSeriesLimit =
128
+ normalizeSeriesLimitMetric(series_limit_metric)) != null ? _normalizeSeriesLimit :
129
+ timeseries_limit_metric) != null ? _ref :
130
+ undefined,
131
+ order_desc: typeof order_desc === 'undefined' ? true : order_desc,
132
+ url_params: url_params || undefined,
133
+ custom_params
134
+ };
135
+
136
+ // override extra form data used by native and cross filters
137
+ queryObject = overrideExtraFormData(queryObject, overrides);
138
+
139
+ return { ...queryObject, custom_form_data };
140
+ }
141
+ //# sourceMappingURL=buildQueryObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildQueryObject.js","names":["isQueryFormMetric","processFilters","extractExtras","extractQueryFields","overrideExtraFormData","isDefined","buildQueryObject","formData","queryFields","_ref","_normalizeSeriesLimit","annotation_layers","extra_form_data","time_range","since","until","row_limit","row_offset","order_desc","limit","timeseries_limit_metric","granularity","url_params","custom_params","series_columns","series_limit","series_limit_metric","residualFormData","adhoc_filters","appendAdhocFilters","filters","appendFilters","custom_form_data","overrides","numericRowLimit","Number","numericRowOffset","metrics","columns","orderby","extras","extraFilters","filterFormData","extrasAndfilters","normalizeSeriesLimitMetric","metric","undefined","queryObject","isNaN"],"sources":["../../src/query/buildQueryObject.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/* eslint-disable camelcase */\nimport {\n AdhocFilter,\n QueryObject,\n QueryObjectFilterClause,\n isQueryFormMetric,\n} from './types';\nimport {\n QueryFieldAliases,\n QueryFormMetric,\n QueryFormData,\n} from './types/QueryFormData';\nimport processFilters from './processFilters';\nimport extractExtras from './extractExtras';\nimport extractQueryFields from './extractQueryFields';\nimport { overrideExtraFormData } from './processExtraFormData';\nimport { isDefined } from '../utils';\n\n/**\n * Build the common segments of all query objects (e.g. the granularity field derived from\n * SQLAlchemy). The segments specific to each viz type is constructed in the\n * buildQuery method for each viz type (see `wordcloud/buildQuery.ts` for an example).\n * Note the type of the formData argument passed in here is the type of the formData for a\n * specific viz, which is a subtype of the generic formData shared among all viz types.\n */\nexport default function buildQueryObject<T extends QueryFormData>(\n formData: T,\n queryFields?: QueryFieldAliases,\n): QueryObject {\n const {\n annotation_layers = [],\n extra_form_data,\n time_range,\n since,\n until,\n row_limit,\n row_offset,\n order_desc,\n limit,\n timeseries_limit_metric,\n granularity,\n url_params = {},\n custom_params = {},\n series_columns,\n series_limit,\n series_limit_metric,\n ...residualFormData\n } = formData;\n const {\n adhoc_filters: appendAdhocFilters = [],\n filters: appendFilters = [],\n custom_form_data = {},\n ...overrides\n } = extra_form_data || {};\n\n const numericRowLimit = Number(row_limit);\n const numericRowOffset = Number(row_offset);\n const { metrics, columns, orderby } = extractQueryFields(\n residualFormData,\n queryFields,\n );\n\n // collect all filters for conversion to simple filters/freeform clauses\n const extras = extractExtras(formData);\n const { filters: extraFilters } = extras;\n const filterFormData: {\n filters: QueryObjectFilterClause[];\n adhoc_filters: AdhocFilter[];\n } = {\n filters: [...extraFilters, ...appendFilters],\n adhoc_filters: [...(formData.adhoc_filters || []), ...appendAdhocFilters],\n };\n const extrasAndfilters = processFilters({\n ...formData,\n ...extras,\n ...filterFormData,\n });\n const normalizeSeriesLimitMetric = (metric: QueryFormMetric | undefined) => {\n if (isQueryFormMetric(metric)) {\n return metric;\n }\n return undefined;\n };\n\n let queryObject: QueryObject = {\n // fallback `null` to `undefined` so they won't be sent to the backend\n // (JSON.stringify will ignore `undefined`.)\n time_range: time_range || undefined,\n since: since || undefined,\n until: until || undefined,\n granularity: granularity || undefined,\n ...extras,\n ...extrasAndfilters,\n columns,\n metrics,\n orderby,\n annotation_layers,\n row_limit:\n row_limit == null || Number.isNaN(numericRowLimit)\n ? undefined\n : numericRowLimit,\n row_offset:\n row_offset == null || Number.isNaN(numericRowOffset)\n ? undefined\n : numericRowOffset,\n series_columns,\n series_limit: series_limit ?? (isDefined(limit) ? Number(limit) : 0),\n series_limit_metric:\n normalizeSeriesLimitMetric(series_limit_metric) ??\n timeseries_limit_metric ??\n undefined,\n order_desc: typeof order_desc === 'undefined' ? true : order_desc,\n url_params: url_params || undefined,\n custom_params,\n };\n\n // override extra form data used by native and cross filters\n queryObject = overrideExtraFormData(queryObject, overrides);\n\n return { ...queryObject, custom_form_data };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;EAIEA,iBAAiB;AACZ,SAAS;;;;;;AAMhB,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,kBAAkB,MAAM,sBAAsB;AACrD,SAASC,qBAAqB,QAAQ,wBAAwB;AAC9D,SAASC,SAAS,QAAQ,UAAU;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,gBAAgBA;AACtCC,QAAW;AACXC,WAA+B;AAClB,KAAAC,IAAA,EAAAC,qBAAA;EACb,MAAM;IACJC,iBAAiB,GAAG,EAAE;IACtBC,eAAe;IACfC,UAAU;IACVC,KAAK;IACLC,KAAK;IACLC,SAAS;IACTC,UAAU;IACVC,UAAU;IACVC,KAAK;IACLC,uBAAuB;IACvBC,WAAW;IACXC,UAAU,GAAG,CAAC,CAAC;IACfC,aAAa,GAAG,CAAC,CAAC;IAClBC,cAAc;IACdC,YAAY;IACZC,mBAAmB;IACnB,GAAGC;EACL,CAAC,GAAGpB,QAAQ;EACZ,MAAM;IACJqB,aAAa,EAAEC,kBAAkB,GAAG,EAAE;IACtCC,OAAO,EAAEC,aAAa,GAAG,EAAE;IAC3BC,gBAAgB,GAAG,CAAC,CAAC;IACrB,GAAGC;EACL,CAAC,GAAGrB,eAAe,IAAI,CAAC,CAAC;;EAEzB,MAAMsB,eAAe,GAAGC,MAAM,CAACnB,SAAS,CAAC;EACzC,MAAMoB,gBAAgB,GAAGD,MAAM,CAAClB,UAAU,CAAC;EAC3C,MAAM,EAAEoB,OAAO,EAAEC,OAAO,EAAEC,OAAO,CAAC,CAAC,GAAGpC,kBAAkB;IACtDwB,gBAAgB;IAChBnB;EACF,CAAC;;EAED;EACA,MAAMgC,MAAM,GAAGtC,aAAa,CAACK,QAAQ,CAAC;EACtC,MAAM,EAAEuB,OAAO,EAAEW,YAAY,CAAC,CAAC,GAAGD,MAAM;EACxC,MAAME,cAGL;;;EAAG;IACFZ,OAAO,EAAE,CAAC,GAAGW,YAAY,EAAE,GAAGV,aAAa,CAAC;IAC5CH,aAAa,EAAE,CAAC,IAAIrB,QAAQ,CAACqB,aAAa,IAAI,EAAE,CAAC,EAAE,GAAGC,kBAAkB;EAC1E,CAAC;EACD,MAAMc,gBAAgB,GAAG1C,cAAc,CAAC;IACtC,GAAGM,QAAQ;IACX,GAAGiC,MAAM;IACT,GAAGE;EACL,CAAC,CAAC;EACF,MAAME,0BAA0B,GAAGA,CAACC,MAAmC,KAAK;IAC1E,IAAI7C,iBAAiB,CAAC6C,MAAM,CAAC,EAAE;MAC7B,OAAOA,MAAM;IACf;IACA,OAAOC,SAAS;EAClB,CAAC;;EAED,IAAIC,WAAwB,GAAG;IAC7B;IACA;IACAlC,UAAU,EAAEA,UAAU,IAAIiC,SAAS;IACnChC,KAAK,EAAEA,KAAK,IAAIgC,SAAS;IACzB/B,KAAK,EAAEA,KAAK,IAAI+B,SAAS;IACzBzB,WAAW,EAAEA,WAAW,IAAIyB,SAAS;IACrC,GAAGN,MAAM;IACT,GAAGG,gBAAgB;IACnBL,OAAO;IACPD,OAAO;IACPE,OAAO;IACP5B,iBAAiB;IACjBK,SAAS;IACPA,SAAS,IAAI,IAAI,IAAImB,MAAM,CAACa,KAAK,CAACd,eAAe,CAAC;IAC9CY,SAAS;IACTZ,eAAe;IACrBjB,UAAU;IACRA,UAAU,IAAI,IAAI,IAAIkB,MAAM,CAACa,KAAK,CAACZ,gBAAgB,CAAC;IAChDU,SAAS;IACTV,gBAAgB;IACtBZ,cAAc;IACdC,YAAY,EAAEA,YAAY,WAAZA,YAAY,GAAKpB,SAAS,CAACc,KAAK,CAAC,GAAGgB,MAAM,CAAChB,KAAK,CAAC,GAAG,CAAE;IACpEO,mBAAmB,GAAAjB,IAAA,IAAAC,qBAAA;IACjBkC,0BAA0B,CAAClB,mBAAmB,CAAC,YAAAhB,qBAAA;IAC/CU,uBAAuB,YAAAX,IAAA;IACvBqC,SAAS;IACX5B,UAAU,EAAE,OAAOA,UAAU,KAAK,WAAW,GAAG,IAAI,GAAGA,UAAU;IACjEI,UAAU,EAAEA,UAAU,IAAIwB,SAAS;IACnCvB;EACF,CAAC;;EAED;EACAwB,WAAW,GAAG3C,qBAAqB,CAAC2C,WAAW,EAAEd,SAAS,CAAC;;EAE3D,OAAO,EAAE,GAAGc,WAAW,EAAEf,gBAAgB,CAAC,CAAC;AAC7C","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ export const DTTM_ALIAS = '__timestamp';
28
+ export const NO_TIME_RANGE = 'No filter';
29
+
30
+ export const EXTRA_FORM_DATA_OVERRIDE_EXTRA_KEYS =
31
+ ['relative_start', 'relative_end', 'time_grain_sqla'];
32
+
33
+ export const EXTRA_FORM_DATA_APPEND_KEYS = [
34
+ 'adhoc_filters',
35
+ 'filters',
36
+ 'interactive_groupby',
37
+ 'interactive_highlight',
38
+ 'interactive_drilldown',
39
+ 'custom_form_data'];
40
+
41
+
42
+ export const EXTRA_FORM_DATA_OVERRIDE_REGULAR_MAPPINGS =
43
+
44
+
45
+ {
46
+ granularity: 'granularity',
47
+ granularity_sqla: 'granularity',
48
+ time_column: 'time_column',
49
+ time_grain: 'time_grain',
50
+ time_range: 'time_range'
51
+ };
52
+
53
+ export const EXTRA_FORM_DATA_OVERRIDE_REGULAR_KEYS = Object.keys(
54
+ EXTRA_FORM_DATA_OVERRIDE_REGULAR_MAPPINGS
55
+ );
56
+
57
+ export const EXTRA_FORM_DATA_OVERRIDE_KEYS = [
58
+ ...EXTRA_FORM_DATA_OVERRIDE_REGULAR_KEYS,
59
+ ...EXTRA_FORM_DATA_OVERRIDE_EXTRA_KEYS];
60
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","names":["DTTM_ALIAS","NO_TIME_RANGE","EXTRA_FORM_DATA_OVERRIDE_EXTRA_KEYS","EXTRA_FORM_DATA_APPEND_KEYS","EXTRA_FORM_DATA_OVERRIDE_REGULAR_MAPPINGS","granularity","granularity_sqla","time_column","time_grain","time_range","EXTRA_FORM_DATA_OVERRIDE_REGULAR_KEYS","Object","keys","EXTRA_FORM_DATA_OVERRIDE_KEYS"],"sources":["../../src/query/constants.ts"],"sourcesContent":["/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport {\n ExtraFormDataAppend,\n ExtraFormDataOverrideExtras,\n ExtraFormDataOverrideRegular,\n ExtraFormDataOverride,\n QueryObject,\n} from './types';\n\nexport const DTTM_ALIAS = '__timestamp';\nexport const NO_TIME_RANGE = 'No filter';\n\nexport const EXTRA_FORM_DATA_OVERRIDE_EXTRA_KEYS: (keyof ExtraFormDataOverrideExtras)[] =\n ['relative_start', 'relative_end', 'time_grain_sqla'];\n\nexport const EXTRA_FORM_DATA_APPEND_KEYS: (keyof ExtraFormDataAppend)[] = [\n 'adhoc_filters',\n 'filters',\n 'interactive_groupby',\n 'interactive_highlight',\n 'interactive_drilldown',\n 'custom_form_data',\n];\n\nexport const EXTRA_FORM_DATA_OVERRIDE_REGULAR_MAPPINGS: Record<\n keyof ExtraFormDataOverrideRegular,\n keyof QueryObject\n> = {\n granularity: 'granularity',\n granularity_sqla: 'granularity',\n time_column: 'time_column',\n time_grain: 'time_grain',\n time_range: 'time_range',\n};\n\nexport const EXTRA_FORM_DATA_OVERRIDE_REGULAR_KEYS = Object.keys(\n EXTRA_FORM_DATA_OVERRIDE_REGULAR_MAPPINGS,\n) as (keyof ExtraFormDataOverrideRegular)[];\n\nexport const EXTRA_FORM_DATA_OVERRIDE_KEYS: (keyof ExtraFormDataOverride)[] = [\n ...EXTRA_FORM_DATA_OVERRIDE_REGULAR_KEYS,\n ...EXTRA_FORM_DATA_OVERRIDE_EXTRA_KEYS,\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AASA,OAAO,MAAMA,UAAU,GAAG,aAAa;AACvC,OAAO,MAAMC,aAAa,GAAG,WAAW;;AAExC,OAAO,MAAMC,mCAA0E;AACrF,CAAC,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,CAAC;;AAEvD,OAAO,MAAMC,2BAA0D,GAAG;AACxE,eAAe;AACf,SAAS;AACT,qBAAqB;AACrB,uBAAuB;AACvB,uBAAuB;AACvB,kBAAkB,CACnB;;;AAED,OAAO,MAAMC,yCAGZ;;;AAAG;EACFC,WAAW,EAAE,aAAa;EAC1BC,gBAAgB,EAAE,aAAa;EAC/BC,WAAW,EAAE,aAAa;EAC1BC,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAE;AACd,CAAC;;AAED,OAAO,MAAMC,qCAAqC,GAAGC,MAAM,CAACC,IAAI;EAC9DR;AACF,CAA2C;;AAE3C,OAAO,MAAMS,6BAA8D,GAAG;AAC5E,GAAGH,qCAAqC;AACxC,GAAGR,mCAAmC,CACvC","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ import {
21
+
22
+ isBinaryAdhocFilter,
23
+ isUnaryAdhocFilter } from
24
+ './types/Filter.js';
25
+
26
+
27
+ export default function convertFilter(
28
+ filter)
29
+ {
30
+ const { subject } = filter;
31
+ if (isUnaryAdhocFilter(filter)) {
32
+ const { operator } = filter;
33
+
34
+ return {
35
+ col: subject,
36
+ op: operator
37
+ };
38
+ }
39
+ if (isBinaryAdhocFilter(filter)) {
40
+ const { operator } = filter;
41
+
42
+ return {
43
+ col: subject,
44
+ op: operator,
45
+ val: filter.comparator
46
+ };
47
+ }
48
+
49
+ const { operator } = filter;
50
+
51
+ return {
52
+ col: subject,
53
+ op: operator,
54
+ val: filter.comparator
55
+ };
56
+ }
57
+ //# sourceMappingURL=convertFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertFilter.js","names":["isBinaryAdhocFilter","isUnaryAdhocFilter","convertFilter","filter","subject","operator","col","op","val","comparator"],"sources":["../../src/query/convertFilter.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport {\n SimpleAdhocFilter,\n isBinaryAdhocFilter,\n isUnaryAdhocFilter,\n} from './types/Filter';\nimport { QueryObjectFilterClause } from './types/Query';\n\nexport default function convertFilter(\n filter: SimpleAdhocFilter,\n): QueryObjectFilterClause {\n const { subject } = filter;\n if (isUnaryAdhocFilter(filter)) {\n const { operator } = filter;\n\n return {\n col: subject,\n op: operator,\n };\n }\n if (isBinaryAdhocFilter(filter)) {\n const { operator } = filter;\n\n return {\n col: subject,\n op: operator,\n val: filter.comparator,\n };\n }\n\n const { operator } = filter;\n\n return {\n col: subject,\n op: operator,\n val: filter.comparator,\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;EAEEA,mBAAmB;EACnBC,kBAAkB;AACb,gBAAgB;;;AAGvB,eAAe,SAASC,aAAaA;AACnCC,MAAyB;AACA;EACzB,MAAM,EAAEC,OAAO,CAAC,CAAC,GAAGD,MAAM;EAC1B,IAAIF,kBAAkB,CAACE,MAAM,CAAC,EAAE;IAC9B,MAAM,EAAEE,QAAQ,CAAC,CAAC,GAAGF,MAAM;;IAE3B,OAAO;MACLG,GAAG,EAAEF,OAAO;MACZG,EAAE,EAAEF;IACN,CAAC;EACH;EACA,IAAIL,mBAAmB,CAACG,MAAM,CAAC,EAAE;IAC/B,MAAM,EAAEE,QAAQ,CAAC,CAAC,GAAGF,MAAM;;IAE3B,OAAO;MACLG,GAAG,EAAEF,OAAO;MACZG,EAAE,EAAEF,QAAQ;MACZG,GAAG,EAAEL,MAAM,CAACM;IACd,CAAC;EACH;;EAEA,MAAM,EAAEJ,QAAQ,CAAC,CAAC,GAAGF,MAAM;;EAE3B,OAAO;IACLG,GAAG,EAAEF,OAAO;IACZG,EAAE,EAAEF,QAAQ;IACZG,GAAG,EAAEL,MAAM,CAACM;EACd,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ /* eslint-disable camelcase */
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+ export default function extractExtras(formData) {
43
+ const applied_time_extras = {};
44
+ const filters = [];
45
+ const extras = {};
46
+ const extract = {
47
+ filters,
48
+ extras,
49
+ applied_time_extras
50
+ };
51
+
52
+ const reservedColumnsToQueryField =
53
+
54
+
55
+ {
56
+ __time_range: 'time_range',
57
+ __time_col: 'granularity_sqla',
58
+ __time_grain: 'time_grain_sqla',
59
+ __granularity: 'granularity'
60
+ };
61
+
62
+ (formData.extra_filters || []).forEach((filter) => {
63
+ if (filter.col in reservedColumnsToQueryField) {
64
+ const key = filter.col;
65
+ const queryField = reservedColumnsToQueryField[key];
66
+ extract[queryField] = filter.val;
67
+ applied_time_extras[key] = filter.val;
68
+ } else {
69
+ filters.push(filter);
70
+ }
71
+ });
72
+
73
+ // SQL
74
+ extras.time_grain_sqla = extract.time_grain_sqla || formData.time_grain_sqla;
75
+ extract.granularity =
76
+ extract.granularity_sqla ||
77
+ formData.granularity ||
78
+ formData.granularity_sqla;
79
+ delete extract.granularity_sqla;
80
+ delete extract.time_grain_sqla;
81
+
82
+ return extract;
83
+ }
84
+ //# sourceMappingURL=extractExtras.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractExtras.js","names":["extractExtras","formData","applied_time_extras","filters","extras","extract","reservedColumnsToQueryField","__time_range","__time_col","__time_grain","__granularity","extra_filters","forEach","filter","col","key","queryField","val","push","time_grain_sqla","granularity","granularity_sqla"],"sources":["../../src/query/extractExtras.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/* eslint-disable camelcase */\nimport { TimeGranularity, QueryFormData } from '@ohos-ports/superset-ui-core';\nimport {\n AppliedTimeExtras,\n QueryObjectExtras,\n QueryObjectFilterClause,\n TimeColumnConfigKey,\n} from './types';\n\ntype ExtraFilterQueryField = {\n time_range?: string;\n granularity_sqla?: string;\n time_grain_sqla?: TimeGranularity;\n granularity?: string;\n};\n\ntype ExtractedExtra = ExtraFilterQueryField & {\n filters: QueryObjectFilterClause[];\n extras: QueryObjectExtras;\n applied_time_extras: AppliedTimeExtras;\n};\n\nexport default function extractExtras(formData: QueryFormData): ExtractedExtra {\n const applied_time_extras: AppliedTimeExtras = {};\n const filters: QueryObjectFilterClause[] = [];\n const extras: QueryObjectExtras = {};\n const extract: ExtractedExtra = {\n filters,\n extras,\n applied_time_extras,\n };\n\n const reservedColumnsToQueryField: Record<\n TimeColumnConfigKey,\n keyof ExtraFilterQueryField\n > = {\n __time_range: 'time_range',\n __time_col: 'granularity_sqla',\n __time_grain: 'time_grain_sqla',\n __granularity: 'granularity',\n };\n\n (formData.extra_filters || []).forEach(filter => {\n if (filter.col in reservedColumnsToQueryField) {\n const key = filter.col as TimeColumnConfigKey;\n const queryField = reservedColumnsToQueryField[key];\n extract[queryField] = filter.val as TimeGranularity;\n applied_time_extras[key] = filter.val as string;\n } else {\n filters.push(filter);\n }\n });\n\n // SQL\n extras.time_grain_sqla = extract.time_grain_sqla || formData.time_grain_sqla;\n extract.granularity =\n extract.granularity_sqla ||\n formData.granularity ||\n formData.granularity_sqla;\n delete extract.granularity_sqla;\n delete extract.time_grain_sqla;\n\n return extract;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;;;;;;;;;AAsBA,eAAe,SAASA,aAAaA,CAACC,QAAuB,EAAkB;EAC7E,MAAMC,mBAAsC,GAAG,CAAC,CAAC;EACjD,MAAMC,OAAkC,GAAG,EAAE;EAC7C,MAAMC,MAAyB,GAAG,CAAC,CAAC;EACpC,MAAMC,OAAuB,GAAG;IAC9BF,OAAO;IACPC,MAAM;IACNF;EACF,CAAC;;EAED,MAAMI,2BAGL;;;EAAG;IACFC,YAAY,EAAE,YAAY;IAC1BC,UAAU,EAAE,kBAAkB;IAC9BC,YAAY,EAAE,iBAAiB;IAC/BC,aAAa,EAAE;EACjB,CAAC;;EAED,CAACT,QAAQ,CAACU,aAAa,IAAI,EAAE,EAAEC,OAAO,CAAC,CAAAC,MAAM,KAAI;IAC/C,IAAIA,MAAM,CAACC,GAAG,IAAIR,2BAA2B,EAAE;MAC7C,MAAMS,GAAG,GAAGF,MAAM,CAACC,GAA0B;MAC7C,MAAME,UAAU,GAAGV,2BAA2B,CAACS,GAAG,CAAC;MACnDV,OAAO,CAACW,UAAU,CAAC,GAAGH,MAAM,CAACI,GAAsB;MACnDf,mBAAmB,CAACa,GAAG,CAAC,GAAGF,MAAM,CAACI,GAAa;IACjD,CAAC,MAAM;MACLd,OAAO,CAACe,IAAI,CAACL,MAAM,CAAC;IACtB;EACF,CAAC,CAAC;;EAEF;EACAT,MAAM,CAACe,eAAe,GAAGd,OAAO,CAACc,eAAe,IAAIlB,QAAQ,CAACkB,eAAe;EAC5Ed,OAAO,CAACe,WAAW;EACjBf,OAAO,CAACgB,gBAAgB;EACxBpB,QAAQ,CAACmB,WAAW;EACpBnB,QAAQ,CAACoB,gBAAgB;EAC3B,OAAOhB,OAAO,CAACgB,gBAAgB;EAC/B,OAAOhB,OAAO,CAACc,eAAe;;EAE9B,OAAOd,OAAO;AAChB","ignoreList":[]}