@gravity-ui/querieskit 1.1.0 → 1.2.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 (367) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/cjs/components/EditableRowTitle/EditableRowTitle.d.ts +7 -0
  3. package/build/cjs/{modules/HistoryRow/HistoryRowTitle.js → components/EditableRowTitle/EditableRowTitle.js} +4 -6
  4. package/build/cjs/components/EditableRowTitle/EditableRowTitle.js.map +1 -0
  5. package/build/cjs/components/EditableRowTitle/index.d.ts +2 -0
  6. package/build/cjs/components/EditableRowTitle/index.js +13 -0
  7. package/build/cjs/components/EditableRowTitle/index.js.map +1 -0
  8. package/build/cjs/components/HistoryFilter/HistoryFilter.d.ts +2 -2
  9. package/build/cjs/components/HistoryFilter/HistoryFilter.js.map +1 -1
  10. package/build/cjs/components/LazyList/LazyList.css +0 -2
  11. package/build/cjs/components/LazyList/LazyList.css.map +1 -1
  12. package/build/cjs/components/RowActionsMenu/RowActionsMenu.d.ts +7 -0
  13. package/build/cjs/{modules/HistoryRow/HistoryRowMenu.js → components/RowActionsMenu/RowActionsMenu.js} +9 -6
  14. package/build/cjs/components/RowActionsMenu/RowActionsMenu.js.map +1 -0
  15. package/build/cjs/components/RowActionsMenu/index.d.ts +2 -0
  16. package/build/cjs/components/RowActionsMenu/index.js +13 -0
  17. package/build/cjs/components/RowActionsMenu/index.js.map +1 -0
  18. package/build/cjs/components/index.d.ts +4 -0
  19. package/build/cjs/components/index.js +16 -0
  20. package/build/cjs/components/index.js.map +1 -1
  21. package/build/cjs/helpers/getListKey.d.ts +2 -2
  22. package/build/cjs/helpers/getListKey.js.map +1 -1
  23. package/build/cjs/helpers/isFieldVisible.d.ts +5 -4
  24. package/build/cjs/helpers/isFieldVisible.js +2 -2
  25. package/build/cjs/helpers/isFieldVisible.js.map +1 -1
  26. package/build/cjs/helpers/time.d.ts +1 -0
  27. package/build/cjs/helpers/time.js +7 -3
  28. package/build/cjs/helpers/time.js.map +1 -1
  29. package/build/cjs/index.d.ts +2 -0
  30. package/build/cjs/index.js +11 -0
  31. package/build/cjs/index.js.map +1 -1
  32. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.css +5 -0
  33. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.css.map +1 -0
  34. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.d.ts +8 -0
  35. package/build/cjs/{widgets/QueriesHistory/ComparisonActions.js → modules/HistoryComparisonActions/HistoryComparisonActions.js} +11 -11
  36. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.js.map +1 -0
  37. package/build/cjs/modules/HistoryComparisonActions/index.d.ts +2 -0
  38. package/build/cjs/modules/HistoryComparisonActions/index.js +13 -0
  39. package/build/cjs/modules/HistoryComparisonActions/index.js.map +1 -0
  40. package/build/cjs/modules/HistoryHeader/HistoryHeader.d.ts +2 -2
  41. package/build/cjs/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  42. package/build/cjs/modules/HistoryRow/HistoryRow.d.ts +3 -2
  43. package/build/cjs/modules/HistoryRow/HistoryRow.js +2 -4
  44. package/build/cjs/modules/HistoryRow/HistoryRow.js.map +1 -1
  45. package/build/cjs/modules/HistoryRow/HistoryRow.stories.js.map +1 -1
  46. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.d.ts +3 -2
  47. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  48. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListHeader.js +1 -7
  49. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListHeader.js.map +1 -1
  50. package/build/cjs/modules/QueriesList/QueriesList.css +10 -0
  51. package/build/cjs/modules/QueriesList/QueriesList.css.map +1 -0
  52. package/build/cjs/modules/QueriesList/QueriesList.d.ts +19 -0
  53. package/build/cjs/modules/QueriesList/QueriesList.js +75 -0
  54. package/build/cjs/modules/QueriesList/QueriesList.js.map +1 -0
  55. package/build/cjs/modules/QueriesList/index.d.ts +2 -0
  56. package/build/cjs/modules/QueriesList/index.js +13 -0
  57. package/build/cjs/modules/QueriesList/index.js.map +1 -0
  58. package/build/cjs/modules/RowsList/RowsList.d.ts +11 -11
  59. package/build/cjs/modules/RowsList/RowsList.js +5 -1
  60. package/build/cjs/modules/RowsList/RowsList.js.map +1 -1
  61. package/build/cjs/modules/RowsList/helpers/prepareRowData.d.ts +9 -9
  62. package/build/cjs/modules/RowsList/helpers/prepareRowData.js.map +1 -1
  63. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.css +17 -0
  64. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.css.map +1 -0
  65. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.d.ts +9 -0
  66. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js +78 -0
  67. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js.map +1 -0
  68. package/build/cjs/modules/SavedQueryRow/index.d.ts +2 -0
  69. package/build/cjs/modules/SavedQueryRow/index.js +13 -0
  70. package/build/cjs/modules/SavedQueryRow/index.js.map +1 -0
  71. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.css +12 -0
  72. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.css.map +1 -0
  73. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +9 -0
  74. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +65 -0
  75. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -0
  76. package/build/cjs/modules/SavedQuerySearchRow/index.d.ts +2 -0
  77. package/build/cjs/modules/SavedQuerySearchRow/index.js +13 -0
  78. package/build/cjs/modules/SavedQuerySearchRow/index.js.map +1 -0
  79. package/build/cjs/modules/index.d.ts +8 -2
  80. package/build/cjs/modules/index.js +32 -8
  81. package/build/cjs/modules/index.js.map +1 -1
  82. package/build/cjs/types/history.d.ts +4 -85
  83. package/build/cjs/types/history.js.map +1 -1
  84. package/build/cjs/types/queryList.d.ts +83 -0
  85. package/build/cjs/types/queryList.js +6 -0
  86. package/build/cjs/types/queryList.js.map +1 -0
  87. package/build/cjs/types/savedQueries.d.ts +6 -0
  88. package/build/cjs/types/savedQueries.js +6 -0
  89. package/build/cjs/types/savedQueries.js.map +1 -0
  90. package/build/cjs/types/tutorial.d.ts +2 -2
  91. package/build/cjs/types/tutorial.js.map +1 -1
  92. package/build/cjs/widgets/QueriesHistory/QueriesHistory.css +0 -6
  93. package/build/cjs/widgets/QueriesHistory/QueriesHistory.css.map +1 -1
  94. package/build/cjs/widgets/QueriesHistory/QueriesHistory.d.ts +11 -10
  95. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js +15 -34
  96. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  97. package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
  98. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.d.ts +4 -0
  99. package/build/cjs/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.js +4 -5
  100. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -0
  101. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.css +3 -0
  102. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.css.map +1 -1
  103. package/build/cjs/widgets/SavedQueries/SavedQueries.css +4 -0
  104. package/build/cjs/widgets/SavedQueries/SavedQueries.css.map +1 -0
  105. package/build/cjs/widgets/SavedQueries/SavedQueries.d.ts +21 -0
  106. package/build/cjs/widgets/SavedQueries/SavedQueries.js +58 -0
  107. package/build/cjs/widgets/SavedQueries/SavedQueries.js.map +1 -0
  108. package/build/cjs/widgets/SavedQueries/SavedQueries.stories.d.ts +8 -0
  109. package/build/cjs/widgets/SavedQueries/SavedQueries.stories.js +286 -0
  110. package/build/cjs/widgets/SavedQueries/SavedQueries.stories.js.map +1 -0
  111. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.d.ts +8 -0
  112. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js +33 -0
  113. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -0
  114. package/build/cjs/widgets/SavedQueries/i18n/dicts.d.ts +9 -0
  115. package/build/cjs/widgets/SavedQueries/i18n/dicts.js +14 -0
  116. package/build/cjs/widgets/SavedQueries/i18n/dicts.js.map +1 -0
  117. package/build/cjs/widgets/SavedQueries/i18n/en.json +3 -0
  118. package/build/cjs/widgets/SavedQueries/i18n/index.d.ts +6 -0
  119. package/build/cjs/widgets/SavedQueries/i18n/index.js +11 -0
  120. package/build/cjs/widgets/SavedQueries/i18n/index.js.map +1 -0
  121. package/build/cjs/widgets/SavedQueries/i18n/ru.json +3 -0
  122. package/build/cjs/widgets/SavedQueries/index.d.ts +2 -0
  123. package/build/cjs/widgets/SavedQueries/index.js +13 -0
  124. package/build/cjs/widgets/SavedQueries/index.js.map +1 -0
  125. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  126. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  127. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.d.ts +5 -5
  128. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  129. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
  130. package/build/cjs/widgets/index.d.ts +2 -0
  131. package/build/cjs/widgets/index.js +7 -0
  132. package/build/cjs/widgets/index.js.map +1 -1
  133. package/build/esm/components/EditableRowTitle/EditableRowTitle.d.ts +7 -0
  134. package/build/esm/{modules/HistoryRow/HistoryRowTitle.js → components/EditableRowTitle/EditableRowTitle.js} +4 -6
  135. package/build/esm/components/EditableRowTitle/EditableRowTitle.js.map +1 -0
  136. package/build/esm/components/EditableRowTitle/index.d.ts +2 -0
  137. package/build/esm/components/EditableRowTitle/index.js +2 -0
  138. package/build/esm/components/EditableRowTitle/index.js.map +1 -0
  139. package/build/esm/components/HistoryFilter/HistoryFilter.d.ts +2 -2
  140. package/build/esm/components/HistoryFilter/HistoryFilter.js.map +1 -1
  141. package/build/esm/components/LazyList/LazyList.css +0 -2
  142. package/build/esm/components/LazyList/LazyList.css.map +1 -1
  143. package/build/esm/components/LazyList/LazyList.scss +6 -6
  144. package/build/esm/components/RowActionsMenu/RowActionsMenu.d.ts +7 -0
  145. package/build/esm/{modules/HistoryRow/HistoryRowMenu.js → components/RowActionsMenu/RowActionsMenu.js} +8 -5
  146. package/build/esm/components/RowActionsMenu/RowActionsMenu.js.map +1 -0
  147. package/build/esm/components/RowActionsMenu/index.d.ts +2 -0
  148. package/build/esm/components/RowActionsMenu/index.js +2 -0
  149. package/build/esm/components/RowActionsMenu/index.js.map +1 -0
  150. package/build/esm/components/index.d.ts +4 -0
  151. package/build/esm/components/index.js +2 -0
  152. package/build/esm/components/index.js.map +1 -1
  153. package/build/esm/helpers/getListKey.d.ts +2 -2
  154. package/build/esm/helpers/getListKey.js.map +1 -1
  155. package/build/esm/helpers/isFieldVisible.d.ts +5 -4
  156. package/build/esm/helpers/isFieldVisible.js +2 -2
  157. package/build/esm/helpers/isFieldVisible.js.map +1 -1
  158. package/build/esm/helpers/time.d.ts +1 -0
  159. package/build/esm/helpers/time.js +6 -2
  160. package/build/esm/helpers/time.js.map +1 -1
  161. package/build/esm/index.d.ts +2 -0
  162. package/build/esm/index.js +2 -0
  163. package/build/esm/index.js.map +1 -1
  164. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.css +5 -0
  165. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.css.map +1 -0
  166. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.d.ts +8 -0
  167. package/build/esm/{widgets/QueriesHistory/ComparisonActions.js → modules/HistoryComparisonActions/HistoryComparisonActions.js} +10 -10
  168. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.js.map +1 -0
  169. package/build/esm/{widgets/QueriesHistory/ComparisonActions.scss → modules/HistoryComparisonActions/HistoryComparisonActions.scss} +2 -2
  170. package/build/esm/modules/HistoryComparisonActions/index.d.ts +2 -0
  171. package/build/esm/modules/HistoryComparisonActions/index.js +2 -0
  172. package/build/esm/modules/HistoryComparisonActions/index.js.map +1 -0
  173. package/build/esm/modules/HistoryHeader/HistoryHeader.d.ts +2 -2
  174. package/build/esm/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  175. package/build/esm/modules/HistoryRow/HistoryRow.d.ts +3 -2
  176. package/build/esm/modules/HistoryRow/HistoryRow.js +3 -5
  177. package/build/esm/modules/HistoryRow/HistoryRow.js.map +1 -1
  178. package/build/esm/modules/HistoryRow/HistoryRow.stories.js.map +1 -1
  179. package/build/esm/modules/HistorySearchRow/HistorySearchRow.d.ts +3 -2
  180. package/build/esm/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  181. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListHeader.js +1 -7
  182. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListHeader.js.map +1 -1
  183. package/build/esm/modules/QueriesList/QueriesList.css +10 -0
  184. package/build/esm/modules/QueriesList/QueriesList.css.map +1 -0
  185. package/build/esm/modules/QueriesList/QueriesList.d.ts +19 -0
  186. package/build/esm/modules/QueriesList/QueriesList.js +68 -0
  187. package/build/esm/modules/QueriesList/QueriesList.js.map +1 -0
  188. package/build/esm/modules/QueriesList/QueriesList.scss +10 -0
  189. package/build/esm/modules/QueriesList/index.d.ts +2 -0
  190. package/build/esm/modules/QueriesList/index.js +2 -0
  191. package/build/esm/modules/QueriesList/index.js.map +1 -0
  192. package/build/esm/modules/RowsList/RowsList.d.ts +11 -11
  193. package/build/esm/modules/RowsList/RowsList.js +5 -1
  194. package/build/esm/modules/RowsList/RowsList.js.map +1 -1
  195. package/build/esm/modules/RowsList/helpers/prepareRowData.d.ts +9 -9
  196. package/build/esm/modules/RowsList/helpers/prepareRowData.js.map +1 -1
  197. package/build/esm/modules/SavedQueryRow/SavedQueryRow.css +17 -0
  198. package/build/esm/modules/SavedQueryRow/SavedQueryRow.css.map +1 -0
  199. package/build/esm/modules/SavedQueryRow/SavedQueryRow.d.ts +9 -0
  200. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js +71 -0
  201. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js.map +1 -0
  202. package/build/esm/modules/SavedQueryRow/SavedQueryRow.scss +20 -0
  203. package/build/esm/modules/SavedQueryRow/index.d.ts +2 -0
  204. package/build/esm/modules/SavedQueryRow/index.js +2 -0
  205. package/build/esm/modules/SavedQueryRow/index.js.map +1 -0
  206. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.css +12 -0
  207. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.css.map +1 -0
  208. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +9 -0
  209. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +58 -0
  210. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -0
  211. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.scss +15 -0
  212. package/build/esm/modules/SavedQuerySearchRow/index.d.ts +2 -0
  213. package/build/esm/modules/SavedQuerySearchRow/index.js +2 -0
  214. package/build/esm/modules/SavedQuerySearchRow/index.js.map +1 -0
  215. package/build/esm/modules/index.d.ts +8 -2
  216. package/build/esm/modules/index.js +4 -1
  217. package/build/esm/modules/index.js.map +1 -1
  218. package/build/esm/types/history.d.ts +4 -85
  219. package/build/esm/types/history.js.map +1 -1
  220. package/build/esm/types/queryList.d.ts +83 -0
  221. package/build/esm/types/queryList.js +2 -0
  222. package/build/esm/types/queryList.js.map +1 -0
  223. package/build/esm/types/savedQueries.d.ts +6 -0
  224. package/build/esm/types/savedQueries.js +2 -0
  225. package/build/esm/types/savedQueries.js.map +1 -0
  226. package/build/esm/types/tutorial.d.ts +2 -2
  227. package/build/esm/types/tutorial.js.map +1 -1
  228. package/build/esm/widgets/QueriesHistory/QueriesHistory.css +0 -6
  229. package/build/esm/widgets/QueriesHistory/QueriesHistory.css.map +1 -1
  230. package/build/esm/widgets/QueriesHistory/QueriesHistory.d.ts +11 -10
  231. package/build/esm/widgets/QueriesHistory/QueriesHistory.js +16 -35
  232. package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  233. package/build/esm/widgets/QueriesHistory/QueriesHistory.scss +1 -8
  234. package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
  235. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.d.ts +4 -0
  236. package/build/esm/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.js +2 -3
  237. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -0
  238. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.css +3 -0
  239. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.css.map +1 -1
  240. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.scss +2 -0
  241. package/build/esm/widgets/SavedQueries/SavedQueries.css +4 -0
  242. package/build/esm/widgets/SavedQueries/SavedQueries.css.map +1 -0
  243. package/build/esm/widgets/SavedQueries/SavedQueries.d.ts +21 -0
  244. package/build/esm/widgets/SavedQueries/SavedQueries.js +51 -0
  245. package/build/esm/widgets/SavedQueries/SavedQueries.js.map +1 -0
  246. package/build/esm/widgets/SavedQueries/SavedQueries.scss +3 -0
  247. package/build/esm/widgets/SavedQueries/SavedQueries.stories.d.ts +8 -0
  248. package/build/esm/widgets/SavedQueries/SavedQueries.stories.js +278 -0
  249. package/build/esm/widgets/SavedQueries/SavedQueries.stories.js.map +1 -0
  250. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.d.ts +8 -0
  251. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js +26 -0
  252. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -0
  253. package/build/esm/widgets/SavedQueries/i18n/dicts.d.ts +9 -0
  254. package/build/esm/widgets/SavedQueries/i18n/dicts.js +7 -0
  255. package/build/esm/widgets/SavedQueries/i18n/dicts.js.map +1 -0
  256. package/build/esm/widgets/SavedQueries/i18n/en.json +3 -0
  257. package/build/esm/widgets/SavedQueries/i18n/index.d.ts +6 -0
  258. package/build/esm/widgets/SavedQueries/i18n/index.js +4 -0
  259. package/build/esm/widgets/SavedQueries/i18n/index.js.map +1 -0
  260. package/build/esm/widgets/SavedQueries/i18n/ru.json +3 -0
  261. package/build/esm/widgets/SavedQueries/index.d.ts +2 -0
  262. package/build/esm/widgets/SavedQueries/index.js +2 -0
  263. package/build/esm/widgets/SavedQueries/index.js.map +1 -0
  264. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  265. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  266. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.d.ts +5 -5
  267. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  268. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
  269. package/build/esm/widgets/index.d.ts +2 -0
  270. package/build/esm/widgets/index.js +1 -0
  271. package/build/esm/widgets/index.js.map +1 -1
  272. package/package.json +1 -1
  273. package/src/{modules/HistoryRow/HistoryRowTitle.tsx → components/EditableRowTitle/EditableRowTitle.tsx} +10 -12
  274. package/src/components/EditableRowTitle/index.ts +2 -0
  275. package/src/components/HistoryFilter/HistoryFilter.tsx +2 -2
  276. package/src/components/LazyList/LazyList.scss +6 -6
  277. package/src/components/RowActionsMenu/RowActionsMenu.tsx +47 -0
  278. package/src/components/RowActionsMenu/index.ts +2 -0
  279. package/src/components/index.ts +4 -0
  280. package/src/helpers/getListKey.ts +4 -4
  281. package/src/helpers/isFieldVisible.ts +5 -4
  282. package/src/helpers/time.ts +4 -0
  283. package/src/index.ts +2 -0
  284. package/src/{widgets/QueriesHistory/ComparisonActions.scss → modules/HistoryComparisonActions/HistoryComparisonActions.scss} +2 -2
  285. package/src/{widgets/QueriesHistory/ComparisonActions.tsx → modules/HistoryComparisonActions/HistoryComparisonActions.tsx} +8 -8
  286. package/src/modules/HistoryComparisonActions/index.ts +2 -0
  287. package/src/modules/HistoryHeader/HistoryHeader.tsx +2 -2
  288. package/src/modules/HistoryRow/HistoryRow.stories.tsx +3 -2
  289. package/src/modules/HistoryRow/HistoryRow.tsx +13 -7
  290. package/src/modules/HistorySearchRow/HistorySearchRow.tsx +3 -2
  291. package/src/modules/NavigationItemsList/internal/NavigationItemsListHeader.tsx +1 -5
  292. package/src/modules/QueriesList/QueriesList.scss +10 -0
  293. package/src/modules/QueriesList/QueriesList.tsx +98 -0
  294. package/src/modules/QueriesList/index.ts +2 -0
  295. package/src/modules/RowsList/RowsList.tsx +27 -23
  296. package/src/modules/RowsList/helpers/prepareRowData.ts +18 -18
  297. package/src/modules/SavedQueryRow/SavedQueryRow.scss +20 -0
  298. package/src/modules/SavedQueryRow/SavedQueryRow.tsx +60 -0
  299. package/src/modules/SavedQueryRow/index.ts +2 -0
  300. package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.scss +15 -0
  301. package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.tsx +58 -0
  302. package/src/modules/SavedQuerySearchRow/index.ts +2 -0
  303. package/src/modules/index.ts +8 -2
  304. package/src/types/history.ts +4 -95
  305. package/src/types/queryList.ts +92 -0
  306. package/src/types/savedQueries.ts +7 -0
  307. package/src/types/tutorial.ts +2 -2
  308. package/src/widgets/QueriesHistory/QueriesHistory.scss +1 -8
  309. package/src/widgets/QueriesHistory/QueriesHistory.stories.tsx +11 -11
  310. package/src/widgets/QueriesHistory/QueriesHistory.tsx +35 -61
  311. package/src/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.tsx +5 -5
  312. package/src/widgets/QueriesNavigation/QueriesNavigation.scss +2 -0
  313. package/src/widgets/SavedQueries/SavedQueries.scss +3 -0
  314. package/src/widgets/SavedQueries/SavedQueries.stories.tsx +192 -0
  315. package/src/widgets/SavedQueries/SavedQueries.tsx +77 -0
  316. package/src/widgets/SavedQueries/SavedQueryRowContent.tsx +26 -0
  317. package/src/widgets/SavedQueries/i18n/dicts.ts +4 -0
  318. package/src/widgets/SavedQueries/i18n/en.json +3 -0
  319. package/src/widgets/SavedQueries/i18n/index.ts +4 -0
  320. package/src/widgets/SavedQueries/i18n/ru.json +3 -0
  321. package/src/widgets/SavedQueries/index.ts +2 -0
  322. package/src/widgets/TutorialsHistory/TutorialRowContent.tsx +2 -2
  323. package/src/widgets/TutorialsHistory/TutorialsHistory.stories.tsx +3 -3
  324. package/src/widgets/TutorialsHistory/TutorialsHistory.tsx +5 -9
  325. package/src/widgets/index.ts +2 -0
  326. package/build/cjs/modules/HistoryList/HistoryList.d.ts +0 -16
  327. package/build/cjs/modules/HistoryList/HistoryList.js +0 -24
  328. package/build/cjs/modules/HistoryList/HistoryList.js.map +0 -1
  329. package/build/cjs/modules/HistoryList/HistoryList.stories.d.ts +0 -14
  330. package/build/cjs/modules/HistoryList/HistoryList.stories.js +0 -245
  331. package/build/cjs/modules/HistoryList/HistoryList.stories.js.map +0 -1
  332. package/build/cjs/modules/HistoryList/HistoryRowContent.d.ts +0 -3
  333. package/build/cjs/modules/HistoryList/HistoryRowContent.js.map +0 -1
  334. package/build/cjs/modules/HistoryList/index.d.ts +0 -2
  335. package/build/cjs/modules/HistoryList/index.js +0 -13
  336. package/build/cjs/modules/HistoryList/index.js.map +0 -1
  337. package/build/cjs/modules/HistoryRow/HistoryRowMenu.d.ts +0 -8
  338. package/build/cjs/modules/HistoryRow/HistoryRowMenu.js.map +0 -1
  339. package/build/cjs/modules/HistoryRow/HistoryRowTitle.d.ts +0 -8
  340. package/build/cjs/modules/HistoryRow/HistoryRowTitle.js.map +0 -1
  341. package/build/cjs/widgets/QueriesHistory/ComparisonActions.css +0 -5
  342. package/build/cjs/widgets/QueriesHistory/ComparisonActions.css.map +0 -1
  343. package/build/cjs/widgets/QueriesHistory/ComparisonActions.d.ts +0 -9
  344. package/build/cjs/widgets/QueriesHistory/ComparisonActions.js.map +0 -1
  345. package/build/esm/modules/HistoryList/HistoryList.d.ts +0 -16
  346. package/build/esm/modules/HistoryList/HistoryList.js +0 -17
  347. package/build/esm/modules/HistoryList/HistoryList.js.map +0 -1
  348. package/build/esm/modules/HistoryList/HistoryList.stories.d.ts +0 -14
  349. package/build/esm/modules/HistoryList/HistoryList.stories.js +0 -237
  350. package/build/esm/modules/HistoryList/HistoryList.stories.js.map +0 -1
  351. package/build/esm/modules/HistoryList/HistoryRowContent.d.ts +0 -3
  352. package/build/esm/modules/HistoryList/HistoryRowContent.js.map +0 -1
  353. package/build/esm/modules/HistoryList/index.d.ts +0 -2
  354. package/build/esm/modules/HistoryList/index.js +0 -2
  355. package/build/esm/modules/HistoryList/index.js.map +0 -1
  356. package/build/esm/modules/HistoryRow/HistoryRowMenu.d.ts +0 -8
  357. package/build/esm/modules/HistoryRow/HistoryRowMenu.js.map +0 -1
  358. package/build/esm/modules/HistoryRow/HistoryRowTitle.d.ts +0 -8
  359. package/build/esm/modules/HistoryRow/HistoryRowTitle.js.map +0 -1
  360. package/build/esm/widgets/QueriesHistory/ComparisonActions.css +0 -5
  361. package/build/esm/widgets/QueriesHistory/ComparisonActions.css.map +0 -1
  362. package/build/esm/widgets/QueriesHistory/ComparisonActions.d.ts +0 -9
  363. package/build/esm/widgets/QueriesHistory/ComparisonActions.js.map +0 -1
  364. package/src/modules/HistoryList/HistoryList.stories.tsx +0 -181
  365. package/src/modules/HistoryList/HistoryList.tsx +0 -41
  366. package/src/modules/HistoryList/index.ts +0 -2
  367. package/src/modules/HistoryRow/HistoryRowMenu.tsx +0 -47
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { QueryListEditingRenderData, QueryListRow } from '../../types/queryList';
3
+ export type EditableRowTitleProps<T extends QueryListRow = QueryListRow> = {
4
+ item: T;
5
+ editing?: QueryListEditingRenderData<T>;
6
+ };
7
+ export declare const EditableRowTitle: <T extends QueryListRow>({ item, editing, }: EditableRowTitleProps<T>) => React.JSX.Element;
@@ -1,10 +1,9 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import "core-js/modules/es.string.trim.js";
3
- import React, { useState } from 'react';
3
+ import React, { useEffect, useState } from 'react';
4
4
  import { Text, TextInput } from '@gravity-ui/uikit';
