@gravity-ui/querieskit 1.1.0 → 1.3.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 (1013) hide show
  1. package/.agents/skills/code-review-checklist/SKILL.md +62 -103
  2. package/AGENTS.md +12 -0
  3. package/CHANGELOG.md +29 -0
  4. package/CODEOWNERS +2 -1
  5. package/build/cjs/components/AttachmentList/AttachmentList.css +22 -0
  6. package/build/cjs/components/AttachmentList/AttachmentList.css.map +1 -0
  7. package/build/cjs/components/AttachmentList/AttachmentList.d.ts +17 -0
  8. package/build/cjs/components/AttachmentList/AttachmentList.js +75 -0
  9. package/build/cjs/components/AttachmentList/AttachmentList.js.map +1 -0
  10. package/build/cjs/components/AttachmentList/AttachmentList.stories.d.ts +93 -0
  11. package/build/cjs/components/AttachmentList/AttachmentList.stories.js +323 -0
  12. package/build/cjs/components/AttachmentList/AttachmentList.stories.js.map +1 -0
  13. package/build/cjs/components/AttachmentList/helpers/getIconByAttachmentName.d.ts +2 -0
  14. package/build/cjs/components/AttachmentList/helpers/getIconByAttachmentName.js +36 -0
  15. package/build/cjs/components/AttachmentList/helpers/getIconByAttachmentName.js.map +1 -0
  16. package/build/cjs/components/AttachmentList/helpers/objectLinkValidator.d.ts +11 -0
  17. package/build/cjs/components/AttachmentList/helpers/objectLinkValidator.js +30 -0
  18. package/build/cjs/components/AttachmentList/helpers/objectLinkValidator.js.map +1 -0
  19. package/build/cjs/components/AttachmentList/helpers/stringRequiredValidator.d.ts +2 -0
  20. package/build/cjs/components/AttachmentList/helpers/stringRequiredValidator.js +26 -0
  21. package/build/cjs/components/AttachmentList/helpers/stringRequiredValidator.js.map +1 -0
  22. package/build/cjs/components/AttachmentList/hooks/useKeyDownFormControl.d.ts +4 -0
  23. package/build/cjs/components/AttachmentList/hooks/useKeyDownFormControl.js +27 -0
  24. package/build/cjs/components/AttachmentList/hooks/useKeyDownFormControl.js.map +1 -0
  25. package/build/cjs/components/AttachmentList/hooks/useLabelRef.d.ts +4 -0
  26. package/build/cjs/components/AttachmentList/hooks/useLabelRef.js +35 -0
  27. package/build/cjs/components/AttachmentList/hooks/useLabelRef.js.map +1 -0
  28. package/build/cjs/components/AttachmentList/i18n/dicts.d.ts +23 -0
  29. package/build/cjs/components/AttachmentList/i18n/dicts.js +14 -0
  30. package/build/cjs/components/AttachmentList/i18n/dicts.js.map +1 -0
  31. package/build/cjs/components/AttachmentList/i18n/en.json +10 -0
  32. package/build/cjs/components/AttachmentList/i18n/index.d.ts +6 -0
  33. package/build/cjs/components/AttachmentList/i18n/index.js +11 -0
  34. package/build/cjs/components/AttachmentList/i18n/index.js.map +1 -0
  35. package/build/cjs/components/AttachmentList/i18n/ru.json +10 -0
  36. package/build/cjs/components/AttachmentList/index.d.ts +4 -0
  37. package/build/cjs/components/AttachmentList/index.js +40 -0
  38. package/build/cjs/components/AttachmentList/index.js.map +1 -0
  39. package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css +18 -0
  40. package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css.map +1 -0
  41. package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.d.ts +16 -0
  42. package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js +106 -0
  43. package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js.map +1 -0
  44. package/build/cjs/components/AttachmentList/internal/AttachmentItem/index.d.ts +2 -0
  45. package/build/cjs/components/AttachmentList/internal/AttachmentItem/index.js +13 -0
  46. package/build/cjs/components/AttachmentList/internal/AttachmentItem/index.js.map +1 -0
  47. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.d.ts +9 -0
  48. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js +22 -0
  49. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js.map +1 -0
  50. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css +17 -0
  51. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css.map +1 -0
  52. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.d.ts +24 -0
  53. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js +175 -0
  54. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js.map +1 -0
  55. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/FileEdit.d.ts +12 -0
  56. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js +91 -0
  57. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js.map +1 -0
  58. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/index.d.ts +4 -0
  59. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/index.js +13 -0
  60. package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/index.js.map +1 -0
  61. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css +4 -0
  62. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css.map +1 -0
  63. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.d.ts +13 -0
  64. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js +75 -0
  65. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js.map +1 -0
  66. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.d.ts +29 -0
  67. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js +36 -0
  68. package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js.map +1 -0
  69. package/build/cjs/components/AttachmentListPlaceholder/i18n/dicts.d.ts +17 -0
  70. package/build/cjs/components/AttachmentListPlaceholder/i18n/dicts.js +14 -0
  71. package/build/cjs/components/AttachmentListPlaceholder/i18n/dicts.js.map +1 -0
  72. package/build/cjs/components/AttachmentListPlaceholder/i18n/en.json +7 -0
  73. package/build/cjs/components/AttachmentListPlaceholder/i18n/index.d.ts +6 -0
  74. package/build/cjs/components/AttachmentListPlaceholder/i18n/index.js +11 -0
  75. package/build/cjs/components/AttachmentListPlaceholder/i18n/index.js.map +1 -0
  76. package/build/cjs/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
  77. package/build/cjs/components/AttachmentListPlaceholder/index.d.ts +2 -0
  78. package/build/cjs/components/AttachmentListPlaceholder/index.js +13 -0
  79. package/build/cjs/components/AttachmentListPlaceholder/index.js.map +1 -0
  80. package/build/cjs/components/DataTable/DataTable.css +0 -7
  81. package/build/cjs/components/DataTable/DataTable.css.map +1 -1
  82. package/build/cjs/components/DataTable/DataTable.js +12 -5
  83. package/build/cjs/components/DataTable/DataTable.js.map +1 -1
  84. package/build/cjs/components/EditableRowTitle/EditableRowTitle.d.ts +7 -0
  85. package/build/cjs/{modules/HistoryRow/HistoryRowTitle.js → components/EditableRowTitle/EditableRowTitle.js} +4 -6
  86. package/build/cjs/components/EditableRowTitle/EditableRowTitle.js.map +1 -0
  87. package/build/cjs/components/EditableRowTitle/index.d.ts +2 -0
  88. package/build/cjs/components/EditableRowTitle/index.js +13 -0
  89. package/build/cjs/components/EditableRowTitle/index.js.map +1 -0
  90. package/build/cjs/components/ErrorTree/ErrorTree.d.ts +3 -0
  91. package/build/cjs/components/ErrorTree/ErrorTree.js +35 -0
  92. package/build/cjs/components/ErrorTree/ErrorTree.js.map +1 -0
  93. package/build/cjs/components/ErrorTree/ErrorTree.stories.d.ts +8 -0
  94. package/build/cjs/components/ErrorTree/ErrorTree.stories.js +101 -0
  95. package/build/cjs/components/ErrorTree/ErrorTree.stories.js.map +1 -0
  96. package/build/cjs/components/ErrorTree/helpers/formatAttributes.d.ts +2 -0
  97. package/build/cjs/components/ErrorTree/helpers/formatAttributes.js +16 -0
  98. package/build/cjs/components/ErrorTree/helpers/formatAttributes.js.map +1 -0
  99. package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.d.ts +6 -0
  100. package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.js +22 -0
  101. package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.js.map +1 -0
  102. package/build/cjs/components/ErrorTree/i18n/dicts.d.ts +27 -0
  103. package/build/cjs/components/ErrorTree/i18n/dicts.js +14 -0
  104. package/build/cjs/components/ErrorTree/i18n/dicts.js.map +1 -0
  105. package/build/cjs/components/ErrorTree/i18n/en.json +11 -0
  106. package/build/cjs/components/ErrorTree/i18n/index.d.ts +6 -0
  107. package/build/cjs/components/ErrorTree/i18n/index.js +11 -0
  108. package/build/cjs/components/ErrorTree/i18n/index.js.map +1 -0
  109. package/build/cjs/components/ErrorTree/i18n/ru.json +13 -0
  110. package/build/cjs/components/ErrorTree/index.d.ts +1 -0
  111. package/build/cjs/components/ErrorTree/index.js +13 -0
  112. package/build/cjs/components/ErrorTree/index.js.map +1 -0
  113. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.css +4 -0
  114. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.css.map +1 -0
  115. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.d.ts +10 -0
  116. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.js +32 -0
  117. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.js.map +1 -0
  118. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.css +80 -0
  119. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.css.map +1 -0
  120. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.d.ts +13 -0
  121. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.js +274 -0
  122. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.js.map +1 -0
  123. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.css +10 -0
  124. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.css.map +1 -0
  125. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.d.ts +9 -0
  126. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.js +118 -0
  127. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.js.map +1 -0
  128. package/build/cjs/components/HistoryFilter/HistoryFilter.d.ts +2 -2
  129. package/build/cjs/components/HistoryFilter/HistoryFilter.js.map +1 -1
  130. package/build/cjs/components/Icons/LogoCPlusPlus.d.ts +2 -0
  131. package/build/cjs/components/Icons/LogoCPlusPlus.js +35 -0
  132. package/build/cjs/components/Icons/LogoCPlusPlus.js.map +1 -0
  133. package/build/cjs/components/Icons/index.d.ts +1 -0
  134. package/build/cjs/components/Icons/index.js +13 -0
  135. package/build/cjs/components/Icons/index.js.map +1 -0
  136. package/build/cjs/components/LazyList/LazyList.css +0 -2
  137. package/build/cjs/components/LazyList/LazyList.css.map +1 -1
  138. package/build/cjs/components/QueryResultsTable/QueryResultsTable.css +53 -0
  139. package/build/cjs/components/QueryResultsTable/QueryResultsTable.css.map +1 -0
  140. package/build/cjs/components/QueryResultsTable/QueryResultsTable.d.ts +24 -0
  141. package/build/cjs/components/QueryResultsTable/QueryResultsTable.js +104 -0
  142. package/build/cjs/components/QueryResultsTable/QueryResultsTable.js.map +1 -0
  143. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.d.ts +3 -0
  144. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.js +90 -0
  145. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.js.map +1 -0
  146. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.d.ts +11 -0
  147. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.js +40 -0
  148. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.js.map +1 -0
  149. package/build/cjs/components/QueryResultsTable/i18n/dicts.d.ts +13 -0
  150. package/build/cjs/components/QueryResultsTable/i18n/dicts.js +14 -0
  151. package/build/cjs/components/QueryResultsTable/i18n/dicts.js.map +1 -0
  152. package/build/cjs/components/QueryResultsTable/i18n/en.json +5 -0
  153. package/build/cjs/components/QueryResultsTable/i18n/index.d.ts +6 -0
  154. package/build/cjs/components/QueryResultsTable/i18n/index.js +11 -0
  155. package/build/cjs/components/QueryResultsTable/i18n/index.js.map +1 -0
  156. package/build/cjs/components/QueryResultsTable/i18n/ru.json +5 -0
  157. package/build/cjs/components/QueryResultsTable/index.d.ts +3 -0
  158. package/build/cjs/components/QueryResultsTable/index.js +20 -0
  159. package/build/cjs/components/QueryResultsTable/index.js.map +1 -0
  160. package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.d.ts +11 -0
  161. package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.js +79 -0
  162. package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.js.map +1 -0
  163. package/build/cjs/components/RowActionsMenu/RowActionsMenu.d.ts +7 -0
  164. package/build/cjs/{modules/HistoryRow/HistoryRowMenu.js → components/RowActionsMenu/RowActionsMenu.js} +9 -6
  165. package/build/cjs/components/RowActionsMenu/RowActionsMenu.js.map +1 -0
  166. package/build/cjs/components/RowActionsMenu/index.d.ts +2 -0
  167. package/build/cjs/components/RowActionsMenu/index.js +13 -0
  168. package/build/cjs/components/RowActionsMenu/index.js.map +1 -0
  169. package/build/cjs/components/index.d.ts +9 -0
  170. package/build/cjs/components/index.js +64 -1
  171. package/build/cjs/components/index.js.map +1 -1
  172. package/build/cjs/helpers/createUuid.d.ts +1 -0
  173. package/build/cjs/helpers/createUuid.js +12 -0
  174. package/build/cjs/helpers/createUuid.js.map +1 -0
  175. package/build/cjs/helpers/getListKey.d.ts +2 -2
  176. package/build/cjs/helpers/getListKey.js.map +1 -1
  177. package/build/cjs/helpers/isFieldVisible.d.ts +5 -4
  178. package/build/cjs/helpers/isFieldVisible.js +2 -2
  179. package/build/cjs/helpers/isFieldVisible.js.map +1 -1
  180. package/build/cjs/helpers/isObjectEqual.d.ts +1 -0
  181. package/build/cjs/helpers/isObjectEqual.js +30 -0
  182. package/build/cjs/helpers/isObjectEqual.js.map +1 -0
  183. package/build/cjs/helpers/time.d.ts +1 -0
  184. package/build/cjs/helpers/time.js +7 -3
  185. package/build/cjs/helpers/time.js.map +1 -1
  186. package/build/cjs/helpers/useDebouncedValue.d.ts +2 -0
  187. package/build/cjs/helpers/useDebouncedValue.js +27 -0
  188. package/build/cjs/helpers/useDebouncedValue.js.map +1 -0
  189. package/build/cjs/index.d.ts +5 -0
  190. package/build/cjs/index.js +44 -0
  191. package/build/cjs/index.js.map +1 -1
  192. package/build/cjs/modules/Attachments/Attachments.css +8 -0
  193. package/build/cjs/modules/Attachments/Attachments.css.map +1 -0
  194. package/build/cjs/modules/Attachments/Attachments.d.ts +22 -0
  195. package/build/cjs/modules/Attachments/Attachments.js +381 -0
  196. package/build/cjs/modules/Attachments/Attachments.js.map +1 -0
  197. package/build/cjs/modules/Attachments/Attachments.stories.d.ts +41 -0
  198. package/build/cjs/modules/Attachments/Attachments.stories.js +123 -0
  199. package/build/cjs/modules/Attachments/Attachments.stories.js.map +1 -0
  200. package/build/cjs/modules/Attachments/i18n/dicts.d.ts +13 -0
  201. package/build/cjs/modules/Attachments/i18n/dicts.js +14 -0
  202. package/build/cjs/modules/Attachments/i18n/dicts.js.map +1 -0
  203. package/build/cjs/modules/Attachments/i18n/en.json +5 -0
  204. package/build/cjs/modules/Attachments/i18n/index.d.ts +6 -0
  205. package/build/cjs/modules/Attachments/i18n/index.js +11 -0
  206. package/build/cjs/modules/Attachments/i18n/index.js.map +1 -0
  207. package/build/cjs/modules/Attachments/i18n/ru.json +5 -0
  208. package/build/cjs/modules/Attachments/index.d.ts +2 -0
  209. package/build/cjs/modules/Attachments/index.js +13 -0
  210. package/build/cjs/modules/Attachments/index.js.map +1 -0
  211. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.css +5 -0
  212. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.css.map +1 -0
  213. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.d.ts +8 -0
  214. package/build/cjs/{widgets/QueriesHistory/ComparisonActions.js → modules/HistoryComparisonActions/HistoryComparisonActions.js} +11 -11
  215. package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.js.map +1 -0
  216. package/build/cjs/modules/HistoryComparisonActions/index.d.ts +2 -0
  217. package/build/cjs/modules/HistoryComparisonActions/index.js +13 -0
  218. package/build/cjs/modules/HistoryComparisonActions/index.js.map +1 -0
  219. package/build/cjs/modules/HistoryHeader/HistoryHeader.d.ts +2 -2
  220. package/build/cjs/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  221. package/build/cjs/modules/HistoryRow/HistoryRow.d.ts +3 -2
  222. package/build/cjs/modules/HistoryRow/HistoryRow.js +2 -4
  223. package/build/cjs/modules/HistoryRow/HistoryRow.js.map +1 -1
  224. package/build/cjs/modules/HistoryRow/HistoryRow.stories.js.map +1 -1
  225. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.d.ts +3 -2
  226. package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  227. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListHeader.js +1 -7
  228. package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListHeader.js.map +1 -1
  229. package/build/cjs/modules/NavigationPreview/NavigationPreview.css +7 -1
  230. package/build/cjs/modules/NavigationPreview/NavigationPreview.css.map +1 -1
  231. package/build/cjs/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
  232. package/build/cjs/modules/NavigationPreview/NavigationPreview.js +37 -7
  233. package/build/cjs/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  234. package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
  235. package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js +25 -1
  236. package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
  237. package/build/cjs/modules/NavigationPreview/story/mockData.d.ts +2 -2
  238. package/build/cjs/modules/NavigationPreview/story/mockData.js +16 -4
  239. package/build/cjs/modules/NavigationPreview/story/mockData.js.map +1 -1
  240. package/build/cjs/modules/QueriesList/QueriesList.css +10 -0
  241. package/build/cjs/modules/QueriesList/QueriesList.css.map +1 -0
  242. package/build/cjs/modules/QueriesList/QueriesList.d.ts +19 -0
  243. package/build/cjs/modules/QueriesList/QueriesList.js +75 -0
  244. package/build/cjs/modules/QueriesList/QueriesList.js.map +1 -0
  245. package/build/cjs/modules/QueriesList/index.d.ts +2 -0
  246. package/build/cjs/modules/QueriesList/index.js +13 -0
  247. package/build/cjs/modules/QueriesList/index.js.map +1 -0
  248. package/build/cjs/modules/QueryStatistics/QueryStatistics.css +4 -0
  249. package/build/cjs/modules/QueryStatistics/QueryStatistics.css.map +1 -0
  250. package/build/cjs/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
  251. package/build/cjs/modules/QueryStatistics/QueryStatistics.js +151 -0
  252. package/build/cjs/modules/QueryStatistics/QueryStatistics.js.map +1 -0
  253. package/build/cjs/modules/QueryStatistics/helpers.d.ts +15 -0
  254. package/build/cjs/modules/QueryStatistics/helpers.js +118 -0
  255. package/build/cjs/modules/QueryStatistics/helpers.js.map +1 -0
  256. package/build/cjs/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
  257. package/build/cjs/modules/QueryStatistics/i18n/dicts.js +14 -0
  258. package/build/cjs/modules/QueryStatistics/i18n/dicts.js.map +1 -0
  259. package/build/cjs/modules/QueryStatistics/i18n/en.json +16 -0
  260. package/build/cjs/modules/QueryStatistics/i18n/index.d.ts +6 -0
  261. package/build/cjs/modules/QueryStatistics/i18n/index.js +11 -0
  262. package/build/cjs/modules/QueryStatistics/i18n/index.js.map +1 -0
  263. package/build/cjs/modules/QueryStatistics/i18n/ru.json +16 -0
  264. package/build/cjs/modules/QueryStatistics/index.d.ts +2 -0
  265. package/build/cjs/modules/QueryStatistics/index.js +13 -0
  266. package/build/cjs/modules/QueryStatistics/index.js.map +1 -0
  267. package/build/cjs/modules/QueryStatistics/internal/MetricCell.css +36 -0
  268. package/build/cjs/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
  269. package/build/cjs/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
  270. package/build/cjs/modules/QueryStatistics/internal/MetricCell.js +121 -0
  271. package/build/cjs/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
  272. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
  273. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
  274. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
  275. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js +140 -0
  276. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
  277. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
  278. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
  279. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
  280. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +55 -0
  281. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
  282. package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
  283. package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.js +112 -0
  284. package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.js.map +1 -0
  285. package/build/cjs/modules/RowsList/RowsList.d.ts +11 -11
  286. package/build/cjs/modules/RowsList/RowsList.js +5 -1
  287. package/build/cjs/modules/RowsList/RowsList.js.map +1 -1
  288. package/build/cjs/modules/RowsList/helpers/prepareRowData.d.ts +9 -9
  289. package/build/cjs/modules/RowsList/helpers/prepareRowData.js.map +1 -1
  290. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.css +17 -0
  291. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.css.map +1 -0
  292. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.d.ts +9 -0
  293. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js +78 -0
  294. package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js.map +1 -0
  295. package/build/cjs/modules/SavedQueryRow/index.d.ts +2 -0
  296. package/build/cjs/modules/SavedQueryRow/index.js +13 -0
  297. package/build/cjs/modules/SavedQueryRow/index.js.map +1 -0
  298. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.css +12 -0
  299. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.css.map +1 -0
  300. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +9 -0
  301. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +65 -0
  302. package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -0
  303. package/build/cjs/modules/SavedQuerySearchRow/index.d.ts +2 -0
  304. package/build/cjs/modules/SavedQuerySearchRow/index.js +13 -0
  305. package/build/cjs/modules/SavedQuerySearchRow/index.js.map +1 -0
  306. package/build/cjs/modules/index.d.ts +11 -2
  307. package/build/cjs/modules/index.js +52 -8
  308. package/build/cjs/modules/index.js.map +1 -1
  309. package/build/cjs/types/declarations.d.ts +10 -0
  310. package/build/cjs/types/errorTree.d.ts +23 -0
  311. package/build/cjs/types/errorTree.js +6 -0
  312. package/build/cjs/types/errorTree.js.map +1 -0
  313. package/build/cjs/types/history.d.ts +4 -85
  314. package/build/cjs/types/history.js.map +1 -1
  315. package/build/cjs/types/navigation.d.ts +8 -1
  316. package/build/cjs/types/navigation.js.map +1 -1
  317. package/build/cjs/types/queryList.d.ts +83 -0
  318. package/build/cjs/types/queryList.js +6 -0
  319. package/build/cjs/types/queryList.js.map +1 -0
  320. package/build/cjs/types/queryResults.d.ts +34 -0
  321. package/build/cjs/types/queryResults.js +6 -0
  322. package/build/cjs/types/queryResults.js.map +1 -0
  323. package/build/cjs/types/queryStatistics.d.ts +54 -0
  324. package/build/cjs/types/queryStatistics.js +6 -0
  325. package/build/cjs/types/queryStatistics.js.map +1 -0
  326. package/build/cjs/types/savedQueries.d.ts +6 -0
  327. package/build/cjs/types/savedQueries.js +6 -0
  328. package/build/cjs/types/savedQueries.js.map +1 -0
  329. package/build/cjs/types/tutorial.d.ts +2 -2
  330. package/build/cjs/types/tutorial.js.map +1 -1
  331. package/build/cjs/widgets/QueriesHistory/QueriesHistory.css +0 -6
  332. package/build/cjs/widgets/QueriesHistory/QueriesHistory.css.map +1 -1
  333. package/build/cjs/widgets/QueriesHistory/QueriesHistory.d.ts +11 -10
  334. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js +15 -34
  335. package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  336. package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
  337. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.d.ts +4 -0
  338. package/build/cjs/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.js +4 -5
  339. package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -0
  340. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.css +3 -0
  341. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.css.map +1 -1
  342. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.stories.js +40 -35
  343. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
  344. package/build/cjs/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
  345. package/build/cjs/widgets/QueryResults/QueryResults.css +19 -0
  346. package/build/cjs/widgets/QueryResults/QueryResults.css.map +1 -0
  347. package/build/cjs/widgets/QueryResults/QueryResults.d.ts +23 -0
  348. package/build/cjs/widgets/QueryResults/QueryResults.js +119 -0
  349. package/build/cjs/widgets/QueryResults/QueryResults.js.map +1 -0
  350. package/build/cjs/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
  351. package/build/cjs/widgets/QueryResults/QueryResults.stories.js +199 -0
  352. package/build/cjs/widgets/QueryResults/QueryResults.stories.js.map +1 -0
  353. package/build/cjs/widgets/QueryResults/i18n/dicts.d.ts +25 -0
  354. package/build/cjs/widgets/QueryResults/i18n/dicts.js +14 -0
  355. package/build/cjs/widgets/QueryResults/i18n/dicts.js.map +1 -0
  356. package/build/cjs/widgets/QueryResults/i18n/en.json +10 -0
  357. package/build/cjs/widgets/QueryResults/i18n/index.d.ts +6 -0
  358. package/build/cjs/widgets/QueryResults/i18n/index.js +11 -0
  359. package/build/cjs/widgets/QueryResults/i18n/index.js.map +1 -0
  360. package/build/cjs/widgets/QueryResults/i18n/ru.json +12 -0
  361. package/build/cjs/widgets/QueryResults/index.d.ts +2 -0
  362. package/build/cjs/widgets/QueryResults/index.js +13 -0
  363. package/build/cjs/widgets/QueryResults/index.js.map +1 -0
  364. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
  365. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js +49 -0
  366. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -0
  367. package/build/cjs/widgets/SavedQueries/SavedQueries.css +4 -0
  368. package/build/cjs/widgets/SavedQueries/SavedQueries.css.map +1 -0
  369. package/build/cjs/widgets/SavedQueries/SavedQueries.d.ts +21 -0
  370. package/build/cjs/widgets/SavedQueries/SavedQueries.js +58 -0
  371. package/build/cjs/widgets/SavedQueries/SavedQueries.js.map +1 -0
  372. package/build/cjs/widgets/SavedQueries/SavedQueries.stories.d.ts +8 -0
  373. package/build/cjs/widgets/SavedQueries/SavedQueries.stories.js +286 -0
  374. package/build/cjs/widgets/SavedQueries/SavedQueries.stories.js.map +1 -0
  375. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.d.ts +8 -0
  376. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js +33 -0
  377. package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -0
  378. package/build/cjs/widgets/SavedQueries/i18n/dicts.d.ts +9 -0
  379. package/build/cjs/widgets/SavedQueries/i18n/dicts.js +14 -0
  380. package/build/cjs/widgets/SavedQueries/i18n/dicts.js.map +1 -0
  381. package/build/cjs/widgets/SavedQueries/i18n/en.json +3 -0
  382. package/build/cjs/widgets/SavedQueries/i18n/index.d.ts +6 -0
  383. package/build/cjs/widgets/SavedQueries/i18n/index.js +11 -0
  384. package/build/cjs/widgets/SavedQueries/i18n/index.js.map +1 -0
  385. package/build/cjs/widgets/SavedQueries/i18n/ru.json +3 -0
  386. package/build/cjs/widgets/SavedQueries/index.d.ts +2 -0
  387. package/build/cjs/widgets/SavedQueries/index.js +13 -0
  388. package/build/cjs/widgets/SavedQueries/index.js.map +1 -0
  389. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  390. package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  391. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.d.ts +5 -5
  392. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  393. package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
  394. package/build/cjs/widgets/index.d.ts +4 -0
  395. package/build/cjs/widgets/index.js +14 -0
  396. package/build/cjs/widgets/index.js.map +1 -1
  397. package/build/esm/components/AttachmentList/AttachmentList.css +22 -0
  398. package/build/esm/components/AttachmentList/AttachmentList.css.map +1 -0
  399. package/build/esm/components/AttachmentList/AttachmentList.d.ts +17 -0
  400. package/build/esm/components/AttachmentList/AttachmentList.js +67 -0
  401. package/build/esm/components/AttachmentList/AttachmentList.js.map +1 -0
  402. package/build/esm/components/AttachmentList/AttachmentList.scss +25 -0
  403. package/build/esm/components/AttachmentList/AttachmentList.stories.d.ts +93 -0
  404. package/build/esm/components/AttachmentList/AttachmentList.stories.js +315 -0
  405. package/build/esm/components/AttachmentList/AttachmentList.stories.js.map +1 -0
  406. package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.d.ts +2 -0
  407. package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.js +30 -0
  408. package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.js.map +1 -0
  409. package/build/esm/components/AttachmentList/helpers/objectLinkValidator.d.ts +11 -0
  410. package/build/esm/components/AttachmentList/helpers/objectLinkValidator.js +24 -0
  411. package/build/esm/components/AttachmentList/helpers/objectLinkValidator.js.map +1 -0
  412. package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.d.ts +2 -0
  413. package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.js +19 -0
  414. package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.js.map +1 -0
  415. package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.d.ts +4 -0
  416. package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.js +21 -0
  417. package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.js.map +1 -0
  418. package/build/esm/components/AttachmentList/hooks/useLabelRef.d.ts +4 -0
  419. package/build/esm/components/AttachmentList/hooks/useLabelRef.js +28 -0
  420. package/build/esm/components/AttachmentList/hooks/useLabelRef.js.map +1 -0
  421. package/build/esm/components/AttachmentList/i18n/dicts.d.ts +23 -0
  422. package/build/esm/components/AttachmentList/i18n/dicts.js +7 -0
  423. package/build/esm/components/AttachmentList/i18n/dicts.js.map +1 -0
  424. package/build/esm/components/AttachmentList/i18n/en.json +10 -0
  425. package/build/esm/components/AttachmentList/i18n/index.d.ts +6 -0
  426. package/build/esm/components/AttachmentList/i18n/index.js +4 -0
  427. package/build/esm/components/AttachmentList/i18n/index.js.map +1 -0
  428. package/build/esm/components/AttachmentList/i18n/ru.json +10 -0
  429. package/build/esm/components/AttachmentList/index.d.ts +4 -0
  430. package/build/esm/components/AttachmentList/index.js +4 -0
  431. package/build/esm/components/AttachmentList/index.js.map +1 -0
  432. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css +18 -0
  433. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css.map +1 -0
  434. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.d.ts +16 -0
  435. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js +98 -0
  436. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js.map +1 -0
  437. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.scss +23 -0
  438. package/build/esm/components/AttachmentList/internal/AttachmentItem/index.d.ts +2 -0
  439. package/build/esm/components/AttachmentList/internal/AttachmentItem/index.js +2 -0
  440. package/build/esm/components/AttachmentList/internal/AttachmentItem/index.js.map +1 -0
  441. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.d.ts +9 -0
  442. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js +15 -0
  443. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js.map +1 -0
  444. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css +17 -0
  445. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css.map +1 -0
  446. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.d.ts +24 -0
  447. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js +167 -0
  448. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js.map +1 -0
  449. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.scss +21 -0
  450. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.d.ts +12 -0
  451. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js +83 -0
  452. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js.map +1 -0
  453. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.d.ts +4 -0
  454. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.js +2 -0
  455. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.js.map +1 -0
  456. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css +4 -0
  457. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css.map +1 -0
  458. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.d.ts +13 -0
  459. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js +68 -0
  460. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js.map +1 -0
  461. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.scss +5 -0
  462. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.d.ts +29 -0
  463. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js +29 -0
  464. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js.map +1 -0
  465. package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.d.ts +17 -0
  466. package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.js +7 -0
  467. package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.js.map +1 -0
  468. package/build/esm/components/AttachmentListPlaceholder/i18n/en.json +7 -0
  469. package/build/esm/components/AttachmentListPlaceholder/i18n/index.d.ts +6 -0
  470. package/build/esm/components/AttachmentListPlaceholder/i18n/index.js +4 -0
  471. package/build/esm/components/AttachmentListPlaceholder/i18n/index.js.map +1 -0
  472. package/build/esm/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
  473. package/build/esm/components/AttachmentListPlaceholder/index.d.ts +2 -0
  474. package/build/esm/components/AttachmentListPlaceholder/index.js +2 -0
  475. package/build/esm/components/AttachmentListPlaceholder/index.js.map +1 -0
  476. package/build/esm/components/DataTable/DataTable.css +0 -7
  477. package/build/esm/components/DataTable/DataTable.css.map +1 -1
  478. package/build/esm/components/DataTable/DataTable.js +12 -5
  479. package/build/esm/components/DataTable/DataTable.js.map +1 -1
  480. package/build/esm/components/DataTable/DataTable.scss +18 -26
  481. package/build/esm/components/EditableRowTitle/EditableRowTitle.d.ts +7 -0
  482. package/build/esm/{modules/HistoryRow/HistoryRowTitle.js → components/EditableRowTitle/EditableRowTitle.js} +4 -6
  483. package/build/esm/components/EditableRowTitle/EditableRowTitle.js.map +1 -0
  484. package/build/esm/components/EditableRowTitle/index.d.ts +2 -0
  485. package/build/esm/components/EditableRowTitle/index.js +2 -0
  486. package/build/esm/components/EditableRowTitle/index.js.map +1 -0
  487. package/build/esm/components/ErrorTree/ErrorTree.d.ts +3 -0
  488. package/build/esm/components/ErrorTree/ErrorTree.js +28 -0
  489. package/build/esm/components/ErrorTree/ErrorTree.js.map +1 -0
  490. package/build/esm/components/ErrorTree/ErrorTree.stories.d.ts +8 -0
  491. package/build/esm/components/ErrorTree/ErrorTree.stories.js +94 -0
  492. package/build/esm/components/ErrorTree/ErrorTree.stories.js.map +1 -0
  493. package/build/esm/components/ErrorTree/helpers/formatAttributes.d.ts +2 -0
  494. package/build/esm/components/ErrorTree/helpers/formatAttributes.js +10 -0
  495. package/build/esm/components/ErrorTree/helpers/formatAttributes.js.map +1 -0
  496. package/build/esm/components/ErrorTree/helpers/getIntermediateChain.d.ts +6 -0
  497. package/build/esm/components/ErrorTree/helpers/getIntermediateChain.js +16 -0
  498. package/build/esm/components/ErrorTree/helpers/getIntermediateChain.js.map +1 -0
  499. package/build/esm/components/ErrorTree/i18n/dicts.d.ts +27 -0
  500. package/build/esm/components/ErrorTree/i18n/dicts.js +7 -0
  501. package/build/esm/components/ErrorTree/i18n/dicts.js.map +1 -0
  502. package/build/esm/components/ErrorTree/i18n/en.json +11 -0
  503. package/build/esm/components/ErrorTree/i18n/index.d.ts +6 -0
  504. package/build/esm/components/ErrorTree/i18n/index.js +4 -0
  505. package/build/esm/components/ErrorTree/i18n/index.js.map +1 -0
  506. package/build/esm/components/ErrorTree/i18n/ru.json +13 -0
  507. package/build/esm/components/ErrorTree/index.d.ts +1 -0
  508. package/build/esm/components/ErrorTree/index.js +2 -0
  509. package/build/esm/components/ErrorTree/index.js.map +1 -0
  510. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.css +4 -0
  511. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.css.map +1 -0
  512. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.d.ts +10 -0
  513. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.js +25 -0
  514. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.js.map +1 -0
  515. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.scss +5 -0
  516. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.css +80 -0
  517. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.css.map +1 -0
  518. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.d.ts +13 -0
  519. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.js +266 -0
  520. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.js.map +1 -0
  521. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.scss +95 -0
  522. package/build/esm/components/ErrorTree/internal/IntermediateMessages.css +10 -0
  523. package/build/esm/components/ErrorTree/internal/IntermediateMessages.css.map +1 -0
  524. package/build/esm/components/ErrorTree/internal/IntermediateMessages.d.ts +9 -0
  525. package/build/esm/components/ErrorTree/internal/IntermediateMessages.js +110 -0
  526. package/build/esm/components/ErrorTree/internal/IntermediateMessages.js.map +1 -0
  527. package/build/esm/components/ErrorTree/internal/IntermediateMessages.scss +13 -0
  528. package/build/esm/components/HistoryFilter/HistoryFilter.d.ts +2 -2
  529. package/build/esm/components/HistoryFilter/HistoryFilter.js.map +1 -1
  530. package/build/esm/components/Icons/LogoCPlusPlus.d.ts +2 -0
  531. package/build/esm/components/Icons/LogoCPlusPlus.js +28 -0
  532. package/build/esm/components/Icons/LogoCPlusPlus.js.map +1 -0
  533. package/build/esm/components/Icons/index.d.ts +1 -0
  534. package/build/esm/components/Icons/index.js +2 -0
  535. package/build/esm/components/Icons/index.js.map +1 -0
  536. package/build/esm/components/LazyList/LazyList.css +0 -2
  537. package/build/esm/components/LazyList/LazyList.css.map +1 -1
  538. package/build/esm/components/LazyList/LazyList.scss +6 -6
  539. package/build/esm/components/QueryResultsTable/QueryResultsTable.css +53 -0
  540. package/build/esm/components/QueryResultsTable/QueryResultsTable.css.map +1 -0
  541. package/build/esm/components/QueryResultsTable/QueryResultsTable.d.ts +24 -0
  542. package/build/esm/components/QueryResultsTable/QueryResultsTable.js +96 -0
  543. package/build/esm/components/QueryResultsTable/QueryResultsTable.js.map +1 -0
  544. package/build/esm/components/QueryResultsTable/QueryResultsTable.scss +65 -0
  545. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.d.ts +3 -0
  546. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.js +82 -0
  547. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.js.map +1 -0
  548. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.d.ts +11 -0
  549. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.js +33 -0
  550. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.js.map +1 -0
  551. package/build/esm/components/QueryResultsTable/i18n/dicts.d.ts +13 -0
  552. package/build/esm/components/QueryResultsTable/i18n/dicts.js +7 -0
  553. package/build/esm/components/QueryResultsTable/i18n/dicts.js.map +1 -0
  554. package/build/esm/components/QueryResultsTable/i18n/en.json +5 -0
  555. package/build/esm/components/QueryResultsTable/i18n/index.d.ts +6 -0
  556. package/build/esm/components/QueryResultsTable/i18n/index.js +4 -0
  557. package/build/esm/components/QueryResultsTable/i18n/index.js.map +1 -0
  558. package/build/esm/components/QueryResultsTable/i18n/ru.json +5 -0
  559. package/build/esm/components/QueryResultsTable/index.d.ts +3 -0
  560. package/build/esm/components/QueryResultsTable/index.js +3 -0
  561. package/build/esm/components/QueryResultsTable/index.js.map +1 -0
  562. package/build/esm/components/QueryResultsTable/internal/QueryResultCell.d.ts +11 -0
  563. package/build/esm/components/QueryResultsTable/internal/QueryResultCell.js +71 -0
  564. package/build/esm/components/QueryResultsTable/internal/QueryResultCell.js.map +1 -0
  565. package/build/esm/components/RowActionsMenu/RowActionsMenu.d.ts +7 -0
  566. package/build/esm/{modules/HistoryRow/HistoryRowMenu.js → components/RowActionsMenu/RowActionsMenu.js} +8 -5
  567. package/build/esm/components/RowActionsMenu/RowActionsMenu.js.map +1 -0
  568. package/build/esm/components/RowActionsMenu/index.d.ts +2 -0
  569. package/build/esm/components/RowActionsMenu/index.js +2 -0
  570. package/build/esm/components/RowActionsMenu/index.js.map +1 -0
  571. package/build/esm/components/index.d.ts +9 -0
  572. package/build/esm/components/index.js +6 -0
  573. package/build/esm/components/index.js.map +1 -1
  574. package/build/esm/helpers/createUuid.d.ts +1 -0
  575. package/build/esm/helpers/createUuid.js +6 -0
  576. package/build/esm/helpers/createUuid.js.map +1 -0
  577. package/build/esm/helpers/getListKey.d.ts +2 -2
  578. package/build/esm/helpers/getListKey.js.map +1 -1
  579. package/build/esm/helpers/isFieldVisible.d.ts +5 -4
  580. package/build/esm/helpers/isFieldVisible.js +2 -2
  581. package/build/esm/helpers/isFieldVisible.js.map +1 -1
  582. package/build/esm/helpers/isObjectEqual.d.ts +1 -0
  583. package/build/esm/helpers/isObjectEqual.js +23 -0
  584. package/build/esm/helpers/isObjectEqual.js.map +1 -0
  585. package/build/esm/helpers/time.d.ts +1 -0
  586. package/build/esm/helpers/time.js +6 -2
  587. package/build/esm/helpers/time.js.map +1 -1
  588. package/build/esm/helpers/useDebouncedValue.d.ts +2 -0
  589. package/build/esm/helpers/useDebouncedValue.js +21 -0
  590. package/build/esm/helpers/useDebouncedValue.js.map +1 -0
  591. package/build/esm/index.d.ts +5 -0
  592. package/build/esm/index.js +5 -0
  593. package/build/esm/index.js.map +1 -1
  594. package/build/esm/modules/Attachments/Attachments.css +8 -0
  595. package/build/esm/modules/Attachments/Attachments.css.map +1 -0
  596. package/build/esm/modules/Attachments/Attachments.d.ts +22 -0
  597. package/build/esm/modules/Attachments/Attachments.js +373 -0
  598. package/build/esm/modules/Attachments/Attachments.js.map +1 -0
  599. package/build/esm/modules/Attachments/Attachments.scss +10 -0
  600. package/build/esm/modules/Attachments/Attachments.stories.d.ts +41 -0
  601. package/build/esm/modules/Attachments/Attachments.stories.js +115 -0
  602. package/build/esm/modules/Attachments/Attachments.stories.js.map +1 -0
  603. package/build/esm/modules/Attachments/i18n/dicts.d.ts +13 -0
  604. package/build/esm/modules/Attachments/i18n/dicts.js +7 -0
  605. package/build/esm/modules/Attachments/i18n/dicts.js.map +1 -0
  606. package/build/esm/modules/Attachments/i18n/en.json +5 -0
  607. package/build/esm/modules/Attachments/i18n/index.d.ts +6 -0
  608. package/build/esm/modules/Attachments/i18n/index.js +4 -0
  609. package/build/esm/modules/Attachments/i18n/index.js.map +1 -0
  610. package/build/esm/modules/Attachments/i18n/ru.json +5 -0
  611. package/build/esm/modules/Attachments/index.d.ts +2 -0
  612. package/build/esm/modules/Attachments/index.js +2 -0
  613. package/build/esm/modules/Attachments/index.js.map +1 -0
  614. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.css +5 -0
  615. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.css.map +1 -0
  616. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.d.ts +8 -0
  617. package/build/esm/{widgets/QueriesHistory/ComparisonActions.js → modules/HistoryComparisonActions/HistoryComparisonActions.js} +10 -10
  618. package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.js.map +1 -0
  619. package/build/esm/{widgets/QueriesHistory/ComparisonActions.scss → modules/HistoryComparisonActions/HistoryComparisonActions.scss} +2 -2
  620. package/build/esm/modules/HistoryComparisonActions/index.d.ts +2 -0
  621. package/build/esm/modules/HistoryComparisonActions/index.js +2 -0
  622. package/build/esm/modules/HistoryComparisonActions/index.js.map +1 -0
  623. package/build/esm/modules/HistoryHeader/HistoryHeader.d.ts +2 -2
  624. package/build/esm/modules/HistoryHeader/HistoryHeader.js.map +1 -1
  625. package/build/esm/modules/HistoryRow/HistoryRow.d.ts +3 -2
  626. package/build/esm/modules/HistoryRow/HistoryRow.js +3 -5
  627. package/build/esm/modules/HistoryRow/HistoryRow.js.map +1 -1
  628. package/build/esm/modules/HistoryRow/HistoryRow.stories.js.map +1 -1
  629. package/build/esm/modules/HistorySearchRow/HistorySearchRow.d.ts +3 -2
  630. package/build/esm/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
  631. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListHeader.js +1 -7
  632. package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListHeader.js.map +1 -1
  633. package/build/esm/modules/NavigationPreview/NavigationPreview.css +7 -1
  634. package/build/esm/modules/NavigationPreview/NavigationPreview.css.map +1 -1
  635. package/build/esm/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
  636. package/build/esm/modules/NavigationPreview/NavigationPreview.js +38 -8
  637. package/build/esm/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  638. package/build/esm/modules/NavigationPreview/NavigationPreview.scss +25 -17
  639. package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
  640. package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js +24 -0
  641. package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
  642. package/build/esm/modules/NavigationPreview/story/mockData.d.ts +2 -2
  643. package/build/esm/modules/NavigationPreview/story/mockData.js +16 -4
  644. package/build/esm/modules/NavigationPreview/story/mockData.js.map +1 -1
  645. package/build/esm/modules/QueriesList/QueriesList.css +10 -0
  646. package/build/esm/modules/QueriesList/QueriesList.css.map +1 -0
  647. package/build/esm/modules/QueriesList/QueriesList.d.ts +19 -0
  648. package/build/esm/modules/QueriesList/QueriesList.js +68 -0
  649. package/build/esm/modules/QueriesList/QueriesList.js.map +1 -0
  650. package/build/esm/modules/QueriesList/QueriesList.scss +10 -0
  651. package/build/esm/modules/QueriesList/index.d.ts +2 -0
  652. package/build/esm/modules/QueriesList/index.js +2 -0
  653. package/build/esm/modules/QueriesList/index.js.map +1 -0
  654. package/build/esm/modules/QueryStatistics/QueryStatistics.css +4 -0
  655. package/build/esm/modules/QueryStatistics/QueryStatistics.css.map +1 -0
  656. package/build/esm/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
  657. package/build/esm/modules/QueryStatistics/QueryStatistics.js +143 -0
  658. package/build/esm/modules/QueryStatistics/QueryStatistics.js.map +1 -0
  659. package/build/esm/modules/QueryStatistics/QueryStatistics.scss +3 -0
  660. package/build/esm/modules/QueryStatistics/helpers.d.ts +15 -0
  661. package/build/esm/modules/QueryStatistics/helpers.js +106 -0
  662. package/build/esm/modules/QueryStatistics/helpers.js.map +1 -0
  663. package/build/esm/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
  664. package/build/esm/modules/QueryStatistics/i18n/dicts.js +7 -0
  665. package/build/esm/modules/QueryStatistics/i18n/dicts.js.map +1 -0
  666. package/build/esm/modules/QueryStatistics/i18n/en.json +16 -0
  667. package/build/esm/modules/QueryStatistics/i18n/index.d.ts +6 -0
  668. package/build/esm/modules/QueryStatistics/i18n/index.js +4 -0
  669. package/build/esm/modules/QueryStatistics/i18n/index.js.map +1 -0
  670. package/build/esm/modules/QueryStatistics/i18n/ru.json +16 -0
  671. package/build/esm/modules/QueryStatistics/index.d.ts +2 -0
  672. package/build/esm/modules/QueryStatistics/index.js +2 -0
  673. package/build/esm/modules/QueryStatistics/index.js.map +1 -0
  674. package/build/esm/modules/QueryStatistics/internal/MetricCell.css +36 -0
  675. package/build/esm/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
  676. package/build/esm/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
  677. package/build/esm/modules/QueryStatistics/internal/MetricCell.js +114 -0
  678. package/build/esm/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
  679. package/build/esm/modules/QueryStatistics/internal/MetricCell.scss +12 -0
  680. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
  681. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
  682. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
  683. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js +132 -0
  684. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
  685. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.scss +8 -0
  686. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
  687. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
  688. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
  689. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +48 -0
  690. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
  691. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.scss +1 -0
  692. package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
  693. package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.js +105 -0
  694. package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.js.map +1 -0
  695. package/build/esm/modules/RowsList/RowsList.d.ts +11 -11
  696. package/build/esm/modules/RowsList/RowsList.js +5 -1
  697. package/build/esm/modules/RowsList/RowsList.js.map +1 -1
  698. package/build/esm/modules/RowsList/helpers/prepareRowData.d.ts +9 -9
  699. package/build/esm/modules/RowsList/helpers/prepareRowData.js.map +1 -1
  700. package/build/esm/modules/SavedQueryRow/SavedQueryRow.css +17 -0
  701. package/build/esm/modules/SavedQueryRow/SavedQueryRow.css.map +1 -0
  702. package/build/esm/modules/SavedQueryRow/SavedQueryRow.d.ts +9 -0
  703. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js +71 -0
  704. package/build/esm/modules/SavedQueryRow/SavedQueryRow.js.map +1 -0
  705. package/build/esm/modules/SavedQueryRow/SavedQueryRow.scss +20 -0
  706. package/build/esm/modules/SavedQueryRow/index.d.ts +2 -0
  707. package/build/esm/modules/SavedQueryRow/index.js +2 -0
  708. package/build/esm/modules/SavedQueryRow/index.js.map +1 -0
  709. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.css +12 -0
  710. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.css.map +1 -0
  711. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +9 -0
  712. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +58 -0
  713. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -0
  714. package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.scss +15 -0
  715. package/build/esm/modules/SavedQuerySearchRow/index.d.ts +2 -0
  716. package/build/esm/modules/SavedQuerySearchRow/index.js +2 -0
  717. package/build/esm/modules/SavedQuerySearchRow/index.js.map +1 -0
  718. package/build/esm/modules/index.d.ts +11 -2
  719. package/build/esm/modules/index.js +6 -1
  720. package/build/esm/modules/index.js.map +1 -1
  721. package/build/esm/types/declarations.d.ts +10 -0
  722. package/build/esm/types/errorTree.d.ts +23 -0
  723. package/build/esm/types/errorTree.js +2 -0
  724. package/build/esm/types/errorTree.js.map +1 -0
  725. package/build/esm/types/history.d.ts +4 -85
  726. package/build/esm/types/history.js.map +1 -1
  727. package/build/esm/types/navigation.d.ts +8 -1
  728. package/build/esm/types/navigation.js.map +1 -1
  729. package/build/esm/types/queryList.d.ts +83 -0
  730. package/build/esm/types/queryList.js +2 -0
  731. package/build/esm/types/queryList.js.map +1 -0
  732. package/build/esm/types/queryResults.d.ts +34 -0
  733. package/build/esm/types/queryResults.js +2 -0
  734. package/build/esm/types/queryResults.js.map +1 -0
  735. package/build/esm/types/queryStatistics.d.ts +54 -0
  736. package/build/esm/types/queryStatistics.js +2 -0
  737. package/build/esm/types/queryStatistics.js.map +1 -0
  738. package/build/esm/types/savedQueries.d.ts +6 -0
  739. package/build/esm/types/savedQueries.js +2 -0
  740. package/build/esm/types/savedQueries.js.map +1 -0
  741. package/build/esm/types/tutorial.d.ts +2 -2
  742. package/build/esm/types/tutorial.js.map +1 -1
  743. package/build/esm/widgets/QueriesHistory/QueriesHistory.css +0 -6
  744. package/build/esm/widgets/QueriesHistory/QueriesHistory.css.map +1 -1
  745. package/build/esm/widgets/QueriesHistory/QueriesHistory.d.ts +11 -10
  746. package/build/esm/widgets/QueriesHistory/QueriesHistory.js +16 -35
  747. package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
  748. package/build/esm/widgets/QueriesHistory/QueriesHistory.scss +1 -8
  749. package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
  750. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.d.ts +4 -0
  751. package/build/esm/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.js +2 -3
  752. package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -0
  753. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.css +3 -0
  754. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.css.map +1 -1
  755. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.scss +2 -0
  756. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.stories.js +40 -35
  757. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
  758. package/build/esm/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
  759. package/build/esm/widgets/QueryResults/QueryResults.css +19 -0
  760. package/build/esm/widgets/QueryResults/QueryResults.css.map +1 -0
  761. package/build/esm/widgets/QueryResults/QueryResults.d.ts +23 -0
  762. package/build/esm/widgets/QueryResults/QueryResults.js +111 -0
  763. package/build/esm/widgets/QueryResults/QueryResults.js.map +1 -0
  764. package/build/esm/widgets/QueryResults/QueryResults.scss +25 -0
  765. package/build/esm/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
  766. package/build/esm/widgets/QueryResults/QueryResults.stories.js +191 -0
  767. package/build/esm/widgets/QueryResults/QueryResults.stories.js.map +1 -0
  768. package/build/esm/widgets/QueryResults/i18n/dicts.d.ts +25 -0
  769. package/build/esm/widgets/QueryResults/i18n/dicts.js +7 -0
  770. package/build/esm/widgets/QueryResults/i18n/dicts.js.map +1 -0
  771. package/build/esm/widgets/QueryResults/i18n/en.json +10 -0
  772. package/build/esm/widgets/QueryResults/i18n/index.d.ts +6 -0
  773. package/build/esm/widgets/QueryResults/i18n/index.js +4 -0
  774. package/build/esm/widgets/QueryResults/i18n/index.js.map +1 -0
  775. package/build/esm/widgets/QueryResults/i18n/ru.json +12 -0
  776. package/build/esm/widgets/QueryResults/index.d.ts +2 -0
  777. package/build/esm/widgets/QueryResults/index.js +2 -0
  778. package/build/esm/widgets/QueryResults/index.js.map +1 -0
  779. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
  780. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js +41 -0
  781. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -0
  782. package/build/esm/widgets/SavedQueries/SavedQueries.css +4 -0
  783. package/build/esm/widgets/SavedQueries/SavedQueries.css.map +1 -0
  784. package/build/esm/widgets/SavedQueries/SavedQueries.d.ts +21 -0
  785. package/build/esm/widgets/SavedQueries/SavedQueries.js +51 -0
  786. package/build/esm/widgets/SavedQueries/SavedQueries.js.map +1 -0
  787. package/build/esm/widgets/SavedQueries/SavedQueries.scss +3 -0
  788. package/build/esm/widgets/SavedQueries/SavedQueries.stories.d.ts +8 -0
  789. package/build/esm/widgets/SavedQueries/SavedQueries.stories.js +278 -0
  790. package/build/esm/widgets/SavedQueries/SavedQueries.stories.js.map +1 -0
  791. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.d.ts +8 -0
  792. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js +26 -0
  793. package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -0
  794. package/build/esm/widgets/SavedQueries/i18n/dicts.d.ts +9 -0
  795. package/build/esm/widgets/SavedQueries/i18n/dicts.js +7 -0
  796. package/build/esm/widgets/SavedQueries/i18n/dicts.js.map +1 -0
  797. package/build/esm/widgets/SavedQueries/i18n/en.json +3 -0
  798. package/build/esm/widgets/SavedQueries/i18n/index.d.ts +6 -0
  799. package/build/esm/widgets/SavedQueries/i18n/index.js +4 -0
  800. package/build/esm/widgets/SavedQueries/i18n/index.js.map +1 -0
  801. package/build/esm/widgets/SavedQueries/i18n/ru.json +3 -0
  802. package/build/esm/widgets/SavedQueries/index.d.ts +2 -0
  803. package/build/esm/widgets/SavedQueries/index.js +2 -0
  804. package/build/esm/widgets/SavedQueries/index.js.map +1 -0
  805. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
  806. package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
  807. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.d.ts +5 -5
  808. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
  809. package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
  810. package/build/esm/widgets/index.d.ts +4 -0
  811. package/build/esm/widgets/index.js +2 -0
  812. package/build/esm/widgets/index.js.map +1 -1
  813. package/package.json +1 -1
  814. package/plans/styles-rules.md +137 -0
  815. package/src/components/AttachmentList/AttachmentList.scss +25 -0
  816. package/src/components/AttachmentList/AttachmentList.stories.tsx +243 -0
  817. package/src/components/AttachmentList/AttachmentList.tsx +67 -0
  818. package/src/components/AttachmentList/helpers/getIconByAttachmentName.ts +36 -0
  819. package/src/components/AttachmentList/helpers/objectLinkValidator.ts +40 -0
  820. package/src/components/AttachmentList/helpers/stringRequiredValidator.ts +24 -0
  821. package/src/components/AttachmentList/hooks/useKeyDownFormControl.ts +22 -0
  822. package/src/components/AttachmentList/hooks/useLabelRef.ts +25 -0
  823. package/src/components/AttachmentList/i18n/dicts.ts +4 -0
  824. package/src/components/AttachmentList/i18n/en.json +10 -0
  825. package/src/components/AttachmentList/i18n/index.ts +5 -0
  826. package/src/components/AttachmentList/i18n/ru.json +10 -0
  827. package/src/components/AttachmentList/index.ts +4 -0
  828. package/src/components/AttachmentList/internal/AttachmentItem/AttachmentItem.scss +23 -0
  829. package/src/components/AttachmentList/internal/AttachmentItem/AttachmentItem.tsx +75 -0
  830. package/src/components/AttachmentList/internal/AttachmentItem/index.ts +2 -0
  831. package/src/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.tsx +21 -0
  832. package/src/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.scss +21 -0
  833. package/src/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.tsx +194 -0
  834. package/src/components/AttachmentList/internal/EditAttachmentItem/FileEdit.tsx +92 -0
  835. package/src/components/AttachmentList/internal/EditAttachmentItem/index.ts +4 -0
  836. package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.scss +5 -0
  837. package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.tsx +30 -0
  838. package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.tsx +72 -0
  839. package/src/components/AttachmentListPlaceholder/assets/empty-attachments.svg +14 -0
  840. package/src/components/AttachmentListPlaceholder/i18n/dicts.ts +4 -0
  841. package/src/components/AttachmentListPlaceholder/i18n/en.json +7 -0
  842. package/src/components/AttachmentListPlaceholder/i18n/index.ts +5 -0
  843. package/src/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
  844. package/src/components/AttachmentListPlaceholder/index.ts +2 -0
  845. package/src/components/DataTable/DataTable.scss +18 -26
  846. package/src/components/DataTable/DataTable.tsx +23 -4
  847. package/src/{modules/HistoryRow/HistoryRowTitle.tsx → components/EditableRowTitle/EditableRowTitle.tsx} +10 -12
  848. package/src/components/EditableRowTitle/index.ts +2 -0
  849. package/src/components/ErrorTree/ErrorTree.stories.tsx +94 -0
  850. package/src/components/ErrorTree/ErrorTree.tsx +30 -0
  851. package/src/components/ErrorTree/helpers/formatAttributes.ts +9 -0
  852. package/src/components/ErrorTree/helpers/getIntermediateChain.ts +21 -0
  853. package/src/components/ErrorTree/i18n/dicts.ts +4 -0
  854. package/src/components/ErrorTree/i18n/en.json +11 -0
  855. package/src/components/ErrorTree/i18n/index.ts +5 -0
  856. package/src/components/ErrorTree/i18n/ru.json +13 -0
  857. package/src/components/ErrorTree/index.ts +1 -0
  858. package/src/components/ErrorTree/internal/ErrorTreeChildren.scss +5 -0
  859. package/src/components/ErrorTree/internal/ErrorTreeChildren.tsx +25 -0
  860. package/src/components/ErrorTree/internal/ErrorTreeNode.scss +95 -0
  861. package/src/components/ErrorTree/internal/ErrorTreeNode.tsx +178 -0
  862. package/src/components/ErrorTree/internal/IntermediateMessages.scss +13 -0
  863. package/src/components/ErrorTree/internal/IntermediateMessages.tsx +127 -0
  864. package/src/components/HistoryFilter/HistoryFilter.tsx +2 -2
  865. package/src/components/Icons/LogoCPlusPlus.tsx +34 -0
  866. package/src/components/Icons/index.ts +1 -0
  867. package/src/components/LazyList/LazyList.scss +6 -6
  868. package/src/components/QueryResultsTable/QueryResultsTable.scss +65 -0
  869. package/src/components/QueryResultsTable/QueryResultsTable.tsx +112 -0
  870. package/src/components/QueryResultsTable/helpers/formatQueryResultType.ts +76 -0
  871. package/src/components/QueryResultsTable/helpers/formatQueryResultValue.ts +38 -0
  872. package/src/components/QueryResultsTable/i18n/dicts.ts +4 -0
  873. package/src/components/QueryResultsTable/i18n/en.json +5 -0
  874. package/src/components/QueryResultsTable/i18n/index.ts +4 -0
  875. package/src/components/QueryResultsTable/i18n/ru.json +5 -0
  876. package/src/components/QueryResultsTable/index.ts +3 -0
  877. package/src/components/QueryResultsTable/internal/QueryResultCell.tsx +63 -0
  878. package/src/components/RowActionsMenu/RowActionsMenu.tsx +47 -0
  879. package/src/components/RowActionsMenu/index.ts +2 -0
  880. package/src/components/index.ts +9 -0
  881. package/src/helpers/createUuid.ts +3 -0
  882. package/src/helpers/getListKey.ts +4 -4
  883. package/src/helpers/isFieldVisible.ts +5 -4
  884. package/src/helpers/isObjectEqual.ts +15 -0
  885. package/src/helpers/time.ts +4 -0
  886. package/src/helpers/useDebouncedValue.ts +14 -0
  887. package/src/index.ts +5 -0
  888. package/src/modules/Attachments/Attachments.scss +10 -0
  889. package/src/modules/Attachments/Attachments.stories.tsx +112 -0
  890. package/src/modules/Attachments/Attachments.tsx +336 -0
  891. package/src/modules/Attachments/i18n/dicts.ts +4 -0
  892. package/src/modules/Attachments/i18n/en.json +5 -0
  893. package/src/modules/Attachments/i18n/index.ts +5 -0
  894. package/src/modules/Attachments/i18n/ru.json +5 -0
  895. package/src/modules/Attachments/index.ts +2 -0
  896. package/src/{widgets/QueriesHistory/ComparisonActions.scss → modules/HistoryComparisonActions/HistoryComparisonActions.scss} +2 -2
  897. package/src/{widgets/QueriesHistory/ComparisonActions.tsx → modules/HistoryComparisonActions/HistoryComparisonActions.tsx} +8 -8
  898. package/src/modules/HistoryComparisonActions/index.ts +2 -0
  899. package/src/modules/HistoryHeader/HistoryHeader.tsx +2 -2
  900. package/src/modules/HistoryRow/HistoryRow.stories.tsx +3 -2
  901. package/src/modules/HistoryRow/HistoryRow.tsx +13 -7
  902. package/src/modules/HistorySearchRow/HistorySearchRow.tsx +3 -2
  903. package/src/modules/NavigationItemsList/internal/NavigationItemsListHeader.tsx +1 -5
  904. package/src/modules/NavigationPreview/NavigationPreview.scss +25 -17
  905. package/src/modules/NavigationPreview/NavigationPreview.tsx +62 -17
  906. package/src/modules/NavigationPreview/story/NavigationPreview.stories.tsx +26 -1
  907. package/src/modules/NavigationPreview/story/mockData.ts +10 -5
  908. package/src/modules/QueriesList/QueriesList.scss +10 -0
  909. package/src/modules/QueriesList/QueriesList.tsx +98 -0
  910. package/src/modules/QueriesList/index.ts +2 -0
  911. package/src/modules/QueryStatistics/QueryStatistics.scss +3 -0
  912. package/src/modules/QueryStatistics/QueryStatistics.tsx +125 -0
  913. package/src/modules/QueryStatistics/helpers.ts +96 -0
  914. package/src/modules/QueryStatistics/i18n/dicts.ts +4 -0
  915. package/src/modules/QueryStatistics/i18n/en.json +16 -0
  916. package/src/modules/QueryStatistics/i18n/index.ts +4 -0
  917. package/src/modules/QueryStatistics/i18n/ru.json +16 -0
  918. package/src/modules/QueryStatistics/index.ts +13 -0
  919. package/src/modules/QueryStatistics/internal/MetricCell.scss +12 -0
  920. package/src/modules/QueryStatistics/internal/MetricCell.tsx +99 -0
  921. package/src/modules/QueryStatistics/internal/QueryStatisticsTable.scss +8 -0
  922. package/src/modules/QueryStatistics/internal/QueryStatisticsTable.tsx +135 -0
  923. package/src/modules/QueryStatistics/internal/QueryStatisticsToolbar.scss +1 -0
  924. package/src/modules/QueryStatistics/internal/QueryStatisticsToolbar.tsx +61 -0
  925. package/src/modules/QueryStatistics/story/QueryStatistics.stories.tsx +71 -0
  926. package/src/modules/RowsList/RowsList.tsx +27 -23
  927. package/src/modules/RowsList/helpers/prepareRowData.ts +18 -18
  928. package/src/modules/SavedQueryRow/SavedQueryRow.scss +20 -0
  929. package/src/modules/SavedQueryRow/SavedQueryRow.tsx +60 -0
  930. package/src/modules/SavedQueryRow/index.ts +2 -0
  931. package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.scss +15 -0
  932. package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.tsx +58 -0
  933. package/src/modules/SavedQuerySearchRow/index.ts +2 -0
  934. package/src/modules/index.ts +22 -2
  935. package/src/types/declarations.d.ts +10 -0
  936. package/src/types/errorTree.ts +30 -0
  937. package/src/types/history.ts +4 -95
  938. package/src/types/navigation.ts +11 -1
  939. package/src/types/queryList.ts +92 -0
  940. package/src/types/queryResults.ts +48 -0
  941. package/src/types/queryStatistics.ts +67 -0
  942. package/src/types/savedQueries.ts +7 -0
  943. package/src/types/tutorial.ts +2 -2
  944. package/src/widgets/QueriesHistory/QueriesHistory.scss +1 -8
  945. package/src/widgets/QueriesHistory/QueriesHistory.stories.tsx +11 -11
  946. package/src/widgets/QueriesHistory/QueriesHistory.tsx +35 -61
  947. package/src/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.tsx +5 -5
  948. package/src/widgets/QueriesNavigation/QueriesNavigation.scss +2 -0
  949. package/src/widgets/QueriesNavigation/QueriesNavigation.stories.tsx +42 -33
  950. package/src/widgets/QueryResults/QueryResults.scss +25 -0
  951. package/src/widgets/QueryResults/QueryResults.stories.tsx +155 -0
  952. package/src/widgets/QueryResults/QueryResults.tsx +121 -0
  953. package/src/widgets/QueryResults/i18n/dicts.ts +4 -0
  954. package/src/widgets/QueryResults/i18n/en.json +10 -0
  955. package/src/widgets/QueryResults/i18n/index.ts +4 -0
  956. package/src/widgets/QueryResults/i18n/ru.json +12 -0
  957. package/src/widgets/QueryResults/index.ts +2 -0
  958. package/src/widgets/QueryResults/internal/QueryResultsSchema.tsx +41 -0
  959. package/src/widgets/SavedQueries/SavedQueries.scss +3 -0
  960. package/src/widgets/SavedQueries/SavedQueries.stories.tsx +192 -0
  961. package/src/widgets/SavedQueries/SavedQueries.tsx +77 -0
  962. package/src/widgets/SavedQueries/SavedQueryRowContent.tsx +26 -0
  963. package/src/widgets/SavedQueries/i18n/dicts.ts +4 -0
  964. package/src/widgets/SavedQueries/i18n/en.json +3 -0
  965. package/src/widgets/SavedQueries/i18n/index.ts +4 -0
  966. package/src/widgets/SavedQueries/i18n/ru.json +3 -0
  967. package/src/widgets/SavedQueries/index.ts +2 -0
  968. package/src/widgets/TutorialsHistory/TutorialRowContent.tsx +2 -2
  969. package/src/widgets/TutorialsHistory/TutorialsHistory.stories.tsx +3 -3
  970. package/src/widgets/TutorialsHistory/TutorialsHistory.tsx +5 -9
  971. package/src/widgets/index.ts +4 -0
  972. package/build/cjs/modules/HistoryList/HistoryList.d.ts +0 -16
  973. package/build/cjs/modules/HistoryList/HistoryList.js +0 -24
  974. package/build/cjs/modules/HistoryList/HistoryList.js.map +0 -1
  975. package/build/cjs/modules/HistoryList/HistoryList.stories.d.ts +0 -14
  976. package/build/cjs/modules/HistoryList/HistoryList.stories.js +0 -245
  977. package/build/cjs/modules/HistoryList/HistoryList.stories.js.map +0 -1
  978. package/build/cjs/modules/HistoryList/HistoryRowContent.d.ts +0 -3
  979. package/build/cjs/modules/HistoryList/HistoryRowContent.js.map +0 -1
  980. package/build/cjs/modules/HistoryList/index.d.ts +0 -2
  981. package/build/cjs/modules/HistoryList/index.js +0 -13
  982. package/build/cjs/modules/HistoryList/index.js.map +0 -1
  983. package/build/cjs/modules/HistoryRow/HistoryRowMenu.d.ts +0 -8
  984. package/build/cjs/modules/HistoryRow/HistoryRowMenu.js.map +0 -1
  985. package/build/cjs/modules/HistoryRow/HistoryRowTitle.d.ts +0 -8
  986. package/build/cjs/modules/HistoryRow/HistoryRowTitle.js.map +0 -1
  987. package/build/cjs/widgets/QueriesHistory/ComparisonActions.css +0 -5
  988. package/build/cjs/widgets/QueriesHistory/ComparisonActions.css.map +0 -1
  989. package/build/cjs/widgets/QueriesHistory/ComparisonActions.d.ts +0 -9
  990. package/build/cjs/widgets/QueriesHistory/ComparisonActions.js.map +0 -1
  991. package/build/esm/modules/HistoryList/HistoryList.d.ts +0 -16
  992. package/build/esm/modules/HistoryList/HistoryList.js +0 -17
  993. package/build/esm/modules/HistoryList/HistoryList.js.map +0 -1
  994. package/build/esm/modules/HistoryList/HistoryList.stories.d.ts +0 -14
  995. package/build/esm/modules/HistoryList/HistoryList.stories.js +0 -237
  996. package/build/esm/modules/HistoryList/HistoryList.stories.js.map +0 -1
  997. package/build/esm/modules/HistoryList/HistoryRowContent.d.ts +0 -3
  998. package/build/esm/modules/HistoryList/HistoryRowContent.js.map +0 -1
  999. package/build/esm/modules/HistoryList/index.d.ts +0 -2
  1000. package/build/esm/modules/HistoryList/index.js +0 -2
  1001. package/build/esm/modules/HistoryList/index.js.map +0 -1
  1002. package/build/esm/modules/HistoryRow/HistoryRowMenu.d.ts +0 -8
  1003. package/build/esm/modules/HistoryRow/HistoryRowMenu.js.map +0 -1
  1004. package/build/esm/modules/HistoryRow/HistoryRowTitle.d.ts +0 -8
  1005. package/build/esm/modules/HistoryRow/HistoryRowTitle.js.map +0 -1
  1006. package/build/esm/widgets/QueriesHistory/ComparisonActions.css +0 -5
  1007. package/build/esm/widgets/QueriesHistory/ComparisonActions.css.map +0 -1
  1008. package/build/esm/widgets/QueriesHistory/ComparisonActions.d.ts +0 -9
  1009. package/build/esm/widgets/QueriesHistory/ComparisonActions.js.map +0 -1
  1010. package/src/modules/HistoryList/HistoryList.stories.tsx +0 -181
  1011. package/src/modules/HistoryList/HistoryList.tsx +0 -41
  1012. package/src/modules/HistoryList/index.ts +0 -2
  1013. package/src/modules/HistoryRow/HistoryRowMenu.tsx +0 -47
