@gravity-ui/querieskit 1.5.0 → 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 (357) hide show
  1. package/README.md +28 -0
  2. package/build/cjs/components/AttachmentList/AttachmentList.js +1 -0
  3. package/build/cjs/components/AttachmentList/AttachmentList.js.map +1 -1
  4. package/build/cjs/components/QueryGraph/QueryGraph.css +70 -0
  5. package/build/cjs/components/QueryGraph/QueryGraph.css.map +1 -0
  6. package/build/cjs/components/QueryGraph/QueryGraph.d.ts +4 -0
  7. package/build/cjs/components/QueryGraph/QueryGraph.js +517 -0
  8. package/build/cjs/components/QueryGraph/QueryGraph.js.map +1 -0
  9. package/build/cjs/components/QueryGraph/QueryGraph.stories.d.ts +16 -0
  10. package/build/cjs/components/QueryGraph/QueryGraph.stories.js +339 -0
  11. package/build/cjs/components/QueryGraph/QueryGraph.stories.js.map +1 -0
  12. package/build/cjs/components/QueryGraph/helpers/layout.d.ts +9 -0
  13. package/build/cjs/components/QueryGraph/helpers/layout.js +138 -0
  14. package/build/cjs/components/QueryGraph/helpers/layout.js.map +1 -0
  15. package/build/cjs/components/QueryGraph/helpers/presentation.d.ts +18 -0
  16. package/build/cjs/components/QueryGraph/helpers/presentation.js +44 -0
  17. package/build/cjs/components/QueryGraph/helpers/presentation.js.map +1 -0
  18. package/build/cjs/components/QueryGraph/i18n/dicts.d.ts +55 -0
  19. package/build/cjs/components/QueryGraph/i18n/dicts.js +14 -0
  20. package/build/cjs/components/QueryGraph/i18n/dicts.js.map +1 -0
  21. package/build/cjs/components/QueryGraph/i18n/en.json +26 -0
  22. package/build/cjs/components/QueryGraph/i18n/index.d.ts +6 -0
  23. package/build/cjs/components/QueryGraph/i18n/index.js +11 -0
  24. package/build/cjs/components/QueryGraph/i18n/index.js.map +1 -0
  25. package/build/cjs/components/QueryGraph/i18n/ru.json +26 -0
  26. package/build/cjs/components/QueryGraph/index.d.ts +2 -0
  27. package/build/cjs/components/QueryGraph/index.js +13 -0
  28. package/build/cjs/components/QueryGraph/index.js.map +1 -0
  29. package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.d.ts +24 -0
  30. package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.js +307 -0
  31. package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.js.map +1 -0
  32. package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.d.ts +5 -0
  33. package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.js +242 -0
  34. package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.js.map +1 -0
  35. package/build/cjs/components/QueryGraph/internal/queryGraphIcons.d.ts +12 -0
  36. package/build/cjs/components/QueryGraph/internal/queryGraphIcons.js +161 -0
  37. package/build/cjs/components/QueryGraph/internal/queryGraphIcons.js.map +1 -0
  38. package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.d.ts +22 -0
  39. package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.js +60 -0
  40. package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.js.map +1 -0
  41. package/build/cjs/components/QueryGraph/story/largeGraphData.d.ts +3 -0
  42. package/build/cjs/components/QueryGraph/story/largeGraphData.js +227 -0
  43. package/build/cjs/components/QueryGraph/story/largeGraphData.js.map +1 -0
  44. package/build/cjs/components/index.d.ts +2 -0
  45. package/build/cjs/components/index.js +9 -1
  46. package/build/cjs/components/index.js.map +1 -1
  47. package/build/cjs/helpers/buildColumnsFromKeys.d.ts +1 -1
  48. package/build/cjs/helpers/buildColumnsFromKeys.js.map +1 -1
  49. package/build/cjs/index.d.ts +1 -0
  50. package/build/cjs/index.js +11 -0
  51. package/build/cjs/index.js.map +1 -1
  52. package/build/cjs/modules/Attachments/Attachments.css +13 -1
  53. package/build/cjs/modules/Attachments/Attachments.css.map +1 -1
  54. package/build/cjs/modules/Attachments/Attachments.js +4 -4
  55. package/build/cjs/modules/Attachments/Attachments.js.map +1 -1
  56. package/build/cjs/modules/Attachments/Attachments.stories.d.ts +1 -0
  57. package/build/cjs/modules/Attachments/Attachments.stories.js +92 -2
  58. package/build/cjs/modules/Attachments/Attachments.stories.js.map +1 -1
  59. package/build/cjs/modules/ClustersList/ClustersList.d.ts +1 -1
  60. package/build/cjs/modules/ClustersList/ClustersList.js +4 -3
  61. package/build/cjs/modules/ClustersList/ClustersList.js.map +1 -1
  62. package/build/cjs/modules/HistoryHeader/HistoryHeader.js +4 -3
  63. package/build/cjs/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  64. package/build/cjs/modules/HistoryRow/HistoryRow.js +12 -7
  65. package/build/cjs/modules/HistoryRow/HistoryRow.js.map +1 -1
  66. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js +8 -5
  67. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  68. package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +1 -1
  69. package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +5 -5
  70. package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -1
  71. package/build/cjs/modules/NavigationDetail/NavigationDetail.d.ts +1 -1
  72. package/build/cjs/modules/NavigationDetail/NavigationDetail.js +2 -2
  73. package/build/cjs/modules/NavigationDetail/NavigationDetail.js.map +1 -1
  74. package/build/cjs/modules/NavigationHeader/NavigationHeader.d.ts +1 -1
  75. package/build/cjs/modules/NavigationHeader/NavigationHeader.js +2 -2
  76. package/build/cjs/modules/NavigationHeader/NavigationHeader.js.map +1 -1
  77. package/build/cjs/modules/NavigationItemsList/NavigationItemsList.d.ts +1 -1
  78. package/build/cjs/modules/NavigationItemsList/NavigationItemsList.js +4 -3
  79. package/build/cjs/modules/NavigationItemsList/NavigationItemsList.js.map +1 -1
  80. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.d.ts +1 -1
  81. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js +2 -2
  82. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js.map +1 -1
  83. package/build/cjs/modules/NavigationMeta/NavigationMeta.js +4 -3
  84. package/build/cjs/modules/NavigationMeta/NavigationMeta.js.map +1 -1
  85. package/build/cjs/modules/NavigationMeta/i18n/index.d.ts +2 -2
  86. package/build/cjs/modules/NavigationPreview/NavigationPreview.d.ts +1 -1
  87. package/build/cjs/modules/NavigationPreview/NavigationPreview.js +6 -4
  88. package/build/cjs/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  89. package/build/cjs/modules/NavigationPreview/helpers/buildPreviewColumns.d.ts +1 -1
  90. package/build/cjs/modules/NavigationPreview/helpers/buildPreviewColumns.js.map +1 -1
  91. package/build/cjs/modules/NavigationSchema/NavigationSchema.d.ts +1 -1
  92. package/build/cjs/modules/NavigationSchema/NavigationSchema.js +4 -3
  93. package/build/cjs/modules/NavigationSchema/NavigationSchema.js.map +1 -1
  94. package/build/cjs/modules/NavigationSchema/helpers/buildSchemaColumns.d.ts +1 -1
  95. package/build/cjs/modules/NavigationSchema/helpers/buildSchemaColumns.js.map +1 -1
  96. package/build/cjs/modules/NavigationView/NavigationView.d.ts +1 -1
  97. package/build/cjs/modules/NavigationView/NavigationView.js +4 -3
  98. package/build/cjs/modules/NavigationView/NavigationView.js.map +1 -1
  99. package/build/cjs/modules/NavigationView/helpers/buildViewColumns.d.ts +1 -1
  100. package/build/cjs/modules/NavigationView/helpers/buildViewColumns.js.map +1 -1
  101. package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.d.ts +1 -1
  102. package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.js +4 -3
  103. package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.js.map +1 -1
  104. package/build/cjs/modules/QueriesList/QueriesList.js +2 -2
  105. package/build/cjs/modules/QueriesList/QueriesList.js.map +1 -1
  106. package/build/cjs/modules/QueryProgress/QueryProgress.css +64 -0
  107. package/build/cjs/modules/QueryProgress/QueryProgress.css.map +1 -0
  108. package/build/cjs/modules/QueryProgress/QueryProgress.d.ts +4 -0
  109. package/build/cjs/modules/QueryProgress/QueryProgress.js +135 -0
  110. package/build/cjs/modules/QueryProgress/QueryProgress.js.map +1 -0
  111. package/build/cjs/modules/QueryProgress/QueryProgress.stories.d.ts +7 -0
  112. package/build/cjs/modules/QueryProgress/QueryProgress.stories.js +38 -0
  113. package/build/cjs/modules/QueryProgress/QueryProgress.stories.js.map +1 -0
  114. package/build/cjs/modules/QueryProgress/i18n/dicts.d.ts +25 -0
  115. package/build/cjs/modules/QueryProgress/i18n/dicts.js +14 -0
  116. package/build/cjs/modules/QueryProgress/i18n/dicts.js.map +1 -0
  117. package/build/cjs/modules/QueryProgress/i18n/en.json +11 -0
  118. package/build/cjs/modules/QueryProgress/i18n/index.d.ts +6 -0
  119. package/build/cjs/modules/QueryProgress/i18n/index.js +11 -0
  120. package/build/cjs/modules/QueryProgress/i18n/index.js.map +1 -0
  121. package/build/cjs/modules/QueryProgress/i18n/ru.json +11 -0
  122. package/build/cjs/modules/QueryProgress/index.d.ts +2 -0
  123. package/build/cjs/modules/QueryProgress/index.js +13 -0
  124. package/build/cjs/modules/QueryProgress/index.js.map +1 -0
  125. package/build/cjs/modules/QueryStatistics/i18n/index.d.ts +2 -2
  126. package/build/cjs/modules/RowsList/RowsList.js +4 -3
  127. package/build/cjs/modules/RowsList/RowsList.js.map +1 -1
  128. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.d.ts +2 -2
  129. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js +6 -4
  130. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js.map +1 -1
  131. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +2 -2
  132. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +4 -3
  133. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -1
  134. package/build/cjs/modules/TutorialRow/TutorialRow.d.ts +1 -1
  135. package/build/cjs/modules/TutorialRow/TutorialRow.js +2 -2
  136. package/build/cjs/modules/TutorialRow/TutorialRow.js.map +1 -1
  137. package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.d.ts +1 -1
  138. package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js +4 -3
  139. package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -1
  140. package/build/cjs/modules/index.d.ts +2 -0
  141. package/build/cjs/modules/index.js +8 -0
  142. package/build/cjs/modules/index.js.map +1 -1
  143. package/build/cjs/types/queryGraph.d.ts +87 -0
  144. package/build/cjs/types/queryGraph.js +6 -0
  145. package/build/cjs/types/queryGraph.js.map +1 -0
  146. package/build/cjs/widgets/DashboardCharts/DashboardCharts.js +8 -6
  147. package/build/cjs/widgets/DashboardCharts/DashboardCharts.js.map +1 -1
  148. package/build/cjs/widgets/DashboardCharts/types.d.ts +3 -3
  149. package/build/cjs/widgets/DashboardCharts/types.js.map +1 -1
  150. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js +2 -2
  151. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  152. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js +6 -5
  153. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -1
  154. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.d.ts +1 -1
  155. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.js +13 -9
  156. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.js.map +1 -1
  157. package/build/cjs/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js +2 -2
  158. package/build/cjs/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js.map +1 -1
  159. package/build/cjs/widgets/QueriesNavigation/helpers/createTableDetailConfig.js +8 -5
  160. package/build/cjs/widgets/QueriesNavigation/helpers/createTableDetailConfig.js.map +1 -1
  161. package/build/cjs/widgets/QueryResults/QueryResults.js +2 -2
  162. package/build/cjs/widgets/QueryResults/QueryResults.js.map +1 -1
  163. package/build/cjs/widgets/QueryResults/i18n/index.d.ts +2 -2
  164. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js +4 -3
  165. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -1
  166. package/build/cjs/widgets/SavedQueries/SavedQueries.d.ts +2 -2
  167. package/build/cjs/widgets/SavedQueries/SavedQueries.js +2 -2
  168. package/build/cjs/widgets/SavedQueries/SavedQueries.js.map +1 -1
  169. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.d.ts +2 -2
  170. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js +6 -5
  171. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -1
  172. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  173. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js +6 -5
  174. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  175. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.d.ts +2 -2
  176. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js +6 -4
  177. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  178. package/build/esm/components/AttachmentList/AttachmentList.js +1 -0
  179. package/build/esm/components/AttachmentList/AttachmentList.js.map +1 -1
  180. package/build/esm/components/QueryGraph/QueryGraph.css +70 -0
  181. package/build/esm/components/QueryGraph/QueryGraph.css.map +1 -0
  182. package/build/esm/components/QueryGraph/QueryGraph.d.ts +4 -0
  183. package/build/esm/components/QueryGraph/QueryGraph.js +510 -0
  184. package/build/esm/components/QueryGraph/QueryGraph.js.map +1 -0
  185. package/build/esm/components/QueryGraph/QueryGraph.scss +81 -0
  186. package/build/esm/components/QueryGraph/QueryGraph.stories.d.ts +16 -0
  187. package/build/esm/components/QueryGraph/QueryGraph.stories.js +331 -0
  188. package/build/esm/components/QueryGraph/QueryGraph.stories.js.map +1 -0
  189. package/build/esm/components/QueryGraph/helpers/layout.d.ts +9 -0
  190. package/build/esm/components/QueryGraph/helpers/layout.js +128 -0
  191. package/build/esm/components/QueryGraph/helpers/layout.js.map +1 -0
  192. package/build/esm/components/QueryGraph/helpers/presentation.d.ts +18 -0
  193. package/build/esm/components/QueryGraph/helpers/presentation.js +35 -0
  194. package/build/esm/components/QueryGraph/helpers/presentation.js.map +1 -0
  195. package/build/esm/components/QueryGraph/i18n/dicts.d.ts +55 -0
  196. package/build/esm/components/QueryGraph/i18n/dicts.js +7 -0
  197. package/build/esm/components/QueryGraph/i18n/dicts.js.map +1 -0
  198. package/build/esm/components/QueryGraph/i18n/en.json +26 -0
  199. package/build/esm/components/QueryGraph/i18n/index.d.ts +6 -0
  200. package/build/esm/components/QueryGraph/i18n/index.js +4 -0
  201. package/build/esm/components/QueryGraph/i18n/index.js.map +1 -0
  202. package/build/esm/components/QueryGraph/i18n/ru.json +26 -0
  203. package/build/esm/components/QueryGraph/index.d.ts +2 -0
  204. package/build/esm/components/QueryGraph/index.js +2 -0
  205. package/build/esm/components/QueryGraph/index.js.map +1 -0
  206. package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.d.ts +24 -0
  207. package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.js +299 -0
  208. package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.js.map +1 -0
  209. package/build/esm/components/QueryGraph/internal/QueryGraphPopup.d.ts +5 -0
  210. package/build/esm/components/QueryGraph/internal/QueryGraphPopup.js +234 -0
  211. package/build/esm/components/QueryGraph/internal/QueryGraphPopup.js.map +1 -0
  212. package/build/esm/components/QueryGraph/internal/queryGraphIcons.d.ts +12 -0
  213. package/build/esm/components/QueryGraph/internal/queryGraphIcons.js +150 -0
  214. package/build/esm/components/QueryGraph/internal/queryGraphIcons.js.map +1 -0
  215. package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.d.ts +22 -0
  216. package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.js +53 -0
  217. package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.js.map +1 -0
  218. package/build/esm/components/QueryGraph/story/largeGraphData.d.ts +3 -0
  219. package/build/esm/components/QueryGraph/story/largeGraphData.js +220 -0
  220. package/build/esm/components/QueryGraph/story/largeGraphData.js.map +1 -0
  221. package/build/esm/components/index.d.ts +2 -0
  222. package/build/esm/components/index.js +1 -0
  223. package/build/esm/components/index.js.map +1 -1
  224. package/build/esm/helpers/buildColumnsFromKeys.d.ts +1 -1
  225. package/build/esm/helpers/buildColumnsFromKeys.js.map +1 -1
  226. package/build/esm/index.d.ts +1 -0
  227. package/build/esm/index.js +1 -0
  228. package/build/esm/index.js.map +1 -1
  229. package/build/esm/modules/Attachments/Attachments.css +13 -1
  230. package/build/esm/modules/Attachments/Attachments.css.map +1 -1
  231. package/build/esm/modules/Attachments/Attachments.js +5 -5
  232. package/build/esm/modules/Attachments/Attachments.js.map +1 -1
  233. package/build/esm/modules/Attachments/Attachments.scss +13 -1
  234. package/build/esm/modules/Attachments/Attachments.stories.d.ts +1 -0
  235. package/build/esm/modules/Attachments/Attachments.stories.js +91 -1
  236. package/build/esm/modules/Attachments/Attachments.stories.js.map +1 -1
  237. package/build/esm/modules/ClustersList/ClustersList.d.ts +1 -1
  238. package/build/esm/modules/ClustersList/ClustersList.js +2 -1
  239. package/build/esm/modules/ClustersList/ClustersList.js.map +1 -1
  240. package/build/esm/modules/HistoryHeader/HistoryHeader.js +2 -1
  241. package/build/esm/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  242. package/build/esm/modules/HistoryRow/HistoryRow.js +6 -1
  243. package/build/esm/modules/HistoryRow/HistoryRow.js.map +1 -1
  244. package/build/esm/modules/HistorySearchRow/HistorySearchRow.js +4 -1
  245. package/build/esm/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  246. package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +1 -1
  247. package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +1 -1
  248. package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -1
  249. package/build/esm/modules/NavigationDetail/NavigationDetail.d.ts +1 -1
  250. package/build/esm/modules/NavigationDetail/NavigationDetail.js +1 -1
  251. package/build/esm/modules/NavigationDetail/NavigationDetail.js.map +1 -1
  252. package/build/esm/modules/NavigationHeader/NavigationHeader.d.ts +1 -1
  253. package/build/esm/modules/NavigationHeader/NavigationHeader.js +1 -1
  254. package/build/esm/modules/NavigationHeader/NavigationHeader.js.map +1 -1
  255. package/build/esm/modules/NavigationItemsList/NavigationItemsList.d.ts +1 -1
  256. package/build/esm/modules/NavigationItemsList/NavigationItemsList.js +2 -1
  257. package/build/esm/modules/NavigationItemsList/NavigationItemsList.js.map +1 -1
  258. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.d.ts +1 -1
  259. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js +1 -1
  260. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js.map +1 -1
  261. package/build/esm/modules/NavigationMeta/NavigationMeta.js +2 -1
  262. package/build/esm/modules/NavigationMeta/NavigationMeta.js.map +1 -1
  263. package/build/esm/modules/NavigationMeta/i18n/index.d.ts +2 -2
  264. package/build/esm/modules/NavigationPreview/NavigationPreview.d.ts +1 -1
  265. package/build/esm/modules/NavigationPreview/NavigationPreview.js +3 -1
  266. package/build/esm/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  267. package/build/esm/modules/NavigationPreview/helpers/buildPreviewColumns.d.ts +1 -1
  268. package/build/esm/modules/NavigationPreview/helpers/buildPreviewColumns.js.map +1 -1
  269. package/build/esm/modules/NavigationSchema/NavigationSchema.d.ts +1 -1
  270. package/build/esm/modules/NavigationSchema/NavigationSchema.js +2 -1
  271. package/build/esm/modules/NavigationSchema/NavigationSchema.js.map +1 -1
  272. package/build/esm/modules/NavigationSchema/helpers/buildSchemaColumns.d.ts +1 -1
  273. package/build/esm/modules/NavigationSchema/helpers/buildSchemaColumns.js.map +1 -1
  274. package/build/esm/modules/NavigationView/NavigationView.d.ts +1 -1
  275. package/build/esm/modules/NavigationView/NavigationView.js +2 -1
  276. package/build/esm/modules/NavigationView/NavigationView.js.map +1 -1
  277. package/build/esm/modules/NavigationView/helpers/buildViewColumns.d.ts +1 -1
  278. package/build/esm/modules/NavigationView/helpers/buildViewColumns.js.map +1 -1
  279. package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.d.ts +1 -1
  280. package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.js +2 -1
  281. package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.js.map +1 -1
  282. package/build/esm/modules/QueriesList/QueriesList.js +1 -1
  283. package/build/esm/modules/QueriesList/QueriesList.js.map +1 -1
  284. package/build/esm/modules/QueryProgress/QueryProgress.css +64 -0
  285. package/build/esm/modules/QueryProgress/QueryProgress.css.map +1 -0
  286. package/build/esm/modules/QueryProgress/QueryProgress.d.ts +4 -0
  287. package/build/esm/modules/QueryProgress/QueryProgress.js +127 -0
  288. package/build/esm/modules/QueryProgress/QueryProgress.js.map +1 -0
  289. package/build/esm/modules/QueryProgress/QueryProgress.scss +72 -0
  290. package/build/esm/modules/QueryProgress/QueryProgress.stories.d.ts +7 -0
  291. package/build/esm/modules/QueryProgress/QueryProgress.stories.js +31 -0
  292. package/build/esm/modules/QueryProgress/QueryProgress.stories.js.map +1 -0
  293. package/build/esm/modules/QueryProgress/i18n/dicts.d.ts +25 -0
  294. package/build/esm/modules/QueryProgress/i18n/dicts.js +7 -0
  295. package/build/esm/modules/QueryProgress/i18n/dicts.js.map +1 -0
  296. package/build/esm/modules/QueryProgress/i18n/en.json +11 -0
  297. package/build/esm/modules/QueryProgress/i18n/index.d.ts +6 -0
  298. package/build/esm/modules/QueryProgress/i18n/index.js +4 -0
  299. package/build/esm/modules/QueryProgress/i18n/index.js.map +1 -0
  300. package/build/esm/modules/QueryProgress/i18n/ru.json +11 -0
  301. package/build/esm/modules/QueryProgress/index.d.ts +2 -0
  302. package/build/esm/modules/QueryProgress/index.js +2 -0
  303. package/build/esm/modules/QueryProgress/index.js.map +1 -0
  304. package/build/esm/modules/QueryStatistics/i18n/index.d.ts +2 -2
  305. package/build/esm/modules/RowsList/RowsList.js +2 -1
  306. package/build/esm/modules/RowsList/RowsList.js.map +1 -1
  307. package/build/esm/modules/SavedQueryRow/SavedQueryRow.d.ts +2 -2
  308. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js +3 -1
  309. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js.map +1 -1
  310. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +2 -2
  311. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +2 -1
  312. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -1
  313. package/build/esm/modules/TutorialRow/TutorialRow.d.ts +1 -1
  314. package/build/esm/modules/TutorialRow/TutorialRow.js +1 -1
  315. package/build/esm/modules/TutorialRow/TutorialRow.js.map +1 -1
  316. package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.d.ts +1 -1
  317. package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js +2 -1
  318. package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -1
  319. package/build/esm/modules/index.d.ts +2 -0
  320. package/build/esm/modules/index.js +1 -0
  321. package/build/esm/modules/index.js.map +1 -1
  322. package/build/esm/types/queryGraph.d.ts +87 -0
  323. package/build/esm/types/queryGraph.js +2 -0
  324. package/build/esm/types/queryGraph.js.map +1 -0
  325. package/build/esm/widgets/DashboardCharts/DashboardCharts.js +4 -2
  326. package/build/esm/widgets/DashboardCharts/DashboardCharts.js.map +1 -1
  327. package/build/esm/widgets/DashboardCharts/types.d.ts +3 -3
  328. package/build/esm/widgets/DashboardCharts/types.js.map +1 -1
  329. package/build/esm/widgets/QueriesHistory/QueriesHistory.js +1 -1
  330. package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  331. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js +3 -2
  332. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -1
  333. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.d.ts +1 -1
  334. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.js +6 -2
  335. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.js.map +1 -1
  336. package/build/esm/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js +1 -1
  337. package/build/esm/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js.map +1 -1
  338. package/build/esm/widgets/QueriesNavigation/helpers/createTableDetailConfig.js +4 -1
  339. package/build/esm/widgets/QueriesNavigation/helpers/createTableDetailConfig.js.map +1 -1
  340. package/build/esm/widgets/QueryResults/QueryResults.js +1 -1
  341. package/build/esm/widgets/QueryResults/QueryResults.js.map +1 -1
  342. package/build/esm/widgets/QueryResults/i18n/index.d.ts +2 -2
  343. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js +2 -1
  344. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -1
  345. package/build/esm/widgets/SavedQueries/SavedQueries.d.ts +2 -2
  346. package/build/esm/widgets/SavedQueries/SavedQueries.js +1 -1
  347. package/build/esm/widgets/SavedQueries/SavedQueries.js.map +1 -1
  348. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.d.ts +2 -2
  349. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js +3 -2
  350. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -1
  351. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  352. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js +3 -2
  353. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  354. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.d.ts +2 -2
  355. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js +3 -1
  356. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  357. package/package.json +84 -5
