@gravity-ui/querieskit 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/README.md +28 -0
  2. package/build/cjs/components/QueryGraph/QueryGraph.css +70 -0
  3. package/build/cjs/components/QueryGraph/QueryGraph.css.map +1 -0
  4. package/build/cjs/components/QueryGraph/QueryGraph.d.ts +4 -0
  5. package/build/cjs/components/QueryGraph/QueryGraph.js +517 -0
  6. package/build/cjs/components/QueryGraph/QueryGraph.js.map +1 -0
  7. package/build/cjs/components/QueryGraph/QueryGraph.stories.d.ts +16 -0
  8. package/build/cjs/components/QueryGraph/QueryGraph.stories.js +339 -0
  9. package/build/cjs/components/QueryGraph/QueryGraph.stories.js.map +1 -0
  10. package/build/cjs/components/QueryGraph/helpers/layout.d.ts +9 -0
  11. package/build/cjs/components/QueryGraph/helpers/layout.js +138 -0
  12. package/build/cjs/components/QueryGraph/helpers/layout.js.map +1 -0
  13. package/build/cjs/components/QueryGraph/helpers/presentation.d.ts +18 -0
  14. package/build/cjs/components/QueryGraph/helpers/presentation.js +44 -0
  15. package/build/cjs/components/QueryGraph/helpers/presentation.js.map +1 -0
  16. package/build/cjs/components/QueryGraph/i18n/dicts.d.ts +55 -0
  17. package/build/cjs/components/QueryGraph/i18n/dicts.js +14 -0
  18. package/build/cjs/components/QueryGraph/i18n/dicts.js.map +1 -0
  19. package/build/cjs/components/QueryGraph/i18n/en.json +26 -0
  20. package/build/cjs/components/QueryGraph/i18n/index.d.ts +6 -0
  21. package/build/cjs/components/QueryGraph/i18n/index.js +11 -0
  22. package/build/cjs/components/QueryGraph/i18n/index.js.map +1 -0
  23. package/build/cjs/components/QueryGraph/i18n/ru.json +26 -0
  24. package/build/cjs/components/QueryGraph/index.d.ts +2 -0
  25. package/build/cjs/components/QueryGraph/index.js +13 -0
  26. package/build/cjs/components/QueryGraph/index.js.map +1 -0
  27. package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.d.ts +24 -0
  28. package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.js +307 -0
  29. package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.js.map +1 -0
  30. package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.d.ts +5 -0
  31. package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.js +242 -0
  32. package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.js.map +1 -0
  33. package/build/cjs/components/QueryGraph/internal/queryGraphIcons.d.ts +12 -0
  34. package/build/cjs/components/QueryGraph/internal/queryGraphIcons.js +161 -0
  35. package/build/cjs/components/QueryGraph/internal/queryGraphIcons.js.map +1 -0
  36. package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.d.ts +22 -0
  37. package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.js +60 -0
  38. package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.js.map +1 -0
  39. package/build/cjs/components/QueryGraph/story/largeGraphData.d.ts +3 -0
  40. package/build/cjs/components/QueryGraph/story/largeGraphData.js +227 -0
  41. package/build/cjs/components/QueryGraph/story/largeGraphData.js.map +1 -0
  42. package/build/cjs/components/index.d.ts +2 -0
  43. package/build/cjs/components/index.js +9 -1
  44. package/build/cjs/components/index.js.map +1 -1
  45. package/build/cjs/helpers/buildColumnsFromKeys.d.ts +1 -1
  46. package/build/cjs/helpers/buildColumnsFromKeys.js.map +1 -1
  47. package/build/cjs/index.d.ts +1 -0
  48. package/build/cjs/index.js +11 -0
  49. package/build/cjs/index.js.map +1 -1
  50. package/build/cjs/modules/ClustersList/ClustersList.d.ts +1 -1
  51. package/build/cjs/modules/ClustersList/ClustersList.js +4 -3
  52. package/build/cjs/modules/ClustersList/ClustersList.js.map +1 -1
  53. package/build/cjs/modules/HistoryHeader/HistoryHeader.js +4 -3
  54. package/build/cjs/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  55. package/build/cjs/modules/HistoryRow/HistoryRow.js +12 -7
  56. package/build/cjs/modules/HistoryRow/HistoryRow.js.map +1 -1
  57. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js +8 -5
  58. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  59. package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +1 -1
  60. package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +5 -5
  61. package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -1
  62. package/build/cjs/modules/NavigationDetail/NavigationDetail.d.ts +1 -1
  63. package/build/cjs/modules/NavigationDetail/NavigationDetail.js +2 -2
  64. package/build/cjs/modules/NavigationDetail/NavigationDetail.js.map +1 -1
  65. package/build/cjs/modules/NavigationHeader/NavigationHeader.d.ts +1 -1
  66. package/build/cjs/modules/NavigationHeader/NavigationHeader.js +2 -2
  67. package/build/cjs/modules/NavigationHeader/NavigationHeader.js.map +1 -1
  68. package/build/cjs/modules/NavigationItemsList/NavigationItemsList.d.ts +1 -1
  69. package/build/cjs/modules/NavigationItemsList/NavigationItemsList.js +4 -3
  70. package/build/cjs/modules/NavigationItemsList/NavigationItemsList.js.map +1 -1
  71. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.d.ts +1 -1
  72. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js +2 -2
  73. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js.map +1 -1
  74. package/build/cjs/modules/NavigationMeta/NavigationMeta.js +4 -3
  75. package/build/cjs/modules/NavigationMeta/NavigationMeta.js.map +1 -1
  76. package/build/cjs/modules/NavigationMeta/i18n/index.d.ts +2 -2
  77. package/build/cjs/modules/NavigationPreview/NavigationPreview.d.ts +1 -1
  78. package/build/cjs/modules/NavigationPreview/NavigationPreview.js +6 -4
  79. package/build/cjs/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  80. package/build/cjs/modules/NavigationPreview/helpers/buildPreviewColumns.d.ts +1 -1
  81. package/build/cjs/modules/NavigationPreview/helpers/buildPreviewColumns.js.map +1 -1
  82. package/build/cjs/modules/NavigationSchema/NavigationSchema.d.ts +1 -1
  83. package/build/cjs/modules/NavigationSchema/NavigationSchema.js +4 -3
  84. package/build/cjs/modules/NavigationSchema/NavigationSchema.js.map +1 -1
  85. package/build/cjs/modules/NavigationSchema/helpers/buildSchemaColumns.d.ts +1 -1
  86. package/build/cjs/modules/NavigationSchema/helpers/buildSchemaColumns.js.map +1 -1
  87. package/build/cjs/modules/NavigationView/NavigationView.d.ts +1 -1
  88. package/build/cjs/modules/NavigationView/NavigationView.js +4 -3
  89. package/build/cjs/modules/NavigationView/NavigationView.js.map +1 -1
  90. package/build/cjs/modules/NavigationView/helpers/buildViewColumns.d.ts +1 -1
  91. package/build/cjs/modules/NavigationView/helpers/buildViewColumns.js.map +1 -1
  92. package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.d.ts +1 -1
  93. package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.js +4 -3
  94. package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.js.map +1 -1
  95. package/build/cjs/modules/QueriesList/QueriesList.js +2 -2
  96. package/build/cjs/modules/QueriesList/QueriesList.js.map +1 -1
  97. package/build/cjs/modules/QueryProgress/QueryProgress.css +64 -0
  98. package/build/cjs/modules/QueryProgress/QueryProgress.css.map +1 -0
  99. package/build/cjs/modules/QueryProgress/QueryProgress.d.ts +4 -0
  100. package/build/cjs/modules/QueryProgress/QueryProgress.js +135 -0
  101. package/build/cjs/modules/QueryProgress/QueryProgress.js.map +1 -0
  102. package/build/cjs/modules/QueryProgress/QueryProgress.stories.d.ts +7 -0
  103. package/build/cjs/modules/QueryProgress/QueryProgress.stories.js +38 -0
  104. package/build/cjs/modules/QueryProgress/QueryProgress.stories.js.map +1 -0
  105. package/build/cjs/modules/QueryProgress/i18n/dicts.d.ts +25 -0
  106. package/build/cjs/modules/QueryProgress/i18n/dicts.js +14 -0
  107. package/build/cjs/modules/QueryProgress/i18n/dicts.js.map +1 -0
  108. package/build/cjs/modules/QueryProgress/i18n/en.json +11 -0
  109. package/build/cjs/modules/QueryProgress/i18n/index.d.ts +6 -0
  110. package/build/cjs/modules/QueryProgress/i18n/index.js +11 -0
  111. package/build/cjs/modules/QueryProgress/i18n/index.js.map +1 -0
  112. package/build/cjs/modules/QueryProgress/i18n/ru.json +11 -0
  113. package/build/cjs/modules/QueryProgress/index.d.ts +2 -0
  114. package/build/cjs/modules/QueryProgress/index.js +13 -0
  115. package/build/cjs/modules/QueryProgress/index.js.map +1 -0
  116. package/build/cjs/modules/QueryStatistics/i18n/index.d.ts +2 -2
  117. package/build/cjs/modules/RowsList/RowsList.js +4 -3
  118. package/build/cjs/modules/RowsList/RowsList.js.map +1 -1
  119. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.d.ts +2 -2
  120. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js +6 -4
  121. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js.map +1 -1
  122. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +2 -2
  123. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +4 -3
  124. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -1
  125. package/build/cjs/modules/TutorialRow/TutorialRow.d.ts +1 -1
  126. package/build/cjs/modules/TutorialRow/TutorialRow.js +2 -2
  127. package/build/cjs/modules/TutorialRow/TutorialRow.js.map +1 -1
  128. package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.d.ts +1 -1
  129. package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js +4 -3
  130. package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -1
  131. package/build/cjs/modules/index.d.ts +2 -0
  132. package/build/cjs/modules/index.js +8 -0
  133. package/build/cjs/modules/index.js.map +1 -1
  134. package/build/cjs/types/queryGraph.d.ts +87 -0
  135. package/build/cjs/types/queryGraph.js +6 -0
  136. package/build/cjs/types/queryGraph.js.map +1 -0
  137. package/build/cjs/widgets/DashboardCharts/DashboardCharts.js +8 -6
  138. package/build/cjs/widgets/DashboardCharts/DashboardCharts.js.map +1 -1
  139. package/build/cjs/widgets/DashboardCharts/types.d.ts +3 -3
  140. package/build/cjs/widgets/DashboardCharts/types.js.map +1 -1
  141. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js +2 -2
  142. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  143. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js +6 -5
  144. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -1
  145. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.d.ts +1 -1
  146. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.js +13 -9
  147. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.js.map +1 -1
  148. package/build/cjs/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js +2 -2
  149. package/build/cjs/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js.map +1 -1
  150. package/build/cjs/widgets/QueriesNavigation/helpers/createTableDetailConfig.js +8 -5
  151. package/build/cjs/widgets/QueriesNavigation/helpers/createTableDetailConfig.js.map +1 -1
  152. package/build/cjs/widgets/QueryResults/QueryResults.js +2 -2
  153. package/build/cjs/widgets/QueryResults/QueryResults.js.map +1 -1
  154. package/build/cjs/widgets/QueryResults/i18n/index.d.ts +2 -2
  155. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js +4 -3
  156. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -1
  157. package/build/cjs/widgets/SavedQueries/SavedQueries.d.ts +2 -2
  158. package/build/cjs/widgets/SavedQueries/SavedQueries.js +2 -2
  159. package/build/cjs/widgets/SavedQueries/SavedQueries.js.map +1 -1
  160. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.d.ts +2 -2
  161. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js +6 -5
  162. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -1
  163. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  164. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js +6 -5
  165. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  166. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.d.ts +2 -2
  167. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js +6 -4
  168. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  169. package/build/esm/components/QueryGraph/QueryGraph.css +70 -0
  170. package/build/esm/components/QueryGraph/QueryGraph.css.map +1 -0
  171. package/build/esm/components/QueryGraph/QueryGraph.d.ts +4 -0
  172. package/build/esm/components/QueryGraph/QueryGraph.js +510 -0
  173. package/build/esm/components/QueryGraph/QueryGraph.js.map +1 -0
  174. package/build/esm/components/QueryGraph/QueryGraph.scss +81 -0
  175. package/build/esm/components/QueryGraph/QueryGraph.stories.d.ts +16 -0
  176. package/build/esm/components/QueryGraph/QueryGraph.stories.js +331 -0
  177. package/build/esm/components/QueryGraph/QueryGraph.stories.js.map +1 -0
  178. package/build/esm/components/QueryGraph/helpers/layout.d.ts +9 -0
  179. package/build/esm/components/QueryGraph/helpers/layout.js +128 -0
  180. package/build/esm/components/QueryGraph/helpers/layout.js.map +1 -0
  181. package/build/esm/components/QueryGraph/helpers/presentation.d.ts +18 -0
  182. package/build/esm/components/QueryGraph/helpers/presentation.js +35 -0
  183. package/build/esm/components/QueryGraph/helpers/presentation.js.map +1 -0
  184. package/build/esm/components/QueryGraph/i18n/dicts.d.ts +55 -0
  185. package/build/esm/components/QueryGraph/i18n/dicts.js +7 -0
  186. package/build/esm/components/QueryGraph/i18n/dicts.js.map +1 -0
  187. package/build/esm/components/QueryGraph/i18n/en.json +26 -0
  188. package/build/esm/components/QueryGraph/i18n/index.d.ts +6 -0
  189. package/build/esm/components/QueryGraph/i18n/index.js +4 -0
  190. package/build/esm/components/QueryGraph/i18n/index.js.map +1 -0
  191. package/build/esm/components/QueryGraph/i18n/ru.json +26 -0
  192. package/build/esm/components/QueryGraph/index.d.ts +2 -0
  193. package/build/esm/components/QueryGraph/index.js +2 -0
  194. package/build/esm/components/QueryGraph/index.js.map +1 -0
  195. package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.d.ts +24 -0
  196. package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.js +299 -0
  197. package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.js.map +1 -0
  198. package/build/esm/components/QueryGraph/internal/QueryGraphPopup.d.ts +5 -0
  199. package/build/esm/components/QueryGraph/internal/QueryGraphPopup.js +234 -0
  200. package/build/esm/components/QueryGraph/internal/QueryGraphPopup.js.map +1 -0
  201. package/build/esm/components/QueryGraph/internal/queryGraphIcons.d.ts +12 -0
  202. package/build/esm/components/QueryGraph/internal/queryGraphIcons.js +150 -0
  203. package/build/esm/components/QueryGraph/internal/queryGraphIcons.js.map +1 -0
  204. package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.d.ts +22 -0
  205. package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.js +53 -0
  206. package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.js.map +1 -0
  207. package/build/esm/components/QueryGraph/story/largeGraphData.d.ts +3 -0
  208. package/build/esm/components/QueryGraph/story/largeGraphData.js +220 -0
  209. package/build/esm/components/QueryGraph/story/largeGraphData.js.map +1 -0
  210. package/build/esm/components/index.d.ts +2 -0
  211. package/build/esm/components/index.js +1 -0
  212. package/build/esm/components/index.js.map +1 -1
  213. package/build/esm/helpers/buildColumnsFromKeys.d.ts +1 -1
  214. package/build/esm/helpers/buildColumnsFromKeys.js.map +1 -1
  215. package/build/esm/index.d.ts +1 -0
  216. package/build/esm/index.js +1 -0
  217. package/build/esm/index.js.map +1 -1
  218. package/build/esm/modules/ClustersList/ClustersList.d.ts +1 -1
  219. package/build/esm/modules/ClustersList/ClustersList.js +2 -1
  220. package/build/esm/modules/ClustersList/ClustersList.js.map +1 -1
  221. package/build/esm/modules/HistoryHeader/HistoryHeader.js +2 -1
  222. package/build/esm/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  223. package/build/esm/modules/HistoryRow/HistoryRow.js +6 -1
  224. package/build/esm/modules/HistoryRow/HistoryRow.js.map +1 -1
  225. package/build/esm/modules/HistorySearchRow/HistorySearchRow.js +4 -1
  226. package/build/esm/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  227. package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +1 -1
  228. package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +1 -1
  229. package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -1
  230. package/build/esm/modules/NavigationDetail/NavigationDetail.d.ts +1 -1
  231. package/build/esm/modules/NavigationDetail/NavigationDetail.js +1 -1
  232. package/build/esm/modules/NavigationDetail/NavigationDetail.js.map +1 -1
  233. package/build/esm/modules/NavigationHeader/NavigationHeader.d.ts +1 -1
  234. package/build/esm/modules/NavigationHeader/NavigationHeader.js +1 -1
  235. package/build/esm/modules/NavigationHeader/NavigationHeader.js.map +1 -1
  236. package/build/esm/modules/NavigationItemsList/NavigationItemsList.d.ts +1 -1
  237. package/build/esm/modules/NavigationItemsList/NavigationItemsList.js +2 -1
  238. package/build/esm/modules/NavigationItemsList/NavigationItemsList.js.map +1 -1
  239. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.d.ts +1 -1
  240. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js +1 -1
  241. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js.map +1 -1
  242. package/build/esm/modules/NavigationMeta/NavigationMeta.js +2 -1
  243. package/build/esm/modules/NavigationMeta/NavigationMeta.js.map +1 -1
  244. package/build/esm/modules/NavigationMeta/i18n/index.d.ts +2 -2
  245. package/build/esm/modules/NavigationPreview/NavigationPreview.d.ts +1 -1
  246. package/build/esm/modules/NavigationPreview/NavigationPreview.js +3 -1
  247. package/build/esm/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  248. package/build/esm/modules/NavigationPreview/helpers/buildPreviewColumns.d.ts +1 -1
  249. package/build/esm/modules/NavigationPreview/helpers/buildPreviewColumns.js.map +1 -1
  250. package/build/esm/modules/NavigationSchema/NavigationSchema.d.ts +1 -1
  251. package/build/esm/modules/NavigationSchema/NavigationSchema.js +2 -1
  252. package/build/esm/modules/NavigationSchema/NavigationSchema.js.map +1 -1
  253. package/build/esm/modules/NavigationSchema/helpers/buildSchemaColumns.d.ts +1 -1
  254. package/build/esm/modules/NavigationSchema/helpers/buildSchemaColumns.js.map +1 -1
  255. package/build/esm/modules/NavigationView/NavigationView.d.ts +1 -1
  256. package/build/esm/modules/NavigationView/NavigationView.js +2 -1
  257. package/build/esm/modules/NavigationView/NavigationView.js.map +1 -1
  258. package/build/esm/modules/NavigationView/helpers/buildViewColumns.d.ts +1 -1
  259. package/build/esm/modules/NavigationView/helpers/buildViewColumns.js.map +1 -1
  260. package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.d.ts +1 -1
  261. package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.js +2 -1
  262. package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.js.map +1 -1
  263. package/build/esm/modules/QueriesList/QueriesList.js +1 -1
  264. package/build/esm/modules/QueriesList/QueriesList.js.map +1 -1
  265. package/build/esm/modules/QueryProgress/QueryProgress.css +64 -0
  266. package/build/esm/modules/QueryProgress/QueryProgress.css.map +1 -0
  267. package/build/esm/modules/QueryProgress/QueryProgress.d.ts +4 -0
  268. package/build/esm/modules/QueryProgress/QueryProgress.js +127 -0
  269. package/build/esm/modules/QueryProgress/QueryProgress.js.map +1 -0
  270. package/build/esm/modules/QueryProgress/QueryProgress.scss +72 -0
  271. package/build/esm/modules/QueryProgress/QueryProgress.stories.d.ts +7 -0
  272. package/build/esm/modules/QueryProgress/QueryProgress.stories.js +31 -0
  273. package/build/esm/modules/QueryProgress/QueryProgress.stories.js.map +1 -0
  274. package/build/esm/modules/QueryProgress/i18n/dicts.d.ts +25 -0
  275. package/build/esm/modules/QueryProgress/i18n/dicts.js +7 -0
  276. package/build/esm/modules/QueryProgress/i18n/dicts.js.map +1 -0
  277. package/build/esm/modules/QueryProgress/i18n/en.json +11 -0
  278. package/build/esm/modules/QueryProgress/i18n/index.d.ts +6 -0
  279. package/build/esm/modules/QueryProgress/i18n/index.js +4 -0
  280. package/build/esm/modules/QueryProgress/i18n/index.js.map +1 -0
  281. package/build/esm/modules/QueryProgress/i18n/ru.json +11 -0
  282. package/build/esm/modules/QueryProgress/index.d.ts +2 -0
  283. package/build/esm/modules/QueryProgress/index.js +2 -0
  284. package/build/esm/modules/QueryProgress/index.js.map +1 -0
  285. package/build/esm/modules/QueryStatistics/i18n/index.d.ts +2 -2
  286. package/build/esm/modules/RowsList/RowsList.js +2 -1
  287. package/build/esm/modules/RowsList/RowsList.js.map +1 -1
  288. package/build/esm/modules/SavedQueryRow/SavedQueryRow.d.ts +2 -2
  289. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js +3 -1
  290. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js.map +1 -1
  291. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +2 -2
  292. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +2 -1
  293. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -1
  294. package/build/esm/modules/TutorialRow/TutorialRow.d.ts +1 -1
  295. package/build/esm/modules/TutorialRow/TutorialRow.js +1 -1
  296. package/build/esm/modules/TutorialRow/TutorialRow.js.map +1 -1
  297. package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.d.ts +1 -1
  298. package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js +2 -1
  299. package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -1
  300. package/build/esm/modules/index.d.ts +2 -0
  301. package/build/esm/modules/index.js +1 -0
  302. package/build/esm/modules/index.js.map +1 -1
  303. package/build/esm/types/queryGraph.d.ts +87 -0
  304. package/build/esm/types/queryGraph.js +2 -0
  305. package/build/esm/types/queryGraph.js.map +1 -0
  306. package/build/esm/widgets/DashboardCharts/DashboardCharts.js +4 -2
  307. package/build/esm/widgets/DashboardCharts/DashboardCharts.js.map +1 -1
  308. package/build/esm/widgets/DashboardCharts/types.d.ts +3 -3
  309. package/build/esm/widgets/DashboardCharts/types.js.map +1 -1
  310. package/build/esm/widgets/QueriesHistory/QueriesHistory.js +1 -1
  311. package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  312. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js +3 -2
  313. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -1
  314. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.d.ts +1 -1
  315. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.js +6 -2
  316. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.js.map +1 -1
  317. package/build/esm/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js +1 -1
  318. package/build/esm/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js.map +1 -1
  319. package/build/esm/widgets/QueriesNavigation/helpers/createTableDetailConfig.js +4 -1
  320. package/build/esm/widgets/QueriesNavigation/helpers/createTableDetailConfig.js.map +1 -1
  321. package/build/esm/widgets/QueryResults/QueryResults.js +1 -1
  322. package/build/esm/widgets/QueryResults/QueryResults.js.map +1 -1
  323. package/build/esm/widgets/QueryResults/i18n/index.d.ts +2 -2
  324. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js +2 -1
  325. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -1
  326. package/build/esm/widgets/SavedQueries/SavedQueries.d.ts +2 -2
  327. package/build/esm/widgets/SavedQueries/SavedQueries.js +1 -1
  328. package/build/esm/widgets/SavedQueries/SavedQueries.js.map +1 -1
  329. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.d.ts +2 -2
  330. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js +3 -2
  331. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -1
  332. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  333. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js +3 -2
  334. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  335. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.d.ts +2 -2
  336. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js +3 -1
  337. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  338. package/package.json +84 -5
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useQueryGraphLayout = useQueryGraphLayout;
7
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
8
+ var _react = require("react");
9
+ var _graph = require("@gravity-ui/graph");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function useQueryGraphLayout(_ref) {
12
+ var structureKey = _ref.structureKey,
13
+ blocks = _ref.blocks,
14
+ connections = _ref.connections,
15
+ onError = _ref.onError;
16
+ var onErrorRef = (0, _react.useRef)(onError);
17
+ onErrorRef.current = onError;
18
+ var requestedKeyRef = (0, _react.useRef)(structureKey);
19
+ var _useState = (0, _react.useState)(),
20
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
21
+ resolved = _useState2[0],
22
+ setResolved = _useState2[1];
23
+ var _useState3 = (0, _react.useState)(),
24
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
25
+ error = _useState4[0],
26
+ setError = _useState4[1];
27
+ var handleError = (0, _react.useCallback)(function (nextError) {
28
+ var _onErrorRef$current;
29
+ setError(nextError);
30
+ (_onErrorRef$current = onErrorRef.current) === null || _onErrorRef$current === void 0 || _onErrorRef$current.call(onErrorRef, nextError);
31
+ }, []);
32
+ var _useLayeredLayout = (0, _graph.useLayeredLayout)({
33
+ blocks: blocks,
34
+ connections: connections,
35
+ onError: handleError
36
+ }),
37
+ result = _useLayeredLayout.result,
38
+ isLoading = _useLayeredLayout.isLoading;
39
+ (0, _react.useEffect)(function () {
40
+ setError(undefined);
41
+ }, [structureKey]);
42
+ (0, _react.useEffect)(function () {
43
+ if (isLoading) requestedKeyRef.current = structureKey;
44
+ }, [isLoading, structureKey]);
45
+ (0, _react.useEffect)(function () {
46
+ if (!isLoading && result && requestedKeyRef.current === structureKey) {
47
+ setResolved({
48
+ structureKey: structureKey,
49
+ result: result
50
+ });
51
+ }
52
+ }, [isLoading, result, structureKey]);
53
+ return {
54
+ result: resolved === null || resolved === void 0 ? void 0 : resolved.result,
55
+ resolvedStructureKey: resolved === null || resolved === void 0 ? void 0 : resolved.structureKey,
56
+ isInitialLoading: isLoading && !resolved,
57
+ error: error
58
+ };
59
+ }
60
+ // #sourceMappingURL=useQueryGraphLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_graph","_interopRequireDefault","e","__esModule","default","useQueryGraphLayout","_ref","structureKey","blocks","connections","onError","onErrorRef","useRef","current","requestedKeyRef","_useState","useState","_useState2","_slicedToArray","resolved","setResolved","_useState3","_useState4","error","setError","handleError","useCallback","nextError","_onErrorRef$current","call","_useLayeredLayout","useLayeredLayout","result","isLoading","useEffect","undefined","resolvedStructureKey","isInitialLoading"],"sources":["useQueryGraphLayout.ts"],"sourcesContent":["import {useCallback, useEffect, useRef, useState} from 'react';\nimport {type ConverterResult, useLayeredLayout} from '@gravity-ui/graph';\n\ntype QueryGraphLayoutInput = {\n structureKey: string;\n blocks: Array<{id: string; width: number; height: number}>;\n connections: Array<{\n id: string;\n sourceBlockId: string;\n targetBlockId: string;\n }>;\n onError?: (error: Error) => void;\n};\n\ntype ResolvedLayout = {structureKey: string; result: ConverterResult};\n\nexport function useQueryGraphLayout({\n structureKey,\n blocks,\n connections,\n onError,\n}: QueryGraphLayoutInput) {\n const onErrorRef = useRef(onError);\n onErrorRef.current = onError;\n const requestedKeyRef = useRef(structureKey);\n const [resolved, setResolved] = useState<ResolvedLayout>();\n const [error, setError] = useState<Error>();\n\n const handleError = useCallback((nextError: Error) => {\n setError(nextError);\n onErrorRef.current?.(nextError);\n }, []);\n const {result, isLoading} = useLayeredLayout({blocks, connections, onError: handleError});\n\n useEffect(() => {\n setError(undefined);\n }, [structureKey]);\n useEffect(() => {\n if (isLoading) requestedKeyRef.current = structureKey;\n }, [isLoading, structureKey]);\n useEffect(() => {\n if (!isLoading && result && requestedKeyRef.current === structureKey) {\n setResolved({structureKey, result});\n }\n }, [isLoading, result, structureKey]);\n\n return {\n result: resolved?.result,\n resolvedStructureKey: resolved?.structureKey,\n isInitialLoading: isLoading && !resolved,\n error,\n };\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAwE,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAejE,SAASG,mBAAmBA,CAAAC,IAAA,EAKT;EAAA,IAJtBC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IACZC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;EAEP,IAAMC,UAAU,GAAG,IAAAC,aAAM,EAACF,OAAO,CAAC;EAClCC,UAAU,CAACE,OAAO,GAAGH,OAAO;EAC5B,IAAMI,eAAe,GAAG,IAAAF,aAAM,EAACL,YAAY,CAAC;EAC5C,IAAAQ,SAAA,GAAgC,IAA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ACJ,CAAC,EAAE,CAACC,SAAS,EAAED,MAAM,EAAEzB,YAAY,CAAC,CAAC;EAErC,OAAO;IACHyB,MAAM,EAAEb,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEa,MAAM;IACxBI,oBAAoB,EAAEjB,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEZ,YAAY;IAC5C8B,gBAAgB,EAAEJ,SAAS,IAAI,CAACd,QAAQ;IACxCI,KAAK,EAALA;EACJ,CAAC;AACL","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import type { QueryGraphEdge, QueryGraphNode } from '../../../types/queryGraph';
2
+ export declare const largeGraphNodes: QueryGraphNode[];
3
+ export declare const largeGraphEdges: QueryGraphEdge[];
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.largeGraphNodes = exports.largeGraphEdges = void 0;
7
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
8
+ require("core-js/modules/es.array.concat.js");
9
+ require("core-js/modules/es.array.map.js");
10
+ require("core-js/modules/es.function.name.js");
11
+ require("core-js/modules/es.object.to-string.js");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ function operation(_ref) {
14
+ var id = _ref.id,
15
+ name = _ref.name,
16
+ label = _ref.label,
17
+ _ref$inputs = _ref.inputs,
18
+ inputs = _ref$inputs === void 0 ? 1 : _ref$inputs,
19
+ _ref$outputs = _ref.outputs,
20
+ outputs = _ref$outputs === void 0 ? 1 : _ref$outputs,
21
+ _ref$status = _ref.status,
22
+ status = _ref$status === void 0 ? 'completed' : _ref$status,
23
+ _ref$total = _ref.total,
24
+ total = _ref$total === void 0 ? 100 : _ref$total,
25
+ _ref$completed = _ref.completed,
26
+ completed = _ref$completed === void 0 ? total : _ref$completed,
27
+ running = _ref.running;
28
+ var pending = Math.max(0, total - completed - (running !== null && running !== void 0 ? running : 0));
29
+ return {
30
+ id: id,
31
+ kind: 'operation',
32
+ name: name,
33
+ label: label,
34
+ status: status,
35
+ progress: {
36
+ total: total,
37
+ completed: completed,
38
+ running: running,
39
+ pending: pending
40
+ },
41
+ popup: {
42
+ details: [{
43
+ name: 'Operation ID',
44
+ value: id
45
+ }, {
46
+ name: 'Inputs',
47
+ value: inputs
48
+ }, {
49
+ name: 'Outputs',
50
+ value: outputs
51
+ }],
52
+ jobs: {
53
+ total: total,
54
+ completed: completed,
55
+ running: running,
56
+ pending: pending
57
+ }
58
+ }
59
+ };
60
+ }
61
+
62
+ // The topology is adapted from a processed production graph. Product-specific names and
63
+ // backend fields are intentionally normalized to the public QueryGraph contract.
64
+ var largeGraphNodes = exports.largeGraphNodes = [{
65
+ id: '25',
66
+ kind: 'input',
67
+ name: 'date_dim',
68
+ label: 'tpcds/3TB/date_dim',
69
+ popup: {
70
+ details: [{
71
+ name: 'Path',
72
+ value: 'tpcds/3TB/date_dim'
73
+ }]
74
+ }
75
+ }, {
76
+ id: '26',
77
+ kind: 'input',
78
+ name: 'web_sales',
79
+ label: 'tpcds/3TB/web_sales',
80
+ popup: {
81
+ details: [{
82
+ name: 'Path',
83
+ value: 'tpcds/3TB/web_sales'
84
+ }]
85
+ }
86
+ }, {
87
+ id: '27',
88
+ kind: 'input',
89
+ name: 'customer_address',
90
+ label: 'tpcds/3TB/customer_address',
91
+ popup: {
92
+ details: [{
93
+ name: 'Path',
94
+ value: 'tpcds/3TB/customer_address'
95
+ }]
96
+ }
97
+ }, {
98
+ id: '153',
99
+ kind: 'input',
100
+ name: 'store_sales',
101
+ label: 'tpcds/3TB/store_sales',
102
+ popup: {
103
+ details: [{
104
+ name: 'Path',
105
+ value: 'tpcds/3TB/store_sales'
106
+ }]
107
+ }
108
+ }, operation({
109
+ id: '21',
110
+ name: 'Sort',
111
+ total: 48
112
+ }), operation({
113
+ id: '41',
114
+ name: 'Reduce',
115
+ label: '2 inputs',
116
+ inputs: 2,
117
+ total: 96
118
+ }), operation({
119
+ id: '50',
120
+ name: 'MapReduce',
121
+ label: '2 inputs',
122
+ inputs: 2,
123
+ total: 180
124
+ }), operation({
125
+ id: '67',
126
+ name: 'MapReduce',
127
+ label: '3 outputs',
128
+ outputs: 3,
129
+ total: 240
130
+ }), operation({
131
+ id: '92',
132
+ name: 'Merge',
133
+ total: 72
134
+ }), operation({
135
+ id: '96',
136
+ name: 'Merge',
137
+ total: 84
138
+ }), operation({
139
+ id: '100',
140
+ name: 'Merge',
141
+ total: 64
142
+ }), operation({
143
+ id: '38',
144
+ name: 'Reduce',
145
+ label: '2 inputs',
146
+ inputs: 2,
147
+ total: 112
148
+ }), operation({
149
+ id: '59',
150
+ name: 'MapReduce',
151
+ label: '2 inputs',
152
+ inputs: 2,
153
+ total: 196
154
+ }), operation({
155
+ id: '75',
156
+ name: 'MapReduce',
157
+ label: '3 outputs',
158
+ outputs: 3,
159
+ total: 256
160
+ }), operation({
161
+ id: '105',
162
+ name: 'Merge',
163
+ total: 80
164
+ }), operation({
165
+ id: '109',
166
+ name: 'Merge',
167
+ total: 88
168
+ }), operation({
169
+ id: '140',
170
+ name: 'Map',
171
+ total: 144
172
+ }), operation({
173
+ id: '171',
174
+ name: 'Map',
175
+ status: 'running',
176
+ total: 128,
177
+ completed: 72,
178
+ running: 16
179
+ }), operation({
180
+ id: '179',
181
+ name: 'Map',
182
+ status: 'waiting',
183
+ total: 96,
184
+ completed: 0
185
+ }), operation({
186
+ id: '186',
187
+ name: 'Map',
188
+ status: 'not-started',
189
+ total: 80,
190
+ completed: 0
191
+ }), operation({
192
+ id: '192',
193
+ name: 'Map',
194
+ status: 'not-started',
195
+ total: 64,
196
+ completed: 0
197
+ }), operation({
198
+ id: '197',
199
+ name: 'Sort',
200
+ status: 'not-started',
201
+ total: 48,
202
+ completed: 0
203
+ }), operation({
204
+ id: '200',
205
+ name: 'Fetch result',
206
+ status: 'not-started',
207
+ total: 1,
208
+ completed: 0
209
+ }), operation({
210
+ id: '198',
211
+ name: 'Commit result',
212
+ status: 'not-started',
213
+ total: 1,
214
+ completed: 0
215
+ })];
216
+ var topology = [['25', '21'], ['26', '41'], ['21', '41'], ['27', '50'], ['41', '50'], ['50', '67'], ['67', '92'], ['67', '96'], ['67', '100'], ['153', '38'], ['21', '38'], ['27', '59'], ['38', '59'], ['59', '75'], ['75', '105'], ['75', '109'], ['75', '140'], ['109', '140'], ['75', '171'], ['105', '171'], ['140', '171'], ['67', '179'], ['100', '179'], ['171', '179'], ['67', '186'], ['96', '186'], ['179', '186'], ['67', '192'], ['92', '192'], ['186', '192'], ['192', '197'], ['197', '200'], ['200', '198']];
217
+ var largeGraphEdges = exports.largeGraphEdges = topology.map(function (_ref2) {
218
+ var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
219
+ source = _ref3[0],
220
+ target = _ref3[1];
221
+ return {
222
+ id: "".concat(source, "-").concat(target),
223
+ source: source,
224
+ target: target
225
+ };
226
+ });
227
+ // #sourceMappingURL=largeGraphData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["operation","_ref","id","name","label","_ref$inputs","inputs","_ref$outputs","outputs","_ref$status","status","_ref$total","total","_ref$completed","completed","running","pending","Math","max","kind","progress","popup","details","value","jobs","largeGraphNodes","exports","topology","largeGraphEdges","map","_ref2","_ref3","_slicedToArray","source","target","concat"],"sources":["largeGraphData.ts"],"sourcesContent":["import type {QueryGraphEdge, QueryGraphNode, QueryGraphNodeStatus} from '../../../types/queryGraph';\n\ntype OperationOptions = {\n id: string;\n name: string;\n label?: string;\n inputs?: number;\n outputs?: number;\n status?: QueryGraphNodeStatus;\n total?: number;\n completed?: number;\n running?: number;\n};\n\nfunction operation({\n id,\n name,\n label,\n inputs = 1,\n outputs = 1,\n status = 'completed',\n total = 100,\n completed = total,\n running,\n}: OperationOptions): QueryGraphNode {\n const pending = Math.max(0, total - completed - (running ?? 0));\n\n return {\n id,\n kind: 'operation',\n name,\n label,\n status,\n progress: {total, completed, running, pending},\n popup: {\n details: [\n {name: 'Operation ID', value: id},\n {name: 'Inputs', value: inputs},\n {name: 'Outputs', value: outputs},\n ],\n jobs: {total, completed, running, pending},\n },\n };\n}\n\n// The topology is adapted from a processed production graph. Product-specific names and\n// backend fields are intentionally normalized to the public QueryGraph contract.\nexport const largeGraphNodes: QueryGraphNode[] = [\n {\n id: '25',\n kind: 'input',\n name: 'date_dim',\n label: 'tpcds/3TB/date_dim',\n popup: {details: [{name: 'Path', value: 'tpcds/3TB/date_dim'}]},\n },\n {\n id: '26',\n kind: 'input',\n name: 'web_sales',\n label: 'tpcds/3TB/web_sales',\n popup: {details: [{name: 'Path', value: 'tpcds/3TB/web_sales'}]},\n },\n {\n id: '27',\n kind: 'input',\n name: 'customer_address',\n label: 'tpcds/3TB/customer_address',\n popup: {details: [{name: 'Path', value: 'tpcds/3TB/customer_address'}]},\n },\n {\n id: '153',\n kind: 'input',\n name: 'store_sales',\n label: 'tpcds/3TB/store_sales',\n popup: {details: [{name: 'Path', value: 'tpcds/3TB/store_sales'}]},\n },\n operation({id: '21', name: 'Sort', total: 48}),\n operation({id: '41', name: 'Reduce', label: '2 inputs', inputs: 2, total: 96}),\n operation({id: '50', name: 'MapReduce', label: '2 inputs', inputs: 2, total: 180}),\n operation({id: '67', name: 'MapReduce', label: '3 outputs', outputs: 3, total: 240}),\n operation({id: '92', name: 'Merge', total: 72}),\n operation({id: '96', name: 'Merge', total: 84}),\n operation({id: '100', name: 'Merge', total: 64}),\n operation({id: '38', name: 'Reduce', label: '2 inputs', inputs: 2, total: 112}),\n operation({id: '59', name: 'MapReduce', label: '2 inputs', inputs: 2, total: 196}),\n operation({id: '75', name: 'MapReduce', label: '3 outputs', outputs: 3, total: 256}),\n operation({id: '105', name: 'Merge', total: 80}),\n operation({id: '109', name: 'Merge', total: 88}),\n operation({id: '140', name: 'Map', total: 144}),\n operation({\n id: '171',\n name: 'Map',\n status: 'running',\n total: 128,\n completed: 72,\n running: 16,\n }),\n operation({id: '179', name: 'Map', status: 'waiting', total: 96, completed: 0}),\n operation({id: '186', name: 'Map', status: 'not-started', total: 80, completed: 0}),\n operation({id: '192', name: 'Map', status: 'not-started', total: 64, completed: 0}),\n operation({id: '197', name: 'Sort', status: 'not-started', total: 48, completed: 0}),\n operation({id: '200', name: 'Fetch result', status: 'not-started', total: 1, completed: 0}),\n operation({id: '198', name: 'Commit result', status: 'not-started', total: 1, completed: 0}),\n];\n\nconst topology = [\n ['25', '21'],\n ['26', '41'],\n ['21', '41'],\n ['27', '50'],\n ['41', '50'],\n ['50', '67'],\n ['67', '92'],\n ['67', '96'],\n ['67', '100'],\n ['153', '38'],\n ['21', '38'],\n ['27', '59'],\n ['38', '59'],\n ['59', '75'],\n ['75', '105'],\n ['75', '109'],\n ['75', '140'],\n ['109', '140'],\n ['75', '171'],\n ['105', '171'],\n ['140', '171'],\n ['67', '179'],\n ['100', '179'],\n ['171', '179'],\n ['67', '186'],\n ['96', '186'],\n ['179', '186'],\n ['67', '192'],\n ['92', '192'],\n ['186', '192'],\n ['192', '197'],\n ['197', '200'],\n ['200', '198'],\n] as const;\n\nexport const largeGraphEdges: QueryGraphEdge[] = topology.map(([source, target]) => ({\n id: `${source}-${target}`,\n source,\n target,\n}));\n"],"mappings":";;;;;;;;;;;;AAcA,SAASA,SAASA,CAAAC,IAAA,EAUmB;EAAA,IATjCC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAAC,WAAA,GAAAJ,IAAA,CACLK,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,CAAC,GAAAA,WAAA;IAAAE,YAAA,GAAAN,IAAA,CACVO,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,CAAC,GAAAA,YAAA;IAAAE,WAAA,GAAAR,IAAA,CACXS,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,WAAW,GAAAA,WAAA;IAAAE,UAAA,GAAAV,IAAA,CACpBW,KAAK;I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EG,MAAM,GAAAH,KAAA;EAAA,OAAO;IACjF7B,EAAE,KAAAiC,MAAA,CAAKF,MAAM,OAAAE,MAAA,CAAID,MAAM,CAAE;IACzBD,MAAM,EAANA,MAAM;IACNC,MAAM,EAANA;EACJ,CAAC;AAAA,CAAC,CAAC","ignoreList":[]}
@@ -53,3 +53,5 @@ export { MonacoLanguage, YT_DARK_HC_MONACO_THEME, YT_DARK_MONACO_THEME, YT_LIGHT
53
53
  export type { MonacoThemeName } from './MonacoEditor';
54
54
  export * from './AttachmentList';
55
55
  export * from './AttachmentListPlaceholder';
56
+ export { QueryGraph } from './QueryGraph';
57
+ export type { QueryGraphProps } from './QueryGraph';
@@ -39,7 +39,8 @@ var _exportNames = {
39
39
  DEFAULT_ADD_CHART_BUTTON_OPTIONS: true,
40
40
  ChartEditorForm: true,
41
41
  Chart: true,
42
- ErrorTree: true
42
+ ErrorTree: true,
43
+ QueryGraph: true
43
44
  };
44
45
  Object.defineProperty(exports, "AddChartButton", {
45
46
  enumerable: true,
@@ -185,6 +186,12 @@ Object.defineProperty(exports, "QueryDuration", {
185
186
  return _QueryDuration.QueryDuration;
186
187
  }
187
188
  });
189
+ Object.defineProperty(exports, "QueryGraph", {
190
+ enumerable: true,
191
+ get: function () {
192
+ return _QueryGraph.QueryGraph;
193
+ }
194
+ });
188
195
  Object.defineProperty(exports, "QueryResultsTable", {
189
196
  enumerable: true,
190
197
  get: function () {
@@ -321,4 +328,5 @@ Object.keys(_AttachmentListPlaceholder).forEach(function (key) {
321
328
  }
322
329
  });
323
330
  });
331
+ var _QueryGraph = require("./QueryGraph");
324
332
  // #sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_DataTable","require","_QueryResultsTable","_QueryStatusIcon","_QueryDuration","_LazyList","_ListSpinner","_Breadcrumbs","_PathEditor","_HistoryFilter","_HistoryPrivateIcon","_FieldsSelector","_EditableRowTitle","_RowActionsMenu","_FieldsSearchToolbar","_HistoryGroupHeader","_EmptyContent","_ClusterRow","_NavigationItemRow","_NavigationActionButtons","_SkeletonRows","_RowLink","_SearchRowLayout","_SearchWithButtons","_MonacoEditor","_AddChartButton","_ChartEditorForm","_Dashboard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Chart","_ErrorTree","_AttachmentList","_AttachmentListPlaceholder"],"sources":["index.ts"],"sourcesContent":["export {DataTable} from './DataTable';\nexport type {DataTableProps, Column} from './DataTable';\nexport {QueryResultsTable, formatQueryResultType} from './QueryResultsTable';\nexport type {QueryResultsTableProps} from './QueryResultsTable';\nexport {QueryStatusIcon} from './QueryStatusIcon';\nexport {QueryDuration} from './QueryDuration';\nexport {LazyList} from './LazyList';\nexport type {LazyListProps} from './LazyList';\nexport {ListSpinner} from './ListSpinner';\nexport type {ListSpinnerProps} from './ListSpinner';\nexport {Breadcrumbs} from './Breadcrumbs';\nexport type {BreadcrumbsProps} from './Breadcrumbs';\nexport {PathEditor} from './PathEditor';\nexport type {PathEditorProps} from './PathEditor';\nexport {HistoryFilter} from './HistoryFilter';\nexport {HistoryPrivateIcon} from './HistoryPrivateIcon';\nexport {FieldsSelector} from './FieldsSelector';\nexport type {FieldsSelectorOption, FieldsSelectorProps} from './FieldsSelector';\nexport {EditableRowTitle} from './EditableRowTitle';\nexport type {EditableRowTitleProps} from './EditableRowTitle';\nexport {RowActionsMenu} from './RowActionsMenu';\nexport type {RowActionsMenuProps} from './RowActionsMenu';\nexport {FieldsSearchToolbar} from './FieldsSearchToolbar';\nexport type {FieldsSearchToolbarProps} from './FieldsSearchToolbar';\nexport {HistoryGroupHeader} from './HistoryGroupHeader';\nexport {EmptyContent} from './EmptyContent';\nexport type {EmptyContentProps, EmptyContentVariant} from './EmptyContent';\nexport {ClusterRow} from './ClusterRow';\nexport type {ClusterRowProps} from './ClusterRow';\nexport {NavigationItemRow} from './NavigationItemRow';\nexport type {NavigationItemRowProps} from './NavigationItemRow';\nexport {NavigationActionButtons} from './NavigationActionButtons';\nexport type {NavigationActionButtonsProps} from './NavigationActionButtons';\nexport {SkeletonRows} from './SkeletonRows';\nexport type {SkeletonRowsProps} from './SkeletonRows';\nexport {RowLink} from './RowLink';\nexport type {RowLinkProps} from './RowLink';\nexport {SearchRowLayout} from './SearchRowLayout';\nexport type {SearchRowLayoutProps} from './SearchRowLayout';\nexport {SearchWithButtons} from './SearchWithButtons';\nexport type {SearchWithButtonsProps} from './SearchWithButtons';\nexport {MonacoEditor} from './MonacoEditor';\nexport type {MonacoEditorConfig} from './MonacoEditor';\nexport {AddChartButton, DEFAULT_ADD_CHART_BUTTON_OPTIONS} from './AddChartButton';\nexport type {\n AddChartButtonOption,\n AddChartButtonProps,\n DefaultAddChartButtonValue,\n} from './AddChartButton';\nexport {ChartEditorForm} from './ChartEditorForm';\nexport type {\n ChartEditorFormProps,\n ChartEditorFormValues,\n ChartEditorLabels,\n ChartEditorOption,\n} from './ChartEditorForm';\nexport * from './Dashboard';\nexport {Chart} from './Chart';\nexport type {ChartAction, ChartProps} from './Chart';\nexport {ErrorTree} from './ErrorTree';\nexport {\n MonacoLanguage,\n YT_DARK_HC_MONACO_THEME,\n YT_DARK_MONACO_THEME,\n YT_LIGHT_HC_MONACO_THEME,\n YT_LIGHT_MONACO_THEME,\n MONACO_THEME_BY_UI,\n} from './MonacoEditor';\nexport type {MonacoThemeName} from './MonacoEditor';\nexport * from './AttachmentList';\nexport * from './AttachmentListPlaceholder';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC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C,GAAA,WAAAA,CAAA;MAAA,OAAAZ,UAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,MAAA,GAAAvC,OAAA;AAEA,IAAAwC,UAAA,GAAAxC,OAAA;AAUA,IAAAyC,eAAA,GAAAzC,OAAA;AAAA2B,MAAA,CAAAC,IAAA,CAAAa,eAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAW,eAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,eAAA,CAAAX,GAAA;IAAA;EAAA;AAAA;AACA,IAAAY,0BAAA,GAAA1C,OAAA;AAAA2B,MAAA,CAAAC,IAAA,CAAAc,0BAAA,EAAAb,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAY,0BAAA,CAAAZ,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,0BAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_DataTable","require","_QueryResultsTable","_QueryStatusIcon","_QueryDuration","_LazyList","_ListSpinner","_Breadcrumbs","_PathEditor","_HistoryFilter","_HistoryPrivateIcon","_FieldsSelector","_EditableRowTitle","_RowActionsMenu","_FieldsSearchToolbar","_HistoryGroupHeader","_EmptyContent","_ClusterRow","_NavigationItemRow","_NavigationActionButtons","_SkeletonRows","_RowLink","_SearchRowLayout","_SearchWithButtons","_MonacoEditor","_AddChartButton","_ChartEditorForm","_Dashboard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Chart","_ErrorTree","_AttachmentList","_AttachmentListPlaceholder","_QueryGraph"],"sources":["index.ts"],"sourcesContent":["export {DataTable} from './DataTable';\nexport type {DataTableProps, Column} from './DataTable';\nexport {QueryResultsTable, formatQueryResultType} from './QueryResultsTable';\nexport type {QueryResultsTableProps} from './QueryResultsTable';\nexport {QueryStatusIcon} from './QueryStatusIcon';\nexport {QueryDuration} from './QueryDuration';\nexport {LazyList} from './LazyList';\nexport type {LazyListProps} from './LazyList';\nexport {ListSpinner} from './ListSpinner';\nexport type {ListSpinnerProps} from './ListSpinner';\nexport {Breadcrumbs} from './Breadcrumbs';\nexport type {BreadcrumbsProps} from './Breadcrumbs';\nexport {PathEditor} from './PathEditor';\nexport type {PathEditorProps} from './PathEditor';\nexport {HistoryFilter} from './HistoryFilter';\nexport {HistoryPrivateIcon} from './HistoryPrivateIcon';\nexport {FieldsSelector} from './FieldsSelector';\nexport type {FieldsSelectorOption, FieldsSelectorProps} from './FieldsSelector';\nexport {EditableRowTitle} from './EditableRowTitle';\nexport type {EditableRowTitleProps} from './EditableRowTitle';\nexport {RowActionsMenu} from './RowActionsMenu';\nexport type {RowActionsMenuProps} from './RowActionsMenu';\nexport {FieldsSearchToolbar} from './FieldsSearchToolbar';\nexport type {FieldsSearchToolbarProps} from './FieldsSearchToolbar';\nexport {HistoryGroupHeader} from './HistoryGroupHeader';\nexport {EmptyContent} from './EmptyContent';\nexport type {EmptyContentProps, EmptyContentVariant} from './EmptyContent';\nexport {ClusterRow} from './ClusterRow';\nexport type {ClusterRowProps} from './ClusterRow';\nexport {NavigationItemRow} from './NavigationItemRow';\nexport type {NavigationItemRowProps} from './NavigationItemRow';\nexport {NavigationActionButtons} from './NavigationActionButtons';\nexport type {NavigationActionButtonsProps} from './NavigationActionButtons';\nexport {SkeletonRows} from './SkeletonRows';\nexport type {SkeletonRowsProps} from './SkeletonRows';\nexport {RowLink} from './RowLink';\nexport type {RowLinkProps} from './RowLink';\nexport {SearchRowLayout} from './SearchRowLayout';\nexport type {SearchRowLayoutProps} from './SearchRowLayout';\nexport {SearchWithButtons} from './SearchWithButtons';\nexport type {SearchWithButtonsProps} from './SearchWithButtons';\nexport {MonacoEditor} from './MonacoEditor';\nexport type {MonacoEditorConfig} from './MonacoEditor';\nexport {AddChartButton, DEFAULT_ADD_CHART_BUTTON_OPTIONS} from './AddChartButton';\nexport type {\n AddChartButtonOption,\n AddChartButtonProps,\n DefaultAddChartButtonValue,\n} from './AddChartButton';\nexport {ChartEditorForm} from './ChartEditorForm';\nexport type {\n ChartEditorFormProps,\n ChartEditorFormValues,\n ChartEditorLabels,\n ChartEditorOption,\n} from './ChartEditorForm';\nexport * from './Dashboard';\nexport {Chart} from './Chart';\nexport type {ChartAction, ChartProps} from './Chart';\nexport {ErrorTree} from './ErrorTree';\nexport {\n MonacoLanguage,\n YT_DARK_HC_MONACO_THEME,\n YT_DARK_MONACO_THEME,\n YT_LIGHT_HC_MONACO_THEME,\n YT_LIGHT_MONACO_THEME,\n MONACO_THEME_BY_UI,\n} from './MonacoEditor';\nexport type {MonacoThemeName} from './MonacoEditor';\nexport * from './AttachmentList';\nexport * from './AttachmentListPlaceholder';\nexport {QueryGraph} from './QueryGraph';\nexport type {QueryGraphProps} from './QueryGraph';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
1
+ import type { Column } from '../components/DataTable';
2
2
  export declare function buildColumnsFromKeys<TRow extends Record<string, unknown>>(columns: string[], emptyText: string): Array<Column<TRow>>;
@@ -1 +1 @@
1
- {"version":3,"names":["_isEmptyValue","require","buildColumnsFromKeys","columns","emptyText","map","column","name","header","render","_ref","row","value","isEmptyValue"],"sources":["buildColumnsFromKeys.ts"],"sourcesContent":["import type {ReactNode} from 'react';\nimport type {Column} from '../components';\nimport {isEmptyValue} from './isEmptyValue';\n\nexport function buildColumnsFromKeys<TRow extends Record<string, unknown>>(\n columns: string[],\n emptyText: string,\n): Array<Column<TRow>> {\n return columns.map((column) => ({\n name: column,\n header: column,\n render: ({row}) => {\n const value = row[column];\n return isEmptyValue(value) ? emptyText : (value as ReactNode);\n },\n }));\n}\n"],"mappings":";;;;;;;;;;AAEA,IAAAA,aAAA,GAAAC,OAAA;AAEO,SAASC,oBAAoBA,CAChCC,OAAiB,EACjBC,SAAiB,EACE;EACnB,OAAOD,OAAO,CAACE,GAAG,CAAC,UAACC,MAAM;IAAA,OAAM;MAC5BC,IAAI,EAAED,MAAM;MACZE,MAAM,EAAEF,MAAM;MACdG,MAAM,EAAE,SAARA,MAAMA,CAAAC,IAAA,EAAa;QAAA,IAATC,GAAG,GAAAD,IAAA,CAAHC,GAAG;QACT,IAAMC,KAAK,GAAGD,GAAG,CAACL,MAAM,CAAC;QACzB,OAAO,IAAAO,0BAAY,EAACD,KAAK,CAAC,GAAGR,SAAS,GAAIQ,KAAmB;MACjE;IACJ,CAAC;EAAA,CAAC,CAAC;AACP","ignoreList":[]}
1
+ {"version":3,"names":["_isEmptyValue","require","buildColumnsFromKeys","columns","emptyText","map","column","name","header","render","_ref","row","value","isEmptyValue"],"sources":["buildColumnsFromKeys.ts"],"sourcesContent":["import type {ReactNode} from 'react';\nimport type {Column} from '../components/DataTable';\nimport {isEmptyValue} from './isEmptyValue';\n\nexport function buildColumnsFromKeys<TRow extends Record<string, unknown>>(\n columns: string[],\n emptyText: string,\n): Array<Column<TRow>> {\n return columns.map((column) => ({\n name: column,\n header: column,\n render: ({row}) => {\n const value = row[column];\n return isEmptyValue(value) ? emptyText : (value as ReactNode);\n },\n }));\n}\n"],"mappings":";;;;;;;;;;AAEA,IAAAA,aAAA,GAAAC,OAAA;AAEO,SAASC,oBAAoBA,CAChCC,OAAiB,EACjBC,SAAiB,EACE;EACnB,OAAOD,OAAO,CAACE,GAAG,CAAC,UAACC,MAAM;IAAA,OAAM;MAC5BC,IAAI,EAAED,MAAM;MACZE,MAAM,EAAEF,MAAM;MACdG,MAAM,EAAE,SAARA,MAAMA,CAAAC,IAAA,EAAa;QAAA,IAATC,GAAG,GAAAD,IAAA,CAAHC,GAAG;QACT,IAAMC,KAAK,GAAGD,GAAG,CAACL,MAAM,CAAC;QACzB,OAAO,IAAAO,0BAAY,EAACD,KAAK,CAAC,GAAGR,SAAS,GAAIQ,KAAmB;MACjE;IACJ,CAAC;EAAA,CAAC,CAAC;AACP","ignoreList":[]}
@@ -10,3 +10,4 @@ export * from './types/pathEditor';
10
10
  export * from './types/errorTree';
11
11
  export * from './types/queryStatistics';
12
12
  export * from './types/queryResults';
13
+ export * from './types/queryGraph';
@@ -124,4 +124,15 @@ Object.keys(_queryResults).forEach(function (key) {
124
124
  }
125
125
  });
126
126
  });