@@ -0,0 +1,51 @@
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ import "core-js/modules/es.array.filter.js";
3
+ import "core-js/modules/es.iterator.constructor.js";
4
+ import "core-js/modules/es.iterator.filter.js";
5
+ import "core-js/modules/es.object.to-string.js";
6
+ import "core-js/modules/es.regexp.exec.js";
7
+ import "core-js/modules/es.string.search.js";
8
+ import React from 'react';
9
+ import cn from 'bem-cn-lite';
10
+ import { QueriesList } from "../../modules";
11
+ import i18n from "./i18n";
12
+ import { SavedQueryRowContent } from "./SavedQueryRowContent";
13
+ import "./SavedQueries.css";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ var block = cn('qp-saved-queries');
16
+ export var SavedQueries = function SavedQueries(_ref) {
17
+ var title = _ref.title,
18
+ logo = _ref.logo,
19
+ search = _ref.search,
20
+ filter = _ref.filter,
21
+ items = _ref.items,
22
+ selectedRowId = _ref.selectedRowId,
23
+ editing = _ref.editing,
24
+ comparison = _ref.comparison,
25
+ visibleFields = _ref.visibleFields,
26
+ renderAuthor = _ref.renderAuthor,
27
+ renderRowItem = _ref.renderRowItem,
28
+ getRowActions = _ref.getRowActions,
29
+ onListItemClick = _ref.onListItemClick,
30
+ className = _ref.className;
31
+ return /*#__PURE__*/_jsx(QueriesList, {
32
+ className: block(null, className),
33
+ title: title || i18n('title_saved'),
34
+ logo: logo,
35
+ search: search,
36
+ filter: filter,
37
+ items: items,
38
+ selectedRowId: selectedRowId,
39
+ visibleFields: visibleFields,
40
+ editing: editing,
41
+ comparison: comparison,
42
+ getRowActions: getRowActions,
43
+ renderRow: function renderRow(data) {
44
+ return renderRowItem ? renderRowItem(data) : /*#__PURE__*/_jsx(SavedQueryRowContent, _objectSpread(_objectSpread({}, data), {}, {
45
+ renderAuthor: renderAuthor
46
+ }));
47
+ },
48
+ onListItemClick: onListItemClick
49
+ });
50
+ };
51
+ // #sourceMappingURL=SavedQueries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","cn","QueriesList","i18n","SavedQueryRowContent","jsx","_jsx","block","SavedQueries","_ref","title","logo","search","filter","items","selectedRowId","editing","comparison","visibleFields","renderAuthor","renderRowItem","getRowActions","onListItemClick","className","renderRow","data","_objectSpread"],"sources":["SavedQueries.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {QueriesList} from '../../modules';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListFilterConfig,\n QueryListItem,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListSearchConfig,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\nimport i18n from './i18n';\nimport {SavedQueryRowContent} from './SavedQueryRowContent';\nimport './SavedQueries.scss';\n\nexport type SavedQueriesProps<T extends SavedQuery = SavedQuery> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n renderAuthor?: (item: T) => React.ReactNode;\n renderRowItem?: (data: QueryListRowRenderData<T>) => React.ReactNode;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-saved-queries');\n\nexport const SavedQueries = <T extends SavedQuery>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n editing,\n comparison,\n visibleFields,\n renderAuthor,\n renderRowItem,\n getRowActions,\n onListItemClick,\n className,\n}: SavedQueriesProps<T>) => {\n return (\n <QueriesList\n className={block(null, className)}\n title={title || i18n('title_saved')}\n logo={logo}\n search={search}\n filter={filter}\n items={items}\n selectedRowId={selectedRowId}\n visibleFields={visibleFields}\n editing={editing}\n comparison={comparison}\n getRowActions={getRowActions}\n renderRow={(data) =>\n renderRowItem ? (\n renderRowItem(data)\n ) : (\n <SavedQueryRowContent {...data} renderAuthor={renderAuthor} />\n )\n }\n onListItemClick={onListItemClick}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,WAAW;AAYnB,OAAOC,IAAI;AACX,SAAQC,oBAAoB;AAC5B;AAA6B,SAAAC,GAAA,IAAAC,IAAA;AAmB7B,IAAMC,KAAK,GAAGN,EAAE,CAAC,kBAAkB,CAAC;AAEpC,OAAO,IAAMO,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAeG;EAAA,IAdxBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,MAAM,GAAAH,IAAA,CAANG,MAAM;IACNC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACPC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,aAAa,GAAAT,IAAA,CAAbS,aAAa;IACbC,YAAY,GAAAV,IAAA,CAAZU,YAAY;IACZC,aAAa,GAAAX,IAAA,CAAbW,aAAa;IACbC,aAAa,GAAAZ,IAAA,CAAbY,aAAa;IACbC,eAAe,GAAAb,IAAA,CAAfa,eAAe;IACfC,SAAS,GAAAd,IAAA,CAATc,SAAS;EAET,oBACIjB,IAAA,CAACJ,WAAW;IACRqB,SAAS,EAAEhB,KAAK,CAAC,IAAI,EAAEgB,SAAS,CAAE;IAClCb,KAAK,EAAEA,KAAK,IAAIP,IAAI,CAAC,aAAa,CAAE;IACpCQ,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfC,MAAM,EAAEA,MAAO;IACfC,KAAK,EAAEA,KAAM;IACbC,aAAa,EAAEA,aAAc;IAC7BG,aAAa,EAAEA,aAAc;IAC7BF,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBI,aAAa,EAAEA,aAAc;IAC7BG,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;MAAA,OACZL,aAAa,GACTA,aAAa,CAACK,IAAI,CAAC,gBAEnBnB,IAAA,CAACF,oBAAoB,EAAAsB,aAAA,CAAAA,aAAA,KAAKD,IAAI;QAAEN,YAAY,EAAEA;MAAa,EAAE,CAChE;IAAA,CACJ;IACDG,eAAe,EAAEA;EAAgB,CACpC,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ .qp-saved-queries {
2
+ height: 100%;
3
+ }
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { SavedQueries } from './SavedQueries';
3
+ declare const meta: Meta<typeof SavedQueries>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SavedQueries>;
6
+ export declare const Default: Story;
7
+ export declare const CustomAuthor: Story;
8
+ export declare const Empty: Story;
@@ -0,0 +1,278 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
3
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import "core-js/modules/es.array.concat.js";
5
+ import "core-js/modules/es.array.filter.js";
6
+ import "core-js/modules/es.array.includes.js";
7
+ import "core-js/modules/es.array.map.js";
8
+ import "core-js/modules/es.array.slice.js";
9
+ import "core-js/modules/es.iterator.constructor.js";
10
+ import "core-js/modules/es.iterator.filter.js";
11
+ import "core-js/modules/es.iterator.map.js";
12
+ import "core-js/modules/es.object.to-string.js";
13
+ import "core-js/modules/es.string.includes.js";
14
+ import React, { useMemo, useState } from 'react';
15
+ import { Text } from '@gravity-ui/uikit';
16
+ import { action } from 'storybook/actions';
17
+ import { SavedQueries } from "./SavedQueries";
18
+ import { jsx as _jsx } from "react/jsx-runtime";
19
+ var QUERY = "SELECT\n session_id,\n COUNT(*) AS sessions_count\nFROM visits\nGROUP BY session_id;";
20
+ var BASE_ITEMS = [{
21
+ id: 1,
22
+ title: 'New Query',
23
+ savedAt: '2026-04-29T12:00:00.000Z',
24
+ engine: 'SQL',
25
+ author: 'Anna Petrova',
26
+ query: QUERY,
27
+ height: 52
28
+ }, {
29
+ id: 2,
30
+ title: 'Daily conversion report',
31
+ savedAt: '2026-04-29T11:00:00.000Z',
32
+ engine: 'YQL',
33
+ author: 'Pavel Sidorov',
34
+ query: QUERY,
35
+ height: 52
36
+ }, {
37
+ id: 3,
38
+ title: 'Product funnel',
39
+ savedAt: '2026-04-28T09:00:00.000Z',
40
+ engine: 'SQL',
41
+ author: 'Maria Volkova',
42
+ query: 'SELECT 1;',
43
+ height: 52
44
+ }];
45
+ var filterFields = [{
46
+ id: 'onlyMine',
47
+ type: 'switch',
48
+ title: 'My queries only',
49
+ initialValue: true
50
+ }, {
51
+ id: 'range',
52
+ type: 'rangeDatePicker',
53
+ title: 'Period'
54
+ }, {
55
+ id: 'engine',
56
+ type: 'checkboxGroup',
57
+ title: 'Engine',
58
+ initialValue: [],
59
+ items: [{
60
+ id: 'yql',
61
+ title: 'YQL'
62
+ }, {
63
+ id: 'sql',
64
+ title: 'SQL'
65
+ }]
66
+ }];
67
+ var fields = [{
68
+ id: 'savedAt',
69
+ title: 'Saved date'
70
+ }, {
71
+ id: 'engine',
72
+ title: 'Engine'
73
+ }, {
74
+ id: 'author',
75
+ title: 'Author'
76
+ }];
77
+ var meta = {
78
+ title: 'Widgets/SavedQueries',
79
+ component: SavedQueries,
80
+ tags: ['autodocs'],
81
+ parameters: {
82
+ layout: 'padded'
83
+ }
84
+ };
85
+ export default meta;
86
+ var SavedQueriesStory = function SavedQueriesStory() {
87
+ var _useState = useState(BASE_ITEMS),
88
+ _useState2 = _slicedToArray(_useState, 2),
89
+ items = _useState2[0],
90
+ setItems = _useState2[1];
91
+ var _useState3 = useState({
92
+ value: '',
93
+ fullSearch: false
94
+ }),
95
+ _useState4 = _slicedToArray(_useState3, 2),
96
+ search = _useState4[0],
97
+ setSearch = _useState4[1];
98
+ var _useState5 = useState(['savedAt', 'engine', 'author']),
99
+ _useState6 = _slicedToArray(_useState5, 2),
100
+ visibleFields = _useState6[0],
101
+ setVisibleFields = _useState6[1];
102
+ var _useState7 = useState([]),
103
+ _useState8 = _slicedToArray(_useState7, 2),
104
+ comparedRowIds = _useState8[0],
105
+ setComparedRowIds = _useState8[1];
106
+ var _useState9 = useState(),
107
+ _useState0 = _slicedToArray(_useState9, 2),
108
+ editingRowId = _useState0[0],
109
+ setEditingRowId = _useState0[1];
110
+ var filteredItems = useMemo(function () {
111
+ if (!search.value) return items;
112
+ var value = search.value.toLowerCase();
113
+ return items.filter(function (item) {
114
+ var _item$query;
115
+ if ('header' in item) return false;
116
+ return search.fullSearch ? item.title.toLowerCase().includes(value) || ((_item$query = item.query) === null || _item$query === void 0 ? void 0 : _item$query.toLowerCase().includes(value)) : item.title.toLowerCase().includes(value);
117
+ });
118
+ }, [items, search]);
119
+ var updateTitle = function updateTitle(item, title) {
120
+ setItems(function (currentItems) {
121
+ return currentItems.map(function (currentItem) {
122
+ return 'id' in currentItem && currentItem.id === item.id ? _objectSpread(_objectSpread({}, currentItem), {}, {
123
+ title: title
124
+ }) : currentItem;
125
+ });
126
+ });
127
+ setEditingRowId(undefined);
128
+ };
129
+ return /*#__PURE__*/_jsx("div", {
130
+ style: {
131
+ width: 360,
132
+ height: 560
133
+ },
134
+ children: /*#__PURE__*/_jsx(SavedQueries, {
135
+ items: filteredItems,
136
+ search: _objectSpread(_objectSpread({}, search), {}, {
137
+ hasClear: true,
138
+ onUpdate: setSearch
139
+ }),
140
+ filter: {
141
+ fields: filterFields,
142
+ onApply: action('onFilterApply'),
143
+ onReset: action('onFilterReset')
144
+ },
145
+ visibleFields: {
146
+ value: visibleFields,
147
+ fields: fields,
148
+ onChange: setVisibleFields
149
+ },
150
+ editing: {
151
+ rowId: editingRowId,
152
+ onSubmit: updateTitle,
153
+ onCancel: function onCancel() {
154
+ return setEditingRowId(undefined);
155
+ }
156
+ },
157
+ comparison: {
158
+ enabled: Boolean(comparedRowIds.length),
159
+ comparedRowIds: comparedRowIds,
160
+ onChange: function onChange(item, selected) {
161
+ setComparedRowIds(function (currentIds) {
162
+ return selected ? [].concat(_toConsumableArray(currentIds.filter(function (id) {
163
+ return id !== item.id;
164
+ }).slice(-1)), [item.id]) : currentIds.filter(function (id) {
165
+ return id !== item.id;
166
+ });
167
+ });
168
+ },
169
+ onCancel: function onCancel() {
170
+ return setComparedRowIds([]);
171
+ },
172
+ onCompare: function onCompare() {
173
+ return action('onCompare')(comparedRowIds);
174
+ }
175
+ },
176
+ getRowActions: function getRowActions(item) {
177
+ return [{
178
+ text: 'Copy to',
179
+ onClick: function onClick() {
180
+ return action('onCopyTo')(item);
181
+ }
182
+ }, {
183
+ text: 'Show operations',
184
+ onClick: function onClick() {
185
+ return action('onShowOperations')(item);
186
+ }
187
+ }, {
188
+ text: 'Edit',
189
+ onClick: function onClick() {
190
+ return setEditingRowId(item.id);
191
+ }
192
+ }, {
193
+ text: 'Compare with baseline',
194
+ onClick: function onClick() {
195
+ return setComparedRowIds([item.id]);
196
+ }
197
+ }, {
198
+ text: 'Delete',
199
+ theme: 'danger',
200
+ onClick: function onClick() {
201
+ return action('onDelete')(item);
202
+ }
203
+ }];
204
+ }
205
+ })
206
+ });
207
+ };
208
+ var CustomAuthorStory = function CustomAuthorStory() {
209
+ var items = BASE_ITEMS.map(function (item) {
210
+ return 'header' in item ? item : _objectSpread(_objectSpread({}, item), {}, {
211
+ team: 'Analytics'
212
+ });
213
+ });
214
+ var _useState1 = useState({
215
+ value: '',
216
+ fullSearch: false
217
+ }),
218
+ _useState10 = _slicedToArray(_useState1, 2),
219
+ search = _useState10[0],
220
+ setSearch = _useState10[1];
221
+ return /*#__PURE__*/_jsx("div", {
222
+ style: {
223
+ width: 360,
224
+ height: 280
225
+ },
226
+ children: /*#__PURE__*/_jsx(SavedQueries, {
227
+ items: items,
228
+ search: _objectSpread(_objectSpread({}, search), {}, {
229
+ hasClear: true,
230
+ onUpdate: setSearch
231
+ }),
232
+ renderAuthor: function renderAuthor(item) {
233
+ return /*#__PURE__*/_jsx(Text, {
234
+ color: "complementary",
235
+ children: item.team
236
+ });
237
+ }
238
+ })
239
+ });
240
+ };
241
+ var EmptyStory = function EmptyStory() {
242
+ var _useState11 = useState({
243
+ value: '',
244
+ fullSearch: false
245
+ }),
246
+ _useState12 = _slicedToArray(_useState11, 2),
247
+ search = _useState12[0],
248
+ setSearch = _useState12[1];
249
+ return /*#__PURE__*/_jsx("div", {
250
+ style: {
251
+ width: 360,
252
+ height: 280
253
+ },
254
+ children: /*#__PURE__*/_jsx(SavedQueries, {
255
+ items: [],
256
+ search: _objectSpread(_objectSpread({}, search), {}, {
257
+ hasClear: true,
258
+ onUpdate: setSearch
259
+ })
260
+ })
261
+ });
262
+ };
263
+ export var Default = {
264
+ render: function render() {
265
+ return /*#__PURE__*/_jsx(SavedQueriesStory, {});
266
+ }
267
+ };
268
+ export var CustomAuthor = {
269
+ render: function render() {
270
+ return /*#__PURE__*/_jsx(CustomAuthorStory, {});
271
+ }
272
+ };
273
+ export var Empty = {
274
+ render: function render() {
275
+ return /*#__PURE__*/_jsx(EmptyStory, {});
276
+ }
277
+ };
278
+ // #sourceMappingURL=SavedQueries.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","useState","Text","action","SavedQueries","jsx","_jsx","QUERY","BASE_ITEMS","id","title","savedAt","engine","author","query","height","filterFields","type","initialValue","items","fields","meta","component","tags","parameters","layout","SavedQueriesStory","_useState","_useState2","_slicedToArray","setItems","_useState3","value","fullSearch","_useState4","search","setSearch","_useState5","_useState6","visibleFields","setVisibleFields","_useState7","_useState8","comparedRowIds","setComparedRowIds","_useState9","_useState0","editingRowId","setEditingRowId","filteredItems","toLowerCase","filter","item","_item$query","includes","updateTitle","currentItems","map","currentItem","_objectSpread","undefined","style","width","children","hasClear","onUpdate","onApply","onReset","onChange","editing","rowId","onSubmit","onCancel","comparison","enabled","Boolean","length","selected","currentIds","concat","_toConsumableArray","slice","onCompare","getRowActions","text","onClick","theme","CustomAuthorStory","team","_useState1","_useState10","renderAuthor","color","EmptyStory","_useState11","_useState12","Default","render","CustomAuthor","Empty"],"sources":["SavedQueries.stories.tsx"],"sourcesContent":["import React, {useMemo, useState} from 'react';\nimport type {Meta, StoryObj} from '@storybook/react';\nimport {Text} from '@gravity-ui/uikit';\nimport {action} from 'storybook/actions';\nimport {\n QueryListFieldKey,\n QueryListFilterConfig,\n QueryListItem,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\nimport {SavedQueries} from './SavedQueries';\n\nconst QUERY = `SELECT\n session_id,\n COUNT(*) AS sessions_count\nFROM visits\nGROUP BY session_id;`;\n\nconst BASE_ITEMS: QueryListItem<SavedQuery>[] = [\n {\n id: 1,\n title: 'New Query',\n savedAt: '2026-04-29T12:00:00.000Z',\n engine: 'SQL',\n author: 'Anna Petrova',\n query: QUERY,\n height: 52,\n },\n {\n id: 2,\n title: 'Daily conversion report',\n savedAt: '2026-04-29T11:00:00.000Z',\n engine: 'YQL',\n author: 'Pavel Sidorov',\n query: QUERY,\n height: 52,\n },\n {\n id: 3,\n title: 'Product funnel',\n savedAt: '2026-04-28T09:00:00.000Z',\n engine: 'SQL',\n author: 'Maria Volkova',\n query: 'SELECT 1;',\n height: 52,\n },\n];\n\nconst filterFields: QueryListFilterConfig['fields'] = [\n {id: 'onlyMine', type: 'switch', title: 'My queries only', initialValue: true},\n {id: 'range', type: 'rangeDatePicker', title: 'Period'},\n {\n id: 'engine',\n type: 'checkboxGroup',\n title: 'Engine',\n initialValue: [],\n items: [\n {id: 'yql', title: 'YQL'},\n {id: 'sql', title: 'SQL'},\n ],\n },\n];\n\nconst fields: QueryListVisibleFieldsConfig<SavedQuery>['fields'] = [\n {id: 'savedAt', title: 'Saved date'},\n {id: 'engine', title: 'Engine'},\n {id: 'author', title: 'Author'},\n];\n\nconst meta: Meta<typeof SavedQueries> = {\n title: 'Widgets/SavedQueries',\n component: SavedQueries,\n tags: ['autodocs'],\n parameters: {layout: 'padded'},\n};\n\nexport default meta;\ntype Story = StoryObj<typeof SavedQueries>;\n\nconst SavedQueriesStory = () => {\n const [items, setItems] = useState(BASE_ITEMS);\n const [search, setSearch] = useState({value: '', fullSearch: false});\n const [visibleFields, setVisibleFields] = useState<QueryListFieldKey<SavedQuery>[]>([\n 'savedAt',\n 'engine',\n 'author',\n ]);\n const [comparedRowIds, setComparedRowIds] = useState<number[]>([]);\n const [editingRowId, setEditingRowId] = useState<number>();\n\n const filteredItems = useMemo(() => {\n if (!search.value) return items;\n\n const value = search.value.toLowerCase();\n return items.filter((item) => {\n if ('header' in item) return false;\n\n return search.fullSearch\n ? item.title.toLowerCase().includes(value) ||\n item.query?.toLowerCase().includes(value)\n : item.title.toLowerCase().includes(value);\n });\n }, [items, search]);\n\n const updateTitle = (item: SavedQuery, title: string) => {\n setItems((currentItems) =>\n currentItems.map((currentItem) =>\n 'id' in currentItem && currentItem.id === item.id\n ? {...currentItem, title}\n : currentItem,\n ),\n );\n setEditingRowId(undefined);\n };\n\n return (\n <div style={{width: 360, height: 560}}>\n <SavedQueries\n items={filteredItems}\n search={{...search, hasClear: true, onUpdate: setSearch}}\n filter={{\n fields: filterFields,\n onApply: action('onFilterApply'),\n onReset: action('onFilterReset'),\n }}\n visibleFields={{value: visibleFields, fields, onChange: setVisibleFields}}\n editing={{\n rowId: editingRowId,\n onSubmit: updateTitle,\n onCancel: () => setEditingRowId(undefined),\n }}\n comparison={{\n enabled: Boolean(comparedRowIds.length),\n comparedRowIds,\n onChange: (item, selected) => {\n setComparedRowIds((currentIds) =>\n selected\n ? [...currentIds.filter((id) => id !== item.id).slice(-1), item.id]\n : currentIds.filter((id) => id !== item.id),\n );\n },\n onCancel: () => setComparedRowIds([]),\n onCompare: () => action('onCompare')(comparedRowIds),\n }}\n getRowActions={(item) => [\n {text: 'Copy to', onClick: () => action('onCopyTo')(item)},\n {text: 'Show operations', onClick: () => action('onShowOperations')(item)},\n {text: 'Edit', onClick: () => setEditingRowId(item.id)},\n {\n text: 'Compare with baseline',\n onClick: () => setComparedRowIds([item.id]),\n },\n {text: 'Delete', theme: 'danger', onClick: () => action('onDelete')(item)},\n ]}\n />\n </div>\n );\n};\n\ntype ExtendedSavedQuery = SavedQuery & {team: string};\n\nconst CustomAuthorStory = () => {\n const items: QueryListItem<ExtendedSavedQuery>[] = BASE_ITEMS.map((item) =>\n 'header' in item ? item : {...item, team: 'Analytics'},\n );\n const [search, setSearch] = useState({value: '', fullSearch: false});\n\n return (\n <div style={{width: 360, height: 280}}>\n <SavedQueries\n items={items}\n search={{...search, hasClear: true, onUpdate: setSearch}}\n renderAuthor={(item) => <Text color=\"complementary\">{item.team}</Text>}\n />\n </div>\n );\n};\n\nconst EmptyStory = () => {\n const [search, setSearch] = useState({value: '', fullSearch: false});\n\n return (\n <div style={{width: 360, height: 280}}>\n <SavedQueries items={[]} search={{...search, hasClear: true, onUpdate: setSearch}} />\n </div>\n );\n};\n\nexport const Default: Story = {render: () => <SavedQueriesStory />};\nexport const CustomAuthor: Story = {render: () => <CustomAuthorStory />};\nexport const Empty: Story = {render: () => <EmptyStory />};\n"],"mappings":";;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,QAAQ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E;IAAAgD,QAAA,eAClCzD,IAAA,CAACF,YAAY;MAACe,KAAK,EAAE,EAAG;MAACgB,MAAM,EAAAwB,aAAA,CAAAA,aAAA,KAAMxB,MAAM;QAAE6B,QAAQ,EAAE,IAAI;QAAEC,QAAQ,EAAE7B;MAAS;IAAE,CAAE;EAAC,CACpF,CAAC;AAEd,CAAC;AAED,OAAO,IAAM4D,OAAc,GAAG;EAACC,MAAM,EAAE,SAARA,MAAMA,CAAA;IAAA,oBAAQ3F,IAAA,CAACoB,iBAAiB,IAAE,CAAC;EAAA;AAAA,CAAC;AACnE,OAAO,IAAMwE,YAAmB,GAAG;EAACD,MAAM,EAAE,SAARA,MAAMA,CAAA;IAAA,oBAAQ3F,IAAA,CAACiF,iBAAiB,IAAE,CAAC;EAAA;AAAA,CAAC;AACxE,OAAO,IAAMY,KAAY,GAAG;EAACF,MAAM,EAAE,SAARA,MAAMA,CAAA;IAAA,oBAAQ3F,IAAA,CAACuF,UAAU,IAAE,CAAC;EAAA;AAAA,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { QueryListRowRenderData } from '../../types/queryList';
3
+ import { SavedQuery } from '../../types/savedQueries';
4
+ type Props<T extends SavedQuery> = QueryListRowRenderData<T> & {
5
+ renderAuthor?: (item: T) => React.ReactNode;
6
+ };
7
+ export declare const SavedQueryRowContent: <T extends SavedQuery>({ item, variant, renderAuthor, ...data }: Props<T>) => React.JSX.Element;
8
+ export {};
@@ -0,0 +1,26 @@
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["item", "variant", "renderAuthor"];
4
+ import React from 'react';
5
+ import { HistoryGroupHeader } from "../../components";
6
+ import { SavedQueryRow, SavedQuerySearchRow } from "../../modules";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export var SavedQueryRowContent = function SavedQueryRowContent(_ref) {
9
+ var item = _ref.item,
10
+ variant = _ref.variant,
11
+ renderAuthor = _ref.renderAuthor,
12
+ data = _objectWithoutProperties(_ref, _excluded);
13
+ if ('header' in item) {
14
+ return /*#__PURE__*/_jsx(HistoryGroupHeader, {
15
+ title: item.header
16
+ });
17
+ }
18
+ return variant === 'search' ? /*#__PURE__*/_jsx(SavedQuerySearchRow, _objectSpread(_objectSpread({}, data), {}, {
19
+ item: item,
20
+ renderAuthor: renderAuthor
21
+ })) : /*#__PURE__*/_jsx(SavedQueryRow, _objectSpread(_objectSpread({}, data), {}, {
22
+ item: item,
23
+ renderAuthor: renderAuthor
24
+ }));
25
+ };
26
+ // #sourceMappingURL=SavedQueryRowContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","HistoryGroupHeader","SavedQueryRow","SavedQuerySearchRow","jsx","_jsx","SavedQueryRowContent","_ref","item","variant","renderAuthor","data","_objectWithoutProperties","_excluded","title","header","_objectSpread"],"sources":["SavedQueryRowContent.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryGroupHeader} from '../../components';\nimport {SavedQueryRow, SavedQuerySearchRow} from '../../modules';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {SavedQuery} from '../../types/savedQueries';\n\ntype Props<T extends SavedQuery> = QueryListRowRenderData<T> & {\n renderAuthor?: (item: T) => React.ReactNode;\n};\n\nexport const SavedQueryRowContent = <T extends SavedQuery>({\n item,\n variant,\n renderAuthor,\n ...data\n}: Props<T>) => {\n if ('header' in item) {\n return <HistoryGroupHeader title={item.header} />;\n }\n\n return variant === 'search' ? (\n <SavedQuerySearchRow {...data} item={item} renderAuthor={renderAuthor} />\n ) : (\n <SavedQueryRow {...data} item={item} renderAuthor={renderAuthor} />\n );\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,kBAAkB;AAC1B,SAAQC,aAAa,EAAEC,mBAAmB;AAAuB,SAAAC,GAAA,IAAAC,IAAA;AAQjE,OAAO,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAKjB;EAAA,IAJZC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACTC,IAAI,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAEP,IAAI,QAAQ,IAAIL,IAAI,EAAE;IAClB,oBAAOH,IAAA,CAACJ,kBAAkB;MAACa,KAAK,EAAEN,IAAI,CAACO;IAAO,CAAE,CAAC;EACrD;EAEA,OAAON,OAAO,KAAK,QAAQ,gBACvBJ,IAAA,CAACF,mBAAmB,EAAAa,aAAA,CAAAA,aAAA,KAAKL,IAAI;IAAEH,IAAI,EAAEA,IAAK;IAACE,YAAY,EAAEA;EAAa,EAAE,CAAC,gBAEzEL,IAAA,CAACH,aAAa,EAAAc,aAAA,CAAAA,aAAA,KAAKL,IAAI;IAAEH,IAAI,EAAEA,IAAK;IAACE,YAAY,EAAEA;EAAa,EAAE,CACrE;AACL,CAAC","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ en: {
3
+ title_saved: string;
4
+ };
5
+ ru: {
6
+ title_saved: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import en from "./en.json";
2
+ import ru from "./ru.json";
3
+ export default {
4
+ en: en,
5
+ ru: ru
6
+ };
7
+ // #sourceMappingURL=dicts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["en","ru"],"sources":["dicts.ts"],"sourcesContent":["import en from './en.json';\nimport ru from './ru.json';\n\nexport default {en, ru};\n"],"mappings":"AAAA,OAAOA,EAAE;AACT,OAAOC,EAAE;AAET,eAAe;EAACD,EAAE,EAAFA,EAAE;EAAEC,EAAE,EAAFA;AAAE,CAAC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "title_saved": "Saved"
3
+ }
@@ -0,0 +1,6 @@
1
+ declare const _default: ((key: "title_saved", params?: import("@gravity-ui/i18n").Params) => string) & {
2
+ keysetData: {
3
+ "qp:saved-queries": Record<"title_saved", import("@gravity-ui/i18n").KeyData>;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { addI18Keysets } from "../../../i18n";
2
+ import dicts from "./dicts";
3
+ export default addI18Keysets('qp:saved-queries', dicts);
4
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["addI18Keysets","dicts"],"sources":["index.ts"],"sourcesContent":["import {addI18Keysets} from '../../../i18n';\nimport dicts from './dicts';\n\nexport default addI18Keysets('qp:saved-queries', dicts);\n"],"mappings":"AAAA,SAAQA,aAAa;AACrB,OAAOC,KAAK;AAEZ,eAAeD,aAAa,CAAC,kBAAkB,EAAEC,KAAK,CAAC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "title_saved": "Сохранённые"
3
+ }
@@ -0,0 +1,2 @@
1
+ export { SavedQueries } from './SavedQueries';
2
+ export type { SavedQueriesProps } from './SavedQueries';
@@ -0,0 +1,2 @@
1
+ export { SavedQueries } from "./SavedQueries";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SavedQueries"],"sources":["index.ts"],"sourcesContent":["export {SavedQueries} from './SavedQueries';\nexport type {SavedQueriesProps} from './SavedQueries';\n"],"mappings":"AAAA,SAAQA,YAAY","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryHistoryRowRenderData } from '../../types/history';
2
+ import { QueryListRowRenderData } from '../../types/queryList';
3
3
  import { TutorialHistoryRow } from '../../types/tutorial';
