@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
@@ -1,6 +1,6 @@
1
- declare const _default: ((key: "field_name" | "tab_result" | "tab_schema" | "field_type" | "context_rows-info", params?: import("@gravity-ui/i18n").Params) => string) & {
1
+ declare const _default: ((key: "field_name" | "field_type" | "tab_result" | "tab_schema" | "context_rows-info", params?: import("@gravity-ui/i18n").Params) => string) & {
2
2
  keysetData: {
3
- "qp:query-results": Record<"field_name" | "tab_result" | "tab_schema" | "field_type" | "context_rows-info", import("@gravity-ui/i18n").KeyData>;
3
+ "qp:query-results": Record<"field_name" | "field_type" | "tab_result" | "tab_schema" | "context_rows-info", import("@gravity-ui/i18n").KeyData>;
4
4
  };
5
5
  };
6
6
  export default _default;
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.QueryResultsSchema = QueryResultsSchema;
7
7
  require("core-js/modules/es.function.name.js");
8
8
  var _react = _interopRequireWildcard(require("react"));
9
- var _components = require("../../../components");
9
+ var _DataTable = require("../../../components/DataTable");
10
+ var _QueryResultsTable = require("../../../components/QueryResultsTable");
10
11
  var _i18n = _interopRequireDefault(require("../i18n"));
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -29,12 +30,12 @@ function QueryResultsSchema(_ref) {
29
30
  render: function render(_ref3) {
30
31
  var row = _ref3.row;
31
32
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("code", {
32
- children: (0, _components.formatQueryResultType)(row.type)
33
+ children: (0, _QueryResultsTable.formatQueryResultType)(row.type)
33
34
  });
34
35
  }
35
36
  }];
36
37
  }, []);