127
+ var _queryGraph = require("./types/queryGraph");
128
+ Object.keys(_queryGraph).forEach(function (key) {
129
+ if (key === "default" || key === "__esModule") return;
130
+ if (key in exports && exports[key] === _queryGraph[key]) return;
131
+ Object.defineProperty(exports, key, {
132
+ enumerable: true,
133
+ get: function () {
134
+ return _queryGraph[key];
135
+ }
136
+ });
137
+ });
127
138
  // #sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_modules","_widgets","_queryList","_history","_tutorial","_navigation","_pathEditor","_errorTree","_queryStatistics","_queryResults"],"sources":["index.ts"],"sourcesContent":["export * from './components';\nexport * from './modules';\nexport * from './widgets';\nexport * from './types/queryList';\nexport * from './types/history';\nexport type {SavedQuery} from './types/savedQueries';\nexport * from './types/tutorial';\nexport * from './types/navigation';\nexport * from './types/pathEditor';\nexport * from './types/errorTree';\nexport * from './types/queryStatistics';\nexport * from './types/queryResults';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,QAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,QAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,QAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,QAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,QAAA,C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AD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAS,gBAAA,CAAAb,GAAA;IAAA;EAAA;AAAA;AACA,IAAAc,aAAA,GAAAlB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAgB,aAAA,EAAAf,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAc,aAAA,CAAAd,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAU,aAAA,CAAAd,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_modules","_widgets","_queryList","_history","_tutorial","_navigation","_pathEditor","_errorTree","_queryStatistics","_queryResults","_queryGraph"],"sources":["index.ts"],"sourcesContent":["export * from './components';\nexport * from './modules';\nexport * from './widgets';\nexport * from './types/queryList';\nexport * from './types/history';\nexport type {SavedQuery} from './types/savedQueries';\nexport * from './types/tutorial';\nexport * from './types/navigation';\nexport * from './types/pathEditor';\nexport * from './types/errorTree';\nexport * from './types/queryStatistics';\nexport * from './types/queryResults';\nexport * from './types/queryGraph';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,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AAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAe,WAAA,CAAAf,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAW,WAAA,CAAAf,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { NavigationCluster, RenderNavigationCluster } from '../../types/navigation';