5
- import "./HistoryRow.css";
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export var HistoryRowTitle = function HistoryRowTitle(_ref) {
6
+ export var EditableRowTitle = function EditableRowTitle(_ref) {
8
7
  var item = _ref.item,
9
8
  editing = _ref.editing;
10
9
  var _useState = useState(item.title),
@@ -13,7 +12,7 @@ export var HistoryRowTitle = function HistoryRowTitle(_ref) {
13
12
  setTitle = _useState2[1];
14
13
  var isEditing = Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled);
15
14
  var isTitleEmpty = !title.trim();
16
- React.useEffect(function () {
15
+ useEffect(function () {
17
16
  setTitle(item.title);
18
17
  }, [item.id, item.title]);
19
18
  var handleKeyDown = function handleKeyDown(event) {
@@ -58,9 +57,8 @@ export var HistoryRowTitle = function HistoryRowTitle(_ref) {
58
57
  });
59
58
  }
60
59
  return /*#__PURE__*/_jsx(Text, {
61
- variant: "subheader-1",
62
60
  ellipsis: true,
63
61
  children: item.title
64
62
  });
65
63
  };
66
- // #sourceMappingURL=HistoryRowTitle.js.map
64
+ // #sourceMappingURL=EditableRowTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","Text","TextInput","jsx","_jsx","EditableRowTitle","_ref","item","editing","_useState","title","_useState2","_slicedToArray","setTitle","isEditing","Boolean","enabled","isTitleEmpty","trim","id","handleKeyDown","event","stopPropagation","key","_editing$onSubmit","preventDefault","nextTitle","_editing$onCancel","onCancel","call","onSubmit","_editing$onCancel2","onClick","onMouseDown","children","autoFocus","value","size","validationState","undefined","onKeyDown","onUpdate","ellipsis"],"sources":["EditableRowTitle.tsx"],"sourcesContent":["import React, {KeyboardEvent, useEffect, useState} from 'react';\nimport {Text, TextInput} from '@gravity-ui/uikit';\nimport {QueryListEditingRenderData, QueryListRow} from '../../types/queryList';\n\nexport type EditableRowTitleProps<T extends QueryListRow = QueryListRow> = {\n item: T;\n editing?: QueryListEditingRenderData<T>;\n};\n\nexport const EditableRowTitle = <T extends QueryListRow>({\n item,\n editing,\n}: EditableRowTitleProps<T>) => {\n const [title, setTitle] = useState(item.title);\n const isEditing = Boolean(editing?.enabled);\n const isTitleEmpty = !title.trim();\n\n useEffect(() => {\n setTitle(item.title);\n }, [item.id, item.title]);\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n event.stopPropagation();\n\n if (event.key === 'Enter') {\n event.preventDefault();\n const nextTitle = title.trim();\n\n if (!nextTitle) {\n return;\n }\n\n if (nextTitle === item.title) {\n editing?.onCancel?.(item);\n setTitle(item.title);\n return;\n }\n\n editing?.onSubmit?.(item, nextTitle);\n }\n\n if (event.key === 'Escape') {\n editing?.onCancel?.(item);\n setTitle(item.title);\n }\n };\n\n if (isEditing) {\n return (\n <div\n onClick={(event) => event.stopPropagation()}\n onMouseDown={(event) => event.stopPropagation()}\n >\n <TextInput\n autoFocus\n value={title}\n size=\"s\"\n validationState={isTitleEmpty ? 'invalid' : undefined}\n onKeyDown={handleKeyDown}\n onUpdate={setTitle}\n />\n </div>\n );\n }\n\n return <Text ellipsis>{item.title}</Text>;\n};\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAkBC,SAAS,EAAEC,QAAQ,QAAO,OAAO;AAC/D,SAAQC,IAAI,EAAEC,SAAS,QAAO,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQlD,OAAO,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAGG;EAAA,IAF5BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EAEP,IAAAC,SAAA,GAA0BT,QAAQ,C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AAQ,EAAE;MAAA,IAAAQ,kBAAA;MACxBvB,OAAO,aAAPA,OAAO,gBAAAuB,kBAAA,GAAPvB,OAAO,CAAEoB,QAAQ,cAAAG,kBAAA,eAAjBA,kBAAA,CAAAF,IAAA,CAAArB,OAAO,EAAaD,IAAI,CAAC;MACzBM,QAAQ,CAACN,IAAI,CAACG,KAAK,CAAC;IACxB;EACJ,CAAC;EAED,IAAII,SAAS,EAAE;IACX,oBACIV,IAAA;MACI4B,OAAO,EAAE,SAATA,OAAOA,CAAGX,KAAK;QAAA,OAAKA,KAAK,CAACC,eAAe,CAAC,CAAC;MAAA,CAAC;MAC5CW,WAAW,EAAE,SAAbA,WAAWA,CAAGZ,KAAK;QAAA,OAAKA,KAAK,CAACC,eAAe,CAAC,CAAC;MAAA,CAAC;MAAAY,QAAA,eAEhD9B,IAAA,CAACF,SAAS;QACNiC,SAAS;QACTC,KAAK,EAAE1B,KAAM;QACb2B,IAAI,EAAC,GAAG;QACRC,eAAe,EAAErB,YAAY,GAAG,SAAS,GAAGsB,SAAU;QACtDC,SAAS,EAAEpB,aAAc;QACzBqB,QAAQ,EAAE5B;MAAS,CACtB;IAAC,CACD,CAAC;EAEd;EAEA,oBAAOT,IAAA,CAACH,IAAI;IAACyC,QAAQ;IAAAR,QAAA,EAAE3B,IAAI,CAACG;EAAK,CAAO,CAAC;AAC7C,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export { EditableRowTitle } from './EditableRowTitle';
2
+ export type { EditableRowTitleProps } from './EditableRowTitle';
@@ -0,0 +1,2 @@
1
+ export { EditableRowTitle } from "./EditableRowTitle";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EditableRowTitle"],"sources":["index.ts"],"sourcesContent":["export {EditableRowTitle} from './EditableRowTitle';\nexport type {EditableRowTitleProps} from './EditableRowTitle';\n"],"mappings":"AAAA,SAAQA,gBAAgB","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { QueryHistoryFilterConfig } from '../../types/history';
2
+ import { QueryListFilterConfig } from '../../types/queryList';
3
3
  import './HistoryFilter.scss';
4
- export declare const HistoryFilter: FC<QueryHistoryFilterConfig>;
4
+ export declare const HistoryFilter: FC<QueryListFilterConfig>;
@@ -1 +1 @@
1
- {"version":3,"names":["React","useRef","useState","Button","Flex","Icon","Popup","FunnelIcon","props","_jsx","_objectSpread","children","fill","fillRule","d","clipRule","defaultProps","xmlns","width","height","viewBox","ArrowRotateLeftIcon","useToggle","cn","SimpleForm","i18n","jsx","jsxs","_jsxs","Fragment","_Fragment","block","HistoryFilter","_ref","_ref2","_ref$fields","fields","values","initialValues","isChanged","onApply","onReset","_useState","_useState2","_slicedToArray","buttonElement","setButtonElement","_useToggle","_useToggle2","open","toggleOpen","valuesRef","ref","onClick","view","data","size","anchorElement","onOpenChange","className","placement","onValuesChange","nextValues","current","gap"],"sources":["HistoryFilter.tsx"],"sourcesContent":["import React, {FC, useRef, useState} from 'react';\nimport {Button, Flex, Icon, Popup} from '@gravity-ui/uikit';\nimport FunnelIcon from '@gravity-ui/icons/svgs/funnel.svg';\nimport ArrowRotateLeftIcon from '@gravity-ui/icons/svgs/arrow-rotate-left.svg';\nimport {useToggle} from '../../helpers/useToggle';\nimport {QueryHistoryFilterConfig} from '../../types/history';\nimport cn from 'bem-cn-lite';\nimport {SimpleForm} from '../SimpleForm';\nimport i18n from './i18n';\nimport './HistoryFilter.scss';\n\nconst block = cn('qp-history-filter');\n\nexport const HistoryFilter: FC<QueryHistoryFilterConfig> = ({\n fields = [],\n values,\n initialValues,\n isChanged,\n onApply,\n onReset,\n}) => {\n const [buttonElement, setButtonElement] = useState<HTMLButtonElement | null>(null);\n const [open, toggleOpen] = useToggle(false);\n const valuesRef = useRef<Record<string, any>>(values ?? initialValues ?? {});\n\n return (\n <>\n <Button\n ref={setButtonElement}\n onClick={toggleOpen}\n view={isChanged ? 'action' : 'normal'}\n >\n <Icon data={FunnelIcon} size={16} />\n </Button>\n <Popup\n anchorElement={buttonElement}\n open={open}\n onOpenChange={toggleOpen}\n className={block()}\n placement=\"bottom-start\"\n >\n <div className={block('container')}>\n <SimpleForm\n fields={fields}\n values={values}\n initialValues={initialValues}\n onValuesChange={(nextValues) => {\n valuesRef.current = nextValues;\n }}\n />\n </div>\n <Flex gap={3} className={block('container')}>\n <Button view=\"action\" onClick={() => onApply?.(valuesRef.current)}>\n {i18n('action_apply')}\n </Button>\n <Button onClick={onReset}>\n <Icon data={ArrowRotateLeftIcon} size={16} />\n {i18n('action_reset')}\n </Button>\n </Flex>\n </Popup>\n </>\n );\n};\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAAOC,MAAM,EAAEC,QAAQ,QAAO,OAAO;AACjD,SAAQC,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,KAAK,QAAO,mBAAmB;AAAC,IACrDC,UAAU,YAAVA,UAAUA,CAAAC,KAAA;EAAA,oBAAAC,IAAA,QAAAC,aAAA,CAAAA,aAAA,KAAAF,KAAA;IAAAG,QAAA,eAAAF,IAAA;MAAAG,IAAA;MAAAC,QAAA;MAAAC,CAAA;MAAAC,QAAA;IAAA;EAAA;AAAA;AAAVR,UAAU,CAAAS,YAAA;EAAAC,KAAA;EAAAC,KAAA;EAAAC,MAAA;EAAAP,IAAA;EAAAQ,OAAA;AAAA;AAAA,IACVC,mBAAmB,YAAnBA,mBAAmBA,CAAAb,KAAA;EAAA,oBAAAC,IAAA,QAAAC,aAAA,CAAAA,aAAA,KAAAF,KAAA;IAAAG,QAAA,eAAAF,IAAA;MAAAG,IAAA;MAAAC,QAAA;MAAAC,CAAA;MAAAC,QAAA;IAAA;EAAA;AAAA;AAAnBM,mBAAmB,CAAAL,YAAA;EAAAC,KAAA;EAAAC,KAAA;EAAAC,MAAA;EAAAP,IAAA;EAAAQ,OAAA;AAAA;AAC1B,SAAQE,SAAS;AAEjB,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,UAAU;AAClB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","Popup","FunnelIcon","props","_jsx","_objectSpread","children","fill","fillRule","d","clipRule","defaultProps","xmlns","width","height","viewBox","ArrowRotateLeftIcon","useToggle","cn","SimpleForm","i18n","jsx","jsxs","_jsxs","Fragment","_Fragment","block","HistoryFilter","_ref","_ref2","_ref$fields","fields","values","initialValues","isChanged","onApply","onReset","_useState","_useState2","_slicedToArray","buttonElement","setButtonElement","_useToggle","_useToggle2","open","toggleOpen","valuesRef","ref","onClick","view","data","size","anchorElement","onOpenChange","className","placement","onValuesChange","nextValues","current","gap"],"sources":["HistoryFilter.tsx"],"sourcesContent":["import React, {FC, useRef, useState} from 'react';\nimport {Button, Flex, Icon, Popup} from '@gravity-ui/uikit';\nimport FunnelIcon from '@gravity-ui/icons/svgs/funnel.svg';\nimport ArrowRotateLeftIcon from '@gravity-ui/icons/svgs/arrow-rotate-left.svg';\nimport {useToggle} from '../../helpers/useToggle';\nimport {QueryListFilterConfig} from '../../types/queryList';\nimport cn from 'bem-cn-lite';\nimport {SimpleForm} from '../SimpleForm';\nimport i18n from './i18n';\nimport './HistoryFilter.scss';\n\nconst block = cn('qp-history-filter');\n\nexport const HistoryFilter: FC<QueryListFilterConfig> = ({\n fields = [],\n values,\n initialValues,\n isChanged,\n onApply,\n onReset,\n}) => {\n const [buttonElement, setButtonElement] = useState<HTMLButtonElement | null>(null);\n const [open, toggleOpen] = useToggle(false);\n const valuesRef = useRef<Record<string, any>>(values ?? initialValues ?? {});\n\n return (\n <>\n <Button\n ref={setButtonElement}\n onClick={toggleOpen}\n view={isChanged ? 'action' : 'normal'}\n >\n <Icon data={FunnelIcon} size={16} />\n </Button>\n <Popup\n anchorElement={buttonElement}\n open={open}\n onOpenChange={toggleOpen}\n className={block()}\n placement=\"bottom-start\"\n >\n <div className={block('container')}>\n <SimpleForm\n fields={fields}\n values={values}\n initialValues={initialValues}\n onValuesChange={(nextValues) => {\n valuesRef.current = nextValues;\n }}\n />\n </div>\n <Flex gap={3} className={block('container')}>\n <Button view=\"action\" onClick={() => onApply?.(valuesRef.current)}>\n {i18n('action_apply')}\n </Button>\n <Button onClick={onReset}>\n <Icon data={ArrowRotateLeftIcon} size={16} />\n {i18n('action_reset')}\n </Button>\n </Flex>\n </Popup>\n </>\n );\n};\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAAOC,MAAM,EAAEC,QAAQ,QAAO,OAAO;AACjD,SAAQC,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,KAAK,QAAO,mBAAmB;AAAC,IACrDC,UAAU,YAAVA,UAAUA,CAAAC,KAAA;EAAA,oBAAAC,IAAA,QAAAC,aAAA,CAAAA,aAAA,KAAAF,KAAA;IAAAG,QAAA,eAAAF,IAAA;MAAAG,IAAA;MAAAC,QAAA;MAAAC,CAAA;MAAAC,QAAA;IAAA;EAAA;AAAA;AAAVR,UAAU,CAAAS,YAAA;EAAAC,KAAA;EAAAC,KAAA;EAAAC,MAAA;EAAAP,IAAA;EAAAQ,OAAA;AAAA;AAAA,IACVC,mBAAmB,YAAnBA,mBAAmBA,CAAAb,KAAA;EAAA,oBAAAC,IAAA,QAAAC,aAAA,CAAAA,aAAA,KAAAF,KAAA;IAAAG,QAAA,eAAAF,IAAA;MAAAG,IAAA;MAAAC,QAAA;MAAAC,CAAA;MAAAC,QAAA;IAAA;EAAA;AAAA;AAAnBM,mBAAmB,CAAAL,YAAA;EAAAC,KAAA;EAAAC,KAAA;EAAAC,MAAA;EAAAP,IAAA;EAAAQ,OAAA;AAAA;AAC1B,SAAQE,SAAS;AAEjB,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,UAAU;AAClB,OAAOC,IAAI;AACX;AAA8B,SAAAC,GAAA,IAAAjB,IAAA,EAAAkB,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAE9B,IAAMC,KAAK,GAAGR,EAAE,CAAC,mBAAmB,CAAC;AAErC,OAAO,IAAMS,aAAwC,GAAG,SAA3CA,aAAwCA,CAAAC,IAAA,EAO/C;EAAA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D,QAAA,gBAExBF,IAAA;QAAKkD,SAAS,EAAE5B,KAAK,CAAC,WAAW,CAAE;QAAApB,QAAA,eAC/BF,IAAA,CAACe,UAAU;UACPY,MAAM,EAAEA,MAAO;UACfC,MAAM,EAAEA,MAAO;UACfC,aAAa,EAAEA,aAAc;UAC7BuB,cAAc,EAAE,SAAhBA,cAAcA,CAAGC,UAAU,EAAK;YAC5BX,SAAS,CAACY,OAAO,GAAGD,UAAU;UAClC;QAAE,CACL;MAAC,CACD,CAAC,eACNlC,KAAA,CAACxB,IAAI;QAAC4D,GAAG,EAAE,CAAE;QAACL,SAAS,EAAE5B,KAAK,CAAC,WAAW,CAAE;QAAApB,QAAA,gBACxCF,IAAA,CAACN,MAAM;UAACmD,IAAI,EAAC,QAAQ;UAACD,OAAO,EAAE,SAATA,OAAOA,CAAA;YAAA,OAAQb,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAGW,SAAS,CAACY,OAAO,CAAC;UAAA,CAAC;UAAApD,QAAA,EAC7Dc,IAAI,CAAC,cAAc;QAAC,CACjB,CAAC,eACTG,KAAA,CAACzB,MAAM;UAACkD,OAAO,EAAEZ,OAAQ;UAAA9B,QAAA,gBACrBF,IAAA,CAACJ,IAAI;YAACkD,IAAI,EAAElC,mBAAoB;YAACmC,IAAI,EAAE;UAAG,CAAE,CAAC,EAC5C/B,IAAI,CAAC,cAAc,CAAC;QAAA,CACjB,CAAC;MAAA,CACP,CAAC;IAAA,CACJ,CAAC;EAAA,CACV,CAAC;AAEX,CAAC","ignoreList":[]}
@@ -1,11 +1,9 @@
1
1
  .qp-lazy-list .g-list__item_selected:hover {
2
2
  background-color: var(--g-color-base-selection-hover);
3
3
  }
4
-
5
4
  .qp-lazy-list__sentinel {
6
5
  height: 1px;
7
6
  }
8
-
9
7
  .qp-lazy-list__spinner {
10
8
  height: 100%;
11
9
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["LazyList.scss"],"names":[],"mappings":"AACE;EACE,qDAAA;AAAJ;;AAIA;EACE,WAAA;AADF;;AAIA;EACE,YAAA;AADF","file":"LazyList.css","sourcesContent":[".qp-lazy-list {\n .g-list__item_selected:hover {\n background-color: var(--g-color-base-selection-hover);\n }\n}\n\n.qp-lazy-list__sentinel {\n height: 1px;\n}\n\n.qp-lazy-list__spinner {\n height: 100%;\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["LazyList.scss"],"names":[],"mappings":"AACE;EACE,qDAAA;AAAJ;AAGE;EACE,WAAA;AADJ;AAIE;EACE,YAAA;AAFJ","file":"LazyList.css","sourcesContent":[".qp-lazy-list {\n .g-list__item_selected:hover {\n background-color: var(--g-color-base-selection-hover);\n }\n\n &__sentinel {\n height: 1px;\n }\n\n &__spinner {\n height: 100%;\n }\n}\n"],"sourceRoot":""}
@@ -2,12 +2,12 @@
2
2
  .g-list__item_selected:hover {
3
3
  background-color: var(--g-color-base-selection-hover);
4
4
  }
5
- }
6
5
 
7
- .qp-lazy-list__sentinel {
8
- height: 1px;
9
- }
6
+ &__sentinel {
7
+ height: 1px;
8
+ }
10
9
 
11
- .qp-lazy-list__spinner {
12
- height: 100%;
10
+ &__spinner {
11
+ height: 100%;
12
+ }
13
13
  }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { QueryListRow, QueryListRowAction } from '../../types/queryList';
3
+ export type RowActionsMenuProps<T extends QueryListRow = QueryListRow> = {
4
+ item: T;
5
+ actions?: QueryListRowAction<T>[];
6
+ };
7
+ export declare const RowActionsMenu: <T extends QueryListRow>({ item, actions }: RowActionsMenuProps<T>) => React.JSX.Element | null;
@@ -23,18 +23,20 @@ EllipsisIcon.defaultProps = {
23
23
  fill: "none",
24
24
  viewBox: "0 0 16 16"
25
25
  };
26
- export var HistoryRowMenu = function HistoryRowMenu(_ref) {
26
+ export var RowActionsMenu = function RowActionsMenu(_ref) {
27
27
  var item = _ref.item,
28
28
  actions = _ref.actions;
29
29
  var items = useMemo(function () {
30
30
  return actions === null || actions === void 0 ? void 0 : actions.map(function (_ref2) {
31
31
  var icon = _ref2.icon,
32
32
  text = _ref2.text,
33
+ theme = _ref2.theme,
33
34
  hidden = _ref2.hidden,
34
35
  disabled = _ref2.disabled,
35
36
  onClick = _ref2.onClick;
36
37
  return {
37
38
  text: text,
39
+ theme: theme,
38
40
  hidden: hidden,
39
41
  disabled: disabled,
40
42
  iconStart: icon,
@@ -44,9 +46,10 @@ export var HistoryRowMenu = function HistoryRowMenu(_ref) {
44
46
  };
45
47
  });
46
48
  }, [actions, item]);
47
- if (!actions || !actions.length) return null;
48
- var handleClick = function handleClick(e) {
49
- e.preventDefault();
49
+ if (!(actions !== null && actions !== void 0 && actions.length)) return null;
50
+ var handleClick = function handleClick(event) {
51
+ event.preventDefault();
52
+ event.stopPropagation();
50
53
  };
51
54
  return /*#__PURE__*/_jsx("div", {
52
55
  onClick: handleClick,
@@ -65,4 +68,4 @@ export var HistoryRowMenu = function HistoryRowMenu(_ref) {
65
68
  })
66
69
  });
67
70
  };
68
- // #sourceMappingURL=HistoryRowMenu.js.map
71
+ // #sourceMappingURL=RowActionsMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","Button","DropdownMenu","Icon","jsx","_jsx","EllipsisIcon","props","_objectSpread","children","fill","fillRule","d","clipRule","defaultProps","xmlns","width","height","viewBox","RowActionsMenu","_ref","item","actions","items","map","_ref2","icon","text","theme","hidden","disabled","onClick","iconStart","action","length","handleClick","event","preventDefault","stopPropagation","size","renderSwitcher","data"],"sources":["RowActionsMenu.tsx"],"sourcesContent":["import React, {MouseEvent, useMemo} from 'react';\nimport {Button, DropdownMenu, DropdownMenuItem, Icon} from '@gravity-ui/uikit';\nimport EllipsisIcon from '@gravity-ui/icons/svgs/ellipsis.svg';\nimport {QueryListRow, QueryListRowAction} from '../../types/queryList';\n\nexport type RowActionsMenuProps<T extends QueryListRow = QueryListRow> = {\n item: T;\n actions?: QueryListRowAction<T>[];\n};\n\nexport const RowActionsMenu = <T extends QueryListRow>({item, actions}: RowActionsMenuProps<T>) => {\n const items = useMemo(() => {\n return actions?.map<DropdownMenuItem>(({icon, text, theme, hidden, disabled, onClick}) => {\n return {\n text,\n theme,\n hidden,\n disabled,\n iconStart: icon,\n action: () => {\n onClick(item);\n },\n };\n });\n }, [actions, item]);\n\n if (!actions?.length) return null;\n\n const handleClick = (event: MouseEvent<HTMLDivElement>) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n return (\n <div onClick={handleClick}>\n <DropdownMenu\n size=\"s\"\n renderSwitcher={(props) => (\n <Button {...props} size=\"xs\">\n <Icon data={EllipsisIcon} size={12} />\n </Button>\n )}\n items={items}\n />\n </div>\n );\n};\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAAeC,OAAO,QAAO,OAAO;AAChD,SAAQC,MAAM,EAAEC,YAAY,EAAoBC,IAAI,QAAO,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,IACxEC,YAAY,YAAZA,YAAYA,CAAAC,KAAA;EAAA,oBAAAF,IAAA,QAAAG,aAAA,CAAAA,aAAA,KAAAD,KAAA;IAAAE,QAAA,eAAAJ,IAAA;MAAAK,IAAA;MAAAC,QAAA;MAAAC,CAAA;MAAAC,QAAA;IAAA;EAAA;AAAA;AAAZP,YAAY,CAAAQ,YAAA;EAAAC,KAAA;EAAAC,KAAA;EAAAC,MAAA;EAAAP,IAAA;EAAAQ,OAAA;AAAA;AAQnB,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAwE;EAAA,IAA3CC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EACjE,IAAMC,KAAK,GAAGvB,OAAO,CAAC,YAAM;IACxB,OAAOsB,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEE,GAAG,CAAmB,UAAAC,KAAA,EAAoD;MAAA,IAAlDC,IAAI,GAAAD,KAAA,CAAJC,IAAI;QAAEC,IAAI,GAAAF,KAAA,C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sMenuProps } from './RowActionsMenu';
@@ -0,0 +1,2 @@
1
+ export { RowActionsMenu } from "./RowActionsMenu";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RowActionsMenu"],"sources":["index.ts"],"sourcesContent":["export {RowActionsMenu} from './RowActionsMenu';\nexport type {RowActionsMenuProps} from './RowActionsMenu';\n"],"mappings":"AAAA,SAAQA,cAAc","ignoreList":[]}
@@ -14,6 +14,10 @@ export { HistoryFilter } from './HistoryFilter';
14
14
  export { HistoryPrivateIcon } from './HistoryPrivateIcon';
15
15
  export { FieldsSelector } from './FieldsSelector';
16
16
  export type { FieldsSelectorOption, FieldsSelectorProps } from './FieldsSelector';
17
+ export { EditableRowTitle } from './EditableRowTitle';
18
+ export type { EditableRowTitleProps } from './EditableRowTitle';
19
+ export { RowActionsMenu } from './RowActionsMenu';
20
+ export type { RowActionsMenuProps } from './RowActionsMenu';
17
21
  export { FieldsSearchToolbar } from './FieldsSearchToolbar';
18
22
  export type { FieldsSearchToolbarProps } from './FieldsSearchToolbar';
19
23
  export { HistoryGroupHeader } from './HistoryGroupHeader';
@@ -8,6 +8,8 @@ export { PathEditor } from "./PathEditor";
8
8
  export { HistoryFilter } from "./HistoryFilter";
9
9
  export { HistoryPrivateIcon } from "./HistoryPrivateIcon";
10
10
  export { FieldsSelector } from "./FieldsSelector";
11
+ export { EditableRowTitle } from "./EditableRowTitle";
12
+ export { RowActionsMenu } from "./RowActionsMenu";
11
13
  export { FieldsSearchToolbar } from "./FieldsSearchToolbar";
12
14
  export { HistoryGroupHeader } from "./HistoryGroupHeader";
13
15
  export { EmptyContent } from "./EmptyContent";
@@ -1 +1 @@
1
- {"version":3,"names":["DataTable","QueryStatusIcon","QueryDuration","LazyList","ListSpinner","Breadcrumbs","PathEditor","HistoryFilter","HistoryPrivateIcon","FieldsSelector","FieldsSearchToolbar","HistoryGroupHeader","EmptyContent","ClusterRow","NavigationItemRow","NavigationActionButtons","SkeletonRows","RowLink","SearchRowLayout","SearchWithButtons","MonacoEditor","AddChartButton","DEFAULT_ADD_CHART_BUTTON_OPTIONS","ChartEditorForm","Chart","MonacoLanguage","YT_DARK_HC_MONACO_THEME","YT_DARK_MONACO_THEME","YT_LIGHT_HC_MONACO_THEME","YT_LIGHT_MONACO_THEME","MONACO_THEME_BY_UI"],"sources":["index.ts"],"sourcesContent":["export {DataTable} from './DataTable';\nexport type {DataTableProps, Column} from './DataTable';\nexport {QueryStatusIcon} from './QueryStatusIcon';\nexport {QueryDuration} from './QueryDuration';\nexport {LazyList} from './LazyList';\nexport type {LazyListProps} from './LazyList';\nexport {ListSpinner} from './ListSpinner';\nexport type {ListSpinnerProps} from './ListSpinner';\nexport {Breadcrumbs} from './Breadcrumbs';\nexport type {BreadcrumbsProps} from './Breadcrumbs';\nexport {PathEditor} from './PathEditor';\nexport type {PathEditorProps} from './PathEditor';\nexport {HistoryFilter} from './HistoryFilter';\nexport {HistoryPrivateIcon} from './HistoryPrivateIcon';\nexport {FieldsSelector} from './FieldsSelector';\nexport type {FieldsSelectorOption, FieldsSelectorProps} from './FieldsSelector';\nexport {FieldsSearchToolbar} from './FieldsSearchToolbar';\nexport type {FieldsSearchToolbarProps} from './FieldsSearchToolbar';\nexport {HistoryGroupHeader} from './HistoryGroupHeader';\nexport {EmptyContent} from './EmptyContent';\nexport type {EmptyContentProps, EmptyContentVariant} from './EmptyContent';\nexport {ClusterRow} from './ClusterRow';\nexport type {ClusterRowProps} from './ClusterRow';\nexport {NavigationItemRow} from './NavigationItemRow';\nexport type {NavigationItemRowProps} from './NavigationItemRow';\nexport {NavigationActionButtons} from './NavigationActionButtons';\nexport type {NavigationActionButtonsProps} from './NavigationActionButtons';\nexport {SkeletonRows} from './SkeletonRows';\nexport type {SkeletonRowsProps} from './SkeletonRows';\nexport {RowLink} from './RowLink';\nexport type {RowLinkProps} from './RowLink';\nexport {SearchRowLayout} from './SearchRowLayout';\nexport type {SearchRowLayoutProps} from './SearchRowLayout';\nexport {SearchWithButtons} from './SearchWithButtons';\nexport type {SearchWithButtonsProps} from './SearchWithButtons';\nexport {MonacoEditor} from './MonacoEditor';\nexport type {MonacoEditorConfig} from './MonacoEditor';\nexport {AddChartButton, DEFAULT_ADD_CHART_BUTTON_OPTIONS} from './AddChartButton';\nexport type {\n AddChartButtonOption,\n AddChartButtonProps,\n DefaultAddChartButtonValue,\n} from './AddChartButton';\nexport {ChartEditorForm} from './ChartEditorForm';\nexport type {\n ChartEditorFormProps,\n ChartEditorFormValues,\n ChartEditorLabels,\n ChartEditorOption,\n} from './ChartEditorForm';\nexport * from './Dashboard';\nexport {Chart} from './Chart';\nexport type {ChartAction, ChartProps} from './Chart';\nexport {\n MonacoLanguage,\n YT_DARK_HC_MONACO_THEME,\n YT_DARK_MONACO_THEME,\n YT_LIGHT_HC_MONACO_THEME,\n YT_LIGHT_MONACO_THEME,\n MONACO_THEME_BY_UI,\n} from './MonacoEditor';\nexport type {MonacoThemeName} from './MonacoEditor';\n"],"mappings":"AAAA,SAAQA,SAAS;AAEjB,SAAQC,eAAe;AACvB,SAAQC,aAAa;AACrB,SAAQC,QAAQ;AAEhB,SAAQC,WAAW;AAEnB,SAAQC,WAAW;AAEnB,SAAQC,UAAU;AAElB,SAAQC,aAAa;AACrB,SAAQC,kBAAkB;AAC1B,SAAQC,cAAc;AAEtB,SAAQC,mBAAmB;AAE3B,SAAQC,kBAAkB;AAC1B,SAAQC,YAAY;AAEpB,SAAQC,UAAU;AAElB,SAAQC,iBAAiB;AAEzB,SAAQC,uBAAuB;AAE/B,SAAQC,YAAY;AAEpB,SAAQC,OAAO;AAEf,SAAQC,eAAe;AAEvB,SAAQC,iBAAiB;AAEzB,SAAQC,YAAY;AAEpB,SAAQC,cAAc,EAAEC,gCAAgC;AAMxD,SAAQC,eAAe;AAOvB;AACA,SAAQC,KAAK;AAEb,SACIC,cAAc,EACdC,uBAAuB,EACvBC,oBAAoB,EACpBC,wBAAwB,EACxBC,qBAAqB,EACrBC,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["DataTable","QueryStatusIcon","QueryDuration","LazyList","ListSpinner","Breadcrumbs","PathEditor","HistoryFilter","HistoryPrivateIcon","FieldsSelector","EditableRowTitle","RowActionsMenu","FieldsSearchToolbar","HistoryGroupHeader","EmptyContent","ClusterRow","NavigationItemRow","NavigationActionButtons","SkeletonRows","RowLink","SearchRowLayout","SearchWithButtons","MonacoEditor","AddChartButton","DEFAULT_ADD_CHART_BUTTON_OPTIONS","ChartEditorForm","Chart","MonacoLanguage","YT_DARK_HC_MONACO_THEME","YT_DARK_MONACO_THEME","YT_LIGHT_HC_MONACO_THEME","YT_LIGHT_MONACO_THEME","MONACO_THEME_BY_UI"],"sources":["index.ts"],"sourcesContent":["export {DataTable} from './DataTable';\nexport type {DataTableProps, Column} from './DataTable';\nexport {QueryStatusIcon} from './QueryStatusIcon';\nexport {QueryDuration} from './QueryDuration';\nexport {LazyList} from './LazyList';\nexport type {LazyListProps} from './LazyList';\nexport {ListSpinner} from './ListSpinner';\nexport type {ListSpinnerProps} from './ListSpinner';\nexport {Breadcrumbs} from './Breadcrumbs';\nexport type {BreadcrumbsProps} from './Breadcrumbs';\nexport {PathEditor} from './PathEditor';\nexport type {PathEditorProps} from './PathEditor';\nexport {HistoryFilter} from './HistoryFilter';\nexport {HistoryPrivateIcon} from './HistoryPrivateIcon';\nexport {FieldsSelector} from './FieldsSelector';\nexport type {FieldsSelectorOption, FieldsSelectorProps} from './FieldsSelector';\nexport {EditableRowTitle} from './EditableRowTitle';\nexport type {EditableRowTitleProps} from './EditableRowTitle';\nexport {RowActionsMenu} from './RowActionsMenu';\nexport type {RowActionsMenuProps} from './RowActionsMenu';\nexport {FieldsSearchToolbar} from './FieldsSearchToolbar';\nexport type {FieldsSearchToolbarProps} from './FieldsSearchToolbar';\nexport {HistoryGroupHeader} from './HistoryGroupHeader';\nexport {EmptyContent} from './EmptyContent';\nexport type {EmptyContentProps, EmptyContentVariant} from './EmptyContent';\nexport {ClusterRow} from './ClusterRow';\nexport type {ClusterRowProps} from './ClusterRow';\nexport {NavigationItemRow} from './NavigationItemRow';\nexport type {NavigationItemRowProps} from './NavigationItemRow';\nexport {NavigationActionButtons} from './NavigationActionButtons';\nexport type {NavigationActionButtonsProps} from './NavigationActionButtons';\nexport {SkeletonRows} from './SkeletonRows';\nexport type {SkeletonRowsProps} from './SkeletonRows';\nexport {RowLink} from './RowLink';\nexport type {RowLinkProps} from './RowLink';\nexport {SearchRowLayout} from './SearchRowLayout';\nexport type {SearchRowLayoutProps} from './SearchRowLayout';\nexport {SearchWithButtons} from './SearchWithButtons';\nexport type {SearchWithButtonsProps} from './SearchWithButtons';\nexport {MonacoEditor} from './MonacoEditor';\nexport type {MonacoEditorConfig} from './MonacoEditor';\nexport {AddChartButton, DEFAULT_ADD_CHART_BUTTON_OPTIONS} from './AddChartButton';\nexport type {\n AddChartButtonOption,\n AddChartButtonProps,\n DefaultAddChartButtonValue,\n} from './AddChartButton';\nexport {ChartEditorForm} from './ChartEditorForm';\nexport type {\n ChartEditorFormProps,\n ChartEditorFormValues,\n ChartEditorLabels,\n ChartEditorOption,\n} from './ChartEditorForm';\nexport * from './Dashboard';\nexport {Chart} from './Chart';\nexport type {ChartAction, ChartProps} from './Chart';\nexport {\n MonacoLanguage,\n YT_DARK_HC_MONACO_THEME,\n YT_DARK_MONACO_THEME,\n YT_LIGHT_HC_MONACO_THEME,\n YT_LIGHT_MONACO_THEME,\n MONACO_THEME_BY_UI,\n} from './MonacoEditor';\nexport type {MonacoThemeName} from './MonacoEditor';\n"],"mappings":"AAAA,SAAQA,SAAS;AAEjB,SAAQC,eAAe;AACvB,SAAQC,aAAa;AACrB,SAAQC,QAAQ;AAEhB,SAAQC,WAAW;AAEnB,SAAQC,WAAW;AAEnB,SAAQC,UAAU;AAElB,SAAQC,aAAa;AACrB,SAAQC,kBAAkB;AAC1B,SAAQC,cAAc;AAEtB,SAAQC,gBAAgB;AAExB,SAAQC,cAAc;AAEtB,SAAQC,mBAAmB;AAE3B,SAAQC,kBAAkB;AAC1B,SAAQC,YAAY;AAEpB,SAAQC,UAAU;AAElB,SAAQC,iBAAiB;AAEzB,SAAQC,uBAAuB;AAE/B,SAAQC,YAAY;AAEpB,SAAQC,OAAO;AAEf,SAAQC,eAAe;AAEvB,SAAQC,iBAAiB;AAEzB,SAAQC,YAAY;AAEpB,SAAQC,cAAc,EAAEC,gCAAgC;AAMxD,SAAQC,eAAe;AAOvB;AACA,SAAQC,KAAK;AAEb,SACIC,cAAc,EACdC,uBAAuB,EACvBC,oBAAoB,EACpBC,wBAAwB,EACxBC,qBAAqB,EACrBC,kBAAkB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import { BaseHistoryRow, QueryHistoryItem, QueryHistoryRowVariant } from '../types/history';
2
- export declare const getListKey: <T extends BaseHistoryRow>(items: QueryHistoryItem<T>[], variant: QueryHistoryRowVariant) => string;
1
+ import { QueryListItem, QueryListRow, QueryListRowVariant } from '../types/queryList';
2
+ export declare const getListKey: <T extends QueryListRow>(items: QueryListItem<T>[], variant: QueryListRowVariant) => string;
@@ -1 +1 @@
1
- {"version":3,"names":["getListKey","items","variant","itemsKey","map","item","concat","header","id","join"],"sources":["getListKey.ts"],"sourcesContent":["import {BaseHistoryRow, QueryHistoryItem, QueryHistoryRowVariant} from '../types/history';\n\nexport const getListKey = <T extends BaseHistoryRow>(\n items: QueryHistoryItem<T>[],\n variant: QueryHistoryRowVariant,\n): string => {\n const itemsKey = items\n .map((item) => ('header' in item ? `h:${item.header}` : `r:${item.id}`))\n .join(',');\n\n return `${variant}:${itemsKey}`;\n};\n"],"mappings":";;;;;;AAEA,OAAO,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CACnBC,KAA4B,EAC5BC,OAA+B,EACtB;EACT,IAAMC,QAAQ,GAAGF,KAAK,CACjBG,GAAG,CAAC,UAACC,IAAI;IAAA,OAAM,QAAQ,IAAIA,IAAI,QAAAC,MAAA,CAAQD,IAAI,CAACE,MAAM,SAAAD,MAAA,CAAUD,IAAI,CAACG,EAAE,CAAE;EAAA,CAAC,CAAC,CACvEC,IAAI,CAAC,GAAG,CAAC;EAEd,UAAAH,MAAA,CAAUJ,OAAO,OAAAI,MAAA,CAAIH,QAAQ;AACjC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["getListKey","items","variant","itemsKey","map","item","concat","header","id","join"],"sources":["getListKey.ts"],"sourcesContent":["import {QueryListItem, QueryListRow, QueryListRowVariant} from '../types/queryList';\n\nexport const getListKey = <T extends QueryListRow>(\n items: QueryListItem<T>[],\n variant: QueryListRowVariant,\n): string => {\n const itemsKey = items\n .map((item) => ('header' in item ? `h:${item.header}` : `r:${item.id}`))\n .join(',');\n\n return `${variant}:${itemsKey}`;\n};\n"],"mappings":";;;;;;AAEA,OAAO,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CACnBC,KAAyB,EACzBC,OAA4B,EACnB;EACT,IAAMC,QAAQ,GAAGF,KAAK,CACjBG,GAAG,CAAC,UAACC,IAAI;IAAA,OAAM,QAAQ,IAAIA,IAAI,QAAAC,MAAA,CAAQD,IAAI,CAACE,MAAM,SAAAD,MAAA,CAAUD,IAAI,CAACG,EAAE,CAAE;EAAA,CAAC,CAAC,CACvEC,IAAI,CAAC,GAAG,CAAC;EAEd,UAAAH,MAAA,CAAUJ,OAAO,OAAAI,MAAA,CAAIH,QAAQ;AACjC,CAAC","ignoreList":[]}
@@ -1,15 +1,16 @@
1
- import { QueryHistoryFieldKey, QueryHistoryRow } from '../types/history';
1
+ import { QueryListFieldKey } from '../types/queryList';
2
+ import { QueryHistoryRow } from '../types/history';
2
3
  /**
3
4
  * A field is visible either when no `visibleFields` config is provided
4
5
  * (the consumer doesn't opt into the feature — everything is shown), or when
5
6
  * the field key is explicitly included in `visibleFields.value`.
6
7
  *
7
8
  * `visibleFields` is accepted loosely as `{value: string[]}` (rather than the
8
- * generic `QueryHistoryVisibleFieldsConfig<T>`) so this helper works for any
9
+ * generic `QueryListVisibleFieldsConfig<T>`) so this helper works for any
9
10
  * `T extends QueryHistoryRow` without fighting TS variance on generic key
10
- * unions; `field` still uses `QueryHistoryFieldKey<QueryHistoryRow>` to keep
11
+ * unions; `field` still uses `QueryListFieldKey<QueryHistoryRow>` to keep
11
12
  * typo-protection for the built-in fields checked by the row renderers.
12
13
  */
13
14
  export declare const isFieldVisible: (visibleFields: {
14
15
  value: string[];
15
- } | undefined, field: QueryHistoryFieldKey<QueryHistoryRow>) => boolean;
16
+ } | undefined, field: QueryListFieldKey<QueryHistoryRow>) => boolean;
@@ -6,9 +6,9 @@ import "core-js/modules/es.string.includes.js";
6
6
  * the field key is explicitly included in `visibleFields.value`.
7
7
  *
8
8
  * `visibleFields` is accepted loosely as `{value: string[]}` (rather than the
9
- * generic `QueryHistoryVisibleFieldsConfig<T>`) so this helper works for any
9
+ * generic `QueryListVisibleFieldsConfig<T>`) so this helper works for any
10
10
  * `T extends QueryHistoryRow` without fighting TS variance on generic key
11
- * unions; `field` still uses `QueryHistoryFieldKey<QueryHistoryRow>` to keep
11
+ * unions; `field` still uses `QueryListFieldKey<QueryHistoryRow>` to keep
12
12
  * typo-protection for the built-in fields checked by the row renderers.
13
13
  */
14
14
  export var isFieldVisible = function isFieldVisible(visibleFields, field) {
@@ -1 +1 @@
1
- {"version":3,"names":["isFieldVisible","visibleFields","field","undefined","value","includes"],"sources":["isFieldVisible.ts"],"sourcesContent":["import {QueryHistoryFieldKey, QueryHistoryRow} from '../types/history';\n\n/**\n * A field is visible either when no `visibleFields` config is provided\n * (the consumer doesn't opt into the feature — everything is shown), or when\n * the field key is explicitly included in `visibleFields.value`.\n *\n * `visibleFields` is accepted loosely as `{value: string[]}` (rather than the\n * generic `QueryHistoryVisibleFieldsConfig<T>`) so this helper works for any\n * `T extends QueryHistoryRow` without fighting TS variance on generic key\n * unions; `field` still uses `QueryHistoryFieldKey<QueryHistoryRow>` to keep\n * typo-protection for the built-in fields checked by the row renderers.\n */\nexport const isFieldVisible = (\n visibleFields: {value: string[]} | undefined,\n field: QueryHistoryFieldKey<QueryHistoryRow>,\n): boolean => {\n return visibleFields === undefined || visibleFields.value.includes(field);\n};\n"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CACvBC,aAA4C,EAC5CC,KAA4C,EAClC;EACV,OAAOD,aAAa,KAAKE,SAAS,IAAIF,aAAa,CAACG,KAAK,CAACC,QAAQ,CAACH,KAAK,CAAC;AAC7E,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["isFieldVisible","visibleFields","field","undefined","value","includes"],"sources":["isFieldVisible.ts"],"sourcesContent":["import {QueryListFieldKey} from '../types/queryList';\nimport {QueryHistoryRow} from '../types/history';\n\n/**\n * A field is visible either when no `visibleFields` config is provided\n * (the consumer doesn't opt into the feature — everything is shown), or when\n * the field key is explicitly included in `visibleFields.value`.\n *\n * `visibleFields` is accepted loosely as `{value: string[]}` (rather than the\n * generic `QueryListVisibleFieldsConfig<T>`) so this helper works for any\n * `T extends QueryHistoryRow` without fighting TS variance on generic key\n * unions; `field` still uses `QueryListFieldKey<QueryHistoryRow>` to keep\n * typo-protection for the built-in fields checked by the row renderers.\n */\nexport const isFieldVisible = (\n visibleFields: {value: string[]} | undefined,\n field: QueryListFieldKey<QueryHistoryRow>,\n): boolean => {\n return visibleFields === undefined || visibleFields.value.includes(field);\n};\n"],"mappings":";;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CACvBC,aAA4C,EAC5CC,KAAyC,EAC/B;EACV,OAAOD,aAAa,KAAKE,SAAS,IAAIF,aAAa,CAACG,KAAK,CAACC,QAAQ,CAACH,KAAK,CAAC;AAC7E,CAAC","ignoreList":[]}
@@ -3,5 +3,6 @@ type Date = DateTime | string | number | undefined;
3
3
  export declare const formatTime: (date: Date) => string | undefined;
4
4
  export declare const durationDates: (date1: Date, date2: Date) => string | undefined;
5
5
  export declare const formatTimeCanonical: (ts: Date) => string | undefined;
6
+ export declare const formatDateCanonical: (ts: Date) => string | undefined;
6
7
  export declare const getTimestampFromDate: (date: Date) => number | undefined;
7
8
  export {};
@@ -15,8 +15,12 @@ export var formatTimeCanonical = function formatTimeCanonical(ts) {
15
15
  var _dateTimeParse3;
16
16
  return (_dateTimeParse3 = dateTimeParse(ts)) === null || _dateTimeParse3 === void 0 ? void 0 : _dateTimeParse3.format('DD.MM.YYYY, HH:mm');
17
17
  };
18
- export var getTimestampFromDate = function getTimestampFromDate(date) {
18
+ export var formatDateCanonical = function formatDateCanonical(ts) {
19
19
  var _dateTimeParse4;
20
- return (_dateTimeParse4 = dateTimeParse(date)) === null || _dateTimeParse4 === void 0 ? void 0 : _dateTimeParse4.valueOf();
20
+ return (_dateTimeParse4 = dateTimeParse(ts)) === null || _dateTimeParse4 === void 0 ? void 0 : _dateTimeParse4.format('DD.MM.YYYY');
21
+ };
22
+ export var getTimestampFromDate = function getTimestampFromDate(date) {
23
+ var _dateTimeParse5;
24
+ return (_dateTimeParse5 = dateTimeParse(date)) === null || _dateTimeParse5 === void 0 ? void 0 : _dateTimeParse5.valueOf();
21
25
  };
22
26
  // #sourceMappingURL=time.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["dateTime","dateTimeParse","formatTime","date","_dateTimeParse","format","durationDates","date1","date2","_dateTimeParse2","start","end","diff","formatTimeCanonical","ts","_dateTimeParse3","getTimestampFromDate","_dateTimeParse4","valueOf"],"sources":["time.ts"],"sourcesContent":["import {DateTime, dateTime, dateTimeParse} from '@gravity-ui/date-utils';\n\ntype Date = DateTime | string | number | undefined;\n\nexport const formatTime = (date: Date) => {\n return dateTimeParse(date)?.format('HH:mm');\n};\n\nexport const durationDates = (date1: Date, date2: Date) => {\n if (!date1 && !date2) return '--:--';\n\n const start = dateTimeParse(date1) || dateTime();\n const end = dateTimeParse(date2) || dateTime();\n const diff = end?.diff(start);\n\n return dateTimeParse(diff)?.format('HH:mm');\n};\n\nexport const formatTimeCanonical = (ts: Date) => {\n return dateTimeParse(ts)?.format('DD.MM.YYYY, HH:mm');\n};\n\nexport const getTimestampFromDate = (date: Date) => {\n return dateTimeParse(date)?.valueOf();\n};\n"],"mappings":"AAAA,SAAkBA,QAAQ,EAAEC,aAAa,QAAO,wBAAwB;AAIxE,OAAO,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAU,EAAK;EAAA,IAAAC,cAAA;EACtC,QAAAA,cAAA,GAAOH,aAAa,CAACE,IAAI,CAAC,cAAAC,cAAA,uBAAnBA,cAAA,CAAqBC,MAAM,CAAC,OAAO,CAAC;AAC/C,CAAC;AAED,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAAW,EAAEC,KAAW,EAAK;EAAA,IAAAC,eAAA;EACvD,IAAI,CAACF,KAAK,IAAI,CAACC,KAAK,EAAE,OAAO,OAAO;EAEpC,IAAME,KAAK,GAAGT,aAAa,CAACM,KAAK,CAAC,IAAIP,QAAQ,CAAC,CAAC;EAChD,IAAMW,GAAG,GAAGV,aAAa,CAACO,KAAK,CAAC,IAAIR,QAAQ,CAAC,CAAC;EAC9C,IAAMY,IAAI,GAAGD,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEC,IAAI,CAACF,KAAK,CAAC;EAE7B,QAAAD,eAAA,GAAOR,aAAa,CAACW,IAAI,CAAC,cAAAH,eAAA,uBAAnBA,eAAA,CAAqBJ,MAAM,CAAC,OAAO,CAAC;AAC/C,CAAC;AAED,OAAO,IAAMQ,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,EAAQ,EAAK;EAAA,IAAAC,eAAA;EAC7C,QAAAA,eAAA,GAAOd,aAAa,CAACa,EAAE,CAAC,cAAAC,eAAA,uBAAjBA,eAAA,CAAmBV,MAAM,CAAC,mBAAmB,CAAC;AACzD,CAAC;AAED,OAAO,IAAMW,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAIb,IAAU,EAAK;EAAA,IAAAc,eAAA;EAChD,QAAAA,eAAA,GAAOhB,aAAa,CAACE,IAAI,CAAC,cAAAc,eAAA,uBAAnBA,eAAA,CAAqBC,OAAO,CAAC,CAAC;AACzC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["dateTime","dateTimeParse","formatTime","date","_dateTimeParse","format","durationDates","date1","date2","_dateTimeParse2","start","end","diff","formatTimeCanonical","ts","_dateTimeParse3","formatDateCanonical","_dateTimeParse4","getTimestampFromDate","_dateTimeParse5","valueOf"],"sources":["time.ts"],"sourcesContent":["import {DateTime, dateTime, dateTimeParse} from '@gravity-ui/date-utils';\n\ntype Date = DateTime | string | number | undefined;\n\nexport const formatTime = (date: Date) => {\n return dateTimeParse(date)?.format('HH:mm');\n};\n\nexport const durationDates = (date1: Date, date2: Date) => {\n if (!date1 && !date2) return '--:--';\n\n const start = dateTimeParse(date1) || dateTime();\n const end = dateTimeParse(date2) || dateTime();\n const diff = end?.diff(start);\n\n return dateTimeParse(diff)?.format('HH:mm');\n};\n\nexport const formatTimeCanonical = (ts: Date) => {\n return dateTimeParse(ts)?.format('DD.MM.YYYY, HH:mm');\n};\n\nexport const formatDateCanonical = (ts: Date) => {\n return dateTimeParse(ts)?.format('DD.MM.YYYY');\n};\n\nexport const getTimestampFromDate = (date: Date) => {\n return dateTimeParse(date)?.valueOf();\n};\n"],"mappings":"AAAA,SAAkBA,QAAQ,EAAEC,aAAa,QAAO,wBAAwB;AAIxE,OAAO,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAU,EAAK;EAAA,IAAAC,cAAA;EACtC,QAAAA,cAAA,GAAOH,aAAa,CAACE,IAAI,CAAC,cAAAC,cAAA,uBAAnBA,cAAA,CAAqBC,MAAM,CAAC,OAAO,CAAC;AAC/C,CAAC;AAED,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAAW,EAAEC,KAAW,EAAK;EAAA,IAAAC,eAAA;EACvD,IAAI,CAACF,KAAK,IAAI,CAACC,KAAK,EAAE,OAAO,OAAO;EAEpC,IAAME,KAAK,GAAGT,aAAa,CAACM,KAAK,CAAC,IAAIP,QAAQ,CAAC,CAAC;EAChD,IAAMW,GAAG,GAAGV,aAAa,CAACO,KAAK,CAAC,IAAIR,QAAQ,CAAC,CAAC;EAC9C,IAAMY,IAAI,GAAGD,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEC,IAAI,CAACF,KAAK,CAAC;EAE7B,QAAAD,eAAA,GAAOR,aAAa,CAACW,IAAI,CAAC,cAAAH,eAAA,uBAAnBA,eAAA,CAAqBJ,MAAM,CAAC,OAAO,CAAC;AAC/C,CAAC;AAED,OAAO,IAAMQ,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,EAAQ,EAAK;EAAA,IAAAC,eAAA;EAC7C,QAAAA,eAAA,GAAOd,aAAa,CAACa,EAAE,CAAC,cAAAC,eAAA,uBAAjBA,eAAA,CAAmBV,MAAM,CAAC,mBAAmB,CAAC;AACzD,CAAC;AAED,OAAO,IAAMW,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIF,EAAQ,EAAK;EAAA,IAAAG,eAAA;EAC7C,QAAAA,eAAA,GAAOhB,aAAa,CAACa,EAAE,CAAC,cAAAG,eAAA,uBAAjBA,eAAA,CAAmBZ,MAAM,CAAC,YAAY,CAAC;AAClD,CAAC;AAED,OAAO,IAAMa,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAIf,IAAU,EAAK;EAAA,IAAAgB,eAAA;EAChD,QAAAA,eAAA,GAAOlB,aAAa,CAACE,IAAI,CAAC,cAAAgB,eAAA,uBAAnBA,eAAA,CAAqBC,OAAO,CAAC,CAAC;AACzC,CAAC","ignoreList":[]}
@@ -1,7 +1,9 @@
1
1
  export * from './components';
2
2
  export * from './modules';
3
3
  export * from './widgets';
4
+ export * from './types/queryList';
4
5
  export * from './types/history';
6
+ export type { SavedQuery } from './types/savedQueries';
5
7
  export * from './types/tutorial';
6
8
  export * from './types/navigation';
7
9
  export * from './types/pathEditor';
@@ -1,8 +1,10 @@
1
1
  export * from "./components";
2
2
  export * from "./modules";
3
3
  export * from "./widgets";
4
+ export * from "./types/queryList";
4
5
  export * from "./types/history";
5
6
  export * from "./types/tutorial";
6
7
  export * from "./types/navigation";
7
8
  export * from "./types/pathEditor";
9
+ export {};
8
10
  // #sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './components';\nexport * from './modules';\nexport * from './widgets';\nexport * from './types/history';\nexport * from './types/tutorial';\nexport * from './types/navigation';\nexport * from './types/pathEditor';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './components';\nexport * from './modules';\nexport * from './widgets';\nexport * from './types/queryList';\nexport * from './types/history';\nexport type {SavedQuery} from './types/savedQueries';\nexport * from './types/tutorial';\nexport * from './types/navigation';\nexport * from './types/pathEditor';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAmC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ .qp-history-comparison-actions {
2
+ padding: 12px 20px;
3
+ background: var(--g-color-base-background);
4
+ }
5
+ /*# sourceMappingURL=HistoryComparisonActions.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["HistoryComparisonActions.scss"],"names":[],"mappings":"AAAA;EACE,kBAAA;EACA,0CAAA;AACF","file":"HistoryComparisonActions.css","sourcesContent":[".qp-history-comparison-actions {\n padding: 12px 20px;\n background: var(--g-color-base-background);\n}\n"],"sourceRoot":""}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { QueryListComparisonConfig, QueryListRow } from '../../types/queryList';
3
+ import './HistoryComparisonActions.scss';
4
+ export type HistoryComparisonActionsProps<T extends QueryListRow = QueryListRow> = {
5
+ comparison: QueryListComparisonConfig<T>;
6
+ className?: string;
7
+ };
8
+ export declare const HistoryComparisonActions: <T extends QueryListRow>({ comparison: { enabled, comparedRowIds, onCompare, onCancel }, className, }: HistoryComparisonActionsProps<T>) => React.JSX.Element | null;
@@ -1,45 +1,45 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
2
  import React from 'react';
3
3
  import { Button, Flex, Icon } from '@gravity-ui/uikit';
4
- var ArrowRotateRightIcon = function ArrowRotateRightIcon(props) {
4
+ var ArrowRightArrowLeftIcon = function ArrowRightArrowLeftIcon(props) {
5
5
  return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({}, props), {}, {
6
6
  children: /*#__PURE__*/_jsx("path", {
7
7
  fill: "currentColor",
8
8
  fillRule: "evenodd",
9
- d: "M8 1.5a6.5 6.5 0 1 0 6.445 7.348.75.75 0 1 0-1.487-.194A5.001 5.001 0 1 1 11.57 4.5h-1.32a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-1.5 0v1.06A6.48 6.48 0 0 0 8 1.5",
9
+ d: "M13.78 3.72a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L11.44 5H2.75a.75.75 0 1 1 0-1.5h8.69L9.72 1.78A.75.75 0 0 1 10.78.72zM2 11.75a.75.75 0 0 1 .22-.53l3-3a.75.75 0 1 1 1.06 1.06L4.56 11h8.69a.75.75 0 0 1 0 1.5H4.56l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1-.22-.53",
10
10
  clipRule: "evenodd"
11
11
  })
12
12
  }));
13
13
  };
14
- ArrowRotateRightIcon.defaultProps = {
14
+ ArrowRightArrowLeftIcon.defaultProps = {
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
16
  width: "16",
17
17
  height: "16",
18
18
  fill: "none",
19
19
  viewBox: "0 0 16 16"
20
20
  };
21
- var ArrowRightArrowLeftIcon = function ArrowRightArrowLeftIcon(props) {
21
+ var ArrowRotateRightIcon = function ArrowRotateRightIcon(props) {
22
22
  return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({}, props), {}, {
23
23
  children: /*#__PURE__*/_jsx("path", {
24
24
  fill: "currentColor",
25
25
  fillRule: "evenodd",
26
- d: "M13.78 3.72a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L11.44 5H2.75a.75.75 0 1 1 0-1.5h8.69L9.72 1.78A.75.75 0 0 1 10.78.72zM2 11.75a.75.75 0 0 1 .22-.53l3-3a.75.75 0 1 1 1.06 1.06L4.56 11h8.69a.75.75 0 0 1 0 1.5H4.56l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1-.22-.53",
26
+ d: "M8 1.5a6.5 6.5 0 1 0 6.445 7.348.75.75 0 1 0-1.487-.194A5.001 5.001 0 1 1 11.57 4.5h-1.32a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-1.5 0v1.06A6.48 6.48 0 0 0 8 1.5",
27
27
  clipRule: "evenodd"
28
28
  })
29
29
  }));
30
30
  };
31
- ArrowRightArrowLeftIcon.defaultProps = {
31
+ ArrowRotateRightIcon.defaultProps = {
32
32
  xmlns: "http://www.w3.org/2000/svg",
33
33
  width: "16",
34
34
  height: "16",
35
35
  fill: "none",
36
36
  viewBox: "0 0 16 16"
37
37
  };
38
- import "./ComparisonActions.css";
39
38
  import cn from 'bem-cn-lite';
39
+ import "./HistoryComparisonActions.css";
40
40
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
41
- var block = cn('qp-query-history-comparison-action');
42
- export var ComparisonActions = function ComparisonActions(_ref) {
41
+ var block = cn('qp-history-comparison-actions');
42
+ export var HistoryComparisonActions = function HistoryComparisonActions(_ref) {
43
43
  var _ref$comparison = _ref.comparison,
44
44
  enabled = _ref$comparison.enabled,
45
45
  comparedRowIds = _ref$comparison.comparedRowIds,
@@ -71,4 +71,4 @@ export var ComparisonActions = function ComparisonActions(_ref) {
71
71
  })]
72
72
  });
73
73
  };
74
- // #sourceMappingURL=ComparisonActions.js.map
74
+ // #sourceMappingURL=HistoryComparisonActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Button","Flex","Icon","ArrowRightArrowLeftIcon","props","_jsx","_objectSpread","children","fill","fillRule","d","clipRule","defaultProps","xmlns","width","height","viewBox","ArrowRotateRightIcon","cn","jsx","jsxs","_jsxs","block","HistoryComparisonActions","_ref","_ref$comparison","comparison","enabled","comparedRowIds","onCompare","onCancel","className","gap","alignItems","justifyContent","onClick","data","size","view","disabled","length"],"sources":["HistoryComparisonActions.tsx"],"sourcesContent":["import React from 'react';\nimport {Button, Flex, Icon} from '@gravity-ui/uikit';\nimport ArrowRightArrowLeftIcon from '@gravity-ui/icons/svgs/arrow-right-arrow-left.svg';\nimport ArrowRotateRightIcon from '@gravity-ui/icons/svgs/arrow-rotate-right.svg';\nimport {QueryListComparisonConfig, QueryListRow} from '../../types/queryList';\nimport cn from 'bem-cn-lite';\nimport './HistoryComparisonActions.scss';\n\nexport type HistoryComparisonActionsProps<T extends QueryListRow = QueryListRow> = {\n comparison: QueryListComparisonConfig<T>;\n className?: string;\n};\n\nconst block = cn('qp-history-comparison-actions');\n\nexport const HistoryComparisonActions = <T extends QueryListRow>({\n comparison: {enabled, comparedRowIds, onCompare, onCancel},\n className,\n}: HistoryComparisonActionsProps<T>) => {\n if (!enabled) return null;\n\n return (\n <Flex\n gap={3}\n alignItems=\"center\"\n justifyContent=\"center\"\n className={block(null, className)}\n >\n <Button onClick={onCancel} width=\"max\">\n <Icon data={ArrowRotateRightIcon} size={16} />\n </Button>\n <Button\n view=\"action\"\n onClick={onCompare}\n disabled={comparedRowIds.length < 2}\n width=\"max\"\n >\n <Icon data={ArrowRightArrowLeftIcon} size={16} />\n </Button>\n </Flex>\n );\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QA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AAQ;IACnBC,cAAc,EAAC,QAAQ;IACvBH,SAAS,EAAET,KAAK,CAAC,IAAI,EAAES,SAAS,CAAE;IAAAxB,QAAA,gBAElCF,IAAA,CAACL,MAAM;MAACmC,OAAO,EAAEL,QAAS;MAAChB,KAAK,EAAC,KAAK;MAAAP,QAAA,eAClCF,IAAA,CAACH,IAAI;QAACkC,IAAI,EAAEnB,oBAAqB;QAACoB,IAAI,EAAE;MAAG,CAAE;IAAC,CAC1C,CAAC,eACThC,IAAA,CAACL,MAAM;MACHsC,IAAI,EAAC,QAAQ;MACbH,OAAO,EAAEN,SAAU;MACnBU,QAAQ,EAAEX,cAAc,CAACY,MAAM,GAAG,CAAE;MACpC1B,KAAK,EAAC,KAAK;MAAAP,QAAA,eAEXF,IAAA,CAACH,IAAI;QAACkC,IAAI,EAAEjC,uBAAwB;QAACkC,IAAI,EAAE;MAAG,CAAE;IAAC,CAC7C,CAAC;EAAA,CACP,CAAC;AAEf,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- .qp-query-history-comparison-action {
1
+ .qp-history-comparison-actions {
2
2
  padding: 12px 20px;
3
3
  background: var(--g-color-base-background);
4
- }
4
+ }
@@ -0,0 +1,2 @@
1
+ export { HistoryComparisonActions } from './HistoryComparisonActions';
2
+ export type { HistoryComparisonActionsProps } from './HistoryComparisonActions';
@@ -0,0 +1,2 @@
1
+ export { HistoryComparisonActions } from "./HistoryComparisonActions";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HistoryComparisonActions"],"sources":["index.ts"],"sourcesContent":["export {HistoryComparisonActions} from './HistoryComparisonActions';\nexport type {HistoryComparisonActionsProps} from './HistoryComparisonActions';\n"],"mappings":"AAAA,SAAQA,wBAAwB","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  import { FC } from 'react';
2
- import { QueryHistoryFilterConfig } from '../../types/history';
2
+ import { QueryListFilterConfig } from '../../types/queryList';
3
3
  type Props = {
4
4
  search?: string;
5
5
  fullSearch?: boolean;
6
6
  hasClear?: boolean;
7
- filter?: QueryHistoryFilterConfig;
7
+ filter?: QueryListFilterConfig;
8
8
  onUpdate: (data: {
9
9
  value: string;
10
10
  fullSearch: boolean;
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useState","FullSearchToggleButton","HistoryFilter","SearchWithButtons","jsx","_jsx","HistoryHeader","_ref","search","fullSearch","hasClear","filter","onUpdate","className","_useState","_useState2","_slicedToArray","searchValue","setSearchValue","_useState3","_useState4","isFullSearch","setFullSearch","handleOnUpdate","newValue","value","handleModeChange","innerButtons","active","onClick","endButtons","_objectSpread","undefined"],"sources":["HistoryHeader.tsx"],"sourcesContent":["import React, {FC, useEffect, useState} from 'react';\nimport {FullSearchToggleButton} from './internal/FullSearchToggleButton';\nimport {HistoryFilter, SearchWithButtons} from '../../components';\nimport {QueryHistoryFilterConfig} from '../../types/history';\n\ntype Props = {\n search?: string;\n fullSearch?: boolean;\n hasClear?: boolean;\n filter?: QueryHistoryFilterConfig;\n onUpdate: (data: {value: string; fullSearch: boolean}) => void;\n className?: string;\n};\n\nexport const HistoryHeader: FC<Props> = ({\n search,\n fullSearch,\n hasClear,\n filter,\n onUpdate,\n className,\n}) => {\n const [searchValue, setSearchValue] = useState(search || '');\n const [isFullSearch, setFullSearch] = useState(fullSearch || false);\n\n useEffect(() => {\n setSearchValue(search || '');\n setFullSearch(fullSearch || false);\n }, [search, fullSearch]);\n\n const handleOnUpdate = (newValue: string) => {\n setSearchValue(newValue);\n onUpdate({value: newValue, fullSearch: isFullSearch});\n };\n\n const handleModeChange = () => {\n const newValue = !isFullSearch;\n setFullSearch(newValue);\n onUpdate({value: searchValue, fullSearch: newValue});\n };\n\n return (\n <SearchWithButtons\n className={className}\n value={searchValue}\n hasClear={hasClear}\n onUpdate={handleOnUpdate}\n innerButtons={[\n <FullSearchToggleButton\n key=\"full-search\"\n active={isFullSearch}\n onClick={handleModeChange}\n />,\n ]}\n endButtons={filter ? [<History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,gBAAgBA,CAAA,EAAS;IAC3B,IAAMF,QAAQ,GAAG,CAACH,YAAY;IAC9BC,aAAa,CAACE,QAAQ,CAAC;IACvBZ,QAAQ,CAAC;MAACa,KAAK,EAAER,WAAW;MAAER,UAAU,EAAEe;IAAQ,CAAC,CAAC;EACxD,CAAC;EAED,oBACInB,IAAA,CAACF,iBAAiB;IACdU,SAAS,EAAEA,SAAU;IACrBY,KAAK,EAAER,WAAY;IACnBP,QAAQ,EAAEA,QAAS;IACnBE,QAAQ,EAAEW,cAAe;IACzBI,YAAY,EAAE,cACVtB,IAAA,CAACJ,sBAAsB;MAEnB2B,MAAM,EAAEP,YAAa;MACrBQ,OAAO,EAAEH;IAAiB,GAFtB,aAGP,CAAC,CACJ;IACFI,UAAU,EAAEnB,MAAM,GAAG,cAACN,IAAA,CAACH,aAAa,EAAA6B,aAAA,KAAkBpB,MAAM,GAAnB,QAAsB,CAAC,CAAC,GAAGqB;EAAU,CACjF,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useState","FullSearchToggleButton","HistoryFilter","SearchWithButtons","jsx","_jsx","HistoryHeader","_ref","search","fullSearch","hasClear","filter","onUpdate","className","_useState","_useState2","_slicedToArray","searchValue","setSearchValue","_useState3","_useState4","isFullSearch","setFullSearch","handleOnUpdate","newValue","value","handleModeChange","innerButtons","active","onClick","endButtons","_objectSpread","undefined"],"sources":["HistoryHeader.tsx"],"sourcesContent":["import React, {FC, useEffect, useState} from 'react';\nimport {FullSearchToggleButton} from './internal/FullSearchToggleButton';\nimport {HistoryFilter, SearchWithButtons} from '../../components';\nimport {QueryListFilterConfig} from '../../types/queryList';\n\ntype Props = {\n search?: string;\n fullSearch?: boolean;\n hasClear?: boolean;\n filter?: QueryListFilterConfig;\n onUpdate: (data: {value: string; fullSearch: boolean}) => void;\n className?: string;\n};\n\nexport const HistoryHeader: FC<Props> = ({\n search,\n fullSearch,\n hasClear,\n filter,\n onUpdate,\n className,\n}) => {\n const [searchValue, setSearchValue] = useState(search || '');\n const [isFullSearch, setFullSearch] = useState(fullSearch || false);\n\n useEffect(() => {\n setSearchValue(search || '');\n setFullSearch(fullSearch || false);\n }, [search, fullSearch]);\n\n const handleOnUpdate = (newValue: string) => {\n setSearchValue(newValue);\n onUpdate({value: newValue, fullSearch: isFullSearch});\n };\n\n const handleModeChange = () => {\n const newValue = !isFullSearch;\n setFullSearch(newValue);\n onUpdate({value: searchValue, fullSearch: newValue});\n };\n\n return (\n <SearchWithButtons\n className={className}\n value={searchValue}\n hasClear={hasClear}\n onUpdate={handleOnUpdate}\n innerButtons={[\n <FullSearchToggleButton\n key=\"full-search\"\n active={isFullSearch}\n onClick={handleModeChange}\n />,\n ]}\n endButtons={filter ? [<HistoryFilter key=\"filter\" {...filter} />] : undefined}\n />\n );\n};\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,IAAOC,SAAS,EAAEC,QAAQ,QAAO,OAAO;AACpD,SAAQC,sBAAsB;AAC9B,SAAQC,aAAa,EAAEC,iBAAiB;AAA0B,SAAAC,GAAA,IAAAC,IAAA;AAYlE,OAAO,IAAMC,aAAwB,GAAG,SAA3BA,aAAwBA,CAAAC,IAAA,EAO/B;EAAA,IANFC,MAAM,GAAAD,IAAA,CAANC,MAAM;IACNC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IACVC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IACRC,SAAS,GAAAN,IAAA,CAATM,SAAS;EAET,IAAAC,SAAA,GAAsCd,QAAQ,CAACQ,MAAM,IAAI,EAAE,CAAC;IAAAO,UAAA,GAAAC,cAAA,CAAAF,SAAA;IAArDG,WAAW,GAAAF,UAAA;IAAEG,cAAc,GAAAH,UAAA;EAClC,IAAAI,UAAA,GAAsCnB,QAAQ,CAACS,UAAU,IAAI,KAAK,CAAC;IAAAW,UAAA,GAAAJ,cAAA,CAAAG,UAAA;IAA5DE,YAAY,GAAAD,UAAA;IAAEE,aAAa,GAAAF,UAAA;EAElCrB,SAAS,CAAC,YAAM;IACZmB,cAAc,CAACV,MAAM,IAAI,EAAE,CAAC;IAC5Bc,aAAa,CAACb,UAAU,IAAI,KAAK,CAAC;EACtC,CAAC,EAAE,CAACD,MAAM,EAAEC,UAAU,CAAC,CAAC;EAExB,IAAMc,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,QAAgB,EAAK;IACzCN,cAAc,CAACM,QAAQ,CAAC;IACxBZ,QAAQ,CAAC;MAACa,KAAK,EAAED,QAAQ;MAAEf,UAAU,EAAEY;IAAY,CAAC,CAAC;EACzD,CAAC;EAED,IAAMK,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAS;IAC3B,IAAMF,QAAQ,GAAG,CAACH,YAAY;IAC9BC,aAAa,CAACE,QAAQ,CAAC;IACvBZ,QAAQ,CAAC;MAACa,KAAK,EAAER,WAAW;MAAER,UAAU,EAAEe;IAAQ,CAAC,CAAC;EACxD,CAAC;EAED,oBACInB,IAAA,CAACF,iBAAiB;IACdU,SAAS,EAAEA,SAAU;IACrBY,KAAK,EAAER,WAAY;IACnBP,QAAQ,EAAEA,QAAS;IACnBE,QAAQ,EAAEW,cAAe;IACzBI,YAAY,EAAE,cACVtB,IAAA,CAACJ,sBAAsB;MAEnB2B,MAAM,EAAEP,YAAa;MACrBQ,OAAO,EAAEH;IAAiB,GAFtB,aAGP,CAAC,CACJ;IACFI,UAAU,EAAEnB,MAAM,GAAG,cAACN,IAAA,CAACH,aAAa,EAAA6B,aAAA,KAAkBpB,MAAM,GAAnB,QAAsB,CAAC,CAAC,GAAGqB;EAAU,CACjF,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import { QueryHistoryRow, QueryHistoryRowRenderData } from '../../types/history';
2
+ import { QueryListRowRenderData } from '../../types/queryList';
3
+ import { QueryHistoryRow } from '../../types/history';
3
4
  import './HistoryRow.scss';
4
5
  export type Props<T extends QueryHistoryRow> = {
5
6
  item: T;
6
- } & Omit<QueryHistoryRowRenderData<T>, 'item' | 'variant'>;
7
+ } & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;
7
8
  export declare const HistoryRow: <T extends QueryHistoryRow>({ item, actions, isActive, comparison, editing, visibleFields, }: Props<T>) => React.JSX.Element;