4
- export declare const TutorialRowContent: <T extends TutorialHistoryRow>({ item, variant, }: QueryHistoryRowRenderData<T>) => React.JSX.Element;
4
+ export declare const TutorialRowContent: <T extends TutorialHistoryRow>({ item, variant, }: QueryListRowRenderData<T>) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"names":["React","HistoryGroupHeader","TutorialRow","TutorialSearchRow","jsx","_jsx","TutorialRowContent","_ref","item","variant","title","header"],"sources":["TutorialRowContent.tsx"],"sourcesContent":["import React from 'react';\nimport {QueryHistoryRowRenderData} from '../../types/history';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {HistoryGroupHeader} from '../../components';\nimport {TutorialRow, TutorialSearchRow} from '../../modules';\n\nexport const TutorialRowContent = <T extends TutorialHistoryRow>({\n item,\n variant,\n}: QueryHistoryRowRenderData<T>) => {\n if ('header' in item) {\n return <HistoryGroupHeader title={item.header} />;\n }\n\n return variant === 'search' ? <TutorialSearchRow item={item} /> : <TutorialRow item={item} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAAQC,kBAAkB;AAC1B,SAAQC,WAAW,EAAEC,iBAAiB;AAAuB,SAAAC,GAAA,IAAAC,IAAA;AAE7D,OAAO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAGK;EAAA,IAFhCC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EAEP,IAAI,QAAQ,IAAID,IAAI,EAAE;IAClB,oBAAOH,IAAA,CAACJ,kBAAkB;MAACS,KAAK,EAAEF,IAAI,CAACG;IAAO,CAAE,CAAC;EACrD;EAEA,OAAOF,OAAO,KAAK,QAAQ,gBAAGJ,IAAA,CAACF,iBAAiB;IAACK,IAAI,EAAEA;EAAK,CAAE,CAAC,gBAAGH,IAAA,CAACH,WAAW;IAACM,IAAI,EAAEA;EAAK,CAAE,CAAC;AACjG,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","HistoryGroupHeader","TutorialRow","TutorialSearchRow","jsx","_jsx","TutorialRowContent","_ref","item","variant","title","header"],"sources":["TutorialRowContent.tsx"],"sourcesContent":["import React from 'react';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {HistoryGroupHeader} from '../../components';\nimport {TutorialRow, TutorialSearchRow} from '../../modules';\n\nexport const TutorialRowContent = <T extends TutorialHistoryRow>({\n item,\n variant,\n}: QueryListRowRenderData<T>) => {\n if ('header' in item) {\n return <HistoryGroupHeader title={item.header} />;\n }\n\n return variant === 'search' ? <TutorialSearchRow item={item} /> : <TutorialRow item={item} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAAQC,kBAAkB;AAC1B,SAAQC,WAAW,EAAEC,iBAAiB;AAAuB,SAAAC,GAAA,IAAAC,IAAA;AAE7D,OAAO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAGE;EAAA,IAF7BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EAEP,IAAI,QAAQ,IAAID,IAAI,EAAE;IAClB,oBAAOH,IAAA,CAACJ,kBAAkB;MAACS,KAAK,EAAEF,IAAI,CAACG;IAAO,CAAE,CAAC;EACrD;EAEA,OAAOF,OAAO,KAAK,QAAQ,gBAAGJ,IAAA,CAACF,iBAAiB;IAACK,IAAI,EAAEA;EAAK,CAAE,CAAC,gBAAGH,IAAA,CAACH,WAAW;IAACM,IAAI,EAAEA;EAAK,CAAE,CAAC;AACjG,CAAC","ignoreList":[]}
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import { QueryHistoryFilterConfig, QueryHistoryItem, QueryHistorySearchConfig } from '../../types/history';
2
+ import { QueryListFilterConfig, QueryListItem, QueryListSearchConfig } from '../../types/queryList';
3
3
  import { TutorialHistoryRow } from '../../types/tutorial';