2
+ import type { NavigationCluster, RenderNavigationCluster } from '../../types/navigation';
3
3
  import './ClustersList.scss';
4
4
  export type ClustersListProps<T extends NavigationCluster = NavigationCluster> = {
5
5
  items: T[];
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ClustersList = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
9
- var _components = require("../../components");
9
+ var _ClusterRow = require("../../components/ClusterRow");
10
+ var _LazyList = require("../../components/LazyList");
10
11
  var _row = require("../../constants/row");
11
12
  require("./ClustersList.css");
12
13
  var _jsxRuntime = require("react/jsx-runtime");
@@ -22,7 +23,7 @@ var ClustersList = exports.ClustersList = function ClustersList(_ref) {
22
23
  renderRowItem = _ref.renderRowItem,
23
24
  onItemClick = _ref.onItemClick,
24
25
  className = _ref.className;
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.LazyList, {
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LazyList.LazyList, {
26
27
  className: block(null, className),
27
28
  items: items,
28
29
  itemHeight: function itemHeight() {
@@ -34,7 +35,7 @@ var ClustersList = exports.ClustersList = function ClustersList(_ref) {
34
35
  cluster: cluster,
35
36
  index: index,
36
37
  isActive: isActive
37
- })) !== null && _renderRowItem !== void 0 ? _renderRowItem : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ClusterRow, {
38
+ })) !== null && _renderRowItem !== void 0 ? _renderRowItem : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClusterRow.ClusterRow, {
38
39
  cluster: cluster
39
40
  });
