@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,2 @@
1
+ export { SavedQueryRow } from "./SavedQueryRow";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SavedQueryRow"],"sources":["index.ts"],"sourcesContent":["export {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\n"],"mappings":"AAAA,SAAQA,aAAa","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,58 @@
1
+ import "core-js/modules/es.array.includes.js";
2
+ import "core-js/modules/es.string.includes.js";
3
+ import React from 'react';
4
+ import { Avatar, Flex, Text } from '@gravity-ui/uikit';
5
+ import cn from 'bem-cn-lite';
6
+ import { MonacoLanguage, SearchRowLayout } from "../../components";
7
+ import { formatDateCanonical } from "../../helpers/time";
8
+ import "./SavedQuerySearchRow.css";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ var block = cn('qp-saved-query-search-row');
11
+ export var SavedQuerySearchRow = function SavedQuerySearchRow(_ref) {
12
+ var _renderAuthor;
13
+ var item = _ref.item,
14
+ comparison = _ref.comparison,
15
+ editing = _ref.editing,
16
+ visibleFields = _ref.visibleFields,
17
+ renderAuthor = _ref.renderAuthor;
18
+ var author = item.author,
19
+ engine = item.engine,
20
+ href = item.href,
21
+ query = item.query,
22
+ savedAt = item.savedAt;
23
+ var authorContent = (_renderAuthor = renderAuthor === null || renderAuthor === void 0 ? void 0 : renderAuthor(item)) !== null && _renderAuthor !== void 0 ? _renderAuthor : author ? /*#__PURE__*/_jsx(Avatar, {
24
+ size: "3xs",
25
+ text: author,
26
+ title: author
27
+ }) : null;
28
+ var isFieldVisible = function isFieldVisible(field) {
29
+ return visibleFields === undefined || visibleFields.value.includes(field);
30
+ };
31
+ return /*#__PURE__*/_jsx(SearchRowLayout, {
32
+ query: query,
33
+ language: MonacoLanguage.YQL,
34
+ href: href,
35
+ disabled: Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled) || Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.enabled),
36
+ className: block(),
37
+ header: /*#__PURE__*/_jsxs(Flex, {
38
+ gap: 2,
39
+ alignItems: "center",
40
+ className: block('header'),
41
+ children: [/*#__PURE__*/_jsx(Text, {
42
+ variant: "subheader-1",
43
+ ellipsis: true,
44
+ className: block('title'),
45
+ children: item.title
46
+ }), isFieldVisible('savedAt') && savedAt && /*#__PURE__*/_jsx(Text, {
47
+ color: "complementary",
48
+ className: block('fixed-metadata'),
49
+ children: formatDateCanonical(savedAt)
50
+ }), isFieldVisible('engine') && engine && /*#__PURE__*/_jsx(Text, {
51
+ color: "complementary",
52
+ className: block('fixed-metadata'),
53
+ children: engine
54
+ }), isFieldVisible('author') && authorContent]
55
+ })
56
+ });
57
+ };
58
+ // #sourceMappingURL=SavedQuerySearchRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Avatar","Flex","Text","cn","MonacoLanguage","SearchRowLayout","formatDateCanonical","jsx","_jsx","jsxs","_jsxs","block","SavedQuerySearchRow","_ref","_renderAuthor","item","comparison","editing","visibleFields","renderAuthor","author","engine","href","query","savedAt","authorContent","size","text","title","isFieldVisible","field","undefined","value","includes","language","YQL","disabled","Boolean","enabled","className","header","gap","alignItems","children","variant","ellipsis","color"],"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,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAO,mBAAmB;AACpD,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,cAAc,EAAEC,eAAe;AACvC,SAAQC,mBAAmB;AAG3B;AAAoC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpC,IAAMC,KAAK,GAAGR,EAAE,CAAC,2BAA2B,CAAC;AAO7C,OAAO,IAAMS,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,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,IAAI,CAAtBQ,KAAK;IAAEC,OAAO,GAAIT,IAAI,CAAfS,OAAO;EAC3C,IAAMC,aAAa,IAAAX,aAAA,GACfK,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAGJ,IAAI,CAAC,cAAAD,aAAA,cAAAA,aAAA,GACnBM,MAAM,gBAAGZ,IAAA,CAACR,MAAM;IAAC0B,IAAI,EAAC,KAAK;IAACC,IAAI,EAAEP,MAAO;IAACQ,KAAK,EAAER;EAAO,CAAE,CAAC,GAAG,IAAK;EACxE,IAAMS,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,KAAa;IAAA,OACjCZ,aAAa,KAAKa,SAAS,IAAKb,aAAa,CAACc,KAAK,CAAcC,QAAQ,CAACH,KAAK,CAAC;EAAA;EAEpF,oBACItB,IAAA,CAACH,eAAe;IACZkB,KAAK,EAAEA,KAAM;IACbW,QAAQ,EAAE9B,cAAc,CAAC+B,GAAI;IAC7Bb,IAAI,EAAEA,IAAK;IACXc,QAAQ,EAAEC,OAAO,CAACpB,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEqB,OAAO,CAAC,IAAID,OAAO,CAACrB,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEsB,OAAO,CAAE;IACpEC,SAAS,EAAE5B,KAAK,CAAC,CAAE;IACnB6B,MAAM,eACF9B,KAAA,CAACT,IAAI;MAACwC,GAAG,EAAE,CAAE;MAACC,UAAU,EAAC,QAAQ;MAACH,SAAS,EAAE5B,KAAK,CAAC,QAAQ,CAAE;MAAAgC,QAAA,gBACzDnC,IAAA,CAACN,IAAI;QAAC0C,OAAO,EAAC,aAAa;QAACC,QAAQ;QAACN,SAAS,EAAE5B,KAAK,CAAC,OAAO,CAAE;QAAAgC,QAAA,EAC1D5B,IAAI,CAACa;MAAK,CACT,CAAC,EACNC,cAAc,CAAC,SAAS,CAAC,IAAIL,OAAO,iBACjChB,IAAA,CAACN,IAAI;QAAC4C,KAAK,EAAC,eAAe;QAACP,SAAS,EAAE5B,KAAK,CAAC,gBAAgB,CAAE;QAAAgC,QAAA,EAC1DrC,mBAAmB,CAACkB,OAAO;MAAC,CAC3B,CACT,EACAK,cAAc,CAAC,QAAQ,CAAC,IAAIR,MAAM,iBAC/Bb,IAAA,CAACN,IAAI;QAAC4C,KAAK,EAAC,eAAe;QAACP,SAAS,EAAE5B,KAAK,CAAC,gBAAgB,CAAE;QAAAgC,QAAA,EAC1DtB;MAAM,CACL,CACT,EACAQ,cAAc,CAAC,QAAQ,CAAC,IAAIJ,aAAa;IAAA,CACxC;EACT,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ .qp-saved-query-search-row {
2
+ &__header {
3
+ min-width: 0;
4
+ width: 100%;
5
+ }
6
+
7
+ &__title {
8
+ flex: 1;
9
+ min-width: 0;
10
+ }
11
+
12
+ &__fixed-metadata {
13
+ flex-shrink: 0;
14
+ }
15
+ }
@@ -0,0 +1,2 @@
1
+ export { SavedQuerySearchRow } from './SavedQuerySearchRow';
2
+ export type { SavedQuerySearchRowProps } from './SavedQuerySearchRow';
@@ -0,0 +1,2 @@
1
+ export { SavedQuerySearchRow } from "./SavedQuerySearchRow";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SavedQuerySearchRow"],"sources":["index.ts"],"sourcesContent":["export {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\n"],"mappings":"AAAA,SAAQA,mBAAmB","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';
@@ -1,10 +1,13 @@
1
1
  export { HistoryHeader } from "./HistoryHeader";
2
2
  export { HistoryLayout } from "./HistoryLayout";
3
+ export { HistoryComparisonActions } from "./HistoryComparisonActions";
3
4
  export { NavigationHeader } from "./NavigationHeader";
4
5
  export { RowsList } from "./RowsList";
6
+ export { QueriesList } from "./QueriesList";
5
7
  export { HistoryRow } from "./HistoryRow";
6
- export { HistoryList } from "./HistoryList";
7
8
  export { HistorySearchRow } from "./HistorySearchRow";
9
+ export { SavedQueryRow } from "./SavedQueryRow";
10
+ export { SavedQuerySearchRow } from "./SavedQuerySearchRow";
8
11
  export * from "./ChartEditor";
9
12
  export { TutorialRow } from "./TutorialRow";
10
13
  export { TutorialSearchRow } from "./TutorialSearchRow";
@@ -1 +1 @@
1
- {"version":3,"names":["HistoryHeader","HistoryLayout","NavigationHeader","RowsList","HistoryRow","HistoryList","HistorySearchRow","TutorialRow","TutorialSearchRow","ClustersList","NavigationItemsList","NavigationDetail","NavigationSchema","buildSchemaColumns","filterSchema","NavigationPreview","buildPreviewColumns","filterPreviewRows","NavigationMeta","buildMetaGroups","NavigationView","buildViewColumns"],"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, NavigationViewViewConfig} from './NavigationView';\n"],"mappings":"AAAA,SAAQA,aAAa;AACrB,SAAQC,aAAa;AACrB,SAAQC,gBAAgB;AAGxB,SAAQC,QAAQ;AAEhB,SAAQC,UAAU;AAClB,SAAQC,WAAW;AAEnB,SAAQC,gBAAgB;AACxB;AACA,SAAQC,WAAW;AAEnB,SAAQC,iBAAiB;AAEzB,SAAQC,YAAY;AAEpB,SAAQC,mBAAmB;AAE3B,SAAQC,gBAAgB;AAExB,SAAQC,gBAAgB,EAAEC,kBAAkB,EAAEC,YAAY;AAE1D,SAAQC,iBAAiB,EAAEC,mBAAmB,EAAEC,iBAAiB;AAEjE,SAAQC,cAAc,EAAEC,eAAe;AAEvC,SAAQC,cAAc,EAAEC,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["HistoryHeader","HistoryLayout","HistoryComparisonActions","NavigationHeader","RowsList","QueriesList","HistoryRow","HistorySearchRow","SavedQueryRow","SavedQuerySearchRow","TutorialRow","TutorialSearchRow","ClustersList","NavigationItemsList","NavigationDetail","NavigationSchema","buildSchemaColumns","filterSchema","NavigationPreview","buildPreviewColumns","filterPreviewRows","NavigationMeta","buildMetaGroups","NavigationView","buildViewColumns"],"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,SAAQA,aAAa;AACrB,SAAQC,aAAa;AACrB,SAAQC,wBAAwB;AAEhC,SAAQC,gBAAgB;AAGxB,SAAQC,QAAQ;AAEhB,SAAQC,WAAW;AAEnB,SAAQC,UAAU;AAClB,SAAQC,gBAAgB;AACxB,SAAQC,aAAa;AAErB,SAAQC,mBAAmB;AAE3B;AACA,SAAQC,WAAW;AAEnB,SAAQC,iBAAiB;AAEzB,SAAQC,YAAY;AAEpB,SAAQC,mBAAmB;AAE3B,SAAQC,gBAAgB;AAExB,SAAQC,gBAAgB,EAAEC,kBAAkB,EAAEC,YAAY;AAE1D,SAAQC,iBAAiB,EAAEC,mBAAmB,EAAEC,iBAAiB;AAEjE,SAAQC,cAAc,EAAEC,eAAe;AAEvC,SAAQC,cAAc,EAAEC,gBAAgB","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":[]}
@@ -0,0 +1,83 @@
1
+ import { ReactNode } from 'react';
2
+ import { RegisteredFormFields } from './forms';
3
+ /** ISO 8601 date string or Unix timestamp in milliseconds. */
4
+ export type QueryTimestamp = string | number;
5
+ export type QueryListRowRenderProps = {
6
+ height: number;
7
+ };
8
+ export type QueryListHeader = {
9
+ header: string;
10
+ } & QueryListRowRenderProps;
11
+ export type QueryListRow = {
12
+ id: number;
13
+ title: string;
14
+ query?: string;
15
+ href?: string;
16
+ } & QueryListRowRenderProps;
17
+ export type QueryListItem<T extends QueryListRow = QueryListRow> = QueryListHeader | T;
18
+ export type QueryListRowVariant = 'default' | 'search';
19
+ export type QueryListRowAction<T extends QueryListRow = QueryListRow> = {
20
+ text: ReactNode;
21
+ icon?: ReactNode;
22
+ theme?: 'normal' | 'danger';
23
+ hidden?: boolean;
24
+ disabled?: boolean;
25
+ onClick: (item: T) => void;
26
+ };
27
+ export type QueryListSearchConfig = {
28
+ value?: string;
29
+ fullSearch?: boolean;
30
+ hasClear?: boolean;
31
+ onUpdate: (data: {
32
+ value: string;
33
+ fullSearch: boolean;
34
+ }) => void;
35
+ };
36
+ export type QueryListFilterConfig = {
37
+ fields?: RegisteredFormFields[];
38
+ values?: Record<string, any>;
39
+ initialValues?: Record<string, any>;
40
+ isChanged?: boolean;
41
+ onApply?: (values: Record<string, any>) => void;
42
+ onReset?: () => void;
43
+ };
44
+ export type QueryListEditingConfig<T extends QueryListRow = QueryListRow> = {
45
+ rowId?: T['id'];
46
+ onSubmit?: (item: T, title: string) => void;
47
+ onCancel?: (item: T) => void;
48
+ };
49
+ export type QueryListComparisonConfig<T extends QueryListRow = QueryListRow> = {
50
+ enabled: boolean;
51
+ comparedRowIds: T['id'][];
52
+ onChange: (item: T, selected: boolean) => void;
53
+ onCancel: () => void;
54
+ onCompare: () => void;
55
+ };
56
+ type RowFieldKey<T extends QueryListRow> = Exclude<keyof T & string, keyof QueryListRowRenderProps>;
57
+ export type QueryListFieldKey<T extends QueryListRow = QueryListRow> = RowFieldKey<T> | 'duration';
58
+ export type QueryListFieldOption<K extends string = string> = {
59
+ id: K;
60
+ title: ReactNode;
61
+ };
62
+ export type QueryListVisibleFieldsConfig<T extends QueryListRow = QueryListRow> = {
63
+ value: QueryListFieldKey<T>[];
64
+ fields: QueryListFieldOption<QueryListFieldKey<T>>[];
65
+ onChange: (value: QueryListFieldKey<T>[]) => void;
66
+ };
67
+ export type QueryListEditingRenderData<T extends QueryListRow = QueryListRow> = {
68
+ enabled: boolean;
69
+ } & Pick<QueryListEditingConfig<T>, 'onSubmit' | 'onCancel'>;
70
+ export type QueryListRowRenderData<T extends QueryListRow = QueryListRow> = {
71
+ item: QueryListItem<T>;
72
+ index: number;
73
+ isActive: boolean;
74
+ variant: QueryListRowVariant;
75
+ comparison?: {
76
+ enabled: boolean;
77
+ checked: boolean;
78
+ };
79
+ visibleFields?: QueryListVisibleFieldsConfig<T>;
80
+ actions?: QueryListRowAction<T>[];
81
+ editing?: QueryListEditingRenderData<T>;
82
+ };
83
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ // #sourceMappingURL=queryList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["queryList.ts"],"sourcesContent":["import {ReactNode} from 'react';\nimport {RegisteredFormFields} from './forms';\n\n/** ISO 8601 date string or Unix timestamp in milliseconds. */\nexport type QueryTimestamp = string | number;\n\nexport type QueryListRowRenderProps = {height: number};\n\nexport type QueryListHeader = {header: string} & QueryListRowRenderProps;\n\nexport type QueryListRow = {\n id: number;\n title: string;\n query?: string;\n href?: string;\n} & QueryListRowRenderProps;\n\nexport type QueryListItem<T extends QueryListRow = QueryListRow> = QueryListHeader | T;\n\nexport type QueryListRowVariant = 'default' | 'search';\n\nexport type QueryListRowAction<T extends QueryListRow = QueryListRow> = {\n text: ReactNode;\n icon?: ReactNode;\n theme?: 'normal' | 'danger';\n hidden?: boolean;\n disabled?: boolean;\n onClick: (item: T) => void;\n};\n\nexport type QueryListSearchConfig = {\n value?: string;\n fullSearch?: boolean;\n hasClear?: boolean;\n onUpdate: (data: {value: string; fullSearch: boolean}) => void;\n};\n\nexport type QueryListFilterConfig = {\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 QueryListEditingConfig<T extends QueryListRow = QueryListRow> = {\n rowId?: T['id'];\n onSubmit?: (item: T, title: string) => void;\n onCancel?: (item: T) => void;\n};\n\nexport type QueryListComparisonConfig<T extends QueryListRow = QueryListRow> = {\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 QueryListRow> = Exclude<keyof T & string, keyof QueryListRowRenderProps>;\n\nexport type QueryListFieldKey<T extends QueryListRow = QueryListRow> = RowFieldKey<T> | 'duration';\n\nexport type QueryListFieldOption<K extends string = string> = {\n id: K;\n title: ReactNode;\n};\n\nexport type QueryListVisibleFieldsConfig<T extends QueryListRow = QueryListRow> = {\n value: QueryListFieldKey<T>[];\n fields: QueryListFieldOption<QueryListFieldKey<T>>[];\n onChange: (value: QueryListFieldKey<T>[]) => void;\n};\n\nexport type QueryListEditingRenderData<T extends QueryListRow = QueryListRow> = {\n enabled: boolean;\n} & Pick<QueryListEditingConfig<T>, 'onSubmit' | 'onCancel'>;\n\nexport type QueryListRowRenderData<T extends QueryListRow = QueryListRow> = {\n item: QueryListItem<T>;\n index: number;\n isActive: boolean;\n variant: QueryListRowVariant;\n comparison?: {\n enabled: boolean;\n checked: boolean;\n };\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n actions?: QueryListRowAction<T>[];\n editing?: QueryListEditingRenderData<T>;\n};\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import { QueryListRow, QueryTimestamp } from './queryList';
2
+ export type SavedQuery = QueryListRow & {
3
+ savedAt?: QueryTimestamp;
4
+ engine?: string;
5
+ author?: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ // #sourceMappingURL=savedQueries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["savedQueries.ts"],"sourcesContent":["import {QueryListRow, QueryTimestamp} from './queryList';\n\nexport type SavedQuery = QueryListRow & {\n savedAt?: QueryTimestamp;\n engine?: string;\n author?: string;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import { BaseHistoryRow } from './history';
2
- export type TutorialHistoryRow = BaseHistoryRow;
1
+ import { QueryListRow } from './queryList';
2
+ export type TutorialHistoryRow = QueryListRow;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["tutorial.ts"],"sourcesContent":["import {BaseHistoryRow} from './history';\n\nexport type TutorialHistoryRow = BaseHistoryRow;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["tutorial.ts"],"sourcesContent":["import {QueryListRow} from './queryList';\n\nexport type TutorialHistoryRow = QueryListRow;\n"],"mappings":"","ignoreList":[]}
@@ -1,10 +1,4 @@
1
1
  .qp-query-history {
2
2
  height: 100%;
3
3
  }
4
- .qp-query-history__comparison-actions {
5
- position: absolute;
6
- left: 0;
7
- bottom: 0;
8
- width: 100%;
9
- }
10
4
  /*# sourceMappingURL=QueriesHistory.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["QueriesHistory.scss"],"names":[],"mappings":"AAAA;EACE,YAAA;AACF;AACE;EACE,kBAAA;EACA,OAAA;EACA,SAAA;EACA,WAAA;AACJ","file":"QueriesHistory.css","sourcesContent":[".qp-query-history {\n height: 100%;\n\n &__comparison-actions {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n }\n}"],"sourceRoot":""}
1
+ {"version":3,"sources":["QueriesHistory.scss"],"names":[],"mappings":"AAAA;EACE,YAAA;AACF","file":"QueriesHistory.css","sourcesContent":[".qp-query-history {\n height: 100%;\n}\n"],"sourceRoot":""}
@@ -1,19 +1,20 @@
1
1
  import React from 'react';
2
- import { QueryHistoryComparisonConfig, QueryHistoryEditingConfig, QueryHistoryFilterConfig, QueryHistoryItem, QueryHistoryRow, QueryHistoryRowAction, QueryHistoryRowRenderData, QueryHistorySearchConfig, QueryHistoryVisibleFieldsConfig } from '../../types/history';
2
+ import { QueryListComparisonConfig, QueryListEditingConfig, QueryListFilterConfig, QueryListItem, QueryListRowAction, QueryListRowRenderData, QueryListSearchConfig, QueryListVisibleFieldsConfig } from '../../types/queryList';
3
+ import { QueryHistoryRow } from '../../types/history';
3
4
  import './QueriesHistory.scss';
4
5
  export type QueriesHistoryProps<T extends QueryHistoryRow = QueryHistoryRow> = {
5
6
  className?: string;
6
7
  title?: string;
7
8
  logo?: React.ReactNode;
8
- search: QueryHistorySearchConfig;
9
- filter?: QueryHistoryFilterConfig;
10
- items: QueryHistoryItem<T>[];
9
+ search: QueryListSearchConfig;
10
+ filter?: QueryListFilterConfig;
11
+ items: QueryListItem<T>[];
11
12
  selectedRowId?: T['id'];
12
- editing?: QueryHistoryEditingConfig<T>;
13
- comparison?: QueryHistoryComparisonConfig<T>;
14
- visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
15
- renderRowItem?: (data: QueryHistoryRowRenderData<T>) => React.ReactNode;
16
- getRowActions?: (item: T) => QueryHistoryRowAction<T>[];
17
- onListItemClick?: (item: QueryHistoryItem<T>) => void;
13
+ editing?: QueryListEditingConfig<T>;
14
+ comparison?: QueryListComparisonConfig<T>;
15
+ visibleFields?: QueryListVisibleFieldsConfig<T>;
16
+ renderRowItem?: (data: QueryListRowRenderData<T>) => React.ReactNode;
17
+ getRowActions?: (item: T) => QueryListRowAction<T>[];
18
+ onListItemClick?: (item: QueryListItem<T>) => void;
18
19
  };
19
20
  export declare const QueriesHistory: <T extends QueryHistoryRow>({ title, logo, search, filter, items, selectedRowId, editing, comparison, visibleFields, renderRowItem, getRowActions, onListItemClick, className, }: QueriesHistoryProps<T>) => React.JSX.Element;
@@ -5,19 +5,15 @@ import "core-js/modules/es.iterator.filter.js";
5
5
  import "core-js/modules/es.object.to-string.js";
6
6
  import "core-js/modules/es.regexp.exec.js";
7
7
  import "core-js/modules/es.string.search.js";
8
- import "core-js/modules/es.string.trim.js";
9
8
  import React from 'react';
10
- import { HistoryHeader, HistoryLayout, HistoryList } from "../../modules";
11
- import i18n from "./i18n";
12
- import { FieldsSelector } from "../../components";
13
- import { getListKey } from "../../helpers/getListKey";
14
- import { ComparisonActions } from "./ComparisonActions";
15
9
  import cn from 'bem-cn-lite';
10
+ import { QueriesList } from "../../modules";
11
+ import i18n from "./i18n";
12
+ import { HistoryRowContent } from "./internal/HistoryRowContent";
16
13
  import "./QueriesHistory.css";
17
14
  import { jsx as _jsx } from "react/jsx-runtime";
18
15
  var block = cn('qp-query-history');
19
16
  export var QueriesHistory = function QueriesHistory(_ref) {
20
- var _search$value;
21
17
  var title = _ref.title,
22
18
  logo = _ref.logo,
23
19
  search = _ref.search,
@@ -31,37 +27,22 @@ export var QueriesHistory = function QueriesHistory(_ref) {
31
27
  getRowActions = _ref.getRowActions,
32
28
  onListItemClick = _ref.onListItemClick,
33
29
  className = _ref.className;
34
- var showSearchResults = Boolean(search.fullSearch && ((_search$value = search.value) === null || _search$value === void 0 ? void 0 : _search$value.trim()));
35
- var rowVariant = showSearchResults ? 'search' : 'default';
36
- return /*#__PURE__*/_jsx(HistoryLayout, {
30
+ return /*#__PURE__*/_jsx(QueriesList, {
37
31
  className: block(null, className),
38
32
  title: title || i18n('title_history'),
39
33
  logo: logo,
40
- actions: visibleFields && /*#__PURE__*/_jsx(FieldsSelector, _objectSpread({}, visibleFields)),
41
- header: /*#__PURE__*/_jsx(HistoryHeader, {
42
- className: block('header'),
43
- search: search.value,
44
- fullSearch: search.fullSearch,
45
- hasClear: search.hasClear,
46
- filter: filter,
47
- onUpdate: search.onUpdate
48
- }),
49
- footer: comparison && /*#__PURE__*/_jsx(ComparisonActions, {
50
- comparison: comparison,
51
- className: block('comparison-actions')
52
- }),
53
- children: /*#__PURE__*/_jsx(HistoryList, {
54
- items: items,
55
- rowVariant: rowVariant,
56
- selectedRowId: selectedRowId,
57
- visibleFields: visibleFields,
58
- editing: editing,
59
- comparison: comparison,
60
- renderRowItem: renderRowItem,
61
- getRowActions: getRowActions,
62
- showFiltersHint: Boolean(filter),
63
- onItemClick: onListItemClick
64
- }, getListKey(items, rowVariant))
34
+ search: search,
35
+ filter: filter,
36
+ items: items,
37
+ selectedRowId: selectedRowId,
38
+ visibleFields: visibleFields,
39
+ editing: editing,
40
+ comparison: comparison,
41
+ getRowActions: getRowActions,
42
+ renderRow: function renderRow(data) {
43
+ return renderRowItem ? renderRowItem(data) : /*#__PURE__*/_jsx(HistoryRowContent, _objectSpread({}, data));
44
+ },
45
+ onListItemClick: onListItemClick
65
46
  });
66
47
  };
67
48
  // #sourceMappingURL=QueriesHistory.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","HistoryHeader","HistoryLayout","HistoryList","i18n","FieldsSelector","getListKey","ComparisonActions","cn","jsx","_jsx","block","QueriesHistory","_ref","_search$value","title","logo","search","filter","items","selectedRowId","editing","comparison","visibleFields","renderRowItem","getRowActions","onListItemClick","className","showSearchResults","Boolean","fullSearch","value","trim","rowVariant","actions","_objectSpread","header","hasClear","onUpdate","footer","children","showFiltersHint","onItemClick"],"sources":["QueriesHistory.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryHeader, HistoryLayout, HistoryList} from '../../modules';\nimport i18n from './i18n';\nimport {\n QueryHistoryComparisonConfig,\n QueryHistoryEditingConfig,\n QueryHistoryFilterConfig,\n QueryHistoryItem,\n QueryHistoryRow,\n QueryHistoryRowAction,\n QueryHistoryRowRenderData,\n QueryHistorySearchConfig,\n QueryHistoryVisibleFieldsConfig,\n} from '../../types/history';\nimport {FieldsSelector} from '../../components';\nimport {getListKey} from '../../helpers/getListKey';\nimport {ComparisonActions} from './ComparisonActions';\nimport cn from 'bem-cn-lite';\nimport './QueriesHistory.scss';\n\nexport type QueriesHistoryProps<T extends QueryHistoryRow = QueryHistoryRow> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryHistorySearchConfig;\n filter?: QueryHistoryFilterConfig;\n items: QueryHistoryItem<T>[];\n selectedRowId?: T['id'];\n editing?: QueryHistoryEditingConfig<T>;\n comparison?: QueryHistoryComparisonConfig<T>;\n visibleFields?: QueryHistoryVisibleFieldsConfig<T>;\n renderRowItem?: (data: QueryHistoryRowRenderData<T>) => React.ReactNode;\n getRowActions?: (item: T) => QueryHistoryRowAction<T>[];\n onListItemClick?: (item: QueryHistoryItem<T>) => void;\n};\n\nconst block = cn('qp-query-history');\n\nexport const QueriesHistory = <T extends QueryHistoryRow>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n editing,\n comparison,\n visibleFields,\n renderRowItem,\n getRowActions,\n onListItemClick,\n className,\n}: QueriesHistoryProps<T>) => {\n const showSearchResults = Boolean(search.fullSearch && search.value?.trim());\n const rowVariant = showSearchResults ? 'search' : 'default';\n\n return (\n <HistoryLayout\n className={block(null, className)}\n title={title || i18n('title_history')}\n logo={logo}\n actions={visibleFields && <FieldsSelector {...visibleFields} />}\n header={\n <HistoryHeader\n className={block('header')}\n search={search.value}\n fullSearch={search.fullSearch}\n hasClear={search.hasClear}\n filter={filter}\n onUpdate={search.onUpdate}\n />\n }\n footer={\n comparison && (\n <ComparisonActions\n comparison={comparison}\n className={block('comparison-actions')}\n />\n )\n }\n >\n <HistoryList\n key={getListKey(items, rowVariant)}\n items={items}\n rowVariant={rowVariant}\n selectedRowId={selectedRowId}\n visibleFields={visibleFields}\n editing={editing}\n comparison={comparison}\n renderRowItem={renderRowItem}\n getRowActions={getRowActions}\n showFiltersHint={Boolean(filter)}\n onItemClick={onListItemClick}\n />\n </HistoryLayout>\n );\n};\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,aAAa,EAAEC,aAAa,EAAEC,WAAW;AACjD,OAAOC,IAAI;AAYX,SAAQC,cAAc;AACtB,SAAQC,UAAU;AAClB,SAAQC,iBAAiB;AACzB,OAAOC,EAAE,MAAM,aAAa;AAC5B;AAA+B,SAAAC,GAAA,IAAAC,IAAA;AAkB/B,IAAMC,KAAK,GAAGH,EAAE,CAAC,kBAAkB,CAAC;AAEpC,OAAO,IAAMI,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAcG;EAAA,IAAAC,aAAA;EAAA,IAb1BC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,MAAM,GAAAL,IAAA,CAANK,MAAM;IACNC,KAAK,GAAAN,IAAA,CAALM,KAAK;IACLC,aAAa,GAAAP,IAAA,CAAbO,aAAa;IACbC,OAAO,GAAAR,IAAA,CAAPQ,OAAO;IACPC,UAAU,GAAAT,IAAA,CAAVS,UAAU;IACVC,aAAa,GAAAV,IAAA,CAAbU,aAAa;IACbC,aAAa,GAAAX,IAAA,CAAbW,aAAa;IACbC,aAAa,GAAAZ,IAAA,CAAbY,aAAa;IACbC,eAAe,GAAAb,IAAA,CAAfa,eAAe;IACfC,SAAS,GAAAd,IAAA,CAATc,SAAS;EAET,IAAMC,iBAAiB,GAAGC,OAAO,CAACZ,MAAM,CAACa,UAAU,MAAAhB,aAAA,GAAIG,MAAM,CAACc,KAAK,cAAAjB,aAAA,uBAAZA,aAAA,CAAckB,IAAI,CAAC,CAAC,EAAC;EAC5E,IAAMC,UAAU,GAAGL,iBAAiB,GAAG,QAAQ,GAAG,SAAS;EAE3D,oBACIlB,IAAA,CAACR,aAAa;IACVyB,SAAS,EAAEhB,KAAK,CAAC,IAAI,EAAEgB,SAAS,CAAE;IAClCZ,KAAK,EAAEA,KAAK,IAAIX,IAAI,CAAC,eAAe,CAAE;IACtCY,IAAI,EAAEA,IAAK;IACXkB,OAAO,EAAEX,aAAa,iBAAIb,IAAA,CAACL,cAAc,EAAA8B,aAAA,KAAKZ,aAAa,CAAG,CAAE;IAChEa,MAAM,eACF1B,IAAA,CAACT,aAAa;MACV0B,SAAS,EAAEhB,KAAK,CAAC,QAAQ,CAAE;MAC3BM,MAAM,EAAEA,MAAM,CAACc,KAAM;MACrBD,UAAU,EAAEb,MAAM,CAACa,UAAW;MAC9BO,QAAQ,EAAEpB,MAAM,CAACoB,QAAS;MAC1BnB,MAAM,EAAEA,MAAO;MACfoB,QAAQ,EAAErB,MAAM,CAACqB;IAAS,CAC7B,CACJ;IACDC,MAAM,EACFjB,UAAU,iBACNZ,IAAA,CAACH,iBAAiB;MACde,UAAU,EAAEA,UAAW;MACvBK,SAAS,EAAEhB,KAAK,CAAC,oBAAoB;IAAE,CAC1C,CAER;IAAA6B,QAAA,eAED9B,IAAA,CAACP,WAAW;MAERgB,KAAK,EAAEA,KAAM;MACbc,UAAU,EAAEA,UAAW;MACvBb,aAAa,EAAEA,aAAc;MAC7BG,aAAa,EAAEA,aAAc;MAC7BF,OAAO,EAAEA,OAAQ;MACjBC,UAAU,EAAEA,UAAW;MACvBE,aAAa,EAAEA,aAAc;MAC7BC,aAAa,EAAEA,aAAc;MAC7BgB,eAAe,EAAEZ,OAAO,CAACX,MAAM,CAAE;MACjCwB,WAAW,EAAEhB;IAAgB,GAVxBpB,UAAU,CAACa,KAAK,EAAEc,UAAU,CAWpC;EAAC,CACS,CAAC;AAExB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","cn","QueriesList","i18n","HistoryRowContent","jsx","_jsx","block","QueriesHistory","_ref","title","logo","search","filter","items","selectedRowId","editing","comparison","visibleFields","renderRowItem","getRowActions","onListItemClick","className","renderRow","data","_objectSpread"],"sources":["QueriesHistory.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {QueriesList} from '../../modules';\nimport i18n from './i18n';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListFilterConfig,\n QueryListItem,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListSearchConfig,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {QueryHistoryRow} from '../../types/history';\nimport {HistoryRowContent} from './internal/HistoryRowContent';\nimport './QueriesHistory.scss';\n\nexport type QueriesHistoryProps<T extends QueryHistoryRow = QueryHistoryRow> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n renderRowItem?: (data: QueryListRowRenderData<T>) => React.ReactNode;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-query-history');\n\nexport const QueriesHistory = <T extends QueryHistoryRow>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n editing,\n comparison,\n visibleFields,\n renderRowItem,\n getRowActions,\n onListItemClick,\n className,\n}: QueriesHistoryProps<T>) => {\n return (\n <QueriesList\n className={block(null, className)}\n title={title || i18n('title_history')}\n logo={logo}\n search={search}\n filter={filter}\n items={items}\n selectedRowId={selectedRowId}\n visibleFields={visibleFields}\n editing={editing}\n comparison={comparison}\n getRowActions={getRowActions}\n renderRow={(data) =>\n renderRowItem ? renderRowItem(data) : <HistoryRowContent {...data} />\n }\n onListItemClick={onListItemClick}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,WAAW;AACnB,OAAOC,IAAI;AAYX,SAAQC,iBAAiB;AACzB;AAA+B,SAAAC,GAAA,IAAAC,IAAA;AAkB/B,IAAMC,KAAK,GAAGN,EAAE,CAAC,kBAAkB,CAAC;AAEpC,OAAO,IAAMO,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAcG;EAAA,IAb1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,MAAM,GAAAH,IAAA,CAANG,MAAM;IACNC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACPC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,aAAa,GAAAT,IAAA,CAAbS,aAAa;IACbC,aAAa,GAAAV,IAAA,CAAbU,aAAa;IACbC,aAAa,GAAAX,IAAA,CAAbW,aAAa;IACbC,eAAe,GAAAZ,IAAA,CAAfY,eAAe;IACfC,SAAS,GAAAb,IAAA,CAATa,SAAS;EAET,oBACIhB,IAAA,CAACJ,WAAW;IACRoB,SAAS,EAAEf,KAAK,CAAC,IAAI,EAAEe,SAAS,CAAE;IAClCZ,KAAK,EAAEA,KAAK,IAAIP,IAAI,CAAC,eAAe,CAAE;IACtCQ,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfC,MAAM,EAAEA,MAAO;IACfC,KAAK,EAAEA,KAAM;IACbC,aAAa,EAAEA,aAAc;IAC7BG,aAAa,EAAEA,aAAc;IAC7BF,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBG,aAAa,EAAEA,aAAc;IAC7BG,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;MAAA,OACZL,aAAa,GAAGA,aAAa,CAACK,IAAI,CAAC,gBAAGlB,IAAA,CAACF,iBAAiB,EAAAqB,aAAA,KAAKD,IAAI,CAAG,CAAC;IAAA,CACxE;IACDH,eAAe,EAAEA;EAAgB,CACpC,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,10 +1,3 @@
1
1
  .qp-query-history {
2
2
  height: 100%;
3
-
4
- &__comparison-actions {
5
- position: absolute;
6
- left: 0;
7
- bottom: 0;
8
- width: 100%;
9
- }
10
- }
3
+ }