37
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DataTable, {
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DataTable.DataTable, {
38
39
  columns: tableColumns,
39
40
  data: columns,
40
41
  loading: loading,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_components","_i18n","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","QueryResultsSchema","_ref","columns","loading","tableColumns","useMemo","name","header","i18n","render","_ref2","_row$header","row","_ref3","_jsx","children","formatQueryResultType","type","DataTable","data","loaded","settings","displayIndices","sortable","stripedRows"],"sources":["QueryResultsSchema.tsx"],"sourcesContent":["import React, {useMemo} from 'react';\nimport type {Column} from '@gravity-ui/react-data-table';\nimport {DataTable, formatQueryResultType} from '../../../components';\nimport type {QueryResultColumn} from '../../../types/queryResults';\nimport i18n from '../i18n';\n\nexport type QueryResultsSchemaProps<TRow extends Record<string, unknown>> = {\n columns: Array<QueryResultColumn<TRow>>;\n loading?: boolean;\n};\n\nexport function QueryResultsSchema<TRow extends Record<string, unknown>>({\n columns,\n loading,\n}: QueryResultsSchemaProps<TRow>) {\n const tableColumns = useMemo<Array<Column<QueryResultColumn<TRow>>>>(\n () => [\n {\n name: 'name',\n header: i18n('field_name'),\n render: ({row}) => row.header ?? row.name,\n },\n {\n name: 'type',\n header: i18n('field_type'),\n render: ({row}) => <code>{formatQueryResultType(row.type)}</code>,\n },\n ],\n [],\n );\n\n return (\n <DataTable<QueryResultColumn<TRow>>\n columns={tableColumns}\n data={columns}\n loading={loading}\n loaded={!loading}\n settings={{displayIndices: false, sortable: false, stripedRows: true}}\n />\n );\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA2B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAN,wBAAAM,C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AAA;QAAA,IAAAC,WAAA;QAAA,IAAIC,GAAG,GAAAF,KAAA,CAAHE,GAAG;QAAA,QAAAD,WAAA,GAAMC,GAAG,CAACL,MAAM,cAAAI,WAAA,cAAAA,WAAA,GAAIC,GAAG,CAACN,IAAI;MAAA;IAC7C,CAAC,EACD;MACIA,IAAI,EAAE,MAAM;MACZC,MAAM,EAAE,IAAAC,aAAI,EAAC,YAAY,CAAC;MAC1BC,MAAM,EAAE,SAARA,MAAMA,CAAAI,KAAA;QAAA,IAAID,GAAG,GAAAC,KAAA,CAAHD,GAAG;QAAA,oBAAM,IAAAE,eAAA;UAAAC,QAAA,EAAO,IAAAC,iCAAqB,EAACJ,GAAG,CAACK,IAAI;QAAC,CAAO,CAAC;MAAA;IACrE,CAAC,CACJ;EAAA,GACD,EACJ,CAAC;EAED,oBACI,IAAAH,eAAA,EAACI,qBAAS;IACNhB,OAAO,EAAEE,YAAa;IACtBe,IAAI,EAAEjB,OAAQ;IACdC,OAAO,EAAEA,OAAQ;IACjBiB,MAAM,EAAE,CAACjB,OAAQ;IACjBkB,QAAQ,EAAE;MAACC,cAAc,EAAE,KAAK;MAAEC,QAAQ,EAAE,KAAK;MAAEC,WAAW,EAAE;IAAI;EAAE,CACzE,CAAC;AAEV","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_DataTable","_QueryResultsTable","_i18n","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","QueryResultsSchema","_ref","columns","loading","tableColumns","useMemo","name","header","i18n","render","_ref2","_row$header","row","_ref3","_jsx","children","formatQueryResultType","type","DataTable","data","loaded","settings","displayIndices","sortable","stripedRows"],"sources":["QueryResultsSchema.tsx"],"sourcesContent":["import React, {useMemo} from 'react';\nimport type {Column} from '@gravity-ui/react-data-table';\nimport {DataTable} from '../../../components/DataTable';\nimport {formatQueryResultType} from '../../../components/QueryResultsTable';\nimport type {QueryResultColumn} from '../../../types/queryResults';\nimport i18n from '../i18n';\n\nexport type QueryResultsSchemaProps<TRow extends Record<string, unknown>> = {\n columns: Array<QueryResultColumn<TRow>>;\n loading?: boolean;\n};\n\nexport function QueryResultsSchema<TRow extends Record<string, unknown>>({\n columns,\n loading,\n}: QueryResultsSchemaProps<TRow>) {\n const tableColumns = useMemo<Array<Column<QueryResultColumn<TRow>>>>(\n () => [\n {\n name: 'name',\n header: i18n('field_name'),\n render: ({row}) => row.header ?? row.name,\n },\n {\n name: 'type',\n header: i18n('field_type'),\n render: ({row}) => <code>{formatQueryResultType(row.type)}</code>,\n },\n ],\n [],\n );\n\n return (\n <DataTable<QueryResultColumn<TRow>>\n columns={tableColumns}\n data={columns}\n loading={loading}\n loaded={!loading}\n settings={{displayIndices: false, sortable: false, stripedRows: true}}\n />\n );\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAA2B,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAO,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAA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G;QAAA,oBAAM,IAAAE,eAAA;UAAAC,QAAA,EAAO,IAAAC,wCAAqB,EAACJ,GAAG,CAACK,IAAI;QAAC,CAAO,CAAC;MAAA;IACrE,CAAC,CACJ;EAAA,GACD,EACJ,CAAC;EAED,oBACI,IAAAH,eAAA,EAACI,oBAAS;IACNhB,OAAO,EAAEE,YAAa;IACtBe,IAAI,EAAEjB,OAAQ;IACdC,OAAO,EAAEA,OAAQ;IACjBiB,MAAM,EAAE,CAACjB,OAAQ;IACjBkB,QAAQ,EAAE;MAACC,cAAc,EAAE,KAAK;MAAEC,QAAQ,EAAE,KAAK;MAAEC,WAAW,EAAE;IAAI;EAAE,CACzE,CAAC;AAEV","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { QueryListComparisonConfig, QueryListEditingConfig, QueryListFilterConfig, QueryListItem, QueryListRowAction, QueryListRowRenderData, QueryListSearchConfig, QueryListVisibleFieldsConfig } from '../../types/queryList';
3
- import { SavedQuery } from '../../types/savedQueries';
2
+ import type { QueryListComparisonConfig, QueryListEditingConfig, QueryListFilterConfig, QueryListItem, QueryListRowAction, QueryListRowRenderData, QueryListSearchConfig, QueryListVisibleFieldsConfig } from '../../types/queryList';
3
+ import type { SavedQuery } from '../../types/savedQueries';
4
4
  import './SavedQueries.scss';
5
5
  export type SavedQueriesProps<T extends SavedQuery = SavedQuery> = {
6
6
  className?: string;
@@ -13,7 +13,7 @@ require("core-js/modules/es.regexp.exec.js");
13
13
  require("core-js/modules/es.string.search.js");
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
16
- var _modules = require("../../modules");
16
+ var _QueriesList = require("../../modules/QueriesList");
17
17
  var _i18n = _interopRequireDefault(require("./i18n"));
18
18
  var _SavedQueryRowContent = require("./SavedQueryRowContent");
19
19
  require("./SavedQueries.css");
@@ -35,7 +35,7 @@ var SavedQueries = exports.SavedQueries = function SavedQueries(_ref) {
35
35
  getRowActions = _ref.getRowActions,
36
36
  onListItemClick = _ref.onListItemClick,
37
37
  className = _ref.className;
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.QueriesList, {
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueriesList.QueriesList, {
39
39
  className: block(null, className),
40
40
  title: title || (0, _i18n.default)('title_saved'),
41
41
  logo: logo,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_bemCnLite","_modules","_i18n","_SavedQueryRowContent","_jsxRuntime","e","__esModule","default","block","cn","SavedQueries","exports","_ref","title","logo","search","filter","items","selectedRowId","editing","comparison","visibleFields","renderAuthor","renderRowItem","getRowActions","onListItemClick","className","_jsx","QueriesList","i18n","renderRow","data","SavedQueryRowContent","_objectSpread"],"sources":["SavedQueries.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {QueriesList} from '../../modules';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListFilterConfig,\n QueryListItem,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListSearchConfig,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\nimport i18n from './i18n';\nimport {SavedQueryRowContent} from './SavedQueryRowContent';\nimport './SavedQueries.scss';\n\nexport type SavedQueriesProps<T extends SavedQuery = SavedQuery> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n renderAuthor?: (item: T) => React.ReactNode;\n renderRowItem?: (data: QueryListRowRenderData<T>) => React.ReactNode;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-saved-queries');\n\nexport const SavedQueries = <T extends SavedQuery>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n editing,\n comparison,\n visibleFields,\n renderAuthor,\n renderRowItem,\n getRowActions,\n onListItemClick,\n className,\n}: SavedQueriesProps<T>) => {\n return (\n <QueriesList\n className={block(null, className)}\n title={title || i18n('title_saved')}\n logo={logo}\n search={search}\n filter={filter}\n items={items}\n selectedRowId={selectedRowId}\n visibleFields={visibleFields}\n editing={editing}\n comparison={comparison}\n getRowActions={getRowActions}\n renderRow={(data) =>\n renderRowItem ? (\n renderRowItem(data)\n ) : (\n <SavedQueryRowContent {...data} renderAuthor={renderAuthor} />\n )\n }\n onListItemClick={onListItemClick}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAYA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AACAA,OAAA;AAA6B,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAmB7B,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,kBAAkB,CAAC;AAE7B,IAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,SAAfA,YAAYA,CAAAE,IAAA,EAeG;EAAA,IAdxBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,MAAM,GAAAH,IAAA,CAANG,MAAM;IACNC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACPC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,aAAa,GAAAT,IAAA,CAAbS,aAAa;IACbC,YAAY,GAAAV,IAAA,CAAZU,YAAY;IACZC,aAAa,GAAAX,IAAA,CAAbW,aAAa;IACbC,aAAa,GAAAZ,IAAA,CAAbY,aAAa;IACbC,eAAe,GAAAb,IAAA,CAAfa,eAAe;IACfC,SAAS,GAAAd,IAAA,CAATc,SAAS;EAET,oBACI,IAAAC,eAAA,EAACC,oBAAW;IACRF,SAAS,EAAElB,KAAK,CAAC,IAAI,EAAEkB,SAAS,CAAE;IAClCb,KAAK,EAAEA,KAAK,IAAI,IAAAgB,aAAI,EAAC,aAAa,CAAE;IACpCf,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfC,MAAM,EAAEA,MAAO;IACfC,KAAK,EAAEA,KAAM;IACbC,aAAa,EAAEA,aAAc;IAC7BG,aAAa,EAAEA,aAAc;IAC7BF,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBI,aAAa,EAAEA,aAAc;IAC7BM,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;MAAA,OACZR,aAAa,GACTA,aAAa,CAACQ,IAAI,CAAC,gBAEnB,IAAAJ,eAAA,EAACK,0CAAoB,MAAAC,sBAAA,MAAAA,sBAAA,MAAKF,IAAI;QAAET,YAAY,EAAEA;MAAa,EAAE,CAChE;IAAA,CACJ;IACDG,eAAe,EAAEA;EAAgB,CACpC,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_bemCnLite","_QueriesList","_i18n","_SavedQueryRowContent","_jsxRuntime","e","__esModule","default","block","cn","SavedQueries","exports","_ref","title","logo","search","filter","items","selectedRowId","editing","comparison","visibleFields","renderAuthor","renderRowItem","getRowActions","onListItemClick","className","_jsx","QueriesList","i18n","renderRow","data","SavedQueryRowContent","_objectSpread"],"sources":["SavedQueries.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {QueriesList} from '../../modules/QueriesList';\nimport type {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListFilterConfig,\n QueryListItem,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListSearchConfig,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport type {SavedQuery} from '../../types/savedQueries';\nimport i18n from './i18n';\nimport {SavedQueryRowContent} from './SavedQueryRowContent';\nimport './SavedQueries.scss';\n\nexport type SavedQueriesProps<T extends SavedQuery = SavedQuery> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n renderAuthor?: (item: T) => React.ReactNode;\n renderRowItem?: (data: QueryListRowRenderData<T>) => React.ReactNode;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-saved-queries');\n\nexport const SavedQueries = <T extends SavedQuery>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n editing,\n comparison,\n visibleFields,\n renderAuthor,\n renderRowItem,\n getRowActions,\n onListItemClick,\n className,\n}: SavedQueriesProps<T>) => {\n return (\n <QueriesList\n className={block(null, className)}\n title={title || i18n('title_saved')}\n logo={logo}\n search={search}\n filter={filter}\n items={items}\n selectedRowId={selectedRowId}\n visibleFields={visibleFields}\n editing={editing}\n comparison={comparison}\n getRowActions={getRowActions}\n renderRow={(data) =>\n renderRowItem ? (\n renderRowItem(data)\n ) : (\n <SavedQueryRowContent {...data} renderAuthor={renderAuthor} />\n )\n }\n onListItemClick={onListItemClick}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,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AAK,EAAEA,KAAM;IACbC,aAAa,EAAEA,aAAc;IAC7BG,aAAa,EAAEA,aAAc;IAC7BF,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBI,aAAa,EAAEA,aAAc;IAC7BM,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;MAAA,OACZR,aAAa,GACTA,aAAa,CAACQ,IAAI,CAAC,gBAEnB,IAAAJ,eAAA,EAACK,0CAAoB,MAAAC,sBAAA,MAAAA,sBAAA,MAAKF,IAAI;QAAET,YAAY,EAAEA;MAAa,EAAE,CAChE;IAAA,CACJ;IACDG,eAAe,EAAEA;EAAgB,CACpC,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
  type Props<T extends SavedQuery> = QueryListRowRenderData<T> & {
5
5
  renderAuthor?: (item: T) => React.ReactNode;
6
6
  };
@@ -7,8 +7,9 @@ exports.SavedQueryRowContent = void 0;
7
7
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _components = require("../../components");
11
- var _modules = require("../../modules");
10
+ var _HistoryGroupHeader = require("../../components/HistoryGroupHeader");
11
+ var _SavedQueryRow = require("../../modules/SavedQueryRow");
12
+ var _SavedQuerySearchRow = require("../../modules/SavedQuerySearchRow");
12
13
  var _jsxRuntime = require("react/jsx-runtime");
13
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
15
  var _excluded = ["item", "variant", "renderAuthor"];
@@ -18,14 +19,14 @@ var SavedQueryRowContent = exports.SavedQueryRowContent = function SavedQueryRow
18
19
  renderAuthor = _ref.renderAuthor,
19
20
  data = (0, _objectWithoutProperties2.default)(_ref, _excluded);
20
21
  if ('header' in item) {
21
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.HistoryGroupHeader, {
22
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HistoryGroupHeader.HistoryGroupHeader, {
22
23
  title: item.header
23
24
  });
24
25
  }
25
- return variant === 'search' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.SavedQuerySearchRow, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
26
+ return variant === 'search' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SavedQuerySearchRow.SavedQuerySearchRow, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
26
27
  item: item,
27
28
  renderAuthor: renderAuthor
28
- })) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.SavedQueryRow, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
29
+ })) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_SavedQueryRow.SavedQueryRow, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
29
30
  item: item,
30
31
  renderAuthor: renderAuthor
31
32
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_components","_modules","_jsxRuntime","e","__esModule","default","SavedQueryRowContent","exports","_ref","item","variant","renderAuthor","data","_objectWithoutProperties","_excluded","_jsx","HistoryGroupHeader","title","header","SavedQuerySearchRow","_objectSpread","SavedQueryRow"],"sources":["SavedQueryRowContent.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryGroupHeader} from '../../components';\nimport {SavedQueryRow, SavedQuerySearchRow} from '../../modules';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\n\ntype Props<T extends SavedQuery> = QueryListRowRenderData<T> & {\n renderAuthor?: (item: T) => React.ReactNode;\n};\n\nexport const SavedQueryRowContent = <T extends SavedQuery>({\n item,\n variant,\n renderAuthor,\n ...data\n}: Props<T>) => {\n if ('header' in item) {\n return <HistoryGroupHeader title={item.header} />;\n }\n\n return variant === 'search' ? (\n <SavedQuerySearchRow {...data} item={item} renderAuthor={renderAuthor} />\n ) : (\n <SavedQueryRow {...data} item={item} renderAuthor={renderAuthor} />\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAAiE,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;;AAQ1D,IAAMG,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG,SAAvBA,oBAAoBA,CAAAE,IAAA,EAKjB;EAAA,IAJZC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACTC,IAAI,OAAAC,iCAAA,EAAAL,IAAA,EAAAM,SAAA;EAEP,IAAI,QAAQ,IAAIL,IAAI,EAAE;IAClB,oBAAO,IAAAM,eAAA,EAACC,8BAAkB;MAACC,KAAK,EAAER,IAAI,CAACS;IAAO,CAAE,CAAC;EACrD;EAEA,OAAOR,OAAO,KAAK,QAAQ,gBACvB,IAAAK,eAAA,EAACI,4BAAmB,MAAAC,sBAAA,MAAAA,sBAAA,MAAKR,IAAI;IAAEH,IAAI,EAAEA,IAAK;IAACE,YAAY,EAAEA;EAAa,EAAE,CAAC,gBAEzE,IAAAI,eAAA,EAACM,sBAAa,MAAAD,sBAAA,MAAAA,sBAAA,MAAKR,IAAI;IAAEH,IAAI,EAAEA,IAAK;IAACE,YAAY,EAAEA;EAAa,EAAE,CACrE;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_HistoryGroupHeader","_SavedQueryRow","_SavedQuerySearchRow","_jsxRuntime","e","__esModule","default","SavedQueryRowContent","exports","_ref","item","variant","renderAuthor","data","_objectWithoutProperties","_excluded","_jsx","HistoryGroupHeader","title","header","SavedQuerySearchRow","_objectSpread","SavedQueryRow"],"sources":["SavedQueryRowContent.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryGroupHeader} from '../../components/HistoryGroupHeader';\nimport {SavedQueryRow} from '../../modules/SavedQueryRow';\nimport {SavedQuerySearchRow} from '../../modules/SavedQuerySearchRow';\nimport type {QueryListRowRenderData} from '../../types/queryList';\nimport type {SavedQuery} from '../../types/savedQueries';\n\ntype Props<T extends SavedQuery> = QueryListRowRenderData<T> & {\n renderAuthor?: (item: T) => React.ReactNode;\n};\n\nexport const SavedQueryRowContent = <T extends SavedQuery>({\n item,\n variant,\n renderAuthor,\n ...data\n}: Props<T>) => {\n if ('header' in item) {\n return <HistoryGroupHeader title={item.header} />;\n }\n\n return variant === 'search' ? (\n <SavedQuerySearchRow {...data} item={item} renderAuthor={renderAuthor} />\n ) : (\n <SavedQueryRow {...data} item={item} renderAuthor={renderAuthor} />\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AAAsE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;;AAQ/D,IAAMG,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG,SAAvBA,oBAAoBA,CAAAE,IAAA,EAKjB;EAAA,IAJZC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACTC,IAAI,OAAAC,iCAAA,EAAAL,IAAA,EAAAM,SAAA;EAEP,IAAI,QAAQ,IAAIL,IAAI,EAAE;IAClB,oBAAO,IAAAM,eAAA,EAACC,sCAAkB;MAACC,KAAK,EAAER,IAAI,CAACS;IAAO,CAAE,CAAC;EACrD;EAEA,OAAOR,OAAO,KAAK,QAAQ,gBACvB,IAAAK,eAAA,EAACI,wCAAmB,MAAAC,sBAAA,MAAAA,sBAAA,MAAKR,IAAI;IAAEH,IAAI,EAAEA,IAAK;IAACE,YAAY,EAAEA;EAAa,EAAE,CAAC,gBAEzE,IAAAI,eAAA,EAACM,4BAAa,MAAAD,sBAAA,MAAAA,sBAAA,MAAKR,IAAI;IAAEH,IAAI,EAAEA,IAAK;IAACE,YAAY,EAAEA;EAAa,EAAE,CACrE;AACL,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryListRowRenderData } from '../../types/queryList';
3
- import { TutorialHistoryRow } from '../../types/tutorial';
2
+ import type { QueryListRowRenderData } from '../../types/queryList';
3
+ import type { TutorialHistoryRow } from '../../types/tutorial';
4
4
  export declare const TutorialRowContent: <T extends TutorialHistoryRow>({ item, variant, }: QueryListRowRenderData<T>) => React.JSX.Element;
@@ -5,21 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.TutorialRowContent = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- var _components = require("../../components");
9
- var _modules = require("../../modules");
8
+ var _HistoryGroupHeader = require("../../components/HistoryGroupHeader");
9
+ var _TutorialRow = require("../../modules/TutorialRow");
10
+ var _TutorialSearchRow = require("../../modules/TutorialSearchRow");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
13
  var TutorialRowContent = exports.TutorialRowContent = function TutorialRowContent(_ref) {
13
14
  var item = _ref.item,
14
15
  variant = _ref.variant;
15
16
  if ('header' in item) {
16
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.HistoryGroupHeader, {
17
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HistoryGroupHeader.HistoryGroupHeader, {
17
18
  title: item.header
18
19
  });
19
20
  }
20
- return variant === 'search' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.TutorialSearchRow, {
21
+ return variant === 'search' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_TutorialSearchRow.TutorialSearchRow, {
21
22
  item: item
22
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.TutorialRow, {
23
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TutorialRow.TutorialRow, {
23
24
  item: item
24
25
  });
25
26
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_components","_modules","_jsxRuntime","e","__esModule","default","TutorialRowContent","exports","_ref","item","variant","_jsx","HistoryGroupHeader","title","header","TutorialSearchRow","TutorialRow"],"sources":["TutorialRowContent.tsx"],"sourcesContent":["import React from 'react';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {HistoryGroupHeader} from '../../components';\nimport {TutorialRow, TutorialSearchRow} from '../../modules';\n\nexport const TutorialRowContent = <T extends TutorialHistoryRow>({\n item,\n variant,\n}: QueryListRowRenderData<T>) => {\n if ('header' in item) {\n return <HistoryGroupHeader title={item.header} />;\n }\n\n return variant === 'search' ? <TutorialSearchRow item={item} /> : <TutorialRow item={item} />;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAA6D,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD,IAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAAE,IAAA,EAGE;EAAA,IAF7BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EAEP,IAAI,QAAQ,IAAID,IAAI,EAAE;IAClB,oBAAO,IAAAE,eAAA,EAACC,8BAAkB;MAACC,KAAK,EAAEJ,IAAI,CAACK;IAAO,CAAE,CAAC;EACrD;EAEA,OAAOJ,OAAO,KAAK,QAAQ,gBAAG,IAAAC,eAAA,EAACI,0BAAiB;IAACN,IAAI,EAAEA;EAAK,CAAE,CAAC,gBAAG,IAAAE,eAAA,EAACK,oBAAW;IAACP,IAAI,EAAEA;EAAK,CAAE,CAAC;AACjG,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_HistoryGroupHeader","_TutorialRow","_TutorialSearchRow","_jsxRuntime","e","__esModule","default","TutorialRowContent","exports","_ref","item","variant","_jsx","HistoryGroupHeader","title","header","TutorialSearchRow","TutorialRow"],"sources":["TutorialRowContent.tsx"],"sourcesContent":["import React from 'react';\nimport type {QueryListRowRenderData} from '../../types/queryList';\nimport type {TutorialHistoryRow} from '../../types/tutorial';\nimport {HistoryGroupHeader} from '../../components/HistoryGroupHeader';\nimport {TutorialRow} from '../../modules/TutorialRow';\nimport {TutorialSearchRow} from '../../modules/TutorialSearchRow';\n\nexport const TutorialRowContent = <T extends TutorialHistoryRow>({\n item,\n variant,\n}: QueryListRowRenderData<T>) => {\n if ('header' in item) {\n return <HistoryGroupHeader title={item.header} />;\n }\n\n return variant === 'search' ? <TutorialSearchRow item={item} /> : <TutorialRow item={item} />;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAAkE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE3D,IAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAAE,IAAA,EAGE;EAAA,IAF7BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EAEP,IAAI,QAAQ,IAAID,IAAI,EAAE;IAClB,oBAAO,IAAAE,eAAA,EAACC,sCAAkB;MAACC,KAAK,EAAEJ,IAAI,CAACK;IAAO,CAAE,CAAC;EACrD;EAEA,OAAOJ,OAAO,KAAK,QAAQ,gBAAG,IAAAC,eAAA,EAACI,oCAAiB;IAACN,IAAI,EAAEA;EAAK,CAAE,CAAC,gBAAG,IAAAE,eAAA,EAACK,wBAAW;IAACP,IAAI,EAAEA;EAAK,CAAE,CAAC;AACjG,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { QueryListFilterConfig, QueryListItem, QueryListSearchConfig } from '../../types/queryList';
3
- import { TutorialHistoryRow } from '../../types/tutorial';
2
+ import type { QueryListFilterConfig, QueryListItem, QueryListSearchConfig } from '../../types/queryList';
3
+ import type { TutorialHistoryRow } from '../../types/tutorial';
4
4
  import './TutorialsHistory.scss';
5
5
  export type TutorialsHistoryProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {
6
6
  className?: string;
@@ -13,7 +13,9 @@ require("core-js/modules/es.regexp.exec.js");
13
13
  require("core-js/modules/es.string.search.js");
14
14
  require("core-js/modules/es.string.trim.js");
15
15
  var _react = _interopRequireDefault(require("react"));
16
- var _modules = require("../../modules");
16
+ var _HistoryHeader = require("../../modules/HistoryHeader");
17
+ var _HistoryLayout = require("../../modules/HistoryLayout");
18
+ var _RowsList = require("../../modules/RowsList");
17
19
  var _i18n = _interopRequireDefault(require("./i18n"));
18
20
  var _getListKey = require("../../helpers/getListKey");
19
21
  var _TutorialRowContent = require("./TutorialRowContent");
@@ -35,11 +37,11 @@ var TutorialsHistory = exports.TutorialsHistory = function TutorialsHistory(_ref
35
37
  var fullSearchAvailable = search.fullSearchAvailable !== false;
36
38
  var showSearchResults = Boolean(fullSearchAvailable && search.fullSearch && ((_search$value = search.value) === null || _search$value === void 0 ? void 0 : _search$value.trim()));
37
39
  var rowVariant = showSearchResults ? 'search' : 'default';
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.HistoryLayout, {
40
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HistoryLayout.HistoryLayout, {
39
41
  className: block(null, className),
40
42
  title: title || (0, _i18n.default)('title_tutorials'),
41
43
  logo: logo,
42
- header: /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.HistoryHeader, {
44
+ header: /*#__PURE__*/(0, _jsxRuntime.jsx)(_HistoryHeader.HistoryHeader, {
43
45
  search: search.value,
44
46
  fullSearch: search.fullSearch,
45
47
  fullSearchAvailable: fullSearchAvailable,
@@ -47,7 +49,7 @@ var TutorialsHistory = exports.TutorialsHistory = function TutorialsHistory(_ref
47
49
  filter: filter,
48
50
  onUpdate: search.onUpdate
49
51
  }),
50
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_modules.RowsList, {
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowsList.RowsList, {
51
53
  items: items,
52
54
  rowVariant: rowVariant,
53
55
  selectedRowId: selectedRowId,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_modules","_i18n","_getListKey","_TutorialRowContent","_bemCnLite","_jsxRuntime","e","__esModule","default","block","cn","TutorialsHistory","exports","_ref","_search$value","title","logo","search","filter","items","selectedRowId","onListItemClick","className","fullSearchAvailable","showSearchResults","Boolean","fullSearch","value","trim","rowVariant","_jsx","HistoryLayout","i18n","header","HistoryHeader","hasClear","onUpdate","children","RowsList","renderRow","data","TutorialRowContent","_objectSpread","showFiltersHint","onItemClick","getListKey"],"sources":["TutorialsHistory.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryHeader, HistoryLayout, RowsList} from '../../modules';\nimport i18n from './i18n';\nimport {QueryListFilterConfig, QueryListItem, QueryListSearchConfig} from '../../types/queryList';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {getListKey} from '../../helpers/getListKey';\nimport {TutorialRowContent} from './TutorialRowContent';\nimport cn from 'bem-cn-lite';\nimport './TutorialsHistory.scss';\n\nexport type TutorialsHistoryProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-tutorials-history');\n\nexport const TutorialsHistory = <T extends TutorialHistoryRow>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n onListItemClick,\n className,\n}: TutorialsHistoryProps<T>) => {\n const fullSearchAvailable = search.fullSearchAvailable !== false;\n const showSearchResults = Boolean(\n fullSearchAvailable && search.fullSearch && search.value?.trim(),\n );\n const rowVariant = showSearchResults ? 'search' : 'default';\n\n return (\n <HistoryLayout\n className={block(null, className)}\n title={title || i18n('title_tutorials')}\n logo={logo}\n header={\n <HistoryHeader\n search={search.value}\n fullSearch={search.fullSearch}\n fullSearchAvailable={fullSearchAvailable}\n hasClear={search.hasClear}\n filter={filter}\n onUpdate={search.onUpdate}\n />\n }\n >\n <RowsList\n key={getListKey(items, rowVariant)}\n items={items}\n rowVariant={rowVariant}\n selectedRowId={selectedRowId}\n renderRow={(data) => <TutorialRowContent {...data} />}\n showFiltersHint={Boolean(filter)}\n onItemClick={onListItemClick}\n />\n </HistoryLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sB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AAS,CAAE;IAClCP,KAAK,EAAEA,KAAK,IAAI,IAAAiB,aAAI,EAAC,iBAAiB,CAAE;IACxChB,IAAI,EAAEA,IAAK;IACXiB,MAAM,eACF,IAAAH,eAAA,EAACI,sBAAa;MACVjB,MAAM,EAAEA,MAAM,CAACU,KAAM;MACrBD,UAAU,EAAET,MAAM,CAACS,UAAW;MAC9BH,mBAAmB,EAAEA,mBAAoB;MACzCY,QAAQ,EAAElB,MAAM,CAACkB,QAAS;MAC1BjB,MAAM,EAAEA,MAAO;MACfkB,QAAQ,EAAEnB,MAAM,CAACmB;IAAS,CAC7B,CACJ;IAAAC,QAAA,eAED,IAAAP,eAAA,EAACQ,iBAAQ;MAELnB,KAAK,EAAEA,KAAM;MACbU,UAAU,EAAEA,UAAW;MACvBT,aAAa,EAAEA,aAAc;MAC7BmB,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;QAAA,oBAAK,IAAAV,eAAA,EAACW,sCAAkB,MAAAC,sBAAA,MAAKF,IAAI,CAAG,CAAC;MAAA,CAAC;MACtDG,eAAe,EAAElB,OAAO,CAACP,MAAM,CAAE;MACjC0B,WAAW,EAAEvB;IAAgB,GANxB,IAAAwB,sBAAU,EAAC1B,KAAK,EAAEU,UAAU,CAOpC;EAAC,CACS,CAAC;AAExB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_HistoryHeader","_HistoryLayout","_RowsList","_i18n","_getListKey","_TutorialRowContent","_bemCnLite","_jsxRuntime","e","__esModule","default","block","cn","TutorialsHistory","exports","_ref","_search$value","title","logo","search","filter","items","selectedRowId","onListItemClick","className","fullSearchAvailable","showSearchResults","Boolean","fullSearch","value","trim","rowVariant","_jsx","HistoryLayout","i18n","header","HistoryHeader","hasClear","onUpdate","children","RowsList","renderRow","data","TutorialRowContent","_objectSpread","showFiltersHint","onItemClick","getListKey"],"sources":["TutorialsHistory.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryHeader} from '../../modules/HistoryHeader';\nimport {HistoryLayout} from '../../modules/HistoryLayout';\nimport {RowsList} from '../../modules/RowsList';\nimport i18n from './i18n';\nimport type {\n QueryListFilterConfig,\n QueryListItem,\n QueryListSearchConfig,\n} from '../../types/queryList';\nimport type {TutorialHistoryRow} from '../../types/tutorial';\nimport {getListKey} from '../../helpers/getListKey';\nimport {TutorialRowContent} from './TutorialRowContent';\nimport cn from 'bem-cn-lite';\nimport './TutorialsHistory.scss';\n\nexport type TutorialsHistoryProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-tutorials-history');\n\nexport const TutorialsHistory = <T extends TutorialHistoryRow>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n onListItemClick,\n className,\n}: TutorialsHistoryProps<T>) => {\n const fullSearchAvailable = search.fullSearchAvailable !== false;\n const showSearchResults = Boolean(\n fullSearchAvailable && search.fullSearch && search.value?.trim(),\n );\n const rowVariant = showSearchResults ? 'search' : 'default';\n\n return (\n <HistoryLayout\n className={block(null, className)}\n title={title || i18n('title_tutorials')}\n logo={logo}\n header={\n <HistoryHeader\n search={search.value}\n fullSearch={search.fullSearch}\n fullSearchAvailable={fullSearchAvailable}\n hasClear={search.hasClear}\n filter={filter}\n onUpdate={search.onUpdate}\n />\n }\n >\n <RowsList\n key={getListKey(items, rowVariant)}\n items={items}\n rowVariant={rowVariant}\n selectedRowId={selectedRowId}\n renderRow={(data) => <TutorialRowContent {...data} />}\n showFiltersHint={Boolean(filter)}\n onItemClick={onListItemClick}\n />\n </HistoryLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,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ClCP,KAAK,EAAEA,KAAK,IAAI,IAAAiB,aAAI,EAAC,iBAAiB,CAAE;IACxChB,IAAI,EAAEA,IAAK;IACXiB,MAAM,eACF,IAAAH,eAAA,EAACI,4BAAa;MACVjB,MAAM,EAAEA,MAAM,CAACU,KAAM;MACrBD,UAAU,EAAET,MAAM,CAACS,UAAW;MAC9BH,mBAAmB,EAAEA,mBAAoB;MACzCY,QAAQ,EAAElB,MAAM,CAACkB,QAAS;MAC1BjB,MAAM,EAAEA,MAAO;MACfkB,QAAQ,EAAEnB,MAAM,CAACmB;IAAS,CAC7B,CACJ;IAAAC,QAAA,eAED,IAAAP,eAAA,EAACQ,kBAAQ;MAELnB,KAAK,EAAEA,KAAM;MACbU,UAAU,EAAEA,UAAW;MACvBT,aAAa,EAAEA,aAAc;MAC7BmB,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;QAAA,oBAAK,IAAAV,eAAA,EAACW,sCAAkB,MAAAC,sBAAA,MAAKF,IAAI,CAAG,CAAC;MAAA,CAAC;MACtDG,eAAe,EAAElB,OAAO,CAACP,MAAM,CAAE;MACjC0B,WAAW,EAAEvB;IAAgB,GANxB,IAAAwB,sBAAU,EAAC1B,KAAK,EAAEU,UAAU,CAOpC;EAAC,CACS,CAAC;AAExB,CAAC","ignoreList":[]}
@@ -50,6 +50,7 @@ export var AttachmentList = function AttachmentList(_ref) {
50
50
  className: className,
51
51
  width: "100%",
52
52
  height: "100%",
53
+ overflow: "auto",
53
54
  children: /*#__PURE__*/_jsx(List, _objectSpread({
54
55
  filterable: false,
55
56
  virtualized: false,
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","Flex","List","AttachmentItem","isInteractiveTarget","jsx","_jsx","AttachmentList","_ref","attachments","onEdit","onDelete","onRevert","wasAddedIds","wasEditedIds","editingIds","renderEditForm","className","isDeleted","onItemClick","listProps","_objectWithoutProperties","_excluded","addedIdsSet","Set","editedIdsSet","editingIdsSet","handleItemClick","item","index","fromKeyboard","event","has","id","target","width","height","children","_objectSpread","filterable","virtualized","items","renderItem","attachment","wasAdded","wasEdited"],"sources":["AttachmentList.tsx"],"sourcesContent":["import React, {ReactNode, useMemo} from 'react';\nimport {Flex, List, ListProps} from '@gravity-ui/uikit';\nimport {AttachmentItem, AttachmentItemProps} from './internal/AttachmentItem/AttachmentItem';\nimport {isInteractiveTarget} from './helpers/isInteractiveTarget';\nimport './AttachmentList.scss';\n\nexport type AttachmentListProps<\n T extends AttachmentItemProps['attachment'] = AttachmentItemProps['attachment'],\n> = Omit<ListProps<T>, 'items' | 'selectedItemIndex' | 'virtualized'> & {\n attachments: AttachmentItemProps['attachment'][];\n className?: string;\n onDelete?: (attachment: AttachmentItemProps['attachment']) => void;\n onEdit?: (attachment: AttachmentItemProps['attachment']) => void;\n onRevert?: (attachment: AttachmentItemProps['attachment']) => void;\n\n renderEditForm?: (attachment: AttachmentItemProps['attachment']) => ReactNode;\n\n wasAddedIds?: string[];\n wasEditedIds?: string[];\n\n editingIds?: string[];\n\n isDeleted?: boolean;\n};\n\nexport const AttachmentList = ({\n attachments,\n onEdit,\n onDelete,\n onRevert,\n wasAddedIds,\n wasEditedIds,\n editingIds,\n renderEditForm,\n className,\n isDeleted,\n onItemClick,\n ...listProps\n}: AttachmentListProps) => {\n const addedIdsSet = useMemo(() => new Set(wasAddedIds), [wasAddedIds]);\n const editedIdsSet = useMemo(() => new Set(wasEditedIds), [wasEditedIds]);\n const editingIdsSet = useMemo(() => new Set(editingIds), [editingIds]);\n\n const handleItemClick: AttachmentListProps['onItemClick'] = (\n item,\n index,\n fromKeyboard,\n event,\n ) => {\n if (editingIdsSet.has(item.id)) return;\n if (isInteractiveTarget(event?.target)) return;\n onItemClick?.(item, index, fromKeyboard, event);\n };\n\n return (\n <Flex className={className} width=\"100%\" height=\"100%\">\n <List<AttachmentListProps['attachments'][number]>\n filterable={false}\n virtualized={false}\n items={attachments}\n onItemClick={handleItemClick}\n renderItem={(attachment) => {\n if (editingIdsSet.has(attachment.id)) {\n return renderEditForm?.(attachment);\n }\n\n return (\n <AttachmentItem\n attachment={attachment}\n wasAdded={addedIdsSet.has(attachment.id)}\n wasEdited={editedIdsSet.has(attachment.id)}\n onEdit={onEdit}\n onRevert={onRevert}\n onDelete={onDelete}\n isDeleted={isDeleted}\n />\n );\n }}\n {...listProps}\n />\n </Flex>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAcC,OAAO,QAAO,OAAO;AAC/C,SAAQC,IAAI,EAAEC,IAAI,QAAkB,mBAAmB;AACvD,SAAQC,cAAc;AACtB,SAAQC,mBAAmB;AAC3B;AAA+B,SAAAC,GAAA,IAAAC,IAAA;AAqB/B,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAaA;EAAA,IAZvBC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IACXC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IACXC,YAAY,GAAAN,IAAA,CAAZM,YAAY;IACZC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;IACdC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,SAAS,GAAAV,IAAA,CAATU,SAAS;IACTC,WAAW,GAAAX,IAAA,CAAXW,WAAW;IACRC,SAAS,GAAAC,wBAAA,CAAAb,IAAA,EAAAc,SAAA;EAEZ,IAAMC,WAAW,GAAGvB,OAAO,CAAC;IAAA,OAAM,IAAIwB,GAAG,CAACX,WAAW,CAAC;EAAA,GAAE,CAACA,WAAW,CAAC,CAAC;EACtE,IAAMY,YAAY,GAAGzB,OAAO,CAAC;IAAA,OAAM,IAAIwB,GAAG,CAACV,YAAY,CAAC;EAAA,GAAE,CAACA,YAAY,CAAC,CAAC;EACzE,IAAMY,aAA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AEA;QAAU,CACxB,CAAC;MAEV;IAAE,GACEE,SAAS,CAChB;EAAC,CACA,CAAC;AAEf,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","Flex","List","AttachmentItem","isInteractiveTarget","jsx","_jsx","AttachmentList","_ref","attachments","onEdit","onDelete","onRevert","wasAddedIds","wasEditedIds","editingIds","renderEditForm","className","isDeleted","onItemClick","listProps","_objectWithoutProperties","_excluded","addedIdsSet","Set","editedIdsSet","editingIdsSet","handleItemClick","item","index","fromKeyboard","event","has","id","target","width","height","overflow","children","_objectSpread","filterable","virtualized","items","renderItem","attachment","wasAdded","wasEdited"],"sources":["AttachmentList.tsx"],"sourcesContent":["import React, {ReactNode, useMemo} from 'react';\nimport {Flex, List, ListProps} from '@gravity-ui/uikit';\nimport {AttachmentItem, AttachmentItemProps} from './internal/AttachmentItem/AttachmentItem';\nimport {isInteractiveTarget} from './helpers/isInteractiveTarget';\nimport './AttachmentList.scss';\n\nexport type AttachmentListProps<\n T extends AttachmentItemProps['attachment'] = AttachmentItemProps['attachment'],\n> = Omit<ListProps<T>, 'items' | 'selectedItemIndex' | 'virtualized'> & {\n attachments: AttachmentItemProps['attachment'][];\n className?: string;\n onDelete?: (attachment: AttachmentItemProps['attachment']) => void;\n onEdit?: (attachment: AttachmentItemProps['attachment']) => void;\n onRevert?: (attachment: AttachmentItemProps['attachment']) => void;\n\n renderEditForm?: (attachment: AttachmentItemProps['attachment']) => ReactNode;\n\n wasAddedIds?: string[];\n wasEditedIds?: string[];\n\n editingIds?: string[];\n\n isDeleted?: boolean;\n};\n\nexport const AttachmentList = ({\n attachments,\n onEdit,\n onDelete,\n onRevert,\n wasAddedIds,\n wasEditedIds,\n editingIds,\n renderEditForm,\n className,\n isDeleted,\n onItemClick,\n ...listProps\n}: AttachmentListProps) => {\n const addedIdsSet = useMemo(() => new Set(wasAddedIds), [wasAddedIds]);\n const editedIdsSet = useMemo(() => new Set(wasEditedIds), [wasEditedIds]);\n const editingIdsSet = useMemo(() => new Set(editingIds), [editingIds]);\n\n const handleItemClick: AttachmentListProps['onItemClick'] = (\n item,\n index,\n fromKeyboard,\n event,\n ) => {\n if (editingIdsSet.has(item.id)) return;\n if (isInteractiveTarget(event?.target)) return;\n onItemClick?.(item, index, fromKeyboard, event);\n };\n\n return (\n <Flex className={className} width=\"100%\" height=\"100%\" overflow=\"auto\">\n <List<AttachmentListProps['attachments'][number]>\n filterable={false}\n virtualized={false}\n items={attachments}\n onItemClick={handleItemClick}\n renderItem={(attachment) => {\n if (editingIdsSet.has(attachment.id)) {\n return renderEditForm?.(attachment);\n }\n\n return (\n <AttachmentItem\n attachment={attachment}\n wasAdded={addedIdsSet.has(attachment.id)}\n wasEdited={editedIdsSet.has(attachment.id)}\n onEdit={onEdit}\n onRevert={onRevert}\n onDelete={onDelete}\n isDeleted={isDeleted}\n />\n );\n }}\n {...listProps}\n />\n </Flex>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAcC,OAAO,QAAO,OAAO;AAC/C,SAAQC,IAAI,EAAEC,IAAI,QAAkB,mBAAmB;AACvD,SAAQC,cAAc;AACtB,SAAQC,mBAAmB;AAC3B;AAA+B,SAAAC,GAAA,IAAAC,IAAA;AAqB/B,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAaA;EAAA,IAZvBC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IACXC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IACXC,YAAY,GAAAN,IAAA,CAAZM,YAAY;IACZC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;IACdC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,SAAS,GAAAV,IAAA,CAATU,SAAS;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AAE;UAClC,OAAOjB,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAG4B,UAAU,CAAC;QACvC;QAEA,oBACItC,IAAA,CAACH,cAAc;UACXyC,UAAU,EAAEA,UAAW;UACvBC,QAAQ,EAAEtB,WAAW,CAACS,GAAG,CAACY,UAAU,CAACX,EAAE,CAAE;UACzCa,SAAS,EAAErB,YAAY,CAACO,GAAG,CAACY,UAAU,CAACX,EAAE,CAAE;UAC3CvB,MAAM,EAAEA,MAAO;UACfE,QAAQ,EAAEA,QAAS;UACnBD,QAAQ,EAAEA,QAAS;UACnBO,SAAS,EAAEA;QAAU,CACxB,CAAC;MAEV;IAAE,GACEE,SAAS,CAChB;EAAC,CACA,CAAC;AAEf,CAAC","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ .qp-query-graph {
2
+ position: relative;
3
+ min-height: 360px;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ background: var(--g-color-base-background);
7
+ }
8
+ .qp-query-graph__canvas {
9
+ width: 100%;
10
+ height: 100%;
11
+ min-height: 360px;
12
+ }
13
+ .qp-query-graph__toolbox {
14
+ position: absolute;
15
+ z-index: 4;
16
+ top: var(--g-spacing-4);
17
+ left: var(--g-spacing-4);
18
+ display: flex;
19
+ width: 28px;
20
+ flex-direction: column;
21
+ }
22
+ .qp-query-graph__popup {
23
+ position: absolute;
24
+ z-index: 5;
25
+ width: min(440px, 100% - var(--g-spacing-8));
26
+ max-height: calc(100% - var(--g-spacing-8));
27
+ overflow: auto;
28
+ padding: var(--g-spacing-4);
29
+ border: 1px solid var(--g-color-line-generic);
30
+ border-radius: var(--g-border-radius-l);
31
+ box-shadow: 0 4px 24px var(--g-color-sfx-shadow);
32
+ background: var(--g-color-base-float);
33
+ }
34
+ .qp-query-graph__popup-content, .qp-query-graph__jobs, .qp-query-graph__schemas, .qp-query-graph__details {
35
+ display: flex;
36
+ flex-direction: column;
37
+ gap: var(--g-spacing-3);
38
+ }
39
+ .qp-query-graph__popup-title {
40
+ display: flex;
41
+ align-items: center;
42
+ gap: var(--g-spacing-2);
43
+ }
44
+ .qp-query-graph__popup-title > div {
45
+ display: flex;
46
+ min-width: 0;
47
+ flex-direction: column;
48
+ }
49
+ .qp-query-graph__detail-row {
50
+ display: flex;
51
+ justify-content: space-between;
52
+ gap: var(--g-spacing-3);
53
+ }
54
+ .qp-query-graph__state {
55
+ height: 100%;
56
+ min-height: 360px;
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ padding: var(--g-spacing-6);
61
+ text-align: center;
62
+ }
63
+ .qp-query-graph__large-graph {
64
+ display: flex;
65
+ max-width: 480px;
66
+ flex-direction: column;
67
+ align-items: center;
68
+ gap: var(--g-spacing-4);
69
+ }
70
+ /*# sourceMappingURL=QueryGraph.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["QueryGraph.scss"],"names":[],"mappings":"AAAA;EACI,kBAAA;EACA,iBAAA;EACA,YAAA;EACA,gBAAA;EACA,0CAAA;AACJ;AACI;EACI,WAAA;EACA,YAAA;EACA,iBAAA;AACR;AAEI;EACI,kBAAA;EACA,UAAA;EACA,uBAAA;EACA,wBAAA;EACA,aAAA;EACA,WAAA;EACA,sBAAA;AAAR;AAGI;EACI,kBAAA;EACA,UAAA;EACA,4CAAA;EACA,2CAAA;EACA,cAAA;EACA,2BAAA;EACA,6CAAA;EACA,uCAAA;EACA,gDAAA;EACA,qCAAA;AADR;AAII;EAII,aAAA;EACA,sBAAA;EACA,uBAAA;AALR;AAQI;EACI,aAAA;EACA,mBAAA;EACA,uBAAA;AANR;AAQQ;EACI,aAAA;EACA,YAAA;EACA,sBAAA;AANZ;AAUI;EACI,aAAA;EACA,8BAAA;EACA,uBAAA;AARR;AAWI;EACI,YAAA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,2BAAA;EACA,kBAAA;AATR;AAYI;EACI,aAAA;EACA,gBAAA;EACA,sBAAA;EACA,mBAAA;EACA,uBAAA;AAVR","file":"QueryGraph.css","sourcesContent":[".qp-query-graph {\n position: relative;\n min-height: 360px;\n height: 100%;\n overflow: hidden;\n background: var(--g-color-base-background);\n\n &__canvas {\n width: 100%;\n height: 100%;\n min-height: 360px;\n }\n\n &__toolbox {\n position: absolute;\n z-index: 4;\n top: var(--g-spacing-4);\n left: var(--g-spacing-4);\n display: flex;\n width: 28px;\n flex-direction: column;\n }\n\n &__popup {\n position: absolute;\n z-index: 5;\n width: min(440px, calc(100% - var(--g-spacing-8)));\n max-height: calc(100% - var(--g-spacing-8));\n overflow: auto;\n padding: var(--g-spacing-4);\n border: 1px solid var(--g-color-line-generic);\n border-radius: var(--g-border-radius-l);\n box-shadow: 0 4px 24px var(--g-color-sfx-shadow);\n background: var(--g-color-base-float);\n }\n\n &__popup-content,\n &__jobs,\n &__schemas,\n &__details {\n display: flex;\n flex-direction: column;\n gap: var(--g-spacing-3);\n }\n\n &__popup-title {\n display: flex;\n align-items: center;\n gap: var(--g-spacing-2);\n\n > div {\n display: flex;\n min-width: 0;\n flex-direction: column;\n }\n }\n\n &__detail-row {\n display: flex;\n justify-content: space-between;\n gap: var(--g-spacing-3);\n }\n\n &__state {\n height: 100%;\n min-height: 360px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--g-spacing-6);\n text-align: center;\n }\n\n &__large-graph {\n display: flex;\n max-width: 480px;\n flex-direction: column;\n align-items: center;\n gap: var(--g-spacing-4);\n }\n}\n"],"sourceRoot":""}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { QueryGraphProps } from '../../types/queryGraph';
3
+ import './QueryGraph.scss';
4
+ export declare function QueryGraph({ nodes, edges, loading, errorContent, className, autoCenter, active, largeGraphThreshold, renderNodePopup, onNodeClick, onError, }: QueryGraphProps): React.JSX.Element;