40
41
  },
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_bemCnLite","_components","_row","_jsxRuntime","e","__esModule","default","block","cn","ClustersList","exports","_ref","items","loading","error","hasMore","onLoadMore","emptyContent","renderRowItem","onItemClick","className","_jsx","LazyList","itemHeight","NAVIGATION_ROW_HEIGHT","renderItem","cluster","isActive","index","_renderRowItem","ClusterRow"],"sources":["ClustersList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {NavigationCluster, RenderNavigationCluster} from '../../types/navigation';\nimport {ClusterRow, LazyList} from '../../components';\nimport {NAVIGATION_ROW_HEIGHT} from '../../constants/row';\nimport './ClustersList.scss';\n\nconst block = cn('qp-clusters-list');\n\nexport type ClustersListProps<T extends NavigationCluster = NavigationCluster> = {\n items: T[];\n loading?: boolean;\n error?: React.ReactNode;\n hasMore?: boolean;\n onLoadMore?: () => void;\n emptyContent?: React.ReactNode;\n renderRowItem?: RenderNavigationCluster<T>;\n onItemClick?: (cluster: T) => void;\n className?: string;\n};\n\nexport const ClustersList = <T extends NavigationCluster = NavigationCluster>({\n items,\n loading,\n error,\n hasMore,\n onLoadMore,\n emptyContent,\n renderRowItem,\n onItemClick,\n className,\n}: ClustersListProps<T>) => {\n return (\n <LazyList<T>\n className={block(null, className)}\n items={items}\n itemHeight={() => NAVIGATION_ROW_HEIGHT}\n renderItem={(cluster, isActive, index) =>\n renderRowItem?.({cluster, index, isActive}) ?? <ClusterRow cluster={cluster} />\n }\n hasMore={hasMore}\n onLoadMore={onLoadMore}\n loading={loading}\n error={error}\n emptyContent={emptyContent}\n onItemClick={onItemClick}\n />\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,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AAR,eAAA,EAACS,sBAAU;QAACJ,OAAO,EAAEA;MAAQ,CAAE,CAAC;IAAA,CAClF;IACDX,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBH,OAAO,EAAEA,OAAQ;IACjBC,KAAK,EAAEA,KAAM;IACbG,YAAY,EAAEA,YAAa;IAC3BE,WAAW,EAAEA;EAAY,CAC5B,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_bemCnLite","_ClusterRow","_LazyList","_row","_jsxRuntime","e","__esModule","default","block","cn","ClustersList","exports","_ref","items","loading","error","hasMore","onLoadMore","emptyContent","renderRowItem","onItemClick","className","_jsx","LazyList","itemHeight","NAVIGATION_ROW_HEIGHT","renderItem","cluster","isActive","index","_renderRowItem","ClusterRow"],"sources":["ClustersList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport type {NavigationCluster, RenderNavigationCluster} from '../../types/navigation';\nimport {ClusterRow} from '../../components/ClusterRow';\nimport {LazyList} from '../../components/LazyList';\nimport {NAVIGATION_ROW_HEIGHT} from '../../constants/row';\nimport './ClustersList.scss';\n\nconst block = cn('qp-clusters-list');\n\nexport type ClustersListProps<T extends NavigationCluster = NavigationCluster> = {\n items: T[];\n loading?: boolean;\n error?: React.ReactNode;\n hasMore?: boolean;\n onLoadMore?: () => void;\n emptyContent?: React.ReactNode;\n renderRowItem?: RenderNavigationCluster<T>;\n onItemClick?: (cluster: T) => void;\n className?: string;\n};\n\nexport const ClustersList = <T extends NavigationCluster = NavigationCluster>({\n items,\n loading,\n error,\n hasMore,\n onLoadMore,\n emptyContent,\n renderRowItem,\n onItemClick,\n className,\n}: ClustersListProps<T>) => {\n return (\n <LazyList<T>\n className={block(null, className)}\n items={items}\n itemHeight={() => NAVIGATION_ROW_HEIGHT}\n renderItem={(cluster, isActive, index) =>\n renderRowItem?.({cluster, index, isActive}) ?? <ClusterRow cluster={cluster} />\n }\n hasMore={h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;MAAA,QAAAA,cAAA,GACjCX,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAG;QAACQ,OAAO,EAAPA,OAAO;QAAEE,KAAK,EAALA,KAAK;QAAED,QAAQ,EAARA;MAAQ,CAAC,CAAC,cAAAE,cAAA,cAAAA,cAAA,gBAAI,IAAAR,eAAA,EAACS,sBAAU;QAACJ,OAAO,EAAEA;MAAQ,CAAE,CAAC;IAAA,CAClF;IACDX,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBH,OAAO,EAAEA,OAAQ;IACjBC,KAAK,EAAEA,KAAM;IACbG,YAAY,EAAEA,YAAa;IAC3BE,WAAW,EAAEA;EAAY,CAC5B,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -14,7 +14,8 @@ require("core-js/modules/es.regexp.exec.js");
14
14
  require("core-js/modules/es.string.search.js");
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _FullSearchToggleButton = require("./internal/FullSearchToggleButton");
17
- var _components = require("../../components");
17
+ var _HistoryFilter = require("../../components/HistoryFilter");
18
+ var _SearchWithButtons = require("../../components/SearchWithButtons");
18
19
  var _jsxRuntime = require("react/jsx-runtime");
19
20
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
21
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -54,7 +55,7 @@ var HistoryHeader = exports.HistoryHeader = function HistoryHeader(_ref) {
54
55
  fullSearch: newValue
55
56
  });
56
57
  };
57
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchWithButtons, {
58
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchWithButtons.SearchWithButtons, {
58
59
  className: className,
59
60
  value: searchValue,
60
61
  hasClear: hasClear,
@@ -63,7 +64,7 @@ var HistoryHeader = exports.HistoryHeader = function HistoryHeader(_ref) {
63
64
  active: isFullSearch,
64
65
  onClick: handleModeChange
65
66
  }, "full-search")] : undefined,
66
- endButtons: filter ? [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.HistoryFilter, (0, _objectSpread2.default)({}, filter), "filter")] : undefined
67
+ endButtons: filter ? [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HistoryFilter.HistoryFilter, (0, _objectSpread2.default)({}, filter), "filter")] : undefined
67
68
  });