4
4
  import './TutorialsHistory.scss';
5
5
  export type TutorialsHistoryProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {
6
6
  className?: string;
7
7
  title?: string;
8
8
  logo?: React.ReactNode;
9
- search: QueryHistorySearchConfig;
10
- filter?: QueryHistoryFilterConfig;
11
- items: QueryHistoryItem<T>[];
9
+ search: QueryListSearchConfig;
10
+ filter?: QueryListFilterConfig;
11
+ items: QueryListItem<T>[];
12
12
  selectedRowId?: T['id'];
13
- onListItemClick?: (item: QueryHistoryItem<T>) => void;
13
+ onListItemClick?: (item: QueryListItem<T>) => void;
14
14
  };
15
15
  export declare const TutorialsHistory: <T extends TutorialHistoryRow>({ title, logo, search, filter, items, selectedRowId, onListItemClick, className, }: TutorialsHistoryProps<T>) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"names":["React","HistoryHeader","HistoryLayout","RowsList","i18n","getListKey","TutorialRowContent","cn","jsx","_jsx","block","TutorialsHistory","_ref","_search$value","title","logo","search","filter","items","selectedRowId","onListItemClick","className","showSearchResults","Boolean","fullSearch","value","trim","rowVariant","header","hasClear","onUpdate","children","renderRow","data","_objectSpread","showFiltersHint","onItemClick"],"sources":["TutorialsHistory.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryHeader, HistoryLayout, RowsList} from '../../modules';\nimport i18n from './i18n';\nimport {\n QueryHistoryFilterConfig,\n QueryHistoryItem,\n QueryHistorySearchConfig,\n} from '../../types/history';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {getListKey} from '../../helpers/getListKey';\nimport {TutorialRowContent} from './TutorialRowContent';\nimport cn from 'bem-cn-lite';\nimport './TutorialsHistory.scss';\n\nexport type TutorialsHistoryProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryHistorySearchConfig;\n filter?: QueryHistoryFilterConfig;\n items: QueryHistoryItem<T>[];\n selectedRowId?: T['id'];\n onListItemClick?: (item: QueryHistoryItem<T>) => void;\n};\n\nconst block = cn('qp-tutorials-history');\n\nexport const TutorialsHistory = <T extends TutorialHistoryRow>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n onListItemClick,\n className,\n}: TutorialsHistoryProps<T>) => {\n const 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_tutorials')}\n logo={logo}\n header={\n <HistoryHeader\n search={search.value}\n fullSearch={search.fullSearch}\n hasClear={search.hasClear}\n filter={filter}\n onUpdate={search.onUpdate}\n />\n }\n >\n <RowsList\n key={getListKey(items, rowVariant)}\n items={items}\n rowVariant={rowVariant}\n selectedRowId={selectedRowId}\n renderRow={(data) => <TutorialRowContent {...data} />}\n showFiltersHint={Boolean(filter)}\n onItemClick={onListItemClick}\n />\n </HistoryLayout>\n );\n};\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,aAAa,EAAEC,aAAa,EAAEC,QAAQ;AAC9C,OAAOC,IAAI;AAOX,SAAQC,UAAU;AAClB,SAAQC,kBAAkB;AAC1B,OAAOC,EAAE,MAAM,aAAa;AAC5B;AAAiC,SAAAC,GAAA,IAAAC,IAAA;AAajC,IAAMC,KAAK,GAAGH,EAAE,CAAC,sBAAsB,CAAC;AAExC,OAAO,IAAMI,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EASG;EAAA,IAAAC,aAAA;EAAA,IAR5BC,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,eAAe,GAAAR,IAAA,CAAfQ,eAAe;IACfC,SAAS,GAAAT,IAAA,CAATS,SAAS;EAET,IAAMC,iBAAiB,GAAGC,OAAO,CAACP,MAAM,CAACQ,UAAU,MAAAX,aAAA,GAAIG,MAAM,CAACS,KAAK,cAAAZ,aAAA,uBAAZA,aAAA,CAAca,IAAI,CAAC,CAAC,EAAC;EAC5E,IAAMC,UAAU,GAAGL,iBAAiB,GAAG,QAAQ,GAAG,SAAS;EAE3D,oBACIb,IAAA,CAACP,aAAa;IACVmB,SAAS,EAAEX,KAAK,CAAC,IAAI,EAAEW,SAAS,CAAE;IAClCP,KAAK,EAAEA,KAAK,IAAIV,IAAI,CAAC,iBAAiB,CAAE;IACxCW,IAAI,EAAEA,IAAK;IACXa,MAAM,eACFnB,IAAA,CAACR,aAAa;MACVe,MAAM,EAAEA,MAAM,CAACS,KAAM;MACrBD,UAAU,EAAER,MAAM,CAACQ,UAAW;MAC9BK,QAAQ,EAAEb,MAAM,CAACa,QAAS;MAC1BZ,MAAM,EAAEA,MAAO;MACfa,QAAQ,EAAEd,MAAM,CAACc;IAAS,CAC7B,CACJ;IAAAC,QAAA,eAEDtB,IAAA,CAACN,QAAQ;MAELe,KAAK,EAAEA,KAAM;MACbS,UAAU,EAAEA,UAAW;MACvBR,aAAa,EAAEA,aAAc;MAC7Ba,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;QAAA,oBAAKxB,IAAA,CAACH,kBAAkB,EAAA4B,aAAA,KAAKD,IAAI,CAAG,CAAC;MAAA,CAAC;MACtDE,eAAe,EAAEZ,OAAO,CAACN,MAAM,CAAE;MACjCmB,WAAW,EAAEhB;IAAgB,GANxBf,UAAU,CAACa,KAAK,EAAES,UAAU,CAOpC;EAAC,CACS,CAAC;AAExB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","HistoryHeader","HistoryLayout","RowsList","i18n","getListKey","TutorialRowContent","cn","jsx","_jsx","block","TutorialsHistory","_ref","_search$value","title","logo","search","filter","items","selectedRowId","onListItemClick","className","showSearchResults","Boolean","fullSearch","value","trim","rowVariant","header","hasClear","onUpdate","children","renderRow","data","_objectSpread","showFiltersHint","onItemClick"],"sources":["TutorialsHistory.tsx"],"sourcesContent":["import React from 'react';\nimport {HistoryHeader, HistoryLayout, RowsList} from '../../modules';\nimport i18n from './i18n';\nimport {QueryListFilterConfig, QueryListItem, QueryListSearchConfig} from '../../types/queryList';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {getListKey} from '../../helpers/getListKey';\nimport {TutorialRowContent} from './TutorialRowContent';\nimport cn from 'bem-cn-lite';\nimport './TutorialsHistory.scss';\n\nexport type TutorialsHistoryProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-tutorials-history');\n\nexport const TutorialsHistory = <T extends TutorialHistoryRow>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n onListItemClick,\n className,\n}: TutorialsHistoryProps<T>) => {\n const 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_tutorials')}\n logo={logo}\n header={\n <HistoryHeader\n search={search.value}\n fullSearch={search.fullSearch}\n hasClear={search.hasClear}\n filter={filter}\n onUpdate={search.onUpdate}\n />\n }\n >\n <RowsList\n key={getListKey(items, rowVariant)}\n items={items}\n rowVariant={rowVariant}\n selectedRowId={selectedRowId}\n renderRow={(data) => <TutorialRowContent {...data} />}\n showFiltersHint={Boolean(filter)}\n onItemClick={onListItemClick}\n />\n </HistoryLayout>\n );\n};\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,aAAa,EAAEC,aAAa,EAAEC,QAAQ;AAC9C,OAAOC,IAAI;AAGX,SAAQC,UAAU;AAClB,SAAQC,kBAAkB;AAC1B,OAAOC,EAAE,MAAM,aAAa;AAC5B;AAAiC,SAAAC,GAAA,IAAAC,IAAA;AAajC,IAAMC,KAAK,GAAGH,EAAE,CAAC,sBAAsB,CAAC;AAExC,OAAO,IAAMI,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EASG;EAAA,IAAAC,aAAA;EAAA,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AE;MACjCmB,WAAW,EAAEhB;IAAgB,GANxBf,UAAU,CAACa,KAAK,EAAES,UAAU,CAOpC;EAAC,CACS,CAAC;AAExB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","TutorialsHistory","action","jsx","_jsx","QUERY","filterFields","id","type","title","initialValue","items","logFilterApply","logFilterReset","BASE_ITEMS","query","height","meta","component","tags","parameters","layout","DefaultStory","_useState","concat","_useState2","_slicedToArray","setItems","_useState3","value","fullSearch","_useState4","search","setSearch","handleOnSearch","data","newItems","filter","item","_item$query","toLowerCase","searchValue","includes","style","width","children","fields","onApply","onReset","hasClear","onUpdate","EmptyStory","_useState5","_useState6","Default","render","Empty"],"sources":["TutorialsHistory.stories.tsx"],"sourcesContent":["import React, {useState} from 'react';\nimport type {Meta, StoryObj} from '@storybook/react';\nimport {TutorialsHistory} from './TutorialsHistory';\nimport {QueryHistoryFilterConfig, QueryHistoryItem} from '../../types/history';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {action} from 'storybook/actions';\n\nconst QUERY = `use test;\n\nSELECT\n \"test_session\" AS session_id,\n \"test_task\" AS task_id,\n SUBSTRING(\"test\", 1, 1) AS truncated_char`;\n\nconst filterFields: QueryHistoryFilterConfig['fields'] = [\n {id: 'onlyMine', type: 'switch', title: 'My queries only', initialValue: true},\n {id: 'range', type: 'rangeDatePicker', title: 'Period'},\n {\n id: 'dialect',\n type: 'checkboxGroup',\n title: 'Dialect',\n initialValue: [],\n items: [\n {id: 'yql', title: 'YQL'},\n {id: 'sql', title: 'SQL'},\n ],\n },\n];\n\nconst logFilterApply = action('onFilterApply');\nconst logFilterReset = action('onFilterReset');\n\nconst BASE_ITEMS: QueryHistoryItem<TutorialHistoryRow>[] = [\n {\n id: 1,\n title: 'Getting started with YQL',\n query: QUERY,\n height: 28,\n },\n {\n id: 2,\n title: 'Working with tables',\n query: QUERY,\n height: 28,\n },\n {\n id: 3,\n title: 'Window functions',\n query: QUERY,\n height: 28,\n },\n];\n\nconst meta: Meta<typeof TutorialsHistory> = {\n title: 'Widgets/TutorialsHistory',\n component: TutorialsHistory,\n tags: ['autodocs'],\n parameters: {\n layout: 'padded',\n },\n};\n\nexport default meta;\ntype Story = StoryObj<typeof TutorialsHistory>;\n\nconst DefaultStory = () => {\n const [items, setItems] = useState([...BASE_ITEMS]);\n const [search, setSearch] = useState({value: '', fullSearch: false});\n\n const handleOnSearch = (data: {value: string; fullSearch: boolean}) => {\n setSearch(data);\n\n if (!data.value) {\n setItems(BASE_ITEMS);\n return;\n }\n\n const newItems = BASE_ITEMS.filter((item) => {\n if (!('id' in item)) return false;\n\n const title = item.title.toLowerCase();\n const query = item.query?.toLowerCase();\n const searchValue = data.value.toLowerCase();\n\n if (data.fullSearch) {\n return title.includes(searchValue) || query?.includes(searchValue);\n }\n\n return title.includes(searchValue);\n });\n setItems(newItems);\n };\n\n return (\n <div style={{width: 300, height: 500}}>\n <TutorialsHistory\n title=\"Tutorials\"\n items={items}\n filter={{\n fields: filterFields,\n onApply: logFilterApply,\n onReset: logFilterReset('reset'),\n }}\n search={{\n value: search.value,\n fullSearch: search.fullSearch,\n hasClear: true,\n onUpdate: handleOnSearch,\n }}\n />\n </div>\n );\n};\n\nconst EmptyStory = () => {\n const [search, setSearch] = useState({value: '', fullSearch: false});\n\n return (\n <div style={{width: 300, height: 500}}>\n <TutorialsHistory\n title=\"Tutorials\"\n items={[]}\n search={{\n value: search.value,\n fullSearch: search.fullSearch,\n hasClear: true,\n onUpdate: setSearch,\n }}\n />\n </div>\n );\n};\n\nexport const Default: Story = {render: () => <DefaultStory />};\nexport const Empty: Story = {render: () => <EmptyStory />};\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,IAAGC,QAAQ,QAAO,OAAO;AAErC,SAAQC,gBAAgB;AAGxB,SAAQC,MAAM,QAAO,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzC,IAAMC,KAAK,6IAKmC;AAE9C,IAAMC,YAAgD,GAA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AY,IAAE,CAAC;EAAA;AAAA,CAAC;AAC9D,OAAO,IAAMkC,KAAY,GAAG;EAACD,MAAM,EAAE,SAARA,MAAMA,CAAA;IAAA,oBAAQnD,IAAA,CAAC+C,UAAU,IAAE,CAAC;EAAA;AAAA,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","TutorialsHistory","action","jsx","_jsx","QUERY","filterFields","id","type","title","initialValue","items","logFilterApply","logFilterReset","BASE_ITEMS","query","height","meta","component","tags","parameters","layout","DefaultStory","_useState","concat","_useState2","_slicedToArray","setItems","_useState3","value","fullSearch","_useState4","search","setSearch","handleOnSearch","data","newItems","filter","item","_item$query","toLowerCase","searchValue","includes","style","width","children","fields","onApply","onReset","hasClear","onUpdate","EmptyStory","_useState5","_useState6","Default","render","Empty"],"sources":["TutorialsHistory.stories.tsx"],"sourcesContent":["import React, {useState} from 'react';\nimport type {Meta, StoryObj} from '@storybook/react';\nimport {TutorialsHistory} from './TutorialsHistory';\nimport {QueryListFilterConfig, QueryListItem} from '../../types/queryList';\nimport {TutorialHistoryRow} from '../../types/tutorial';\nimport {action} from 'storybook/actions';\n\nconst QUERY = `use test;\n\nSELECT\n \"test_session\" AS session_id,\n \"test_task\" AS task_id,\n SUBSTRING(\"test\", 1, 1) AS truncated_char`;\n\nconst filterFields: QueryListFilterConfig['fields'] = [\n {id: 'onlyMine', type: 'switch', title: 'My queries only', initialValue: true},\n {id: 'range', type: 'rangeDatePicker', title: 'Period'},\n {\n id: 'dialect',\n type: 'checkboxGroup',\n title: 'Dialect',\n initialValue: [],\n items: [\n {id: 'yql', title: 'YQL'},\n {id: 'sql', title: 'SQL'},\n ],\n },\n];\n\nconst logFilterApply = action('onFilterApply');\nconst logFilterReset = action('onFilterReset');\n\nconst BASE_ITEMS: QueryListItem<TutorialHistoryRow>[] = [\n {\n id: 1,\n title: 'Getting started with YQL',\n query: QUERY,\n height: 28,\n },\n {\n id: 2,\n title: 'Working with tables',\n query: QUERY,\n height: 28,\n },\n {\n id: 3,\n title: 'Window functions',\n query: QUERY,\n height: 28,\n },\n];\n\nconst meta: Meta<typeof TutorialsHistory> = {\n title: 'Widgets/TutorialsHistory',\n component: TutorialsHistory,\n tags: ['autodocs'],\n parameters: {\n layout: 'padded',\n },\n};\n\nexport default meta;\ntype Story = StoryObj<typeof TutorialsHistory>;\n\nconst DefaultStory = () => {\n const [items, setItems] = useState([...BASE_ITEMS]);\n const [search, setSearch] = useState({value: '', fullSearch: false});\n\n const handleOnSearch = (data: {value: string; fullSearch: boolean}) => {\n setSearch(data);\n\n if (!data.value) {\n setItems(BASE_ITEMS);\n return;\n }\n\n const newItems = BASE_ITEMS.filter((item) => {\n if (!('id' in item)) return false;\n\n const title = item.title.toLowerCase();\n const query = item.query?.toLowerCase();\n const searchValue = data.value.toLowerCase();\n\n if (data.fullSearch) {\n return title.includes(searchValue) || query?.includes(searchValue);\n }\n\n return title.includes(searchValue);\n });\n setItems(newItems);\n };\n\n return (\n <div style={{width: 300, height: 500}}>\n <TutorialsHistory\n title=\"Tutorials\"\n items={items}\n filter={{\n fields: filterFields,\n onApply: logFilterApply,\n onReset: logFilterReset('reset'),\n }}\n search={{\n value: search.value,\n fullSearch: search.fullSearch,\n hasClear: true,\n onUpdate: handleOnSearch,\n }}\n />\n </div>\n );\n};\n\nconst EmptyStory = () => {\n const [search, setSearch] = useState({value: '', fullSearch: false});\n\n return (\n <div style={{width: 300, height: 500}}>\n <TutorialsHistory\n title=\"Tutorials\"\n items={[]}\n search={{\n value: search.value,\n fullSearch: search.fullSearch,\n hasClear: true,\n onUpdate: setSearch,\n }}\n />\n </div>\n );\n};\n\nexport const Default: Story = {render: () => <DefaultStory />};\nexport const Empty: Story = {render: () => <EmptyStory />};\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,IAAGC,QAAQ,QAAO,OAAO;AAErC,SAAQC,gBAAgB;AAGxB,SAAQC,MAAM,QAAO,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzC,IAAMC,K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,CAAA;IAAA,oBAAQnD,IAAA,CAACkB,YAAY,IAAE,CAAC;EAAA;AAAA,CAAC;AAC9D,OAAO,IAAMkC,KAAY,GAAG;EAACD,MAAM,EAAE,SAARA,MAAMA,CAAA;IAAA,oBAAQnD,IAAA,CAAC+C,UAAU,IAAE,CAAC;EAAA;AAAA,CAAC","ignoreList":[]}
