@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
@@ -1,13 +1,13 @@
1
- import { BaseHistoryRow, QueryHistoryComparisonConfig, QueryHistoryEditingConfig, QueryHistoryItem, QueryHistoryRowAction, QueryHistoryRowRenderData, QueryHistoryRowVariant, QueryHistoryVisibleFieldsConfig } from '../../../types/history';
2
- type Props<T extends BaseHistoryRow> = {
3
- item: QueryHistoryItem<T>;
1
+ import { QueryListComparisonConfig, QueryListEditingConfig, QueryListItem, QueryListRow, QueryListRowAction, QueryListRowRenderData, QueryListRowVariant, QueryListVisibleFieldsConfig } from '../../../types/queryList';
2
+ type Props<T extends QueryListRow> = {
3
+ item: QueryListItem<T>;
4
4
  isActive: boolean;
5
5
  index: number;
6
- variant: QueryHistoryRowVariant;
7
- visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
8
- editing?: QueryHistoryEditingConfig<T>;
9
- comparison?: QueryHistoryComparisonConfig<T>;
10
- getRowActions?: (item: T) => QueryHistoryRowAction<T>[];
6
+ variant: QueryListRowVariant;
7
+ visibleFields?: QueryListVisibleFieldsConfig<T>;
8
+ editing?: QueryListEditingConfig<T>;
9
+ comparison?: QueryListComparisonConfig<T>;
10
+ getRowActions?: (item: T) => QueryListRowAction<T>[];
11
11
  };
12
- export declare const prepareRowData: <T extends BaseHistoryRow>({ item, isActive, index, variant, visibleFields, editing, comparison, getRowActions, }: Props<T>) => QueryHistoryRowRenderData<T>;
12
+ export declare const prepareRowData: <T extends QueryListRow>({ item, isActive, index, variant, visibleFields, editing, comparison, getRowActions, }: Props<T>) => QueryListRowRenderData<T>;
13
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"names":["prepareRowData","exports","_ref","item","isActive","index","variant","visibleFields","editing","comparison","getRowActions","isRow","actions","undefined","editingData","enabled","rowId","id","onSubmit","onCancel","comparisonData","checked","comparedRowIds","includes"],"sources":["prepareRowData.ts"],"sourcesContent":["import {\n BaseHistoryRow,\n QueryHistoryComparisonConfig,\n QueryHistoryEditingConfig,\n QueryHistoryItem,\n QueryHistoryRowAction,\n QueryHistoryRowRenderData,\n QueryHistoryRowVariant,\n QueryHistoryVisibleFieldsConfig,\n} from '../../../types/history';\n\ntype Props<T extends BaseHistoryRow> = {\n item: QueryHistoryItem<T>;\n isActive: boolean;\n index: number;\n variant: QueryHistoryRowVariant;\n visibleFields?: QueryHistoryVisibleFieldsConfig<T>;\n editing?: QueryHistoryEditingConfig<T>;\n comparison?: QueryHistoryComparisonConfig<T>;\n getRowActions?: (item: T) => QueryHistoryRowAction<T>[];\n};\n\nexport const prepareRowData = <T extends BaseHistoryRow>({\n item,\n isActive,\n index,\n variant,\n visibleFields,\n editing,\n comparison,\n getRowActions,\n}: Props<T>): QueryHistoryRowRenderData<T> => {\n const isRow = !('header' in item);\n const actions = isRow && getRowActions ? getRowActions(item) : undefined;\n const editingData =\n isRow && editing\n ? {\n enabled: editing.rowId === item.id,\n onSubmit: editing.onSubmit,\n onCancel: editing.onCancel,\n }\n : undefined;\n const comparisonData =\n isRow && comparison && comparison.enabled\n ? {\n enabled: true,\n checked: comparison.comparedRowIds.includes(item.id),\n }\n : undefined;\n\n return {\n item,\n index,\n isActive,\n variant,\n visibleFields,\n actions,\n editing: editingData,\n comparison: comparisonData,\n };\n};\n"],"mappings":";;;;;;;;AAsBO,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAAE,IAAA,EASmB;EAAA,IAR1CC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACPC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,aAAa,GAAAR,IAAA,CAAbQ,aAAa;EAEb,IAAMC,KAAK,GAAG,EAAE,QAAQ,IAAIR,IAAI,CAAC;EACjC,IAAMS,OAAO,GAAGD,KAAK,IAAID,aAAa,GAAGA,aAAa,CAACP,IAAI,CAAC,GAAGU,SAAS;EACxE,IAAMC,WAAW,GACbH,KAAK,IAAIH,OAAO,GACV;IACIO,OAAO,EAAEP,OAAO,CAACQ,KAAK,KAAKb,IAAI,CAACc,EAAE;IAClCC,QAAQ,EAAEV,OAAO,CAACU,QAAQ;IAC1BC,QAAQ,EAAEX,OAAO,CAACW;EACtB,CAAC,GACDN,SAAS;EACnB,IAAMO,cAAc,GAChBT,KAAK,IAAIF,UAAU,IAAIA,UAAU,CAACM,OAAO,GACnC;IACIA,OAAO,EAAE,IAAI;IACbM,OAAO,EAAEZ,UAAU,CAACa,cAAc,CAACC,QAAQ,CAACpB,IAAI,CAACc,EAAE;EACvD,CAAC,GACDJ,SAAS;EAEnB,OAAO;IACHV,IAAI,EAAJA,IAAI;IACJE,KAAK,EAALA,KAAK;IACLD,QAAQ,EAARA,QAAQ;IACRE,OAAO,EAAPA,OAAO;IACPC,aAAa,EAAbA,aAAa;IACbK,OAAO,EAAPA,OAAO;IACPJ,OAAO,EAAEM,WAAW;IACpBL,UAAU,EAAEW;EAChB,CAAC;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["prepareRowData","exports","_ref","item","isActive","index","variant","visibleFields","editing","comparison","getRowActions","isRow","actions","undefined","editingData","enabled","rowId","id","onSubmit","onCancel","comparisonData","checked","comparedRowIds","includes"],"sources":["prepareRowData.ts"],"sourcesContent":["import {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListItem,\n QueryListRow,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListRowVariant,\n QueryListVisibleFieldsConfig,\n} from '../../../types/queryList';\n\ntype Props<T extends QueryListRow> = {\n item: QueryListItem<T>;\n isActive: boolean;\n index: number;\n variant: QueryListRowVariant;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n};\n\nexport const prepareRowData = <T extends QueryListRow>({\n item,\n isActive,\n index,\n variant,\n visibleFields,\n editing,\n comparison,\n getRowActions,\n}: Props<T>): QueryListRowRenderData<T> => {\n const isRow = !('header' in item);\n const actions = isRow && getRowActions ? getRowActions(item) : undefined;\n const editingData =\n isRow && editing\n ? {\n enabled: editing.rowId === item.id,\n onSubmit: editing.onSubmit,\n onCancel: editing.onCancel,\n }\n : undefined;\n const comparisonData =\n isRow && comparison && comparison.enabled\n ? {\n enabled: true,\n checked: comparison.comparedRowIds.includes(item.id),\n }\n : undefined;\n\n return {\n item,\n index,\n isActive,\n variant,\n visibleFields,\n actions,\n editing: editingData,\n comparison: comparisonData,\n };\n};\n"],"mappings":";;;;;;;;AAsBO,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAAE,IAAA,EASgB;EAAA,IARvCC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACPC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,aAAa,GAAAR,IAAA,CAAbQ,aAAa;EAEb,IAAMC,KAAK,GAAG,EAAE,QAAQ,IAAIR,IAAI,CAAC;EACjC,IAAMS,OAAO,GAAGD,KAAK,IAAID,aAAa,GAAGA,aAAa,CAACP,IAAI,CAAC,GAAGU,SAAS;EACxE,IAAMC,WAAW,GACbH,KAAK,IAAIH,OAAO,GACV;IACIO,OAAO,EAAEP,OAAO,CAACQ,KAAK,KAAKb,IAAI,CAACc,EAAE;IAClCC,QAAQ,EAAEV,OAAO,CAACU,QAAQ;IAC1BC,QAAQ,EAAEX,OAAO,CAACW;EACtB,CAAC,GACDN,SAAS;EACnB,IAAMO,cAAc,GAChBT,KAAK,IAAIF,UAAU,IAAIA,UAAU,CAACM,OAAO,GACnC;IACIA,OAAO,EAAE,IAAI;IACbM,OAAO,EAAEZ,UAAU,CAACa,cAAc,CAACC,QAAQ,CAACpB,IAAI,CAACc,EAAE;EACvD,CAAC,GACDJ,SAAS;EAEnB,OAAO;IACHV,IAAI,EAAJA,IAAI;IACJE,KAAK,EAALA,KAAK;IACLD,QAAQ,EAARA,QAAQ;IACRE,OAAO,EAAPA,OAAO;IACPC,aAAa,EAAbA,aAAa;IACbK,OAAO,EAAPA,OAAO;IACPJ,OAAO,EAAEM,WAAW;IACpBL,UAAU,EAAEW;EAChB,CAAC;AACL,CAAC","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ .qp-saved-query-row {
2
+ height: 100%;
3
+ }
4
+ .qp-saved-query-row_compared {
5
+ background-color: var(--g-color-base-utility-light);
6
+ }
7
+ .qp-saved-query-row__content {
8
+ min-width: 0;
9
+ }
10
+ .qp-saved-query-row__header {
11
+ height: 20px;
12
+ min-width: 0;
13
+ }
14
+ .qp-saved-query-row__metadata {
15
+ min-width: 0;
16
+ }
17
+ /*# sourceMappingURL=SavedQueryRow.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["SavedQueryRow.scss"],"names":[],"mappings":"AAAA;EACE,YAAA;AACF;AACE;EACE,mDAAA;AACJ;AAEE;EACE,YAAA;AAAJ;AAGE;EACE,YAAA;EACA,YAAA;AADJ;AAIE;EACE,YAAA;AAFJ","file":"SavedQueryRow.css","sourcesContent":[".qp-saved-query-row {\n height: 100%;\n\n &_compared {\n background-color: var(--g-color-base-utility-light);\n }\n\n &__content {\n min-width: 0;\n }\n\n &__header {\n height: 20px;\n min-width: 0;\n }\n\n &__metadata {\n min-width: 0;\n }\n}\n"],"sourceRoot":""}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { QueryListRowRenderData } from '../../types/queryList';
3
+ import { SavedQuery } from '../../types/savedQueries';
4
+ import './SavedQueryRow.scss';
5
+ export type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {
6
+ item: T;
7
+ renderAuthor?: (item: T) => React.ReactNode;
8
+ } & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;
9
+ export declare const SavedQueryRow: <T extends SavedQuery>({ item, actions, isActive, comparison, editing, visibleFields, renderAuthor, }: SavedQueryRowProps<T>) => React.JSX.Element;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SavedQueryRow = void 0;
7
+ require("core-js/modules/es.array.includes.js");
8
+ require("core-js/modules/es.string.includes.js");
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _uikit = require("@gravity-ui/uikit");
11
+ var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
12
+ var _components = require("../../components");
13
+ var _time = require("../../helpers/time");
14
+ require("./SavedQueryRow.css");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ var block = (0, _bemCnLite.default)('qp-saved-query-row');
18
+ var SavedQueryRow = exports.SavedQueryRow = function SavedQueryRow(_ref) {
19
+ var _renderAuthor;
20
+ var item = _ref.item,
21
+ actions = _ref.actions,
22
+ isActive = _ref.isActive,
23
+ comparison = _ref.comparison,
24
+ editing = _ref.editing,
25
+ visibleFields = _ref.visibleFields,
26
+ renderAuthor = _ref.renderAuthor;
27
+ var author = item.author,
28
+ engine = item.engine,
29
+ href = item.href,
30
+ savedAt = item.savedAt;
31
+ var isEditing = Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled);
32
+ var isComparisonMode = Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.enabled);
33
+ var isChecked = Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.checked);
34
+ var showMenu = isActive && Boolean(actions === null || actions === void 0 ? void 0 : actions.length) && !isComparisonMode;
35
+ var isFieldVisible = function isFieldVisible(field) {
36
+ return visibleFields === undefined || visibleFields.value.includes(field);
37
+ };
38
+ var authorContent = (_renderAuthor = renderAuthor === null || renderAuthor === void 0 ? void 0 : renderAuthor(item)) !== null && _renderAuthor !== void 0 ? _renderAuthor : author ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Avatar, {
39
+ size: "3xs",
40
+ text: author,
41
+ title: author
42
+ }) : null;
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RowLink, {
44
+ href: href,
45
+ disabled: isEditing || isComparisonMode,
46
+ className: block({
47
+ compared: isChecked
48
+ }),
49
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
50
+ direction: "column",
51
+ gap: 1,
52
+ className: block('content'),
53
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
54
+ justifyContent: "space-between",
55
+ className: block('header'),
56
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.EditableRowTitle, {
57
+ item: item,
58
+ editing: editing
59
+ }), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RowActionsMenu, {
60
+ item: item,
61
+ actions: actions
62
+ })]
63
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
64
+ gap: 2,
65
+ alignItems: "center",
66
+ className: block('metadata'),
67
+ children: [isFieldVisible('savedAt') && savedAt && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
68
+ color: "complementary",
69
+ children: (0, _time.formatDateCanonical)(savedAt)
70
+ }), isFieldVisible('engine') && engine && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
71
+ color: "complementary",
72
+ children: engine
73
+ }), isFieldVisible('author') && authorContent]
74
+ })]
75
+ })
76
+ });
77
+ };
78
+ // #sourceMappingURL=SavedQueryRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_components","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQueryRow","exports","_ref","_renderAuthor","item","actions","isActive","comparison","editing","visibleFields","renderAuthor","author","engine","href","savedAt","isEditing","Boolean","enabled","isComparisonMode","isChecked","checked","showMenu","length","isFieldVisible","field","undefined","value","includes","authorContent","_jsx","Avatar","size","text","title","RowLink","disabled","className","compared","children","_jsxs","Flex","direction","gap","justifyContent","EditableRowTitle","RowActionsMenu","alignItems","Text","color","formatDateCanonical"],"sources":["SavedQueryRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {EditableRowTitle, RowActionsMenu, RowLink} from '../../components';\nimport {formatDateCanonical} from '../../helpers/time';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\nimport './SavedQueryRow.scss';\n\nconst block = cn('qp-saved-query-row');\n\nexport type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQueryRow = <T extends SavedQuery>({\n item,\n actions,\n isActive,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQueryRowProps<T>) => {\n const {author, engine, href, savedAt} = item;\n const isEditing = Boolean(editing?.enabled);\n const isComparisonMode = Boolean(comparison?.enabled);\n const isChecked = Boolean(comparison?.checked);\n const showMenu = isActive && Boolean(actions?.length) && !isComparisonMode;\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n\n return (\n <RowLink\n href={href}\n disabled={isEditing || isComparisonMode}\n className={block({compared: isChecked})}\n >\n <Flex direction=\"column\" gap={1} className={block('content')}>\n <Flex justifyContent=\"space-between\" className={block('header')}>\n <EditableRowTitle item={item} editing={editing} />\n {showMenu && <RowActionsMenu item={item} actions={actions} />}\n </Flex>\n <Flex gap={2} alignItems=\"center\" className={block('metadata')}>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\">{formatDateCanonical(savedAt)}</Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\">{engine}</Text>\n )}\n {isFieldVisible('author') && auth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ACzC,IAAI,EAAEA,IAAK;UAACC,OAAO,EAAEA;QAAQ,CAAE,CAAC;MAAA,CAC3D,CAAC,eACP,IAAAkC,gBAAA,EAACC,WAAI;QAACE,GAAG,EAAE,CAAE;QAACI,UAAU,EAAC,QAAQ;QAACV,SAAS,EAAEtC,KAAK,CAAC,UAAU,CAAE;QAAAwC,QAAA,GAC1Df,cAAc,CAAC,SAAS,CAAC,IAAIT,OAAO,iBACjC,IAAAe,eAAA,EAACkB,WAAI;UAACC,KAAK,EAAC,eAAe;UAAAV,QAAA,EAAE,IAAAW,yBAAmB,EAACnC,OAAO;QAAC,CAAO,CACnE,EACAS,cAAc,CAAC,QAAQ,CAAC,IAAIX,MAAM,iBAC/B,IAAAiB,eAAA,EAACkB,WAAI;UAACC,KAAK,EAAC,eAAe;UAAAV,QAAA,EAAE1B;QAAM,CAAO,CAC7C,EACAW,cAAc,CAAC,QAAQ,CAAC,IAAIK,aAAa;MAAA,CACxC,CAAC;IAAA,CACL;EAAC,CACF,CAAC;AAElB,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export { SavedQueryRow } from './SavedQueryRow';
2
+ export type { SavedQueryRowProps } from './SavedQueryRow';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "SavedQueryRow", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _SavedQueryRow.SavedQueryRow;
10
+ }
11
+ });
12
+ var _SavedQueryRow = require("./SavedQueryRow");
13
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_SavedQueryRow","require"],"sources":["index.ts"],"sourcesContent":["export {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ .qp-saved-query-search-row__header {
2
+ min-width: 0;
3
+ width: 100%;
4
+ }
5
+ .qp-saved-query-search-row__title {
6
+ flex: 1;
7
+ min-width: 0;
8
+ }
9
+ .qp-saved-query-search-row__fixed-metadata {
10
+ flex-shrink: 0;
11
+ }
12
+ /*# sourceMappingURL=SavedQuerySearchRow.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["SavedQuerySearchRow.scss"],"names":[],"mappings":"AACE;EACE,YAAA;EACA,WAAA;AAAJ;AAGE;EACE,OAAA;EACA,YAAA;AADJ;AAIE;EACE,cAAA;AAFJ","file":"SavedQuerySearchRow.css","sourcesContent":[".qp-saved-query-search-row {\n &__header {\n min-width: 0;\n width: 100%;\n }\n\n &__title {\n flex: 1;\n min-width: 0;\n }\n\n &__fixed-metadata {\n flex-shrink: 0;\n }\n}\n"],"sourceRoot":""}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { QueryListRowRenderData } from '../../types/queryList';
3
+ import { SavedQuery } from '../../types/savedQueries';
4
+ import './SavedQuerySearchRow.scss';
5
+ export type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {
6
+ item: T;
7
+ renderAuthor?: (item: T) => React.ReactNode;
8
+ } & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;
9
+ export declare const SavedQuerySearchRow: <T extends SavedQuery>({ item, comparison, editing, visibleFields, renderAuthor, }: SavedQuerySearchRowProps<T>) => React.JSX.Element;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SavedQuerySearchRow = void 0;
7
+ require("core-js/modules/es.array.includes.js");
8
+ require("core-js/modules/es.string.includes.js");
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _uikit = require("@gravity-ui/uikit");
11
+ var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
12
+ var _components = require("../../components");
13
+ var _time = require("../../helpers/time");
14
+ require("./SavedQuerySearchRow.css");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ var block = (0, _bemCnLite.default)('qp-saved-query-search-row');
18
+ var SavedQuerySearchRow = exports.SavedQuerySearchRow = function SavedQuerySearchRow(_ref) {
19
+ var _renderAuthor;
20
+ var item = _ref.item,
21
+ comparison = _ref.comparison,
22
+ editing = _ref.editing,
23
+ visibleFields = _ref.visibleFields,
24
+ renderAuthor = _ref.renderAuthor;
25
+ var author = item.author,
26
+ engine = item.engine,
27
+ href = item.href,
28
+ query = item.query,
29
+ savedAt = item.savedAt;
30
+ var authorContent = (_renderAuthor = renderAuthor === null || renderAuthor === void 0 ? void 0 : renderAuthor(item)) !== null && _renderAuthor !== void 0 ? _renderAuthor : author ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Avatar, {
31
+ size: "3xs",
32
+ text: author,
33
+ title: author
34
+ }) : null;
35
+ var isFieldVisible = function isFieldVisible(field) {
36
+ return visibleFields === undefined || visibleFields.value.includes(field);
37
+ };
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchRowLayout, {
39
+ query: query,
40
+ language: _components.MonacoLanguage.YQL,
41
+ href: href,
42
+ disabled: Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled) || Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.enabled),
43
+ className: block(),
44
+ header: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
45
+ gap: 2,
46
+ alignItems: "center",
47
+ className: block('header'),
48
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
49
+ variant: "subheader-1",
50
+ ellipsis: true,
51
+ className: block('title'),
52
+ children: item.title
53
+ }), isFieldVisible('savedAt') && savedAt && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
54
+ color: "complementary",
55
+ className: block('fixed-metadata'),
56
+ children: (0, _time.formatDateCanonical)(savedAt)
57
+ }), isFieldVisible('engine') && engine && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
58
+ color: "complementary",
59
+ className: block('fixed-metadata'),
60
+ children: engine
61
+ }), isFieldVisible('author') && authorContent]
62
+ })
63
+ });
64
+ };
65
+ // #sourceMappingURL=SavedQuerySearchRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_components","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQuerySearchRow","exports","_ref","_renderAuthor","item","comparison","editing","visibleFields","renderAuthor","author","engine","href","query","savedAt","authorContent","_jsx","Avatar","size","text","title","isFieldVisible","field","undefined","value","includes","SearchRowLayout","language","MonacoLanguage","YQL","disabled","Boolean","enabled","className","header","_jsxs","Flex","gap","alignItems","children","Text","variant","ellipsis","color","formatDateCanonical"],"sources":["SavedQuerySearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {MonacoLanguage, SearchRowLayout} from '../../components';\nimport {formatDateCanonical} from '../../helpers/time';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\nimport './SavedQuerySearchRow.scss';\n\nconst block = cn('qp-saved-query-search-row');\n\nexport type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQuerySearchRow = <T extends SavedQuery>({\n item,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQuerySearchRowProps<T>) => {\n const {author, engine, href, query, savedAt} = item;\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n\n return (\n <SearchRowLayout\n query={query}\n language={MonacoLanguage.YQL}\n href={href}\n disabled={Boolean(editing?.enabled) || Boolean(comparison?.enabled)}\n className={block()}\n header={\n <Flex gap={2} alignItems=\"center\" className={block('header')}>\n <Text variant=\"subheader-1\" ellipsis className={block('title')}>\n {item.title}\n </Text>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {formatDateCanonical(savedAt)}\n </Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {engine}\n </Text>\n )}\n {isFieldVisible('author') && authorContent}\n </Flex>\n }\n />\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAGAA,OAAA;AAAoC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpC,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,2BAA2B,CAAC;AAOtC,IAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAAE,IAAA,EAMG;EAAA,IAAAC,aAAA;EAAA,IAL/BC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACPC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,YAAY,GAAAN,IAAA,CAAZM,YAAY;EAEZ,IAAOC,MAAM,GAAkCL,IAAI,CAA5CK,MAAM;IAAEC,MAAM,GAA0BN,IAAI,CAApCM,MAAM;IAAEC,IAAI,GAAoBP,IAAI,CAA5BO,IAAI;IAAEC,KAAK,GAAaR,I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;QAACV,SAAS,EAAElC,KAAK,CAAC,gBAAgB,CAAE;QAAAwC,QAAA,EAC1D,IAAAK,yBAAmB,EAAC9B,OAAO;MAAC,CAC3B,CACT,EACAO,cAAc,CAAC,QAAQ,CAAC,IAAIV,MAAM,iBAC/B,IAAAK,eAAA,EAACwB,WAAI;QAACG,KAAK,EAAC,eAAe;QAACV,SAAS,EAAElC,KAAK,CAAC,gBAAgB,CAAE;QAAAwC,QAAA,EAC1D5B;MAAM,CACL,CACT,EACAU,cAAc,CAAC,QAAQ,CAAC,IAAIN,aAAa;IAAA,CACxC;EACT,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export { SavedQuerySearchRow } from './SavedQuerySearchRow';
2
+ export type { SavedQuerySearchRowProps } from './SavedQuerySearchRow';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "SavedQuerySearchRow", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _SavedQuerySearchRow.SavedQuerySearchRow;
10
+ }
11
+ });
12
+ var _SavedQuerySearchRow = require("./SavedQuerySearchRow");
13
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_SavedQuerySearchRow","require"],"sources":["index.ts"],"sourcesContent":["export {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1,14 +1,20 @@
1
1
  export { HistoryHeader } from './HistoryHeader';
2
2
  export { HistoryLayout } from './HistoryLayout';
3
+ export { HistoryComparisonActions } from './HistoryComparisonActions';
4
+ export type { HistoryComparisonActionsProps } from './HistoryComparisonActions';
3
5
  export { NavigationHeader } from './NavigationHeader';
4
6
  export type { NavigationHeaderProps } from './NavigationHeader';
5
7
  export type { HistoryLayoutProps } from './HistoryLayout';
6
8
  export { RowsList } from './RowsList';
7
9
  export type { RowsListProps } from './RowsList';
10
+ export { QueriesList } from './QueriesList';
11
+ export type { QueriesListProps } from './QueriesList';
8
12
  export { HistoryRow } from './HistoryRow';
9
- export { HistoryList } from './HistoryList';
10
- export type { HistoryListProps } from './HistoryList';
11
13
  export { HistorySearchRow } from './HistorySearchRow';
14
+ export { SavedQueryRow } from './SavedQueryRow';
15
+ export type { SavedQueryRowProps } from './SavedQueryRow';
16
+ export { SavedQuerySearchRow } from './SavedQuerySearchRow';
17
+ export type { SavedQuerySearchRowProps } from './SavedQuerySearchRow';
12
18
  export * from './ChartEditor';
13
19
  export { TutorialRow } from './TutorialRow';
14
20
  export type { TutorialRowProps } from './TutorialRow';
@@ -6,11 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _exportNames = {
7
7
  HistoryHeader: true,
8
8
  HistoryLayout: true,
9
+ HistoryComparisonActions: true,
9
10
  NavigationHeader: true,
10
11
  RowsList: true,
12
+ QueriesList: true,
11
13
  HistoryRow: true,
12
- HistoryList: true,
13
14
  HistorySearchRow: true,
15
+ SavedQueryRow: true,
16
+ SavedQuerySearchRow: true,
14
17
  TutorialRow: true,
15
18
  TutorialSearchRow: true,
16
19
  ClustersList: true,
@@ -33,22 +36,22 @@ Object.defineProperty(exports, "ClustersList", {
33
36
  return _ClustersList.ClustersList;
34
37
  }
35
38
  });
36
- Object.defineProperty(exports, "HistoryHeader", {
39
+ Object.defineProperty(exports, "HistoryComparisonActions", {
37
40
  enumerable: true,
38
41
  get: function () {
39
- return _HistoryHeader.HistoryHeader;
42
+ return _HistoryComparisonActions.HistoryComparisonActions;
40
43
  }
41
44
  });
42
- Object.defineProperty(exports, "HistoryLayout", {
45
+ Object.defineProperty(exports, "HistoryHeader", {
43
46
  enumerable: true,
44
47
  get: function () {
45
- return _HistoryLayout.HistoryLayout;
48
+ return _HistoryHeader.HistoryHeader;
46
49
  }
47
50
  });
48
- Object.defineProperty(exports, "HistoryList", {
51
+ Object.defineProperty(exports, "HistoryLayout", {
49
52
  enumerable: true,
50
53
  get: function () {
51
- return _HistoryList.HistoryList;
54
+ return _HistoryLayout.HistoryLayout;
52
55
  }
53
56
  });
54
57
  Object.defineProperty(exports, "HistoryRow", {
@@ -105,12 +108,30 @@ Object.defineProperty(exports, "NavigationView", {
105
108
  return _NavigationView.NavigationView;
106
109
  }
107
110
  });
111
+ Object.defineProperty(exports, "QueriesList", {
112
+ enumerable: true,
113
+ get: function () {
114
+ return _QueriesList.QueriesList;
115
+ }
116
+ });
108
117
  Object.defineProperty(exports, "RowsList", {
109
118
  enumerable: true,
110
119
  get: function () {
111
120
  return _RowsList.RowsList;
112
121
  }
113
122
  });
123
+ Object.defineProperty(exports, "SavedQueryRow", {
124
+ enumerable: true,
125
+ get: function () {
126
+ return _SavedQueryRow.SavedQueryRow;
127
+ }
128
+ });
129
+ Object.defineProperty(exports, "SavedQuerySearchRow", {
130
+ enumerable: true,
131
+ get: function () {
132
+ return _SavedQuerySearchRow.SavedQuerySearchRow;
133
+ }
134
+ });
114
135
  Object.defineProperty(exports, "TutorialRow", {
115
136
  enumerable: true,
116
137
  get: function () {
@@ -161,11 +182,14 @@ Object.defineProperty(exports, "filterSchema", {
161
182
  });
162
183
  var _HistoryHeader = require("./HistoryHeader");
163
184
  var _HistoryLayout = require("./HistoryLayout");
185
+ var _HistoryComparisonActions = require("./HistoryComparisonActions");
164
186
  var _NavigationHeader = require("./NavigationHeader");
165
187
  var _RowsList = require("./RowsList");
188
+ var _QueriesList = require("./QueriesList");
166
189
  var _HistoryRow = require("./HistoryRow");
167
- var _HistoryList = require("./HistoryList");
168
190
  var _HistorySearchRow = require("./HistorySearchRow");
191
+ var _SavedQueryRow = require("./SavedQueryRow");
192
+ var _SavedQuerySearchRow = require("./SavedQuerySearchRow");
169
193
  var _ChartEditor = require("./ChartEditor");
170
194
  Object.keys(_ChartEditor).forEach(function (key) {
171
195
  if (key === "default" || key === "__esModule") return;
@@ -1 +1 @@
1
- {"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_NavigationHeader","_RowsList","_HistoryRow","_HistoryList","_HistorySearchRow","_ChartEditor","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_TutorialRow","_TutorialSearchRow","_ClustersList","_NavigationItemsList","_NavigationDetail","_NavigationSchema","_NavigationPreview","_NavigationMeta","_NavigationView"],"sources":["index.ts"],"sourcesContent":["export {HistoryHeader} from './HistoryHeader';\nexport {HistoryLayout} from './HistoryLayout';\nexport {NavigationHeader} from './NavigationHeader';\nexport type {NavigationHeaderProps} from './NavigationHeader';\nexport type {HistoryLayoutProps} from './HistoryLayout';\nexport {RowsList} from './RowsList';\nexport type {RowsListProps} from './RowsList';\nexport {HistoryRow} from './HistoryRow';\nexport {HistoryList} from './HistoryList';\nexport type {HistoryListProps} from './HistoryList';\nexport {HistorySearchRow} from './HistorySearchRow';\nexport * from './ChartEditor';\nexport {TutorialRow} from './TutorialRow';\nexport type {TutorialRowProps} from './TutorialRow';\nexport {TutorialSearchRow} from './TutorialSearchRow';\nexport type {TutorialSearchRowProps} from './TutorialSearchRow';\nexport {ClustersList} from './ClustersList';\nexport type {ClustersListProps} from './ClustersList';\nexport {NavigationItemsList} from './NavigationItemsList';\nexport type {NavigationItemsListProps} from './NavigationItemsList';\nexport {NavigationDetail} from './NavigationDetail';\nexport type {NavigationDetailProps} from './NavigationDetail';\nexport {NavigationSchema, buildSchemaColumns, filterSchema} from './NavigationSchema';\nexport type {NavigationSchemaProps, NavigationSchemaViewConfig} from './NavigationSchema';\nexport {NavigationPreview, buildPreviewColumns, filterPreviewRows} from './NavigationPreview';\nexport type {NavigationPreviewProps, NavigationPreviewViewConfig} from './NavigationPreview';\nexport {NavigationMeta, buildMetaGroups} from './NavigationMeta';\nexport type {NavigationMetaProps, NavigationMetaViewConfig} from './NavigationMeta';\nexport {NavigationView, buildViewColumns} from './NavigationView';\nexport type {NavigationViewProps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}
1
+ {"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_HistoryComparisonActions","_NavigationHeader","_RowsList","_QueriesList","_HistoryRow","_HistorySearchRow","_SavedQueryRow","_SavedQuerySearchRow","_ChartEditor","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_TutorialRow","_TutorialSearchRow","_ClustersList","_NavigationItemsList","_NavigationDetail","_NavigationSchema","_NavigationPreview","_NavigationMeta","_NavigationView"],"sources":["index.ts"],"sourcesContent":["export {HistoryHeader} from './HistoryHeader';\nexport {HistoryLayout} from './HistoryLayout';\nexport {HistoryComparisonActions} from './HistoryComparisonActions';\nexport type {HistoryComparisonActionsProps} from './HistoryComparisonActions';\nexport {NavigationHeader} from './NavigationHeader';\nexport type {NavigationHeaderProps} from './NavigationHeader';\nexport type {HistoryLayoutProps} from './HistoryLayout';\nexport {RowsList} from './RowsList';\nexport type {RowsListProps} from './RowsList';\nexport {QueriesList} from './QueriesList';\nexport type {QueriesListProps} from './QueriesList';\nexport {HistoryRow} from './HistoryRow';\nexport {HistorySearchRow} from './HistorySearchRow';\nexport {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\nexport {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\nexport * from './ChartEditor';\nexport {TutorialRow} from './TutorialRow';\nexport type {TutorialRowProps} from './TutorialRow';\nexport {TutorialSearchRow} from './TutorialSearchRow';\nexport type {TutorialSearchRowProps} from './TutorialSearchRow';\nexport {ClustersList} from './ClustersList';\nexport type {ClustersListProps} from './ClustersList';\nexport {NavigationItemsList} from './NavigationItemsList';\nexport type {NavigationItemsListProps} from './NavigationItemsList';\nexport {NavigationDetail} from './NavigationDetail';\nexport type {NavigationDetailProps} from './NavigationDetail';\nexport {NavigationSchema, buildSchemaColumns, filterSchema} from './NavigationSchema';\nexport type {NavigationSchemaProps, NavigationSchemaViewConfig} from './NavigationSchema';\nexport {NavigationPreview, buildPreviewColumns, filterPreviewRows} from './NavigationPreview';\nexport type {NavigationPreviewProps, NavigationPreviewViewConfig} from './NavigationPreview';\nexport {NavigationMeta, buildMetaGroups} from './NavigationMeta';\nexport type {NavigationMetaProps, NavigationMetaViewConfig} from './NavigationMeta';\nexport {NavigationView, buildViewColumns} from './NavigationView';\nexport type {NavigationViewProps, NavigationViewViewConfig} from './NavigationView';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AAGA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AAEA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AAEA,IAAAS,oBAAA,GAAAT,OAAA;AAEA,IAAAU,YAAA,GAAAV,OAAA;AAAAW,MAAA,CAAAC,IAAA,CAAAF,YAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,YAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,YAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,YAAA,GAAAvB,OAAA;AAEA,IAAAwB,kBAAA,GAAAxB,OAAA;AAEA,IAAAyB,aAAA,GAAAzB,OAAA;AAEA,IAAA0B,oBAAA,GAAA1B,OAAA;AAEA,IAAA2B,iBAAA,GAAA3B,OAAA;AAEA,IAAA4B,iBAAA,GAAA5B,OAAA;AAEA,IAAA6B,kBAAA,GAAA7B,OAAA;AAEA,IAAA8B,eAAA,GAAA9B,OAAA;AAEA,IAAA+B,eAAA,GAAA/B,OAAA","ignoreList":[]}
@@ -1,91 +1,10 @@
1
- import { ReactNode } from 'react';
2
- import { RegisteredFormFields } from './forms';
1
+ import { QueryListRow, QueryTimestamp } from './queryList';
3
2
  export type QueryStatus = 'completed' | 'failed' | 'aborted' | 'draft' | 'running';
4
- /** ISO 8601 date string or Unix timestamp in milliseconds. */
5
- export type QueryHistoryTimestamp = string | number;
6
- export type HistoryRowRenderProps = {
7
- height: number;
8
- };
9
- export type QueryHistoryHeader = {
10
- header: string;
11
- } & HistoryRowRenderProps;
12
- export type BaseHistoryRow = {
13
- id: number;
14
- title: string;
15
- query?: string;
16
- href?: string;
17
- } & HistoryRowRenderProps;
18
- export type QueryHistoryRow = BaseHistoryRow & {
19
- startTime?: QueryHistoryTimestamp;
20
- endTime?: QueryHistoryTimestamp;
3
+ export type QueryHistoryRow = QueryListRow & {
4
+ startTime?: QueryTimestamp;
5
+ endTime?: QueryTimestamp;
21
6
  engine?: string;
22
7
  mode?: string;
23
8
  isPrivate?: boolean;
24
9
  status: QueryStatus;
25
10
  };
26
- export type QueryHistoryItem<T extends BaseHistoryRow = BaseHistoryRow> = QueryHistoryHeader | T;
27
- export type QueryHistoryRowVariant = 'default' | 'search';
28
- export type QueryHistoryRowAction<T extends BaseHistoryRow = BaseHistoryRow> = {
29
- text: ReactNode;
30
- icon?: ReactNode;
31
- hidden?: boolean;
32
- disabled?: boolean;
33
- onClick: (item: T) => void;
34
- };
35
- export type QueryHistorySearchConfig = {
36
- value?: string;
37
- fullSearch?: boolean;
38
- hasClear?: boolean;
39
- onUpdate: (data: {
40
- value: string;
41
- fullSearch: boolean;
42
- }) => void;
43
- };
44
- export type QueryHistoryFilterConfig = {
45
- fields?: RegisteredFormFields[];
46
- values?: Record<string, any>;
47
- initialValues?: Record<string, any>;
48
- isChanged?: boolean;
49
- onApply?: (values: Record<string, any>) => void;
50
- onReset?: () => void;
51
- };
52
- export type QueryHistoryEditingConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
53
- rowId?: T['id'];
54
- onSubmit?: (item: T, title: string) => void;
55
- onCancel?: (item: T) => void;
56
- };
57
- export type QueryHistoryComparisonConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
58
- enabled: boolean;
59
- comparedRowIds: T['id'][];
60
- onChange: (item: T, selected: boolean) => void;
61
- onCancel: () => void;
62
- onCompare: () => void;
63
- };
64
- type RowFieldKey<T extends BaseHistoryRow> = Exclude<keyof T & string, keyof HistoryRowRenderProps>;
65
- export type QueryHistoryFieldKey<T extends BaseHistoryRow = BaseHistoryRow> = RowFieldKey<T> | 'duration';
66
- export type QueryHistoryFieldOption<K extends string = string> = {
67
- id: K;
68
- title: ReactNode;
69
- };
70
- export type QueryHistoryVisibleFieldsConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
71
- value: QueryHistoryFieldKey<T>[];
72
- fields: QueryHistoryFieldOption<QueryHistoryFieldKey<T>>[];
73
- onChange: (value: QueryHistoryFieldKey<T>[]) => void;
74
- };
75
- export type QueryHistoryEditingRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {
76
- enabled: boolean;
77
- } & Pick<QueryHistoryEditingConfig<T>, 'onSubmit' | 'onCancel'>;
78
- export type QueryHistoryRowRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {
79
- item: QueryHistoryItem<T>;
80
- index: number;
81
- isActive: boolean;
82
- variant: QueryHistoryRowVariant;
83
- comparison?: {
84
- enabled: boolean;
85
- checked: boolean;
86
- };
87
- visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
88
- actions?: QueryHistoryRowAction<T>[];
89
- editing?: QueryHistoryEditingRenderData<T>;
90
- };
91
- export {};
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["history.ts"],"sourcesContent":["import {ReactNode} from 'react';\nimport {RegisteredFormFields} from './forms';\n\nexport type QueryStatus = 'completed' | 'failed' | 'aborted' | 'draft' | 'running';\n\n/** ISO 8601 date string or Unix timestamp in milliseconds. */\nexport type QueryHistoryTimestamp = string | number;\n\nexport type HistoryRowRenderProps = {height: number};\n\nexport type QueryHistoryHeader = {header: string} & HistoryRowRenderProps;\n\nexport type BaseHistoryRow = {\n id: number;\n title: string;\n query?: string;\n href?: string;\n} & HistoryRowRenderProps;\n\nexport type QueryHistoryRow = BaseHistoryRow & {\n startTime?: QueryHistoryTimestamp;\n endTime?: QueryHistoryTimestamp;\n engine?: string;\n mode?: string;\n isPrivate?: boolean;\n status: QueryStatus;\n};\n\nexport type QueryHistoryItem<T extends BaseHistoryRow = BaseHistoryRow> = QueryHistoryHeader | T;\n\nexport type QueryHistoryRowVariant = 'default' | 'search';\n\nexport type QueryHistoryRowAction<T extends BaseHistoryRow = BaseHistoryRow> = {\n text: ReactNode;\n icon?: ReactNode;\n hidden?: boolean;\n disabled?: boolean;\n onClick: (item: T) => void;\n};\n\nexport type QueryHistorySearchConfig = {\n value?: string;\n fullSearch?: boolean;\n hasClear?: boolean;\n onUpdate: (data: {value: string; fullSearch: boolean}) => void;\n};\n\nexport type QueryHistoryFilterConfig = {\n fields?: RegisteredFormFields[];\n values?: Record<string, any>;\n initialValues?: Record<string, any>;\n isChanged?: boolean;\n onApply?: (values: Record<string, any>) => void;\n onReset?: () => void;\n};\n\nexport type QueryHistoryEditingConfig<T extends BaseHistoryRow = BaseHistoryRow> = {\n rowId?: T['id'];\n onSubmit?: (item: T, title: string) => void;\n onCancel?: (item: T) => void;\n};\n\nexport type QueryHistoryComparisonConfig<T extends BaseHistoryRow = BaseHistoryRow> = {\n enabled: boolean;\n comparedRowIds: T['id'][];\n onChange: (item: T, selected: boolean) => void;\n onCancel: () => void;\n onCompare: () => void;\n};\n\ntype RowFieldKey<T extends BaseHistoryRow> = Exclude<keyof T & string, keyof HistoryRowRenderProps>;\n\nexport type QueryHistoryFieldKey<T extends BaseHistoryRow = BaseHistoryRow> =\n RowFieldKey<T> | 'duration';\n\nexport type QueryHistoryFieldOption<K extends string = string> = {\n id: K;\n title: ReactNode;\n};\n\nexport type QueryHistoryVisibleFieldsConfig<T extends BaseHistoryRow = BaseHistoryRow> = {\n value: QueryHistoryFieldKey<T>[];\n fields: QueryHistoryFieldOption<QueryHistoryFieldKey<T>>[];\n onChange: (value: QueryHistoryFieldKey<T>[]) => void;\n};\n\nexport type QueryHistoryEditingRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {\n enabled: boolean;\n} & Pick<QueryHistoryEditingConfig<T>, 'onSubmit' | 'onCancel'>;\n\nexport type QueryHistoryRowRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {\n item: QueryHistoryItem<T>;\n index: number;\n isActive: boolean;\n variant: QueryHistoryRowVariant;\n comparison?: {\n enabled: boolean;\n checked: boolean;\n };\n visibleFields?: QueryHistoryVisibleFieldsConfig<T>;\n actions?: QueryHistoryRowAction<T>[];\n editing?: QueryHistoryEditingRenderData<T>;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["history.ts"],"sourcesContent":["import {QueryListRow, QueryTimestamp} from './queryList';\n\nexport type QueryStatus = 'completed' | 'failed' | 'aborted' | 'draft' | 'running';\n\nexport type QueryHistoryRow = QueryListRow & {\n startTime?: QueryTimestamp;\n endTime?: QueryTimestamp;\n engine?: string;\n mode?: string;\n isPrivate?: boolean;\n status: QueryStatus;\n};\n"],"mappings":"","ignoreList":[]}