68
69
  };
69
70
  // #sourceMappingURL=HistoryHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_FullSearchToggleButton","_components","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_interopRequireDefault","HistoryHeader","exports","_ref","search","fullSearch","_ref$fullSearchAvaila","fullSearchAvailable","hasClear","filter","onUpdate","className","_useState","useState","_useState2","_slicedToArray","searchValue","setSearchValue","_useState3","Boolean","_useState4","isFullSearch","setFullSearch","useEffect","handleOnUpdate","newValue","value","handleModeChange","_jsx","SearchWithButtons","innerButtons","FullSearchToggleButton","active","onClick","undefined","endButtons","HistoryFilter","_objectSpread"],"sources":["HistoryHeader.tsx"],"sourcesContent":["import React, {FC, useEffect, useState} from 'react';\nimport {FullSearchToggleButton} from './internal/FullSearchToggleButton';\nimport {HistoryFilter, SearchWithButtons} from '../../components';\nimport {QueryListFilterConfig} from '../../types/queryList';\n\ntype Props = {\n search?: string;\n fullSearch?: boolean;\n fullSearchAvailable?: boolean;\n hasClear?: boolean;\n filter?: QueryListFilterConfig;\n onUpdate: (data: {value: string; fullSearch: boolean}) => void;\n className?: string;\n};\n\nexport const HistoryHeader: FC<Props> = ({\n search,\n fullSearch,\n fullSearchAvailable = true,\n hasClear,\n filter,\n onUpdate,\n className,\n}) => {\n const [searchValue, setSearchValue] = useState(search || '');\n const [isFullSearch, setFullSearch] = useState(fullSearchAvailable && Boolean(fullSearch));\n\n useEffect(() => {\n setSearchValue(search || '');\n setFullSearch(fullSearchAvailable && Boolean(fullSearch));\n }, [search, fullSearch, fullSearchAvailable]);\n\n const handleOnUpdate = (newValue: string) => {\n setSearchValue(newValue);\n onUpdate({value: newValue, fullSearch: fullSearchAvailable && isFullSearch});\n };\n\n const handleModeChange = () => {\n const newValue = !isFullSearch;\n setFullSearch(newValue);\n onUpdate({value: searchValue, fullSearch: newValue});\n };\n\n return (\n <SearchWithButtons\n className={className}\n value={searchValue}\n hasClear={hasClear}\n onUpdate={handleOnUpdate}\n innerButtons={\n fullSearchAvailable\n ? [\n <FullSearchToggleButton\n key=\"full-search\"\n active={isFullSearch}\n onClick={handleModeChange}\n />,\n ]\n : undefined\n }\n endButtons={filter ? [<HistoryFilter key=\"filter\" {...filter} />] : undefined}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAAkE,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,y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ACDO,SACT;IACDC,UAAU,EAAE1B,MAAM,GAAG,cAAC,IAAAmB,eAAA,EAACQ,yBAAa,MAAAC,sBAAA,MAAkB5B,MAAM,GAAnB,QAAsB,CAAC,CAAC,GAAGyB;EAAU,CACjF,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_FullSearchToggleButton","_HistoryFilter","_SearchWithButtons","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_interopRequireDefault","HistoryHeader","exports","_ref","search","fullSearch","_ref$fullSearchAvaila","fullSearchAvailable","hasClear","filter","onUpdate","className","_useState","useState","_useState2","_slicedToArray","searchValue","setSearchValue","_useState3","Boolean","_useState4","isFullSearch","setFullSearch","useEffect","handleOnUpdate","newValue","value","handleModeChange","_jsx","SearchWithButtons","innerButtons","FullSearchToggleButton","active","onClick","undefined","endButtons","HistoryFilter","_objectSpread"],"sources":["HistoryHeader.tsx"],"sourcesContent":["import React, {FC, useEffect, useState} from 'react';\nimport {FullSearchToggleButton} from './internal/FullSearchToggleButton';\nimport {HistoryFilter} from '../../components/HistoryFilter';\nimport {SearchWithButtons} from '../../components/SearchWithButtons';\nimport {QueryListFilterConfig} from '../../types/queryList';\n\ntype Props = {\n search?: string;\n fullSearch?: boolean;\n fullSearchAvailable?: boolean;\n hasClear?: boolean;\n filter?: QueryListFilterConfig;\n onUpdate: (data: {value: string; fullSearch: boolean}) => void;\n className?: string;\n};\n\nexport const HistoryHeader: FC<Props> = ({\n search,\n fullSearch,\n fullSearchAvailable = true,\n hasClear,\n filter,\n onUpdate,\n className,\n}) => {\n const [searchValue, setSearchValue] = useState(search || '');\n const [isFullSearch, setFullSearch] = useState(fullSearchAvailable && Boolean(fullSearch));\n\n useEffect(() => {\n setSearchValue(search || '');\n setFullSearch(fullSearchAvailable && Boolean(fullSearch));\n }, [search, fullSearch, fullSearchAvailable]);\n\n const handleOnUpdate = (newValue: string) => {\n setSearchValue(newValue);\n onUpdate({value: newValue, fullSearch: fullSearchAvailable && isFullSearch});\n };\n\n const handleModeChange = () => {\n const newValue = !isFullSearch;\n setFullSearch(newValue);\n onUpdate({value: searchValue, fullSearch: newValue});\n };\n\n return (\n <SearchWithButtons\n className={className}\n value={searchValue}\n hasClear={hasClear}\n onUpdate={handleOnUpdate}\n innerButtons={\n fullSearchAvailable\n ? [\n <FullSearchToggleButton\n key=\"full-search\"\n active={isFullSearch}\n onClick={handleModeChange}\n />,\n ]\n : undefined\n }\n endButtons={filter ? [<HistoryFilter key=\"filter\" {...filter} />] : undefined}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAAqE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAA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