@@ -0,0 +1,25 @@
1
+ declare const _default: {
2
+ en: {
3
+ tab_graph: string;
4
+ tab_timeline: string;
5
+ "context_timeline-unavailable": string;
6
+ "status_not-started": string;
7
+ status_waiting: string;
8
+ status_running: string;
9
+ status_completed: string;
10
+ status_failed: string;
11
+ status_aborted: string;
12
+ };
13
+ ru: {
14
+ tab_graph: string;
15
+ tab_timeline: string;
16
+ "context_timeline-unavailable": string;
17
+ "status_not-started": string;
18
+ status_waiting: string;
19
+ status_running: string;
20
+ status_completed: string;
21
+ status_failed: string;
22
+ status_aborted: string;
23
+ };
24
+ };
25
+ export default _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _en = _interopRequireDefault(require("./en.json"));
8
+ var _ru = _interopRequireDefault(require("./ru.json"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ var _default = exports.default = {
11
+ en: _en.default,
12
+ ru: _ru.default
13
+ };
14
+ // #sourceMappingURL=dicts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_en","_interopRequireDefault","require","_ru","e","__esModule","default","_default","exports","en","ru"],"sources":["dicts.ts"],"sourcesContent":["import en from './en.json';\nimport ru from './ru.json';\n\nexport default {en, ru};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAS,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEM;EAACG,EAAE,EAAFA,WAAE;EAAEC,EAAE,EAAFA;AAAE,CAAC","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ {
2
+ "tab_graph": "Graph",
3
+ "tab_timeline": "Timeline",
4
+ "context_timeline-unavailable": "Timeline is not available yet",
5
+ "status_not-started": "Not started",
6
+ "status_waiting": "Waiting",
7
+ "status_running": "Running",
8
+ "status_completed": "Completed",
9
+ "status_failed": "Failed",
10
+ "status_aborted": "Aborted"
11
+ }
@@ -0,0 +1,6 @@
1
+ declare const _default: ((key: "status_running" | "status_completed" | "status_failed" | "status_aborted" | "tab_graph" | "tab_timeline" | "context_timeline-unavailable" | "status_not-started" | "status_waiting", params?: import("@gravity-ui/i18n").Params) => string) & {
2
+ keysetData: {
3
+ "qp:query-progress": Record<"status_running" | "status_completed" | "status_failed" | "status_aborted" | "tab_graph" | "tab_timeline" | "context_timeline-unavailable" | "status_not-started" | "status_waiting", import("@gravity-ui/i18n").KeyData>;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _i18n = require("../../../i18n");
8
+ var _dicts = _interopRequireDefault(require("./dicts"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ var _default = exports.default = (0, _i18n.addI18Keysets)('qp:query-progress', _dicts.default);
11
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_i18n","require","_dicts","_interopRequireDefault","e","__esModule","default","_default","exports","addI18Keysets","dicts"],"sources":["index.ts"],"sourcesContent":["import {addI18Keysets} from '../../../i18n';\nimport dicts from './dicts';\n\nexport default addI18Keysets('qp:query-progress', dicts);\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAY,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEG,IAAAG,mBAAa,EAAC,mBAAmB,EAAEC,cAAK,CAAC","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ {
2
+ "tab_graph": "Граф",
3
+ "tab_timeline": "Таймлайн",
4
+ "context_timeline-unavailable": "Таймлайн пока недоступен",
5
+ "status_not-started": "Не запущено",
6
+ "status_waiting": "Ожидание",
7
+ "status_running": "Выполняется",
8
+ "status_completed": "Завершено",
9
+ "status_failed": "Ошибка",
10
+ "status_aborted": "Прервано"
11
+ }
@@ -0,0 +1,2 @@
1
+ export { QueryProgress } from './QueryProgress';
2
+ export type { QueryProgressProps, QueryProgressView } from '../../types/queryGraph';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "QueryProgress", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _QueryProgress.QueryProgress;
10
+ }
11
+ });
12
+ var _QueryProgress = require("./QueryProgress");
13
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_QueryProgress","require"],"sources":["index.ts"],"sourcesContent":["export {QueryProgress} from './QueryProgress';\nexport type {QueryProgressProps, QueryProgressView} from '../../types/queryGraph';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- declare const _default: ((key: "action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_count" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", params?: import("@gravity-ui/i18n").Params) => string) & {
1
+ declare const _default: ((key: "field_count" | "action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", params?: import("@gravity-ui/i18n").Params) => string) & {
2
2
  keysetData: {
3
- "qp:query-statistics": Record<"action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_count" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", import("@gravity-ui/i18n").KeyData>;
3
+ "qp:query-statistics": Record<"field_count" | "action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", import("@gravity-ui/i18n").KeyData>;
4
4
  };
5
5
  };
6
6
  export default _default;
@@ -9,7 +9,8 @@ require("core-js/modules/es.array.includes.js");
9
9
  require("core-js/modules/es.string.includes.js");
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
12
- var _components = require("../../components");
12
+ var _EmptyContent = require("../../components/EmptyContent");
13
+ var _LazyList = require("../../components/LazyList");
13
14
  var _prepareRowData = require("./helpers/prepareRowData");
14
15
  var _row = require("../../constants/row");
15
16
  require("./RowsList.css");
@@ -47,7 +48,7 @@ var RowsList = exports.RowsList = function RowsList(_ref) {
47
48
  var selected = comparison.comparedRowIds.includes(item.id);
48
49
  comparison.onChange(item, !selected);
49
50
  };
50
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.LazyList, {
51
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LazyList.LazyList, {
51
52
  className: block(null, className),
52
53
  items: items,
53
54
  itemHeight: getItemHeight,
@@ -68,7 +69,7 @@ var RowsList = exports.RowsList = function RowsList(_ref) {
68
69
  hasMore: hasMore,
69
70
  loading: loading,
70
71
  onLoadMore: onLoadMore,
71
- emptyContent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.EmptyContent, {
72
+ emptyContent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyContent.EmptyContent, {
72
73
  variant: showFiltersHint ? 'nothing-found' : 'no-files',
73
74
  className: className
74
75
  }),
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_bemCnLite","_components","_prepareRowData","_row","_jsxRuntime","e","__esModule","default","block","cn","RowsList","exports","_ref","items","selectedRowId","_ref$rowVariant","rowVariant","visibleFields","editing","comparison","getRowActions","renderRow","showFiltersHint","hasMore","loading","onLoadMore","renderLink","className","onItemClick","getItemHeight","item","SEARCH_ROW_HEIGHT","height","selectedItemIndex","undefined","findIndex","id","handleItemClick","index","enabled","selected","comparedRowIds","includes","onChange","_jsx","LazyList","itemHeight","renderItem","isActive","prepareRowData","variant","emptyContent","EmptyContent"],"sources":["RowsList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListItem,\n QueryListLinkRenderer,\n QueryListRow,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListRowVariant,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {EmptyContent, LazyList} from '../../components';\nimport {prepareRowData} from './helpers/prepareRowData';\nimport {SEARCH_ROW_HEIGHT} from '../../constants/row';\nimport './RowsList.scss';\n\nconst block = cn('qp-rows-list');\n\nexport type RowsListProps<T extends QueryListRow> = {\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n rowVariant?: QueryListRowVariant;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n renderRow: (data: QueryListRowRenderData<T>) => React.ReactNode;\n showFiltersHint?: boolean;\n hasMore?: boolean;\n loading?: boolean;\n onLoadMore?: () => void;\n renderLink?: QueryListLinkRenderer;\n className?: string;\n onItemClick?: (item: QueryListItem<T>, index: number) => void;\n};\n\nexport const RowsList = <T extends QueryListRow>({\n items,\n selectedRowId,\n rowVariant = 'default',\n visibleFields,\n editing,\n comparison,\n getRowActions,\n renderRow,\n showFiltersHint,\n hasMore,\n loading,\n onLoadMore,\n renderLink,\n className,\n onItemClick,\n}: RowsListProps<T>) => {\n const getItemHeight = (item: QueryListItem<T>) =>\n rowVariant === 'search' && !('header' in item) ? SEARCH_ROW_HEIGHT : item.height;\n const selectedItemIndex =\n selectedRowId === undefined\n ? undefined\n : items.findIndex((item) => !('header' in item) && item.id === selectedRowId);\n\n const handleItemClick = (item: QueryListItem<T>, index: number) => {\n if ('header' in item || !comparison?.enabled) {\n onItemClick?.(item, index);\n return;\n }\n\n const selected = comparison.comparedRowIds.includes(item.id);\n comparison.onChange(item, !selected);\n };\n\n return (\n <LazyList<QueryListItem<T>>\n className={block(null, className)}\n items={items}\n itemHeight={getItemHeight}\n renderItem={(item, isActive, index) =>\n renderRow(\n prepareRowData({\n item,\n isActive,\n index,\n variant: rowVariant,\n visibleFields,\n editing,\n comparison,\n getRowActions,\n renderLink,\n }),\n )\n }\n selectedItemIndex={selectedItemIndex}\n hasMore={hasMore}\n loading={loading}\n onLoadMore={onLoadMore}\n emptyContent={\n <EmptyContent\n variant={showFiltersHint ? 'nothing-found' : 'no-files'}\n className={className}\n />\n }\n onItemClick={handleItemClick}\n />\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAYA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACAA,OAAA;AAAyB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzB,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,cAAc,CAAC;AAoBzB,IAAMC,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,SAAXA,QAAQA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AXA,WAAW,eAAXA,WAAW,CAAGE,IAAI,EAAEQ,KAAK,CAAC;MAC1B;IACJ;IAEA,IAAME,QAAQ,GAAGrB,UAAU,CAACsB,cAAc,CAACC,QAAQ,CAACZ,IAAI,CAACM,EAAE,CAAC;IAC5DjB,UAAU,CAACwB,QAAQ,CAACb,IAAI,EAAE,CAACU,QAAQ,CAAC;EACxC,CAAC;EAED,oBACI,IAAAI,eAAA,EAACC,oBAAQ;IACLlB,SAAS,EAAEnB,KAAK,CAAC,IAAI,EAAEmB,SAAS,CAAE;IAClCd,KAAK,EAAEA,KAAM;IACbiC,UAAU,EAAEjB,aAAc;IAC1BkB,UAAU,EAAE,SAAZA,UAAUA,CAAGjB,IAAI,EAAEkB,QAAQ,EAAEV,KAAK;MAAA,OAC9BjB,SAAS,CACL,IAAA4B,8BAAc,EAAC;QACXnB,IAAI,EAAJA,IAAI;QACJkB,QAAQ,EAARA,QAAQ;QACRV,KAAK,EAALA,KAAK;QACLY,OAAO,EAAElC,UAAU;QACnBC,aAAa,EAAbA,aAAa;QACbC,OAAO,EAAPA,OAAO;QACPC,UAAU,EAAVA,UAAU;QACVC,aAAa,EAAbA,aAAa;QACbM,UAAU,EAAVA;MACJ,CAAC,CACL,CAAC;IAAA,CACJ;IACDO,iBAAiB,EAAEA,iBAAkB;IACrCV,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvB0B,YAAY,eACR,IAAAP,eAAA,EAACQ,wBAAY;MACTF,OAAO,EAAE5B,eAAe,GAAG,eAAe,GAAG,UAAW;MACxDK,SAAS,EAAEA;IAAU,CACxB,CACJ;IACDC,WAAW,EAAES;EAAgB,CAChC,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_bemCnLite","_EmptyContent","_LazyList","_prepareRowData","_row","_jsxRuntime","e","__esModule","default","block","cn","RowsList","exports","_ref","items","selectedRowId","_ref$rowVariant","rowVariant","visibleFields","editing","comparison","getRowActions","renderRow","showFiltersHint","hasMore","loading","onLoadMore","renderLink","className","onItemClick","getItemHeight","item","SEARCH_ROW_HEIGHT","height","selectedItemIndex","undefined","findIndex","id","handleItemClick","index","enabled","selected","comparedRowIds","includes","onChange","_jsx","LazyList","itemHeight","renderItem","isActive","prepareRowData","variant","emptyContent","EmptyContent"],"sources":["RowsList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListItem,\n QueryListLinkRenderer,\n QueryListRow,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListRowVariant,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {EmptyContent} from '../../components/EmptyContent';\nimport {LazyList} from '../../components/LazyList';\nimport {prepareRowData} from './helpers/prepareRowData';\nimport {SEARCH_ROW_HEIGHT} from '../../constants/row';\nimport './RowsList.scss';\n\nconst block = cn('qp-rows-list');\n\nexport type RowsListProps<T extends QueryListRow> = {\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n rowVariant?: QueryListRowVariant;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n renderRow: (data: QueryListRowRenderData<T>) => React.ReactNode;\n showFiltersHint?: boolean;\n hasMore?: boolean;\n loading?: boolean;\n onLoadMore?: () => void;\n renderLink?: QueryListLinkRenderer;\n className?: string;\n onItemClick?: (item: QueryListItem<T>, index: number) => void;\n};\n\nexport const RowsList = <T extends QueryListRow>({\n items,\n selectedRowId,\n rowVariant = 'default',\n visibleFields,\n editing,\n comparison,\n getRowActions,\n renderRow,\n showFiltersHint,\n hasMore,\n loading,\n onLoadMore,\n renderLink,\n className,\n onItemClick,\n}: RowsListProps<T>) => {\n const getItemHeight = (item: QueryListItem<T>) =>\n rowVariant === 'search' && !('header' in item) ? SEARCH_ROW_HEIGHT : item.height;\n const selectedItemIndex =\n selectedRowId === undefined\n ? undefined\n : items.findIndex((item) => !('header' in item) && item.id === selectedRowId);\n\n const handleItemClick = (item: QueryListItem<T>, index: number) => {\n if ('header' in item || !comparison?.enabled) {\n onItemClick?.(item, index);\n return;\n }\n\n const selected = comparison.comparedRowIds.includes(item.id);\n comparison.onChange(item, !selected);\n };\n\n return (\n <LazyList<QueryListItem<T>>\n className={block(null, className)}\n items={items}\n itemHeight={getItemHeight}\n renderItem={(item, isActive, index) =>\n renderRow(\n prepareRowData({\n item,\n isActive,\n index,\n variant: rowVariant,\n visibleFields,\n editing,\n comparison,\n getRowActions,\n renderLink,\n }),\n )\n }\n selectedItemIndex={selectedItemIndex}\n hasMore={hasMore}\n loading={loading}\n onLoadMore={onLoadMore}\n emptyContent={\n <EmptyContent\n variant={showFiltersHint ? 'nothing-found' : 'no-files'}\n className={className}\n />\n }\n onItemClick={handleItemClick}\n />\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAYA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AACAA,OAAA;AAAyB,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzB,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,cAAc,CAAC;AAoBzB,IAAMC,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,SAAXA,QAAQA,CAAAE,IAAA,EAgBG;EAAA,IAfpBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IAAAC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cAAc,CAACC,QAAQ,CAACZ,IAAI,CAACM,EAAE,CAAC;IAC5DjB,UAAU,CAACwB,QAAQ,CAACb,IAAI,EAAE,CAACU,QAAQ,CAAC;EACxC,CAAC;EAED,oBACI,IAAAI,eAAA,EAACC,kBAAQ;IACLlB,SAAS,EAAEnB,KAAK,CAAC,IAAI,EAAEmB,SAAS,CAAE;IAClCd,KAAK,EAAEA,KAAM;IACbiC,UAAU,EAAEjB,aAAc;IAC1BkB,UAAU,EAAE,SAAZA,UAAUA,CAAGjB,IAAI,EAAEkB,QAAQ,EAAEV,KAAK;MAAA,OAC9BjB,SAAS,CACL,IAAA4B,8BAAc,EAAC;QACXnB,IAAI,EAAJA,IAAI;QACJkB,QAAQ,EAARA,QAAQ;QACRV,KAAK,EAALA,KAAK;QACLY,OAAO,EAAElC,UAAU;QACnBC,aAAa,EAAbA,aAAa;QACbC,OAAO,EAAPA,OAAO;QACPC,UAAU,EAAVA,UAAU;QACVC,aAAa,EAAbA,aAAa;QACbM,UAAU,EAAVA;MACJ,CAAC,CACL,CAAC;IAAA,CACJ;IACDO,iBAAiB,EAAEA,iBAAkB;IACrCV,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvB0B,YAAY,eACR,IAAAP,eAAA,EAACQ,0BAAY;MACTF,OAAO,EAAE5B,eAAe,GAAG,eAAe,GAAG,UAAW;MACxDK,SAAS,EAAEA;IAAU,CACxB,CACJ;IACDC,WAAW,EAAES;EAAgB,CAChC,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { QueryListRowRenderData } from '../../types/queryList';
3
- import { SavedQuery } from '../../types/savedQueries';
2
+ import type { QueryListRowRenderData } from '../../types/queryList';
3
+ import type { SavedQuery } from '../../types/savedQueries';
4
4
  import './SavedQueryRow.scss';
5
5
  export type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {
6
6
  item: T;
@@ -9,7 +9,9 @@ require("core-js/modules/es.string.includes.js");
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _uikit = require("@gravity-ui/uikit");
11
11
  var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
12
- var _components = require("../../components");
12
+ var _EditableRowTitle = require("../../components/EditableRowTitle");
13
+ var _RowActionsMenu = require("../../components/RowActionsMenu");
14
+ var _RowLink = require("../../components/RowLink");
13
15
  var _time = require("../../helpers/time");
14
16
  require("./SavedQueryRow.css");
15
17
  var _jsxRuntime = require("react/jsx-runtime");
@@ -40,7 +42,7 @@ var SavedQueryRow = exports.SavedQueryRow = function SavedQueryRow(_ref) {
40
42
  text: author,
41
43
  title: author
42
44
  }) : null;
43
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RowLink, {
45
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowLink.RowLink, {
44
46
  href: href,
45
47
  disabled: isEditing || isComparisonMode,
46
48
  className: block({
@@ -53,10 +55,10 @@ var SavedQueryRow = exports.SavedQueryRow = function SavedQueryRow(_ref) {
53
55
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
54
56
  justifyContent: "space-between",
55
57
  className: block('header'),
56
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.EditableRowTitle, {
58
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_EditableRowTitle.EditableRowTitle, {
57
59
  item: item,
58
60
  editing: editing
59
- }), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RowActionsMenu, {
61
+ }), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowActionsMenu.RowActionsMenu, {
60
62
  item: item,
61
63
  actions: actions
62
64
  })]
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_components","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQueryRow","exports","_ref","_renderAuthor","item","actions","isActive","comparison","editing","visibleFields","renderAuthor","author","engine","href","savedAt","isEditing","Boolean","enabled","isComparisonMode","isChecked","checked","showMenu","length","isFieldVisible","field","undefined","value","includes","authorContent","_jsx","Avatar","size","text","title","RowLink","disabled","className","compared","children","_jsxs","Flex","direction","gap","justifyContent","EditableRowTitle","RowActionsMenu","alignItems","Text","color","formatDateCanonical"],"sources":["SavedQueryRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {EditableRowTitle, RowActionsMenu, RowLink} from '../../components';\nimport {formatDateCanonical} from '../../helpers/time';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\nimport './SavedQueryRow.scss';\n\nconst block = cn('qp-saved-query-row');\n\nexport type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQueryRow = <T extends SavedQuery>({\n item,\n actions,\n isActive,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQueryRowProps<T>) => {\n const {author, engine, href, savedAt} = item;\n const isEditing = Boolean(editing?.enabled);\n const isComparisonMode = Boolean(comparison?.enabled);\n const isChecked = Boolean(comparison?.checked);\n const showMenu = isActive && Boolean(actions?.length) && !isComparisonMode;\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n\n return (\n <RowLink\n href={href}\n disabled={isEditing || isComparisonMode}\n className={block({compared: isChecked})}\n >\n <Flex direction=\"column\" gap={1} className={block('content')}>\n <Flex justifyContent=\"space-between\" className={block('header')}>\n <EditableRowTitle item={item} editing={editing} />\n {showMenu && <RowActionsMenu item={item} actions={actions} />}\n </Flex>\n <Flex gap={2} alignItems=\"center\" className={block('metadata')}>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\">{formatDateCanonical(savedAt)}</Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\">{engine}</Text>\n )}\n {isFieldVisible('author') && authorContent}\n </Flex>\n </Flex>\n </RowLink>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAGAA,OAAA;AAA8B,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9B,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,oBAAoB,CAAC;AAO/B,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAAE,IAAA,EAQG;EAAA,IAAAC,aAAA;EAAA,IAPzBC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,UAAU,GAAAL,IAAA,CAAVK,UAAU;IACVC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,aAAa,GAAAP,IAAA,CAAbO,aAAa;IACbC,YAAY,GAAAR,IAAA,CAAZQ,YAAY;EAEZ,IAAOC,MAAM,GAA2BP,IAAI,CAArCO,MAAM;IAAEC,MAAM,GAAmBR,IAAI,CAA7BQ,MAAM;IAAEC,IAAI,GAAaT,IAAI,CAArBS,IAAI;IAAEC,OAAO,GAAIV,IAAI,CAAfU,OAAO;EACpC,IAAMC,SAAS,GAAGC,OAAO,CAACR,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAES,OA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ACe,4BAAgB;UAACxC,IAAI,EAAEA,IAAK;UAACI,OAAO,EAAEA;QAAQ,CAAE,CAAC,EACjDa,QAAQ,iBAAI,IAAAQ,eAAA,EAACgB,0BAAc;UAACzC,IAAI,EAAEA,IAAK;UAACC,OAAO,EAAEA;QAAQ,CAAE,CAAC;MAAA,CAC3D,CAAC,eACP,IAAAkC,gBAAA,EAACC,WAAI;QAACE,GAAG,EAAE,CAAE;QAACI,UAAU,EAAC,QAAQ;QAACV,SAAS,EAAEtC,KAAK,CAAC,UAAU,CAAE;QAAAwC,QAAA,GAC1Df,cAAc,CAAC,SAAS,CAAC,IAAIT,OAAO,iBACjC,IAAAe,eAAA,EAACkB,WAAI;UAACC,KAAK,EAAC,eAAe;UAAAV,QAAA,EAAE,IAAAW,yBAAmB,EAACnC,OAAO;QAAC,CAAO,CACnE,EACAS,cAAc,CAAC,QAAQ,CAAC,IAAIX,MAAM,iBAC/B,IAAAiB,eAAA,EAACkB,WAAI;UAACC,KAAK,EAAC,eAAe;UAAAV,QAAA,EAAE1B;QAAM,CAAO,CAC7C,EACAW,cAAc,CAAC,QAAQ,CAAC,IAAIK,aAAa;MAAA,CACxC,CAAC;IAAA,CACL;EAAC,CACF,CAAC;AAElB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_EditableRowTitle","_RowActionsMenu","_RowLink","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQueryRow","exports","_ref","_renderAuthor","item","actions","isActive","comparison","editing","visibleFields","renderAuthor","author","engine","href","savedAt","isEditing","Boolean","enabled","isComparisonMode","isChecked","checked","showMenu","length","isFieldVisible","field","undefined","value","includes","authorContent","_jsx","Avatar","size","text","title","RowLink","disabled","className","compared","children","_jsxs","Flex","direction","gap","justifyContent","EditableRowTitle","RowActionsMenu","alignItems","Text","color","formatDateCanonical"],"sources":["SavedQueryRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {EditableRowTitle} from '../../components/EditableRowTitle';\nimport {RowActionsMenu} from '../../components/RowActionsMenu';\nimport {RowLink} from '../../components/RowLink';\nimport {formatDateCanonical} from '../../helpers/time';\nimport type {QueryListRowRenderData} from '../../types/queryList';\nimport type {SavedQuery} from '../../types/savedQueries';\nimport './SavedQueryRow.scss';\n\nconst block = cn('qp-saved-query-row');\n\nexport type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQueryRow = <T extends SavedQuery>({\n item,\n actions,\n isActive,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQueryRowProps<T>) => {\n const {author, engine, href, savedAt} = item;\n const isEditing = Boolean(editing?.enabled);\n const isComparisonMode = Boolean(comparison?.enabled);\n const isChecked = Boolean(comparison?.checked);\n const showMenu = isActive && Boolean(actions?.length) && !isComparisonMode;\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n\n return (\n <RowLink\n href={href}\n disabled={isEditing || isComparisonMode}\n className={block({compared: isChecked})}\n >\n <Flex direction=\"column\" gap={1} className={block('content')}>\n <Flex justifyContent=\"space-between\" className={block('header')}>\n <EditableRowTitle item={item} editing={editing} />\n {showMenu && <RowActionsMenu item={item} actions={actions} />}\n </Flex>\n <Flex gap={2} alignItems=\"center\" className={block('metadata')}>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\">{formatDateCanonical(savedAt)}</Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\">{engine}</Text>\n )}\n {isFieldVisible('author') && authorContent}\n </Flex>\n </Flex>\n </RowLink>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBA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AACC,OAAO,EAAEA;QAAQ,CAAE,CAAC;MAAA,CAC3D,CAAC,eACP,IAAAkC,gBAAA,EAACC,WAAI;QAACE,GAAG,EAAE,CAAE;QAACI,UAAU,EAAC,QAAQ;QAACV,SAAS,EAAEtC,KAAK,CAAC,UAAU,CAAE;QAAAwC,QAAA,GAC1Df,cAAc,CAAC,SAAS,CAAC,IAAIT,OAAO,iBACjC,IAAAe,eAAA,EAACkB,WAAI;UAACC,KAAK,EAAC,eAAe;UAAAV,QAAA,EAAE,IAAAW,yBAAmB,EAACnC,OAAO;QAAC,CAAO,CACnE,EACAS,cAAc,CAAC,QAAQ,CAAC,IAAIX,MAAM,iBAC/B,IAAAiB,eAAA,EAACkB,WAAI;UAACC,KAAK,EAAC,eAAe;UAAAV,QAAA,EAAE1B;QAAM,CAAO,CAC7C,EACAW,cAAc,CAAC,QAAQ,CAAC,IAAIK,aAAa;MAAA,CACxC,CAAC;IAAA,CACL;EAAC,CACF,CAAC;AAElB,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { QueryListRowRenderData } from '../../types/queryList';
3
- import { SavedQuery } from '../../types/savedQueries';
2
+ import type { QueryListRowRenderData } from '../../types/queryList';
3
+ import type { SavedQuery } from '../../types/savedQueries';
4
4
  import './SavedQuerySearchRow.scss';
5
5
  export type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {
6
6
  item: T;
@@ -9,7 +9,8 @@ require("core-js/modules/es.string.includes.js");
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _uikit = require("@gravity-ui/uikit");
11
11
  var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
12
- var _components = require("../../components");
12
+ var _MonacoEditor = require("../../components/MonacoEditor");
13
+ var _SearchRowLayout = require("../../components/SearchRowLayout");
13
14
  var _time = require("../../helpers/time");
14
15
  require("./SavedQuerySearchRow.css");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
@@ -35,9 +36,9 @@ var SavedQuerySearchRow = exports.SavedQuerySearchRow = function SavedQuerySearc
35
36
  var isFieldVisible = function isFieldVisible(field) {
36
37
  return visibleFields === undefined || visibleFields.value.includes(field);
37
38
  };
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchRowLayout, {
39
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchRowLayout.SearchRowLayout, {
39
40
  query: query,
40
- language: _components.MonacoLanguage.YQL,
41
+ language: _MonacoEditor.MonacoLanguage.YQL,
41
42
  href: href,
42
43
  disabled: Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled) || Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.enabled),
43
44
  className: block(),
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_components","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQuerySearchRow","exports","_ref","_renderAuthor","item","comparison","editing","visibleFields","renderAuthor","author","engine","href","query","savedAt","authorContent","_jsx","Avatar","size","text","title","isFieldVisible","field","undefined","value","includes","SearchRowLayout","language","MonacoLanguage","YQL","disabled","Boolean","enabled","className","header","_jsxs","Flex","gap","alignItems","children","Text","variant","ellipsis","color","formatDateCanonical"],"sources":["SavedQuerySearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {MonacoLanguage, SearchRowLayout} from '../../components';\nimport {formatDateCanonical} from '../../helpers/time';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\nimport './SavedQuerySearchRow.scss';\n\nconst block = cn('qp-saved-query-search-row');\n\nexport type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQuerySearchRow = <T extends SavedQuery>({\n item,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQuerySearchRowProps<T>) => {\n const {author, engine, href, query, savedAt} = item;\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n\n return (\n <SearchRowLayout\n query={query}\n language={MonacoLanguage.YQL}\n href={href}\n disabled={Boolean(editing?.enabled) || Boolean(comparison?.enabled)}\n className={block()}\n header={\n <Flex gap={2} alignItems=\"center\" className={block('header')}>\n <Text variant=\"subheader-1\" ellipsis className={block('title')}>\n {item.title}\n </Text>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {formatDateCanonical(savedAt)}\n </Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {engine}\n </Text>\n )}\n {isFieldVisible('author') && authorContent}\n </Flex>\n }\n />\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAGAA,OAAA;AAAoC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpC,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,2BAA2B,CAAC;AAOtC,IAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAAE,IAAA,EAMG;EAAA,IAAAC,aAAA;EAAA,IAL/BC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,OAAO,GAAAJ,I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A,EAACwB,WAAI;QAACC,OAAO,EAAC,aAAa;QAACC,QAAQ;QAACT,SAAS,EAAElC,KAAK,CAAC,OAAO,CAAE;QAAAwC,QAAA,EAC1DlC,IAAI,CAACe;MAAK,CACT,CAAC,EACNC,cAAc,CAAC,SAAS,CAAC,IAAIP,OAAO,iBACjC,IAAAE,eAAA,EAACwB,WAAI;QAACG,KAAK,EAAC,eAAe;QAACV,SAAS,EAAElC,KAAK,CAAC,gBAAgB,CAAE;QAAAwC,QAAA,EAC1D,IAAAK,yBAAmB,EAAC9B,OAAO;MAAC,CAC3B,CACT,EACAO,cAAc,CAAC,QAAQ,CAAC,IAAIV,MAAM,iBAC/B,IAAAK,eAAA,EAACwB,WAAI;QAACG,KAAK,EAAC,eAAe;QAACV,SAAS,EAAElC,KAAK,CAAC,gBAAgB,CAAE;QAAAwC,QAAA,EAC1D5B;MAAM,CACL,CACT,EACAU,cAAc,CAAC,QAAQ,CAAC,IAAIN,aAAa;IAAA,CACxC;EACT,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_MonacoEditor","_SearchRowLayout","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQuerySearchRow","exports","_ref","_renderAuthor","item","comparison","editing","visibleFields","renderAuthor","author","engine","href","query","savedAt","authorContent","_jsx","Avatar","size","text","title","isFieldVisible","field","undefined","value","includes","SearchRowLayout","language","MonacoLanguage","YQL","disabled","Boolean","enabled","className","header","_jsxs","Flex","gap","alignItems","children","Text","variant","ellipsis","color","formatDateCanonical"],"sources":["SavedQuerySearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {MonacoLanguage} from '../../components/MonacoEditor';\nimport {SearchRowLayout} from '../../components/SearchRowLayout';\nimport {formatDateCanonical} from '../../helpers/time';\nimport type {QueryListRowRenderData} from '../../types/queryList';\nimport type {SavedQuery} from '../../types/savedQueries';\nimport './SavedQuerySearchRow.scss';\n\nconst block = cn('qp-saved-query-search-row');\n\nexport type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQuerySearchRow = <T extends SavedQuery>({\n item,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQuerySearchRowProps<T>) => {\n const {author, engine, href, query, savedAt} = item;\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n\n return (\n <SearchRowLayout\n query={query}\n language={MonacoLanguage.YQL}\n href={href}\n disabled={Boolean(editing?.enabled) || Boolean(comparison?.enabled)}\n className={block()}\n header={\n <Flex gap={2} alignItems=\"center\" className={block('header')}>\n <Text variant=\"subheader-1\" ellipsis className={block('title')}>\n {item.title}\n </Text>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {formatDateCanonical(savedAt)}\n </Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {engine}\n </Text>\n )}\n {isFieldVisible('author') && authorContent}\n </Flex>\n }\n />\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAGAA,OAAA;AAAoC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KA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CAAEyB,OAAO,CAAC,IAAID,OAAO,CAACzB,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAE0B,OAAO,CAAE;IACpEC,SAAS,EAAElC,KAAK,CAAC,CAAE;IACnBmC,MAAM,eACF,IAAAC,gBAAA,EAACC,WAAI;MAACC,GAAG,EAAE,CAAE;MAACC,UAAU,EAAC,QAAQ;MAACL,SAAS,EAAElC,KAAK,CAAC,QAAQ,CAAE;MAAAwC,QAAA,gBACzD,IAAAvB,eAAA,EAACwB,WAAI;QAACC,OAAO,EAAC,aAAa;QAACC,QAAQ;QAACT,SAAS,EAAElC,KAAK,CAAC,OAAO,CAAE;QAAAwC,QAAA,EAC1DlC,IAAI,CAACe;MAAK,CACT,CAAC,EACNC,cAAc,CAAC,SAAS,CAAC,IAAIP,OAAO,iBACjC,IAAAE,eAAA,EAACwB,WAAI;QAACG,KAAK,EAAC,eAAe;QAACV,SAAS,EAAElC,KAAK,CAAC,gBAAgB,CAAE;QAAAwC,QAAA,EAC1D,IAAAK,yBAAmB,EAAC9B,OAAO;MAAC,CAC3B,CACT,EACAO,cAAc,CAAC,QAAQ,CAAC,IAAIV,MAAM,iBAC/B,IAAAK,eAAA,EAACwB,WAAI;QAACG,KAAK,EAAC,eAAe;QAACV,SAAS,EAAElC,KAAK,CAAC,gBAAgB,CAAE;QAAAwC,QAAA,EAC1D5B;MAAM,CACL,CACT,EACAU,cAAc,CAAC,QAAQ,CAAC,IAAIN,aAAa;IAAA,CACxC;EACT,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TutorialHistoryRow } from '../../types/tutorial';
2
+ import type { TutorialHistoryRow } from '../../types/tutorial';
3
3
  import './TutorialRow.scss';
4
4
  export type TutorialRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {
5
5
  item: T;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.TutorialRow = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _uikit = require("@gravity-ui/uikit");
9
- var _components = require("../../components");
9
+ var _RowLink = require("../../components/RowLink");
10
10
  var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
11
11
  require("./TutorialRow.css");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
@@ -17,7 +17,7 @@ var TutorialRow = exports.TutorialRow = function TutorialRow(_ref) {
17
17
  var href = item.href,
18
18
  id = item.id,
19
19
  title = item.title;
20
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RowLink, {
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowLink.RowLink, {
21
21
  href: href,
22
22
  className: block(),
23
23
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_components","_bemCnLite","_jsxRuntime","e","__esModule","default","block","cn","TutorialRow","exports","_ref","item","href","id","title","_jsx","RowLink","className","children","_jsxs","Flex","gap","alignItems","Text","color","ellipsis"],"sources":["TutorialRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Flex, Text} from '@gravity-ui/uikit';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {RowLink} from '../../components';\nimport cn from 'bem-cn-lite';\nimport './TutorialRow.scss';\n\nconst block = cn('qp-tutorial-row');\n\nexport type TutorialRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n item: T;\n};\n\nexport const TutorialRow = <T extends TutorialHistoryRow>({item}: TutorialRowProps<T>) => {\n const {href, id, title} = item;\n\n return (\n <RowLink href={href} className={block()}>\n <Flex gap={1} alignItems=\"center\" className={block('content')}>\n <Text color=\"secondary\">{id}.</Text>\n <Text ellipsis>{title}</Text>\n </Flex>\n </RowLink>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAA4B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5B,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,iBAAiB,CAAC;AAM5B,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAAE,IAAA,EAAkE;EAAA,IAA/BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAC3D,IAAOC,IAAI,GAAeD,IAAI,CAAvBC,IAAI;IAAEC,EAAE,GAAWF,IAAI,CAAjBE,EAAE;IAAEC,KAAK,GAAIH,IAAI,CAAbG,KAAK;EAEtB,oBACI,IAAAC,eAAA,EAACC,mBAAO;IAACJ,IAAI,EAAEA,IAAK;IAACK,SAAS,EAAEX,KAAK,CAAC,CAAE;IAAAY,QAAA,eACpC,IAAAC,gBAAA,EAACC,WAAI;MAACC,GAAG,EAAE,CAAE;MAACC,UAAU,EAAC,QAAQ;MAACL,SAAS,EAAEX,KAAK,CAAC,SAAS,CAAE;MAAAY,QAAA,gBAC1D,IAAAC,gBAAA,EAACI,WAAI;QAACC,KAAK,EAAC,WAAW;QAAAN,QAAA,GAAEL,EAAE,EAAC,GAAC;MAAA,CAAM,CAAC,eACpC,IAAAE,eAAA,EAACQ,WAAI;QAACE,QAAQ;QAAAP,QAAA,EAAEJ;MAAK,CAAO,CAAC;IAAA,CAC3B;EAAC,CACF,CAAC;AAElB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_RowLink","_bemCnLite","_jsxRuntime","e","__esModule","default","block","cn","TutorialRow","exports","_ref","item","href","id","title","_jsx","RowLink","className","children","_jsxs","Flex","gap","alignItems","Text","color","ellipsis"],"sources":["TutorialRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Flex, Text} from '@gravity-ui/uikit';\nimport type {TutorialHistoryRow} from '../../types/tutorial';\nimport {RowLink} from '../../components/RowLink';\nimport cn from 'bem-cn-lite';\nimport './TutorialRow.scss';\n\nconst block = cn('qp-tutorial-row');\n\nexport type TutorialRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n item: T;\n};\n\nexport const TutorialRow = <T extends TutorialHistoryRow>({item}: TutorialRowProps<T>) => {\n const {href, id, title} = item;\n\n return (\n <RowLink href={href} className={block()}>\n <Flex gap={1} alignItems=\"center\" className={block('content')}>\n <Text color=\"secondary\">{id}.</Text>\n <Text ellipsis>{title}</Text>\n </Flex>\n </RowLink>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAA4B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5B,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,iBAAiB,CAAC;AAM5B,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAAE,IAAA,EAAkE;EAAA,IAA/BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAC3D,IAAOC,IAAI,GAAeD,IAAI,CAAvBC,IAAI;IAAEC,EAAE,GAAWF,IAAI,CAAjBE,EAAE;IAAEC,KAAK,GAAIH,IAAI,CAAbG,KAAK;EAEtB,oBACI,IAAAC,eAAA,EAACC,gBAAO;IAACJ,IAAI,EAAEA,IAAK;IAACK,SAAS,EAAEX,KAAK,CAAC,CAAE;IAAAY,QAAA,eACpC,IAAAC,gBAAA,EAACC,WAAI;MAACC,GAAG,EAAE,CAAE;MAACC,UAAU,EAAC,QAAQ;MAACL,SAAS,EAAEX,KAAK,CAAC,SAAS,CAAE;MAAAY,QAAA,gBAC1D,IAAAC,gBAAA,EAACI,WAAI;QAACC,KAAK,EAAC,WAAW;QAAAN,QAAA,GAAEL,EAAE,EAAC,GAAC;MAAA,CAAM,CAAC,eACpC,IAAAE,eAAA,EAACQ,WAAI;QAACE,QAAQ;QAAAP,QAAA,EAAEJ;MAAK,CAAO,CAAC;IAAA,CAC3B;EAAC,CACF,CAAC;AAElB,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TutorialHistoryRow } from '../../types/tutorial';
2
+ import type { TutorialHistoryRow } from '../../types/tutorial';
3
3
  import './TutorialSearchRow.scss';
4
4
  export type TutorialSearchRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {
5
5
  item: T;
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.TutorialSearchRow = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _uikit = require("@gravity-ui/uikit");
9
- var _components = require("../../components");
9
+ var _MonacoEditor = require("../../components/MonacoEditor");
10
+ var _SearchRowLayout = require("../../components/SearchRowLayout");
10
11
  require("./TutorialSearchRow.css");
11
12
  var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
12
13
  var _jsxRuntime = require("react/jsx-runtime");
@@ -18,9 +19,9 @@ var TutorialSearchRow = exports.TutorialSearchRow = function TutorialSearchRow(_
18
19
  id = item.id,
19
20
  title = item.title,
20
21
  query = item.query;
21
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchRowLayout, {
22
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchRowLayout.SearchRowLayout, {
22
23
  query: query,
23
- language: _components.MonacoLanguage.YQL,
24
+ language: _MonacoEditor.MonacoLanguage.YQL,
24
25
  href: href,
25
26
  className: block(),
26
27
  header: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_components","_bemCnLite","_jsxRuntime","e","__esModule","default","block","cn","TutorialSearchRow","exports","_ref","item","href","id","title","query","_jsx","SearchRowLayout","language","MonacoLanguage","YQL","className","header","_jsxs","Flex","gap","alignItems","children","Text","color","ellipsis"],"sources":["TutorialSearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Flex, Text} from '@gravity-ui/uikit';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {MonacoLanguage, SearchRowLayout} from '../../components';\nimport './TutorialSearchRow.scss';\nimport cn from 'bem-cn-lite';\n\nconst block = cn('qp-tutorial-search-row');\n\nexport type TutorialSearchRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n item: T;\n};\n\nexport const TutorialSearchRow = <T extends TutorialHistoryRow>({\n item,\n}: TutorialSearchRowProps<T>) => {\n const {href, id, title, query} = item;\n\n return (\n <SearchRowLayout\n query={query}\n language={MonacoLanguage.YQL}\n href={href}\n className={block()}\n header={\n <Flex gap={2} alignItems=\"center\" className={block('header')}>\n <Text color=\"secondary\">{id}.</Text>\n <Text ellipsis>{title}</Text>\n </Flex>\n }\n />\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACAA,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAA6B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7B,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,wBAAwB,CAAC;AAMnC,IAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAAE,IAAA,EAEG;EAAA,IAD7BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAEJ,IAAOC,IAAI,GAAsBD,IAAI,CAA9BC,IAAI;IAAEC,EAAE,GAAkBF,IAAI,CAAxBE,EAAE;IAAEC,KAAK,GAAWH,IAAI,CAApBG,KAAK;IAAEC,KAAK,GAAIJ,IAAI,CAAbI,KAAK;EAE7B,oBACI,IAAAC,eAAA,EAACC,2BAAe;IACZF,KAAK,EAAEA,KAAM;IACbG,QAAQ,EAAEC,0BAAc,CAACC,GAAI;IAC7BR,IAAI,EAAEA,IAAK;IACXS,SAAS,EAAEf,KAAK,CAAC,CAAE;IACnBgB,MAAM,eACF,IAAAC,gBAAA,EAACC,WAAI;MAACC,GAAG,EAAE,CAAE;MAACC,UAAU,EAAC,QAAQ;MAACL,SAAS,EAAEf,KAAK,CAAC,QAAQ,CAAE;MAAAqB,QAAA,gBACzD,IAAAJ,gBAAA,EAACK,WAAI;QAACC,KAAK,EAAC,WAAW;QAAAF,QAAA,GAAEd,EAAE,EAAC,GAAC;MAAA,CAAM,CAAC,eACpC,IAAAG,eAAA,EAACY,WAAI;QAACE,QAAQ;QAAAH,QAAA,EAAEb;MAAK,CAAO,CAAC;IAAA,CAC3B;EACT,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_MonacoEditor","_SearchRowLayout","_bemCnLite","_jsxRuntime","e","__esModule","default","block","cn","TutorialSearchRow","exports","_ref","item","href","id","title","query","_jsx","SearchRowLayout","language","MonacoLanguage","YQL","className","header","_jsxs","Flex","gap","alignItems","children","Text","color","ellipsis"],"sources":["TutorialSearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Flex, Text} from '@gravity-ui/uikit';\nimport type {TutorialHistoryRow} from '../../types/tutorial';\nimport {MonacoLanguage} from '../../components/MonacoEditor';\nimport {SearchRowLayout} from '../../components/SearchRowLayout';\nimport './TutorialSearchRow.scss';\nimport cn from 'bem-cn-lite';\n\nconst block = cn('qp-tutorial-search-row');\n\nexport type TutorialSearchRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n item: T;\n};\n\nexport const TutorialSearchRow = <T extends TutorialHistoryRow>({\n item,\n}: TutorialSearchRowProps<T>) => {\n const {href, id, title, query} = item;\n\n return (\n <SearchRowLayout\n query={query}\n language={MonacoLanguage.YQL}\n href={href}\n className={block()}\n header={\n <Flex gap={2} alignItems=\"center\" className={block('header')}>\n <Text color=\"secondary\">{id}.</Text>\n <Text ellipsis>{title}</Text>\n </Flex>\n }\n />\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AACAA,OAAA;AACA,IAAAI,UAAA,GAAAL,sBAAA,CAAAC,OAAA;AAA6B,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7B,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,wBAAwB,CAAC;AAMnC,IAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAAE,IAAA,EAEG;EAAA,IAD7BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAEJ,IAAOC,IAAI,GAAsBD,IAAI,CAA9BC,IAAI;IAAEC,EAAE,GAAkBF,IAAI,CAAxBE,EAAE;IAAEC,KAAK,GAAWH,IAAI,CAApBG,KAAK;IAAEC,KAAK,GAAIJ,IAAI,CAAbI,KAAK;EAE7B,oBACI,IAAAC,eAAA,EAACC,gCAAe;IACZF,KAAK,EAAEA,KAAM;IACbG,QAAQ,EAAEC,4BAAc,CAACC,GAAI;IAC7BR,IAAI,EAAEA,IAAK;IACXS,SAAS,EAAEf,KAAK,CAAC,CAAE;IACnBgB,MAAM,eACF,IAAAC,gBAAA,EAACC,WAAI;MAACC,GAAG,EAAE,CAAE;MAACC,UAAU,EAAC,QAAQ;MAACL,SAAS,EAAEf,KAAK,CAAC,QAAQ,CAAE;MAAAqB,QAAA,gBACzD,IAAAJ,gBAAA,EAACK,WAAI;QAACC,KAAK,EAAC,WAAW;QAAAF,QAAA,GAAEd,EAAE,EAAC,GAAC;MAAA,CAAM,CAAC,eACpC,IAAAG,eAAA,EAACY,WAAI;QAACE,QAAQ;QAAAH,QAAA,EAAEb;MAAK,CAAO,CAAC;IAAA,CAC3B;EACT,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -30,6 +30,8 @@ export type { NavigationDetailProps } from './NavigationDetail';
30
30
  export { NavigationSchema, buildSchemaColumns, filterSchema } from './NavigationSchema';
31
31
  export type { NavigationSchemaProps, NavigationSchemaViewConfig } from './NavigationSchema';
32
32
  export { QueryStatistics } from './QueryStatistics';
33
+ export { QueryProgress } from './QueryProgress';
34
+ export type { QueryProgressProps, QueryProgressView } from './QueryProgress';
33
35
  export type { QueryStatisticsColumn, QueryStatisticsColumnConfig, QueryStatisticsExtraColumn, QueryStatisticsExtraColumnContext, QueryStatisticsFormatValueContext, QueryStatisticsGroup, QueryStatisticsItem, QueryStatisticsMetric, QueryStatisticsProps, QueryStatisticsValues, } from './QueryStatistics';
34
36
  export { NavigationPreview, buildPreviewColumns, filterPreviewRows } from './NavigationPreview';
35
37
  export type { NavigationPreviewProps, NavigationPreviewViewConfig } from './NavigationPreview';
@@ -23,6 +23,7 @@ var _exportNames = {
23
23
  buildSchemaColumns: true,
24
24
  filterSchema: true,
25
25
  QueryStatistics: true,
26
+ QueryProgress: true,
26
27
  NavigationPreview: true,
27
28
  buildPreviewColumns: true,
28
29
  filterPreviewRows: true,
@@ -115,6 +116,12 @@ Object.defineProperty(exports, "QueriesList", {
115
116
  return _QueriesList.QueriesList;
116
117
  }
117
118
  });
119
+ Object.defineProperty(exports, "QueryProgress", {
120
+ enumerable: true,
121
+ get: function () {
122
+ return _QueryProgress.QueryProgress;
123
+ }
124
+ });
118
125
  Object.defineProperty(exports, "QueryStatistics", {
119
126
  enumerable: true,
120
127
  get: function () {
@@ -228,6 +235,7 @@ var _NavigationItemsList = require("./NavigationItemsList");
228
235
  var _NavigationDetail = require("./NavigationDetail");
229
236
  var _NavigationSchema = require("./NavigationSchema");
230
237
  var _QueryStatistics = require("./QueryStatistics");
238
+ var _QueryProgress = require("./QueryProgress");
231
239
  var _NavigationPreview = require("./NavigationPreview");
232
240
  var _NavigationMeta = require("./NavigationMeta");
233
241
  var _NavigationView = require("./NavigationView");
@@ -1 +1 @@
1
- {"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_HistoryComparisonActions","_NavigationHeader","_RowsList","_QueriesList","_HistoryRow","_HistorySearchRow","_SavedQueryRow","_SavedQuerySearchRow","_ChartEditor","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Attachments","_TutorialRow","_TutorialSearchRow","_ClustersList","_NavigationItemsList","_NavigationDetail","_NavigationSchema","_QueryStatistics","_NavigationPreview","_NavigationMeta","_NavigationView"],"sources":["index.ts"],"sourcesContent":["export {HistoryHeader} from './HistoryHeader';\nexport {HistoryLayout} from './HistoryLayout';\nexport {HistoryComparisonActions} from './HistoryComparisonActions';\nexport type {HistoryComparisonActionsProps} from './HistoryComparisonActions';\nexport {NavigationHeader} from './NavigationHeader';\nexport type {NavigationHeaderProps} from './NavigationHeader';\nexport type {HistoryLayoutProps} from './HistoryLayout';\nexport {RowsList} from './RowsList';\nexport type {RowsListProps} from './RowsList';\nexport {QueriesList} from './QueriesList';\nexport type {QueriesListProps} from './QueriesList';\nexport {HistoryRow} from './HistoryRow';\nexport {HistorySearchRow} from './HistorySearchRow';\nexport {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\nexport {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\nexport * from './ChartEditor';\nexport * from './Attachments';\nexport {TutorialRow} from './TutorialRow';\nexport type {TutorialRowProps} from './TutorialRow';\nexport {TutorialSearchRow} from './TutorialSearchRow';\nexport type {TutorialSearchRowProps} from './TutorialSearchRow';\nexport {ClustersList} from './ClustersList';\nexport type {ClustersListProps} from './ClustersList';\nexport {NavigationItemsList} from './NavigationItemsList';\nexport type {NavigationItemsListProps} from './NavigationItemsList';\nexport {NavigationDetail} from './NavigationDetail';\nexport type {NavigationDetailProps} from './NavigationDetail';\nexport {NavigationSchema, buildSchemaColumns, filterSchema} from './NavigationSchema';\nexport type {NavigationSchemaProps, NavigationSchemaViewConfig} from './NavigationSchema';\nexport {QueryStatistics} from './QueryStatistics';\nexport type {\n QueryStatisticsColumn,\n QueryStatisticsColumnConfig,\n QueryStatisticsExtraColumn,\n QueryStatisticsExtraColumnContext,\n QueryStatisticsFormatValueContext,\n QueryStatisticsGroup,\n QueryStatisticsItem,\n QueryStatisticsMetric,\n QueryStatisticsProps,\n QueryStatisticsValues,\n} from './QueryStatistics';\nexport {NavigationPreview, buildPreviewColumns, filterPreviewRows} from './NavigationPreview';\nexport type {NavigationPreviewProps, NavigationPreviewViewConfig} from './NavigationPreview';\nexport {NavigationMeta, buildMetaGroups} from './NavigationMeta';\nexport type {NavigationMetaProps, NavigationMetaViewConfig} from './NavigationMeta';\nexport {NavigationView, buildViewColumns} from './NavigationView';\nexport type {NavigationViewProps, NavigationViewViewConfig} from './NavigationView';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A;AACA,IAAAU,YAAA,GAAAxB,OAAA;AAEA,IAAAyB,kBAAA,GAAAzB,OAAA;AAEA,IAAA0B,aAAA,GAAA1B,OAAA;AAEA,IAAA2B,oBAAA,GAAA3B,OAAA;AAEA,IAAA4B,iBAAA,GAAA5B,OAAA;AAEA,IAAA6B,iBAAA,GAAA7B,OAAA;AAEA,IAAA8B,gBAAA,GAAA9B,OAAA;AAaA,IAAA+B,kBAAA,GAAA/B,OAAA;AAEA,IAAAgC,eAAA,GAAAhC,OAAA;AAEA,IAAAiC,eAAA,GAAAjC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_HistoryComparisonActions","_NavigationHeader","_RowsList","_QueriesList","_HistoryRow","_HistorySearchRow","_SavedQueryRow","_SavedQuerySearchRow","_ChartEditor","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Attachments","_TutorialRow","_TutorialSearchRow","_ClustersList","_NavigationItemsList","_NavigationDetail","_NavigationSchema","_QueryStatistics","_QueryProgress","_NavigationPreview","_NavigationMeta","_NavigationView"],"sources":["index.ts"],"sourcesContent":["export {HistoryHeader} from './HistoryHeader';\nexport {HistoryLayout} from './HistoryLayout';\nexport {HistoryComparisonActions} from './HistoryComparisonActions';\nexport type {HistoryComparisonActionsProps} from './HistoryComparisonActions';\nexport {NavigationHeader} from './NavigationHeader';\nexport type {NavigationHeaderProps} from './NavigationHeader';\nexport type {HistoryLayoutProps} from './HistoryLayout';\nexport {RowsList} from './RowsList';\nexport type {RowsListProps} from './RowsList';\nexport {QueriesList} from './QueriesList';\nexport type {QueriesListProps} from './QueriesList';\nexport {HistoryRow} from './HistoryRow';\nexport {HistorySearchRow} from './HistorySearchRow';\nexport {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\nexport {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\nexport * from './ChartEditor';\nexport * from './Attachments';\nexport {TutorialRow} from './TutorialRow';\nexport type {TutorialRowProps} from './TutorialRow';\nexport {TutorialSearchRow} from './TutorialSearchRow';\nexport type {TutorialSearchRowProps} from './TutorialSearchRow';\nexport {ClustersList} from './ClustersList';\nexport type {ClustersListProps} from './ClustersList';\nexport {NavigationItemsList} from './NavigationItemsList';\nexport type {NavigationItemsListProps} from './NavigationItemsList';\nexport {NavigationDetail} from './NavigationDetail';\nexport type {NavigationDetailProps} from './NavigationDetail';\nexport {NavigationSchema, buildSchemaColumns, filterSchema} from './NavigationSchema';\nexport type {NavigationSchemaProps, NavigationSchemaViewConfig} from './NavigationSchema';\nexport {QueryStatistics} from './QueryStatistics';\nexport {QueryProgress} from './QueryProgress';\nexport type {QueryProgressProps, QueryProgressView} from './QueryProgress';\nexport type {\n QueryStatisticsColumn,\n QueryStatisticsColumnConfig,\n QueryStatisticsExtraColumn,\n QueryStatisticsExtraColumnContext,\n QueryStatisticsFormatValueContext,\n QueryStatisticsGroup,\n QueryStatisticsItem,\n QueryStatisticsMetric,\n QueryStatisticsProps,\n QueryStatisticsValues,\n} from './QueryStatistics';\nexport {NavigationPreview, buildPreviewColumns, filterPreviewRows} from './NavigationPreview';\nexport type {NavigationPreviewProps, NavigationPreviewViewConfig} from './NavigationPreview';\nexport {NavigationMeta, buildMetaGroups} from './NavigationMeta';\nexport type {NavigationMetaProps, NavigationMetaViewConfig} from './NavigationMeta';\nexport {NavigationView, buildViewColumns} from './NavigationView';\nexport type {NavigationViewProps, NavigationViewViewConfig} from './NavigationView';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA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AAAxB,OAAA;AAEA,IAAAyB,kBAAA,GAAAzB,OAAA;AAEA,IAAA0B,aAAA,GAAA1B,OAAA;AAEA,IAAA2B,oBAAA,GAAA3B,OAAA;AAEA,IAAA4B,iBAAA,GAAA5B,OAAA;AAEA,IAAA6B,iBAAA,GAAA7B,OAAA;AAEA,IAAA8B,gBAAA,GAAA9B,OAAA;AACA,IAAA+B,cAAA,GAAA/B,OAAA;AAcA,IAAAgC,kBAAA,GAAAhC,OAAA;AAEA,IAAAiC,eAAA,GAAAjC,OAAA;AAEA,IAAAkC,eAAA,GAAAlC,OAAA","ignoreList":[]}
@@ -0,0 +1,87 @@
1
+ import type React from 'react';
2
+ export type QueryGraphNodeKind = 'operation' | 'input' | 'output';
3
+ export type QueryGraphOperationType = 'read' | 'map' | 'reduce' | 'map-reduce' | 'merge' | 'sort' | 'erase' | 'commit' | 'operation';
4
+ export type QueryGraphNodeStatus = 'not-started' | 'waiting' | 'running' | 'completed' | 'failed' | 'aborted';
5
+ export type QueryGraphJobCounts = {
6
+ total?: number;
7
+ pending?: number;
8
+ running?: number;
9
+ completed?: number;
10
+ failed?: number;
11
+ aborted?: number;
12
+ };
13
+ export type QueryGraphProgress = QueryGraphJobCounts & {
14
+ /** A value between 0 and 1. Takes precedence over completed / total. */
15
+ fraction?: number;
16
+ };
17
+ export type QueryGraphStage = {
18
+ name: string;
19
+ duration: number;
20
+ };
21
+ export type QueryGraphDetailValue = string | number | boolean | null | QueryGraphDetailValue[];
22
+ export type QueryGraphDetail = {
23
+ name: string;
24
+ value?: QueryGraphDetailValue;
25
+ children?: QueryGraphDetail[];
26
+ };
27
+ export type QueryGraphSchemaColumn = {
28
+ name: string;
29
+ type: string;
30
+ };
31
+ export type QueryGraphSchema = {
32
+ name: string;
33
+ columns: QueryGraphSchemaColumn[];
34
+ };
35
+ export type QueryGraphNodePopup = {
36
+ stages?: QueryGraphStage[];
37
+ details?: QueryGraphDetail[];
38
+ jobs?: QueryGraphJobCounts;
39
+ inputs?: QueryGraphSchema[];
40
+ outputs?: QueryGraphSchema[];
41
+ };
42
+ export type QueryGraphNode = {
43
+ id: string;
44
+ kind: QueryGraphNodeKind;
45
+ name: string;
46
+ label?: string;
47
+ operationType?: QueryGraphOperationType;
48
+ /**
49
+ * Overrides the built-in operation icon. Canvas rendering supports static SVG React markup.
50
+ * Non-SVG content falls back to the icon selected by `operationType`.
51
+ */
52
+ icon?: React.ReactNode;
53
+ status?: QueryGraphNodeStatus;
54
+ progress?: QueryGraphProgress;
55
+ popup?: QueryGraphNodePopup;
56
+ };
57
+ export type QueryGraphEdge = {
58
+ id: string;
59
+ source: string;
60
+ target: string;
61
+ };
62
+ export type QueryGraphRenderPopupContext = {
63
+ node: QueryGraphNode;
64
+ defaultContent: React.ReactNode;
65
+ };
66
+ export type QueryGraphProps = {
67
+ nodes: QueryGraphNode[];
68
+ edges: QueryGraphEdge[];
69
+ loading?: boolean;
70
+ errorContent?: React.ReactNode;
71
+ className?: string;
72
+ autoCenter?: boolean;
73
+ /** Pauses rendering while preserving the camera state. */
74
+ active?: boolean;
75
+ largeGraphThreshold?: number | false;
76
+ renderNodePopup?: (context: QueryGraphRenderPopupContext) => React.ReactNode;
77
+ onNodeClick?: (node: QueryGraphNode, event: MouseEvent) => void;
78
+ onError?: (error: Error) => void;
79
+ };
80
+ export type QueryProgressView = 'graph' | 'timeline';
81
+ export type QueryProgressProps = {
82
+ graphProps: QueryGraphProps;
83
+ view?: QueryProgressView;
84
+ defaultView?: QueryProgressView;
85
+ onViewChange?: (view: QueryProgressView) => void;
86
+ className?: string;
87
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ // #sourceMappingURL=queryGraph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["queryGraph.ts"],"sourcesContent":["import type React from 'react';\n\nexport type QueryGraphNodeKind = 'operation' | 'input' | 'output';\nexport type QueryGraphOperationType =\n 'read' | 'map' | 'reduce' | 'map-reduce' | 'merge' | 'sort' | 'erase' | 'commit' | 'operation';\nexport type QueryGraphNodeStatus =\n 'not-started' | 'waiting' | 'running' | 'completed' | 'failed' | 'aborted';\n\nexport type QueryGraphJobCounts = {\n total?: number;\n pending?: number;\n running?: number;\n completed?: number;\n failed?: number;\n aborted?: number;\n};\n\nexport type QueryGraphProgress = QueryGraphJobCounts & {\n /** A value between 0 and 1. Takes precedence over completed / total. */\n fraction?: number;\n};\n\nexport type QueryGraphStage = {name: string; duration: number};\nexport type QueryGraphDetailValue = string | number | boolean | null | QueryGraphDetailValue[];\nexport type QueryGraphDetail = {\n name: string;\n value?: QueryGraphDetailValue;\n children?: QueryGraphDetail[];\n};\nexport type QueryGraphSchemaColumn = {name: string; type: string};\nexport type QueryGraphSchema = {\n name: string;\n columns: QueryGraphSchemaColumn[];\n};\n\nexport type QueryGraphNodePopup = {\n stages?: QueryGraphStage[];\n details?: QueryGraphDetail[];\n jobs?: QueryGraphJobCounts;\n inputs?: QueryGraphSchema[];\n outputs?: QueryGraphSchema[];\n};\n\nexport type QueryGraphNode = {\n id: string;\n kind: QueryGraphNodeKind;\n name: string;\n label?: string;\n operationType?: QueryGraphOperationType;\n /**\n * Overrides the built-in operation icon. Canvas rendering supports static SVG React markup.\n * Non-SVG content falls back to the icon selected by `operationType`.\n */\n icon?: React.ReactNode;\n status?: QueryGraphNodeStatus;\n progress?: QueryGraphProgress;\n popup?: QueryGraphNodePopup;\n};\n\nexport type QueryGraphEdge = {id: string; source: string; target: string};\n\nexport type QueryGraphRenderPopupContext = {\n node: QueryGraphNode;\n defaultContent: React.ReactNode;\n};\n\nexport type QueryGraphProps = {\n nodes: QueryGraphNode[];\n edges: QueryGraphEdge[];\n loading?: boolean;\n errorContent?: React.ReactNode;\n className?: string;\n autoCenter?: boolean;\n /** Pauses rendering while preserving the camera state. */\n active?: boolean;\n largeGraphThreshold?: number | false;\n renderNodePopup?: (context: QueryGraphRenderPopupContext) => React.ReactNode;\n onNodeClick?: (node: QueryGraphNode, event: MouseEvent) => void;\n onError?: (error: Error) => void;\n};\n\nexport type QueryProgressView = 'graph' | 'timeline';\nexport type QueryProgressProps = {\n graphProps: QueryGraphProps;\n view?: QueryProgressView;\n defaultView?: QueryProgressView;\n onViewChange?: (view: QueryProgressView) => void;\n className?: string;\n};\n"],"mappings":"","ignoreList":[]}