@@ -1,7 +1,11 @@
1
1
  export { QueriesHistory } from './QueriesHistory';
2
2
  export type { QueriesHistoryProps } from './QueriesHistory';
3
+ export { SavedQueries } from './SavedQueries';
4
+ export type { SavedQueriesProps } from './SavedQueries';
3
5
  export { DashboardCharts } from './DashboardCharts';
4
6
  export { TutorialsHistory } from './TutorialsHistory';
5
7
  export type { TutorialsHistoryProps } from './TutorialsHistory';
8
+ export { QueryResults } from './QueryResults';
9
+ export type { QueryResultsProps } from './QueryResults';
6
10
  export { QueriesNavigation, createTableDetailConfig, createNavigationDetailResolver, } from './QueriesNavigation';
7
11
  export type { QueriesNavigationProps, CreateTableDetailConfigOptions, NavigationPreviewResolver, NavigationSchemaResolver, } from './QueriesNavigation';
@@ -1,5 +1,7 @@
1
1
  export { QueriesHistory } from "./QueriesHistory";
2
+ export { SavedQueries } from "./SavedQueries";
2
3
  export { DashboardCharts } from "./DashboardCharts";
3
4
  export { TutorialsHistory } from "./TutorialsHistory";
5
+ export { QueryResults } from "./QueryResults";
4
6
  export { QueriesNavigation, createTableDetailConfig, createNavigationDetailResolver } from "./QueriesNavigation";
5
7
  // #sourceMappingURL=index.js.map