@gravity-ui/querieskit 1.2.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 (676) hide show
  1. package/.agents/skills/code-review-checklist/SKILL.md +62 -103
  2. package/AGENTS.md +12 -0
  3. package/CHANGELOG.md +17 -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/ErrorTree/ErrorTree.d.ts +3 -0
  85. package/build/cjs/components/ErrorTree/ErrorTree.js +35 -0
  86. package/build/cjs/components/ErrorTree/ErrorTree.js.map +1 -0
  87. package/build/cjs/components/ErrorTree/ErrorTree.stories.d.ts +8 -0
  88. package/build/cjs/components/ErrorTree/ErrorTree.stories.js +101 -0
  89. package/build/cjs/components/ErrorTree/ErrorTree.stories.js.map +1 -0
  90. package/build/cjs/components/ErrorTree/helpers/formatAttributes.d.ts +2 -0
  91. package/build/cjs/components/ErrorTree/helpers/formatAttributes.js +16 -0
  92. package/build/cjs/components/ErrorTree/helpers/formatAttributes.js.map +1 -0
  93. package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.d.ts +6 -0
  94. package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.js +22 -0
  95. package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.js.map +1 -0
  96. package/build/cjs/components/ErrorTree/i18n/dicts.d.ts +27 -0
  97. package/build/cjs/components/ErrorTree/i18n/dicts.js +14 -0
  98. package/build/cjs/components/ErrorTree/i18n/dicts.js.map +1 -0
  99. package/build/cjs/components/ErrorTree/i18n/en.json +11 -0
  100. package/build/cjs/components/ErrorTree/i18n/index.d.ts +6 -0
  101. package/build/cjs/components/ErrorTree/i18n/index.js +11 -0
  102. package/build/cjs/components/ErrorTree/i18n/index.js.map +1 -0
  103. package/build/cjs/components/ErrorTree/i18n/ru.json +13 -0
  104. package/build/cjs/components/ErrorTree/index.d.ts +1 -0
  105. package/build/cjs/components/ErrorTree/index.js +13 -0
  106. package/build/cjs/components/ErrorTree/index.js.map +1 -0
  107. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.css +4 -0
  108. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.css.map +1 -0
  109. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.d.ts +10 -0
  110. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.js +32 -0
  111. package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.js.map +1 -0
  112. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.css +80 -0
  113. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.css.map +1 -0
  114. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.d.ts +13 -0
  115. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.js +274 -0
  116. package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.js.map +1 -0
  117. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.css +10 -0
  118. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.css.map +1 -0
  119. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.d.ts +9 -0
  120. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.js +118 -0
  121. package/build/cjs/components/ErrorTree/internal/IntermediateMessages.js.map +1 -0
  122. package/build/cjs/components/Icons/LogoCPlusPlus.d.ts +2 -0
  123. package/build/cjs/components/Icons/LogoCPlusPlus.js +35 -0
  124. package/build/cjs/components/Icons/LogoCPlusPlus.js.map +1 -0
  125. package/build/cjs/components/Icons/index.d.ts +1 -0
  126. package/build/cjs/components/Icons/index.js +13 -0
  127. package/build/cjs/components/Icons/index.js.map +1 -0
  128. package/build/cjs/components/QueryResultsTable/QueryResultsTable.css +53 -0
  129. package/build/cjs/components/QueryResultsTable/QueryResultsTable.css.map +1 -0
  130. package/build/cjs/components/QueryResultsTable/QueryResultsTable.d.ts +24 -0
  131. package/build/cjs/components/QueryResultsTable/QueryResultsTable.js +104 -0
  132. package/build/cjs/components/QueryResultsTable/QueryResultsTable.js.map +1 -0
  133. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.d.ts +3 -0
  134. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.js +90 -0
  135. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.js.map +1 -0
  136. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.d.ts +11 -0
  137. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.js +40 -0
  138. package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.js.map +1 -0
  139. package/build/cjs/components/QueryResultsTable/i18n/dicts.d.ts +13 -0
  140. package/build/cjs/components/QueryResultsTable/i18n/dicts.js +14 -0
  141. package/build/cjs/components/QueryResultsTable/i18n/dicts.js.map +1 -0
  142. package/build/cjs/components/QueryResultsTable/i18n/en.json +5 -0
  143. package/build/cjs/components/QueryResultsTable/i18n/index.d.ts +6 -0
  144. package/build/cjs/components/QueryResultsTable/i18n/index.js +11 -0
  145. package/build/cjs/components/QueryResultsTable/i18n/index.js.map +1 -0
  146. package/build/cjs/components/QueryResultsTable/i18n/ru.json +5 -0
  147. package/build/cjs/components/QueryResultsTable/index.d.ts +3 -0
  148. package/build/cjs/components/QueryResultsTable/index.js +20 -0
  149. package/build/cjs/components/QueryResultsTable/index.js.map +1 -0
  150. package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.d.ts +11 -0
  151. package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.js +79 -0
  152. package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.js.map +1 -0
  153. package/build/cjs/components/index.d.ts +5 -0
  154. package/build/cjs/components/index.js +48 -1
  155. package/build/cjs/components/index.js.map +1 -1
  156. package/build/cjs/helpers/createUuid.d.ts +1 -0
  157. package/build/cjs/helpers/createUuid.js +12 -0
  158. package/build/cjs/helpers/createUuid.js.map +1 -0
  159. package/build/cjs/helpers/isObjectEqual.d.ts +1 -0
  160. package/build/cjs/helpers/isObjectEqual.js +30 -0
  161. package/build/cjs/helpers/isObjectEqual.js.map +1 -0
  162. package/build/cjs/helpers/useDebouncedValue.d.ts +2 -0
  163. package/build/cjs/helpers/useDebouncedValue.js +27 -0
  164. package/build/cjs/helpers/useDebouncedValue.js.map +1 -0
  165. package/build/cjs/index.d.ts +3 -0
  166. package/build/cjs/index.js +33 -0
  167. package/build/cjs/index.js.map +1 -1
  168. package/build/cjs/modules/Attachments/Attachments.css +8 -0
  169. package/build/cjs/modules/Attachments/Attachments.css.map +1 -0
  170. package/build/cjs/modules/Attachments/Attachments.d.ts +22 -0
  171. package/build/cjs/modules/Attachments/Attachments.js +381 -0
  172. package/build/cjs/modules/Attachments/Attachments.js.map +1 -0
  173. package/build/cjs/modules/Attachments/Attachments.stories.d.ts +41 -0
  174. package/build/cjs/modules/Attachments/Attachments.stories.js +123 -0
  175. package/build/cjs/modules/Attachments/Attachments.stories.js.map +1 -0
  176. package/build/cjs/modules/Attachments/i18n/dicts.d.ts +13 -0
  177. package/build/cjs/modules/Attachments/i18n/dicts.js +14 -0
  178. package/build/cjs/modules/Attachments/i18n/dicts.js.map +1 -0
  179. package/build/cjs/modules/Attachments/i18n/en.json +5 -0
  180. package/build/cjs/modules/Attachments/i18n/index.d.ts +6 -0
  181. package/build/cjs/modules/Attachments/i18n/index.js +11 -0
  182. package/build/cjs/modules/Attachments/i18n/index.js.map +1 -0
  183. package/build/cjs/modules/Attachments/i18n/ru.json +5 -0
  184. package/build/cjs/modules/Attachments/index.d.ts +2 -0
  185. package/build/cjs/modules/Attachments/index.js +13 -0
  186. package/build/cjs/modules/Attachments/index.js.map +1 -0
  187. package/build/cjs/modules/NavigationPreview/NavigationPreview.css +7 -1
  188. package/build/cjs/modules/NavigationPreview/NavigationPreview.css.map +1 -1
  189. package/build/cjs/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
  190. package/build/cjs/modules/NavigationPreview/NavigationPreview.js +37 -7
  191. package/build/cjs/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  192. package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
  193. package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js +25 -1
  194. package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
  195. package/build/cjs/modules/NavigationPreview/story/mockData.d.ts +2 -2
  196. package/build/cjs/modules/NavigationPreview/story/mockData.js +16 -4
  197. package/build/cjs/modules/NavigationPreview/story/mockData.js.map +1 -1
  198. package/build/cjs/modules/QueryStatistics/QueryStatistics.css +4 -0
  199. package/build/cjs/modules/QueryStatistics/QueryStatistics.css.map +1 -0
  200. package/build/cjs/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
  201. package/build/cjs/modules/QueryStatistics/QueryStatistics.js +151 -0
  202. package/build/cjs/modules/QueryStatistics/QueryStatistics.js.map +1 -0
  203. package/build/cjs/modules/QueryStatistics/helpers.d.ts +15 -0
  204. package/build/cjs/modules/QueryStatistics/helpers.js +118 -0
  205. package/build/cjs/modules/QueryStatistics/helpers.js.map +1 -0
  206. package/build/cjs/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
  207. package/build/cjs/modules/QueryStatistics/i18n/dicts.js +14 -0
  208. package/build/cjs/modules/QueryStatistics/i18n/dicts.js.map +1 -0
  209. package/build/cjs/modules/QueryStatistics/i18n/en.json +16 -0
  210. package/build/cjs/modules/QueryStatistics/i18n/index.d.ts +6 -0
  211. package/build/cjs/modules/QueryStatistics/i18n/index.js +11 -0
  212. package/build/cjs/modules/QueryStatistics/i18n/index.js.map +1 -0
  213. package/build/cjs/modules/QueryStatistics/i18n/ru.json +16 -0
  214. package/build/cjs/modules/QueryStatistics/index.d.ts +2 -0
  215. package/build/cjs/modules/QueryStatistics/index.js +13 -0
  216. package/build/cjs/modules/QueryStatistics/index.js.map +1 -0
  217. package/build/cjs/modules/QueryStatistics/internal/MetricCell.css +36 -0
  218. package/build/cjs/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
  219. package/build/cjs/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
  220. package/build/cjs/modules/QueryStatistics/internal/MetricCell.js +121 -0
  221. package/build/cjs/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
  222. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
  223. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
  224. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
  225. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js +140 -0
  226. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
  227. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
  228. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
  229. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
  230. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +55 -0
  231. package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
  232. package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
  233. package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.js +112 -0
  234. package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.js.map +1 -0
  235. package/build/cjs/modules/index.d.ts +3 -0
  236. package/build/cjs/modules/index.js +20 -0
  237. package/build/cjs/modules/index.js.map +1 -1
  238. package/build/cjs/types/declarations.d.ts +10 -0
  239. package/build/cjs/types/errorTree.d.ts +23 -0
  240. package/build/cjs/types/errorTree.js +6 -0
  241. package/build/cjs/types/errorTree.js.map +1 -0
  242. package/build/cjs/types/navigation.d.ts +8 -1
  243. package/build/cjs/types/navigation.js.map +1 -1
  244. package/build/cjs/types/queryResults.d.ts +34 -0
  245. package/build/cjs/types/queryResults.js +6 -0
  246. package/build/cjs/types/queryResults.js.map +1 -0
  247. package/build/cjs/types/queryStatistics.d.ts +54 -0
  248. package/build/cjs/types/queryStatistics.js +6 -0
  249. package/build/cjs/types/queryStatistics.js.map +1 -0
  250. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.stories.js +40 -35
  251. package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
  252. package/build/cjs/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
  253. package/build/cjs/widgets/QueryResults/QueryResults.css +19 -0
  254. package/build/cjs/widgets/QueryResults/QueryResults.css.map +1 -0
  255. package/build/cjs/widgets/QueryResults/QueryResults.d.ts +23 -0
  256. package/build/cjs/widgets/QueryResults/QueryResults.js +119 -0
  257. package/build/cjs/widgets/QueryResults/QueryResults.js.map +1 -0
  258. package/build/cjs/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
  259. package/build/cjs/widgets/QueryResults/QueryResults.stories.js +199 -0
  260. package/build/cjs/widgets/QueryResults/QueryResults.stories.js.map +1 -0
  261. package/build/cjs/widgets/QueryResults/i18n/dicts.d.ts +25 -0
  262. package/build/cjs/widgets/QueryResults/i18n/dicts.js +14 -0
  263. package/build/cjs/widgets/QueryResults/i18n/dicts.js.map +1 -0
  264. package/build/cjs/widgets/QueryResults/i18n/en.json +10 -0
  265. package/build/cjs/widgets/QueryResults/i18n/index.d.ts +6 -0
  266. package/build/cjs/widgets/QueryResults/i18n/index.js +11 -0
  267. package/build/cjs/widgets/QueryResults/i18n/index.js.map +1 -0
  268. package/build/cjs/widgets/QueryResults/i18n/ru.json +12 -0
  269. package/build/cjs/widgets/QueryResults/index.d.ts +2 -0
  270. package/build/cjs/widgets/QueryResults/index.js +13 -0
  271. package/build/cjs/widgets/QueryResults/index.js.map +1 -0
  272. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
  273. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js +49 -0
  274. package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -0
  275. package/build/cjs/widgets/index.d.ts +2 -0
  276. package/build/cjs/widgets/index.js +7 -0
  277. package/build/cjs/widgets/index.js.map +1 -1
  278. package/build/esm/components/AttachmentList/AttachmentList.css +22 -0
  279. package/build/esm/components/AttachmentList/AttachmentList.css.map +1 -0
  280. package/build/esm/components/AttachmentList/AttachmentList.d.ts +17 -0
  281. package/build/esm/components/AttachmentList/AttachmentList.js +67 -0
  282. package/build/esm/components/AttachmentList/AttachmentList.js.map +1 -0
  283. package/build/esm/components/AttachmentList/AttachmentList.scss +25 -0
  284. package/build/esm/components/AttachmentList/AttachmentList.stories.d.ts +93 -0
  285. package/build/esm/components/AttachmentList/AttachmentList.stories.js +315 -0
  286. package/build/esm/components/AttachmentList/AttachmentList.stories.js.map +1 -0
  287. package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.d.ts +2 -0
  288. package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.js +30 -0
  289. package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.js.map +1 -0
  290. package/build/esm/components/AttachmentList/helpers/objectLinkValidator.d.ts +11 -0
  291. package/build/esm/components/AttachmentList/helpers/objectLinkValidator.js +24 -0
  292. package/build/esm/components/AttachmentList/helpers/objectLinkValidator.js.map +1 -0
  293. package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.d.ts +2 -0
  294. package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.js +19 -0
  295. package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.js.map +1 -0
  296. package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.d.ts +4 -0
  297. package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.js +21 -0
  298. package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.js.map +1 -0
  299. package/build/esm/components/AttachmentList/hooks/useLabelRef.d.ts +4 -0
  300. package/build/esm/components/AttachmentList/hooks/useLabelRef.js +28 -0
  301. package/build/esm/components/AttachmentList/hooks/useLabelRef.js.map +1 -0
  302. package/build/esm/components/AttachmentList/i18n/dicts.d.ts +23 -0
  303. package/build/esm/components/AttachmentList/i18n/dicts.js +7 -0
  304. package/build/esm/components/AttachmentList/i18n/dicts.js.map +1 -0
  305. package/build/esm/components/AttachmentList/i18n/en.json +10 -0
  306. package/build/esm/components/AttachmentList/i18n/index.d.ts +6 -0
  307. package/build/esm/components/AttachmentList/i18n/index.js +4 -0
  308. package/build/esm/components/AttachmentList/i18n/index.js.map +1 -0
  309. package/build/esm/components/AttachmentList/i18n/ru.json +10 -0
  310. package/build/esm/components/AttachmentList/index.d.ts +4 -0
  311. package/build/esm/components/AttachmentList/index.js +4 -0
  312. package/build/esm/components/AttachmentList/index.js.map +1 -0
  313. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css +18 -0
  314. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css.map +1 -0
  315. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.d.ts +16 -0
  316. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js +98 -0
  317. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js.map +1 -0
  318. package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.scss +23 -0
  319. package/build/esm/components/AttachmentList/internal/AttachmentItem/index.d.ts +2 -0
  320. package/build/esm/components/AttachmentList/internal/AttachmentItem/index.js +2 -0
  321. package/build/esm/components/AttachmentList/internal/AttachmentItem/index.js.map +1 -0
  322. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.d.ts +9 -0
  323. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js +15 -0
  324. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js.map +1 -0
  325. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css +17 -0
  326. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css.map +1 -0
  327. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.d.ts +24 -0
  328. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js +167 -0
  329. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js.map +1 -0
  330. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.scss +21 -0
  331. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.d.ts +12 -0
  332. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js +83 -0
  333. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js.map +1 -0
  334. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.d.ts +4 -0
  335. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.js +2 -0
  336. package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.js.map +1 -0
  337. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css +4 -0
  338. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css.map +1 -0
  339. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.d.ts +13 -0
  340. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js +68 -0
  341. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js.map +1 -0
  342. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.scss +5 -0
  343. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.d.ts +29 -0
  344. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js +29 -0
  345. package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js.map +1 -0
  346. package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.d.ts +17 -0
  347. package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.js +7 -0
  348. package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.js.map +1 -0
  349. package/build/esm/components/AttachmentListPlaceholder/i18n/en.json +7 -0
  350. package/build/esm/components/AttachmentListPlaceholder/i18n/index.d.ts +6 -0
  351. package/build/esm/components/AttachmentListPlaceholder/i18n/index.js +4 -0
  352. package/build/esm/components/AttachmentListPlaceholder/i18n/index.js.map +1 -0
  353. package/build/esm/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
  354. package/build/esm/components/AttachmentListPlaceholder/index.d.ts +2 -0
  355. package/build/esm/components/AttachmentListPlaceholder/index.js +2 -0
  356. package/build/esm/components/AttachmentListPlaceholder/index.js.map +1 -0
  357. package/build/esm/components/DataTable/DataTable.css +0 -7
  358. package/build/esm/components/DataTable/DataTable.css.map +1 -1
  359. package/build/esm/components/DataTable/DataTable.js +12 -5
  360. package/build/esm/components/DataTable/DataTable.js.map +1 -1
  361. package/build/esm/components/DataTable/DataTable.scss +18 -26
  362. package/build/esm/components/ErrorTree/ErrorTree.d.ts +3 -0
  363. package/build/esm/components/ErrorTree/ErrorTree.js +28 -0
  364. package/build/esm/components/ErrorTree/ErrorTree.js.map +1 -0
  365. package/build/esm/components/ErrorTree/ErrorTree.stories.d.ts +8 -0
  366. package/build/esm/components/ErrorTree/ErrorTree.stories.js +94 -0
  367. package/build/esm/components/ErrorTree/ErrorTree.stories.js.map +1 -0
  368. package/build/esm/components/ErrorTree/helpers/formatAttributes.d.ts +2 -0
  369. package/build/esm/components/ErrorTree/helpers/formatAttributes.js +10 -0
  370. package/build/esm/components/ErrorTree/helpers/formatAttributes.js.map +1 -0
  371. package/build/esm/components/ErrorTree/helpers/getIntermediateChain.d.ts +6 -0
  372. package/build/esm/components/ErrorTree/helpers/getIntermediateChain.js +16 -0
  373. package/build/esm/components/ErrorTree/helpers/getIntermediateChain.js.map +1 -0
  374. package/build/esm/components/ErrorTree/i18n/dicts.d.ts +27 -0
  375. package/build/esm/components/ErrorTree/i18n/dicts.js +7 -0
  376. package/build/esm/components/ErrorTree/i18n/dicts.js.map +1 -0
  377. package/build/esm/components/ErrorTree/i18n/en.json +11 -0
  378. package/build/esm/components/ErrorTree/i18n/index.d.ts +6 -0
  379. package/build/esm/components/ErrorTree/i18n/index.js +4 -0
  380. package/build/esm/components/ErrorTree/i18n/index.js.map +1 -0
  381. package/build/esm/components/ErrorTree/i18n/ru.json +13 -0
  382. package/build/esm/components/ErrorTree/index.d.ts +1 -0
  383. package/build/esm/components/ErrorTree/index.js +2 -0
  384. package/build/esm/components/ErrorTree/index.js.map +1 -0
  385. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.css +4 -0
  386. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.css.map +1 -0
  387. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.d.ts +10 -0
  388. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.js +25 -0
  389. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.js.map +1 -0
  390. package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.scss +5 -0
  391. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.css +80 -0
  392. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.css.map +1 -0
  393. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.d.ts +13 -0
  394. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.js +266 -0
  395. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.js.map +1 -0
  396. package/build/esm/components/ErrorTree/internal/ErrorTreeNode.scss +95 -0
  397. package/build/esm/components/ErrorTree/internal/IntermediateMessages.css +10 -0
  398. package/build/esm/components/ErrorTree/internal/IntermediateMessages.css.map +1 -0
  399. package/build/esm/components/ErrorTree/internal/IntermediateMessages.d.ts +9 -0
  400. package/build/esm/components/ErrorTree/internal/IntermediateMessages.js +110 -0
  401. package/build/esm/components/ErrorTree/internal/IntermediateMessages.js.map +1 -0
  402. package/build/esm/components/ErrorTree/internal/IntermediateMessages.scss +13 -0
  403. package/build/esm/components/Icons/LogoCPlusPlus.d.ts +2 -0
  404. package/build/esm/components/Icons/LogoCPlusPlus.js +28 -0
  405. package/build/esm/components/Icons/LogoCPlusPlus.js.map +1 -0
  406. package/build/esm/components/Icons/index.d.ts +1 -0
  407. package/build/esm/components/Icons/index.js +2 -0
  408. package/build/esm/components/Icons/index.js.map +1 -0
  409. package/build/esm/components/QueryResultsTable/QueryResultsTable.css +53 -0
  410. package/build/esm/components/QueryResultsTable/QueryResultsTable.css.map +1 -0
  411. package/build/esm/components/QueryResultsTable/QueryResultsTable.d.ts +24 -0
  412. package/build/esm/components/QueryResultsTable/QueryResultsTable.js +96 -0
  413. package/build/esm/components/QueryResultsTable/QueryResultsTable.js.map +1 -0
  414. package/build/esm/components/QueryResultsTable/QueryResultsTable.scss +65 -0
  415. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.d.ts +3 -0
  416. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.js +82 -0
  417. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.js.map +1 -0
  418. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.d.ts +11 -0
  419. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.js +33 -0
  420. package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.js.map +1 -0
  421. package/build/esm/components/QueryResultsTable/i18n/dicts.d.ts +13 -0
  422. package/build/esm/components/QueryResultsTable/i18n/dicts.js +7 -0
  423. package/build/esm/components/QueryResultsTable/i18n/dicts.js.map +1 -0
  424. package/build/esm/components/QueryResultsTable/i18n/en.json +5 -0
  425. package/build/esm/components/QueryResultsTable/i18n/index.d.ts +6 -0
  426. package/build/esm/components/QueryResultsTable/i18n/index.js +4 -0
  427. package/build/esm/components/QueryResultsTable/i18n/index.js.map +1 -0
  428. package/build/esm/components/QueryResultsTable/i18n/ru.json +5 -0
  429. package/build/esm/components/QueryResultsTable/index.d.ts +3 -0
  430. package/build/esm/components/QueryResultsTable/index.js +3 -0
  431. package/build/esm/components/QueryResultsTable/index.js.map +1 -0
  432. package/build/esm/components/QueryResultsTable/internal/QueryResultCell.d.ts +11 -0
  433. package/build/esm/components/QueryResultsTable/internal/QueryResultCell.js +71 -0
  434. package/build/esm/components/QueryResultsTable/internal/QueryResultCell.js.map +1 -0
  435. package/build/esm/components/index.d.ts +5 -0
  436. package/build/esm/components/index.js +4 -0
  437. package/build/esm/components/index.js.map +1 -1
  438. package/build/esm/helpers/createUuid.d.ts +1 -0
  439. package/build/esm/helpers/createUuid.js +6 -0
  440. package/build/esm/helpers/createUuid.js.map +1 -0
  441. package/build/esm/helpers/isObjectEqual.d.ts +1 -0
  442. package/build/esm/helpers/isObjectEqual.js +23 -0
  443. package/build/esm/helpers/isObjectEqual.js.map +1 -0
  444. package/build/esm/helpers/useDebouncedValue.d.ts +2 -0
  445. package/build/esm/helpers/useDebouncedValue.js +21 -0
  446. package/build/esm/helpers/useDebouncedValue.js.map +1 -0
  447. package/build/esm/index.d.ts +3 -0
  448. package/build/esm/index.js +3 -0
  449. package/build/esm/index.js.map +1 -1
  450. package/build/esm/modules/Attachments/Attachments.css +8 -0
  451. package/build/esm/modules/Attachments/Attachments.css.map +1 -0
  452. package/build/esm/modules/Attachments/Attachments.d.ts +22 -0
  453. package/build/esm/modules/Attachments/Attachments.js +373 -0
  454. package/build/esm/modules/Attachments/Attachments.js.map +1 -0
  455. package/build/esm/modules/Attachments/Attachments.scss +10 -0
  456. package/build/esm/modules/Attachments/Attachments.stories.d.ts +41 -0
  457. package/build/esm/modules/Attachments/Attachments.stories.js +115 -0
  458. package/build/esm/modules/Attachments/Attachments.stories.js.map +1 -0
  459. package/build/esm/modules/Attachments/i18n/dicts.d.ts +13 -0
  460. package/build/esm/modules/Attachments/i18n/dicts.js +7 -0
  461. package/build/esm/modules/Attachments/i18n/dicts.js.map +1 -0
  462. package/build/esm/modules/Attachments/i18n/en.json +5 -0
  463. package/build/esm/modules/Attachments/i18n/index.d.ts +6 -0
  464. package/build/esm/modules/Attachments/i18n/index.js +4 -0
  465. package/build/esm/modules/Attachments/i18n/index.js.map +1 -0
  466. package/build/esm/modules/Attachments/i18n/ru.json +5 -0
  467. package/build/esm/modules/Attachments/index.d.ts +2 -0
  468. package/build/esm/modules/Attachments/index.js +2 -0
  469. package/build/esm/modules/Attachments/index.js.map +1 -0
  470. package/build/esm/modules/NavigationPreview/NavigationPreview.css +7 -1
  471. package/build/esm/modules/NavigationPreview/NavigationPreview.css.map +1 -1
  472. package/build/esm/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
  473. package/build/esm/modules/NavigationPreview/NavigationPreview.js +38 -8
  474. package/build/esm/modules/NavigationPreview/NavigationPreview.js.map +1 -1
  475. package/build/esm/modules/NavigationPreview/NavigationPreview.scss +25 -17
  476. package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
  477. package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js +24 -0
  478. package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
  479. package/build/esm/modules/NavigationPreview/story/mockData.d.ts +2 -2
  480. package/build/esm/modules/NavigationPreview/story/mockData.js +16 -4
  481. package/build/esm/modules/NavigationPreview/story/mockData.js.map +1 -1
  482. package/build/esm/modules/QueryStatistics/QueryStatistics.css +4 -0
  483. package/build/esm/modules/QueryStatistics/QueryStatistics.css.map +1 -0
  484. package/build/esm/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
  485. package/build/esm/modules/QueryStatistics/QueryStatistics.js +143 -0
  486. package/build/esm/modules/QueryStatistics/QueryStatistics.js.map +1 -0
  487. package/build/esm/modules/QueryStatistics/QueryStatistics.scss +3 -0
  488. package/build/esm/modules/QueryStatistics/helpers.d.ts +15 -0
  489. package/build/esm/modules/QueryStatistics/helpers.js +106 -0
  490. package/build/esm/modules/QueryStatistics/helpers.js.map +1 -0
  491. package/build/esm/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
  492. package/build/esm/modules/QueryStatistics/i18n/dicts.js +7 -0
  493. package/build/esm/modules/QueryStatistics/i18n/dicts.js.map +1 -0
  494. package/build/esm/modules/QueryStatistics/i18n/en.json +16 -0
  495. package/build/esm/modules/QueryStatistics/i18n/index.d.ts +6 -0
  496. package/build/esm/modules/QueryStatistics/i18n/index.js +4 -0
  497. package/build/esm/modules/QueryStatistics/i18n/index.js.map +1 -0
  498. package/build/esm/modules/QueryStatistics/i18n/ru.json +16 -0
  499. package/build/esm/modules/QueryStatistics/index.d.ts +2 -0
  500. package/build/esm/modules/QueryStatistics/index.js +2 -0
  501. package/build/esm/modules/QueryStatistics/index.js.map +1 -0
  502. package/build/esm/modules/QueryStatistics/internal/MetricCell.css +36 -0
  503. package/build/esm/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
  504. package/build/esm/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
  505. package/build/esm/modules/QueryStatistics/internal/MetricCell.js +114 -0
  506. package/build/esm/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
  507. package/build/esm/modules/QueryStatistics/internal/MetricCell.scss +12 -0
  508. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
  509. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
  510. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
  511. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js +132 -0
  512. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
  513. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.scss +8 -0
  514. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
  515. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
  516. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
  517. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +48 -0
  518. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
  519. package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.scss +1 -0
  520. package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
  521. package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.js +105 -0
  522. package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.js.map +1 -0
  523. package/build/esm/modules/index.d.ts +3 -0
  524. package/build/esm/modules/index.js +2 -0
  525. package/build/esm/modules/index.js.map +1 -1
  526. package/build/esm/types/declarations.d.ts +10 -0
  527. package/build/esm/types/errorTree.d.ts +23 -0
  528. package/build/esm/types/errorTree.js +2 -0
  529. package/build/esm/types/errorTree.js.map +1 -0
  530. package/build/esm/types/navigation.d.ts +8 -1
  531. package/build/esm/types/navigation.js.map +1 -1
  532. package/build/esm/types/queryResults.d.ts +34 -0
  533. package/build/esm/types/queryResults.js +2 -0
  534. package/build/esm/types/queryResults.js.map +1 -0
  535. package/build/esm/types/queryStatistics.d.ts +54 -0
  536. package/build/esm/types/queryStatistics.js +2 -0
  537. package/build/esm/types/queryStatistics.js.map +1 -0
  538. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.stories.js +40 -35
  539. package/build/esm/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
  540. package/build/esm/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
  541. package/build/esm/widgets/QueryResults/QueryResults.css +19 -0
  542. package/build/esm/widgets/QueryResults/QueryResults.css.map +1 -0
  543. package/build/esm/widgets/QueryResults/QueryResults.d.ts +23 -0
  544. package/build/esm/widgets/QueryResults/QueryResults.js +111 -0
  545. package/build/esm/widgets/QueryResults/QueryResults.js.map +1 -0
  546. package/build/esm/widgets/QueryResults/QueryResults.scss +25 -0
  547. package/build/esm/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
  548. package/build/esm/widgets/QueryResults/QueryResults.stories.js +191 -0
  549. package/build/esm/widgets/QueryResults/QueryResults.stories.js.map +1 -0
  550. package/build/esm/widgets/QueryResults/i18n/dicts.d.ts +25 -0
  551. package/build/esm/widgets/QueryResults/i18n/dicts.js +7 -0
  552. package/build/esm/widgets/QueryResults/i18n/dicts.js.map +1 -0
  553. package/build/esm/widgets/QueryResults/i18n/en.json +10 -0
  554. package/build/esm/widgets/QueryResults/i18n/index.d.ts +6 -0
  555. package/build/esm/widgets/QueryResults/i18n/index.js +4 -0
  556. package/build/esm/widgets/QueryResults/i18n/index.js.map +1 -0
  557. package/build/esm/widgets/QueryResults/i18n/ru.json +12 -0
  558. package/build/esm/widgets/QueryResults/index.d.ts +2 -0
  559. package/build/esm/widgets/QueryResults/index.js +2 -0
  560. package/build/esm/widgets/QueryResults/index.js.map +1 -0
  561. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
  562. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js +41 -0
  563. package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -0
  564. package/build/esm/widgets/index.d.ts +2 -0
  565. package/build/esm/widgets/index.js +1 -0
  566. package/build/esm/widgets/index.js.map +1 -1
  567. package/package.json +1 -1
  568. package/plans/styles-rules.md +137 -0
  569. package/src/components/AttachmentList/AttachmentList.scss +25 -0
  570. package/src/components/AttachmentList/AttachmentList.stories.tsx +243 -0
  571. package/src/components/AttachmentList/AttachmentList.tsx +67 -0
  572. package/src/components/AttachmentList/helpers/getIconByAttachmentName.ts +36 -0
  573. package/src/components/AttachmentList/helpers/objectLinkValidator.ts +40 -0
  574. package/src/components/AttachmentList/helpers/stringRequiredValidator.ts +24 -0
  575. package/src/components/AttachmentList/hooks/useKeyDownFormControl.ts +22 -0
  576. package/src/components/AttachmentList/hooks/useLabelRef.ts +25 -0
  577. package/src/components/AttachmentList/i18n/dicts.ts +4 -0
  578. package/src/components/AttachmentList/i18n/en.json +10 -0
  579. package/src/components/AttachmentList/i18n/index.ts +5 -0
  580. package/src/components/AttachmentList/i18n/ru.json +10 -0
  581. package/src/components/AttachmentList/index.ts +4 -0
  582. package/src/components/AttachmentList/internal/AttachmentItem/AttachmentItem.scss +23 -0
  583. package/src/components/AttachmentList/internal/AttachmentItem/AttachmentItem.tsx +75 -0
  584. package/src/components/AttachmentList/internal/AttachmentItem/index.ts +2 -0
  585. package/src/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.tsx +21 -0
  586. package/src/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.scss +21 -0
  587. package/src/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.tsx +194 -0
  588. package/src/components/AttachmentList/internal/EditAttachmentItem/FileEdit.tsx +92 -0
  589. package/src/components/AttachmentList/internal/EditAttachmentItem/index.ts +4 -0
  590. package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.scss +5 -0
  591. package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.tsx +30 -0
  592. package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.tsx +72 -0
  593. package/src/components/AttachmentListPlaceholder/assets/empty-attachments.svg +14 -0
  594. package/src/components/AttachmentListPlaceholder/i18n/dicts.ts +4 -0
  595. package/src/components/AttachmentListPlaceholder/i18n/en.json +7 -0
  596. package/src/components/AttachmentListPlaceholder/i18n/index.ts +5 -0
  597. package/src/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
  598. package/src/components/AttachmentListPlaceholder/index.ts +2 -0
  599. package/src/components/DataTable/DataTable.scss +18 -26
  600. package/src/components/DataTable/DataTable.tsx +23 -4
  601. package/src/components/ErrorTree/ErrorTree.stories.tsx +94 -0
  602. package/src/components/ErrorTree/ErrorTree.tsx +30 -0
  603. package/src/components/ErrorTree/helpers/formatAttributes.ts +9 -0
  604. package/src/components/ErrorTree/helpers/getIntermediateChain.ts +21 -0
  605. package/src/components/ErrorTree/i18n/dicts.ts +4 -0
  606. package/src/components/ErrorTree/i18n/en.json +11 -0
  607. package/src/components/ErrorTree/i18n/index.ts +5 -0
  608. package/src/components/ErrorTree/i18n/ru.json +13 -0
  609. package/src/components/ErrorTree/index.ts +1 -0
  610. package/src/components/ErrorTree/internal/ErrorTreeChildren.scss +5 -0
  611. package/src/components/ErrorTree/internal/ErrorTreeChildren.tsx +25 -0
  612. package/src/components/ErrorTree/internal/ErrorTreeNode.scss +95 -0
  613. package/src/components/ErrorTree/internal/ErrorTreeNode.tsx +178 -0
  614. package/src/components/ErrorTree/internal/IntermediateMessages.scss +13 -0
  615. package/src/components/ErrorTree/internal/IntermediateMessages.tsx +127 -0
  616. package/src/components/Icons/LogoCPlusPlus.tsx +34 -0
  617. package/src/components/Icons/index.ts +1 -0
  618. package/src/components/QueryResultsTable/QueryResultsTable.scss +65 -0
  619. package/src/components/QueryResultsTable/QueryResultsTable.tsx +112 -0
  620. package/src/components/QueryResultsTable/helpers/formatQueryResultType.ts +76 -0
  621. package/src/components/QueryResultsTable/helpers/formatQueryResultValue.ts +38 -0
  622. package/src/components/QueryResultsTable/i18n/dicts.ts +4 -0
  623. package/src/components/QueryResultsTable/i18n/en.json +5 -0
  624. package/src/components/QueryResultsTable/i18n/index.ts +4 -0
  625. package/src/components/QueryResultsTable/i18n/ru.json +5 -0
  626. package/src/components/QueryResultsTable/index.ts +3 -0
  627. package/src/components/QueryResultsTable/internal/QueryResultCell.tsx +63 -0
  628. package/src/components/index.ts +5 -0
  629. package/src/helpers/createUuid.ts +3 -0
  630. package/src/helpers/isObjectEqual.ts +15 -0
  631. package/src/helpers/useDebouncedValue.ts +14 -0
  632. package/src/index.ts +3 -0
  633. package/src/modules/Attachments/Attachments.scss +10 -0
  634. package/src/modules/Attachments/Attachments.stories.tsx +112 -0
  635. package/src/modules/Attachments/Attachments.tsx +336 -0
  636. package/src/modules/Attachments/i18n/dicts.ts +4 -0
  637. package/src/modules/Attachments/i18n/en.json +5 -0
  638. package/src/modules/Attachments/i18n/index.ts +5 -0
  639. package/src/modules/Attachments/i18n/ru.json +5 -0
  640. package/src/modules/Attachments/index.ts +2 -0
  641. package/src/modules/NavigationPreview/NavigationPreview.scss +25 -17
  642. package/src/modules/NavigationPreview/NavigationPreview.tsx +62 -17
  643. package/src/modules/NavigationPreview/story/NavigationPreview.stories.tsx +26 -1
  644. package/src/modules/NavigationPreview/story/mockData.ts +10 -5
  645. package/src/modules/QueryStatistics/QueryStatistics.scss +3 -0
  646. package/src/modules/QueryStatistics/QueryStatistics.tsx +125 -0
  647. package/src/modules/QueryStatistics/helpers.ts +96 -0
  648. package/src/modules/QueryStatistics/i18n/dicts.ts +4 -0
  649. package/src/modules/QueryStatistics/i18n/en.json +16 -0
  650. package/src/modules/QueryStatistics/i18n/index.ts +4 -0
  651. package/src/modules/QueryStatistics/i18n/ru.json +16 -0
  652. package/src/modules/QueryStatistics/index.ts +13 -0
  653. package/src/modules/QueryStatistics/internal/MetricCell.scss +12 -0
  654. package/src/modules/QueryStatistics/internal/MetricCell.tsx +99 -0
  655. package/src/modules/QueryStatistics/internal/QueryStatisticsTable.scss +8 -0
  656. package/src/modules/QueryStatistics/internal/QueryStatisticsTable.tsx +135 -0
  657. package/src/modules/QueryStatistics/internal/QueryStatisticsToolbar.scss +1 -0
  658. package/src/modules/QueryStatistics/internal/QueryStatisticsToolbar.tsx +61 -0
  659. package/src/modules/QueryStatistics/story/QueryStatistics.stories.tsx +71 -0
  660. package/src/modules/index.ts +14 -0
  661. package/src/types/declarations.d.ts +10 -0
  662. package/src/types/errorTree.ts +30 -0
  663. package/src/types/navigation.ts +11 -1
  664. package/src/types/queryResults.ts +48 -0
  665. package/src/types/queryStatistics.ts +67 -0
  666. package/src/widgets/QueriesNavigation/QueriesNavigation.stories.tsx +42 -33
  667. package/src/widgets/QueryResults/QueryResults.scss +25 -0
  668. package/src/widgets/QueryResults/QueryResults.stories.tsx +155 -0
  669. package/src/widgets/QueryResults/QueryResults.tsx +121 -0
  670. package/src/widgets/QueryResults/i18n/dicts.ts +4 -0
  671. package/src/widgets/QueryResults/i18n/en.json +10 -0
  672. package/src/widgets/QueryResults/i18n/index.ts +4 -0
  673. package/src/widgets/QueryResults/i18n/ru.json +12 -0
  674. package/src/widgets/QueryResults/index.ts +2 -0
  675. package/src/widgets/QueryResults/internal/QueryResultsSchema.tsx +41 -0
  676. package/src/widgets/index.ts +2 -0
@@ -0,0 +1,53 @@
1
+ .qp-query-results-table {
2
+ --data-table-border-color: var(--g-color-line-generic);
3
+ min-width: 0;
4
+ overflow-x: auto;
5
+ }
6
+ .qp-query-results-table .data-table__table-wrapper {
7
+ display: inline-block;
8
+ min-width: 100%;
9
+ vertical-align: top;
10
+ }
11
+ .qp-query-results-table .data-table__th,
12
+ .qp-query-results-table .data-table__td {
13
+ max-width: 700px;
14
+ vertical-align: top;
15
+ }
16
+ .qp-query-results-table .data-table__td {
17
+ position: relative;
18
+ white-space: normal;
19
+ }
20
+ .qp-query-results-table__header {
21
+ display: inline-block;
22
+ }
23
+ .qp-query-results-table__cell {
24
+ display: block;
25
+ padding-right: var(--g-spacing-5);
26
+ font-family: var(--g-font-family-monospace);
27
+ font-size: var(--g-text-code-2-font-size);
28
+ line-height: var(--g-text-code-2-line-height);
29
+ word-wrap: anywhere;
30
+ }
31
+ .qp-query-results-table__cell:hover .qp-query-results-table__cell-actions, .qp-query-results-table__cell:focus-within .qp-query-results-table__cell-actions {
32
+ opacity: 1;
33
+ }
34
+ .qp-query-results-table__cell .unipika {
35
+ display: inline;
36
+ }
37
+ .qp-query-results-table__cell-actions {
38
+ position: absolute;
39
+ top: var(--g-spacing-1);
40
+ right: var(--g-spacing-1);
41
+ opacity: 0;
42
+ }
43
+ .qp-query-results-table__show-more {
44
+ display: block;
45
+ margin-top: var(--g-spacing-1);
46
+ }
47
+ .qp-query-results-table__format-error {
48
+ color: var(--g-color-text-danger);
49
+ }
50
+ .qp-query-results-table__error {
51
+ display: block;
52
+ }
53
+ /*# sourceMappingURL=QueryResultsTable.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["QueryResultsTable.scss"],"names":[],"mappings":"AAAA;EACI,sDAAA;EAEA,YAAA;EACA,gBAAA;AAAJ;AAEI;EACI,qBAAA;EACA,eAAA;EACA,mBAAA;AAAR;AAGI;;EAEI,gBAAA;EACA,mBAAA;AADR;AAII;EACI,kBAAA;EACA,mBAAA;AAFR;AAKI;EACI,qBAAA;AAHR;AAMI;EACI,cAAA;EACA,iCAAA;EACA,2CAAA;EACA,yCAAA;EACA,6CAAA;EACA,mBAAA;AAJR;AAMQ;EAEI,UAAA;AALZ;AAQQ;EACI,eAAA;AANZ;AAUI;EACI,kBAAA;EACA,uBAAA;EACA,yBAAA;EACA,UAAA;AARR;AAWI;EACI,cAAA;EACA,8BAAA;AATR;AAYI;EACI,iCAAA;AAVR;AAaI;EACI,cAAA;AAXR","file":"QueryResultsTable.css","sourcesContent":[".qp-query-results-table {\n --data-table-border-color: var(--g-color-line-generic);\n\n min-width: 0;\n overflow-x: auto;\n\n .data-table__table-wrapper {\n display: inline-block;\n min-width: 100%;\n vertical-align: top;\n }\n\n .data-table__th,\n .data-table__td {\n max-width: 700px;\n vertical-align: top;\n }\n\n .data-table__td {\n position: relative;\n white-space: normal;\n }\n\n &__header {\n display: inline-block;\n }\n\n &__cell {\n display: block;\n padding-right: var(--g-spacing-5);\n font-family: var(--g-font-family-monospace);\n font-size: var(--g-text-code-2-font-size);\n line-height: var(--g-text-code-2-line-height);\n overflow-wrap: anywhere;\n\n &:hover .qp-query-results-table__cell-actions,\n &:focus-within .qp-query-results-table__cell-actions {\n opacity: 1;\n }\n\n .unipika {\n display: inline;\n }\n }\n\n &__cell-actions {\n position: absolute;\n top: var(--g-spacing-1);\n right: var(--g-spacing-1);\n opacity: 0;\n }\n\n &__show-more {\n display: block;\n margin-top: var(--g-spacing-1);\n }\n\n &__format-error {\n color: var(--g-color-text-danger);\n }\n\n &__error {\n display: block;\n }\n}\n"],"sourceRoot":""}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { type Settings } from '@gravity-ui/react-data-table';
3
+ import type { EmptyContentVariant } from '../EmptyContent';
4
+ import type { QueryResultColumn, QueryResultFormatterSettings } from '../../types/queryResults';
5
+ import '@gravity-ui/unipika/dist/unipika.css';
6
+ import './QueryResultsTable.scss';
7
+ export type QueryResultsTableProps<TRow extends Record<string, unknown>> = {
8
+ columns: Array<QueryResultColumn<TRow>>;
9
+ /** Values use the YQL wire representation consumed by @gravity-ui/unipika. */
10
+ rows: TRow[];
11
+ loading?: boolean;
12
+ loaded?: boolean;
13
+ errorContent?: React.ReactNode;
14
+ rowKey?: (row: TRow, index: number) => string | number;
15
+ formatterSettings?: QueryResultFormatterSettings;
16
+ maxVisibleLines?: number;
17
+ emptyVariant?: EmptyContentVariant;
18
+ displayIndices?: boolean;
19
+ stripedRows?: boolean;
20
+ /** Set to false when the surrounding layout does not need a sticky header. */
21
+ stickyHead?: Settings['stickyHead'] | false;
22
+ className?: string;
23
+ };
24
+ export declare function QueryResultsTable<TRow extends Record<string, unknown>>({ columns, rows, loading, loaded, errorContent, rowKey, formatterSettings, maxVisibleLines, emptyVariant, displayIndices, stripedRows, stickyHead, className, }: QueryResultsTableProps<TRow>): React.JSX.Element;
@@ -0,0 +1,96 @@
1
+ import "core-js/modules/es.array.map.js";
2
+ import "core-js/modules/es.function.name.js";
3
+ import "core-js/modules/es.iterator.constructor.js";
4
+ import "core-js/modules/es.iterator.map.js";
5
+ import "core-js/modules/es.object.to-string.js";
6
+ import React, { useMemo } from 'react';
7
+ import BaseDataTable from '@gravity-ui/react-data-table';
8
+ import { Text, Tooltip } from '@gravity-ui/uikit';
9
+ import cn from 'bem-cn-lite';
10
+ import { DataTable } from "../DataTable";
11
+ import { formatQueryResultType, isQueryResultNumericType } from "./helpers/formatQueryResultType";
12
+ import { QueryResultCell } from "./internal/QueryResultCell";
13
+ import '@gravity-ui/unipika/dist/unipika.css';
14
+ import "./QueryResultsTable.css";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ var block = cn('qp-query-results-table');
17
+ var DEFAULT_MAX_VISIBLE_LINES = 5;
18
+ export function QueryResultsTable(_ref) {
19
+ var columns = _ref.columns,
20
+ rows = _ref.rows,
21
+ loading = _ref.loading,
22
+ loaded = _ref.loaded,
23
+ errorContent = _ref.errorContent,
24
+ rowKey = _ref.rowKey,
25
+ formatterSettings = _ref.formatterSettings,
26
+ _ref$maxVisibleLines = _ref.maxVisibleLines,
27
+ maxVisibleLines = _ref$maxVisibleLines === void 0 ? DEFAULT_MAX_VISIBLE_LINES : _ref$maxVisibleLines,
28
+ emptyVariant = _ref.emptyVariant,
29
+ _ref$displayIndices = _ref.displayIndices,
30
+ displayIndices = _ref$displayIndices === void 0 ? true : _ref$displayIndices,
31
+ _ref$stripedRows = _ref.stripedRows,
32
+ stripedRows = _ref$stripedRows === void 0 ? true : _ref$stripedRows,
33
+ _ref$stickyHead = _ref.stickyHead,
34
+ stickyHead = _ref$stickyHead === void 0 ? BaseDataTable.MOVING : _ref$stickyHead,
35
+ className = _ref.className;
36
+ var resolvedStickyHead = stickyHead === false ? undefined : stickyHead;
37
+ var tableColumns = useMemo(function () {
38
+ return columns.map(function (column) {
39
+ var _column$align, _column$header;
40
+ var type = formatQueryResultType(column.type);
41
+ var align = (_column$align = column.align) !== null && _column$align !== void 0 ? _column$align : isQueryResultNumericType(column.type) ? BaseDataTable.LEFT : undefined;
42
+ return {
43
+ name: column.name,
44
+ width: column.width,
45
+ align: align,
46
+ sortable: false,
47
+ headerTitle: type,
48
+ header: /*#__PURE__*/_jsx(Tooltip, {
49
+ content: type,
50
+ children: /*#__PURE__*/_jsx("span", {
51
+ className: block('header'),
52
+ children: (_column$header = column.header) !== null && _column$header !== void 0 ? _column$header : column.name
53
+ })
54
+ }),
55
+ render: function render(_ref2) {
56
+ var row = _ref2.row,
57
+ index = _ref2.index;
58
+ return /*#__PURE__*/_jsx(QueryResultCell, {
59
+ row: row,
60
+ value: row[column.name],
61
+ index: index,
62
+ column: column,
63
+ formatterSettings: formatterSettings,
64
+ maxVisibleLines: maxVisibleLines
65
+ });
66
+ }
67
+ };
68
+ });
69
+ }, [columns, formatterSettings, maxVisibleLines]);
70
+ if (errorContent) {
71
+ return /*#__PURE__*/_jsx(Text, {
72
+ color: "danger",
73
+ className: block('error', className),
74
+ children: errorContent
75
+ });
76
+ }
77
+ return /*#__PURE__*/_jsx("div", {
78
+ className: block(null, className),
79
+ children: /*#__PURE__*/_jsx(DataTable, {
80
+ columns: tableColumns,
81
+ data: rows,
82
+ loading: loading,
83
+ loaded: loaded !== null && loaded !== void 0 ? loaded : !loading,
84
+ emptyVariant: emptyVariant,
85
+ rowKey: rowKey,
86
+ settings: {
87
+ displayIndices: displayIndices,
88
+ stripedRows: stripedRows,
89
+ sortable: false,
90
+ stickyHead: resolvedStickyHead,
91
+ syncHeadOnResize: Boolean(resolvedStickyHead)
92
+ }
93
+ })
94
+ });
95
+ }
96
+ // #sourceMappingURL=QueryResultsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","BaseDataTable","Text","Tooltip","cn","DataTable","formatQueryResultType","isQueryResultNumericType","QueryResultCell","jsx","_jsx","block","DEFAULT_MAX_VISIBLE_LINES","QueryResultsTable","_ref","columns","rows","loading","loaded","errorContent","rowKey","formatterSettings","_ref$maxVisibleLines","maxVisibleLines","emptyVariant","_ref$displayIndices","displayIndices","_ref$stripedRows","stripedRows","_ref$stickyHead","stickyHead","MOVING","className","resolvedStickyHead","undefined","tableColumns","map","column","_column$align","_column$header","type","align","LEFT","name","width","sortable","headerTitle","header","content","children","render","_ref2","row","index","value","color","data","settings","syncHeadOnResize","Boolean"],"sources":["QueryResultsTable.tsx"],"sourcesContent":["import React, {useMemo} from 'react';\nimport BaseDataTable, {type Column, type Settings} from '@gravity-ui/react-data-table';\nimport {Text, Tooltip} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {DataTable} from '../DataTable';\nimport type {EmptyContentVariant} from '../EmptyContent';\nimport type {QueryResultColumn, QueryResultFormatterSettings} from '../../types/queryResults';\nimport {formatQueryResultType, isQueryResultNumericType} from './helpers/formatQueryResultType';\nimport {QueryResultCell} from './internal/QueryResultCell';\n\nimport '@gravity-ui/unipika/dist/unipika.css';\nimport './QueryResultsTable.scss';\n\nconst block = cn('qp-query-results-table');\nconst DEFAULT_MAX_VISIBLE_LINES = 5;\n\nexport type QueryResultsTableProps<TRow extends Record<string, unknown>> = {\n columns: Array<QueryResultColumn<TRow>>;\n /** Values use the YQL wire representation consumed by @gravity-ui/unipika. */\n rows: TRow[];\n loading?: boolean;\n loaded?: boolean;\n errorContent?: React.ReactNode;\n rowKey?: (row: TRow, index: number) => string | number;\n formatterSettings?: QueryResultFormatterSettings;\n maxVisibleLines?: number;\n emptyVariant?: EmptyContentVariant;\n displayIndices?: boolean;\n stripedRows?: boolean;\n /** Set to false when the surrounding layout does not need a sticky header. */\n stickyHead?: Settings['stickyHead'] | false;\n className?: string;\n};\n\nexport function QueryResultsTable<TRow extends Record<string, unknown>>({\n columns,\n rows,\n loading,\n loaded,\n errorContent,\n rowKey,\n formatterSettings,\n maxVisibleLines = DEFAULT_MAX_VISIBLE_LINES,\n emptyVariant,\n displayIndices = true,\n stripedRows = true,\n stickyHead = BaseDataTable.MOVING,\n className,\n}: QueryResultsTableProps<TRow>) {\n const resolvedStickyHead = stickyHead === false ? undefined : stickyHead;\n const tableColumns = useMemo<Array<Column<TRow>>>(\n () =>\n columns.map((column) => {\n const type = formatQueryResultType(column.type);\n const align =\n column.align ??\n (isQueryResultNumericType(column.type) ? BaseDataTable.LEFT : undefined);\n\n return {\n name: column.name,\n width: column.width,\n align,\n sortable: false,\n headerTitle: type,\n header: (\n <Tooltip content={type}>\n <span className={block('header')}>{column.header ?? column.name}</span>\n </Tooltip>\n ),\n render: ({row, index}) => (\n <QueryResultCell\n row={row}\n value={row[column.name]}\n index={index}\n column={column}\n formatterSettings={formatterSettings}\n maxVisibleLines={maxVisibleLines}\n />\n ),\n };\n }),\n [columns, formatterSettings, maxVisibleLines],\n );\n\n if (errorContent) {\n return (\n <Text color=\"danger\" className={block('error', className)}>\n {errorContent}\n </Text>\n );\n }\n\n return (\n <div className={block(null, className)}>\n <DataTable<TRow>\n columns={tableColumns}\n data={rows}\n loading={loading}\n loaded={loaded ?? !loading}\n emptyVariant={emptyVariant}\n rowKey={rowKey}\n settings={{\n displayIndices,\n stripedRows,\n sortable: false,\n stickyHead: resolvedStickyHead,\n syncHeadOnResize: Boolean(resolvedStickyHead),\n }}\n />\n </div>\n );\n}\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,aAAa,MAAoC,8BAA8B;AACtF,SAAQC,IAAI,EAAEC,OAAO,QAAO,mBAAmB;AAC/C,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,SAAS;AAGjB,SAAQC,qBAAqB,EAAEC,wBAAwB;AACvD,SAAQC,eAAe;AAEvB,OAAO,sCAAsC;AAC7C;AAAkC,SAAAC,GAAA,IAAAC,IAAA;AAElC,IAAMC,KAAK,GAAGP,EAAE,CAAC,wBAAwB,CAAC;AAC1C,IAAMQ,yBAAyB,GAAG,CAAC;AAoBnC,OAAO,SAASC,iBAAiBA,CAAAC,IAAA,EAcA;EAAA,IAb7BC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,MAAM,GAAAN,IAAA,CAANM,MAAM;IACNC,iBAAiB,GAAAP,IAAA,CAAjBO,iBAAiB;IAAAC,oBAAA,GAAAR,IAAA,CACjBS,eAAe;IAAfA,eAAe,GAAAD,oBAAA,cAAGV,yBAAyB,GAAAU,oBAAA;IAC3CE,YAAY,GAAAV,IAAA,CAAZU,YAAY;IAAAC,mBAAA,G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-color-line-generic);
3
+
4
+ min-width: 0;
5
+ overflow-x: auto;
6
+
7
+ .data-table__table-wrapper {
8
+ display: inline-block;
9
+ min-width: 100%;
10
+ vertical-align: top;
11
+ }
12
+
13
+ .data-table__th,
14
+ .data-table__td {
15
+ max-width: 700px;
16
+ vertical-align: top;
17
+ }
18
+
19
+ .data-table__td {
20
+ position: relative;
21
+ white-space: normal;
22
+ }
23
+
24
+ &__header {
25
+ display: inline-block;
26
+ }
27
+
28
+ &__cell {
29
+ display: block;
30
+ padding-right: var(--g-spacing-5);
31
+ font-family: var(--g-font-family-monospace);
32
+ font-size: var(--g-text-code-2-font-size);
33
+ line-height: var(--g-text-code-2-line-height);
34
+ overflow-wrap: anywhere;
35
+
36
+ &:hover .qp-query-results-table__cell-actions,
37
+ &:focus-within .qp-query-results-table__cell-actions {
38
+ opacity: 1;
39
+ }
40
+
41
+ .unipika {
42
+ display: inline;
43
+ }
44
+ }
45
+
46
+ &__cell-actions {
47
+ position: absolute;
48
+ top: var(--g-spacing-1);
49
+ right: var(--g-spacing-1);
50
+ opacity: 0;
51
+ }
52
+
53
+ &__show-more {
54
+ display: block;
55
+ margin-top: var(--g-spacing-1);
56
+ }
57
+
58
+ &__format-error {
59
+ color: var(--g-color-text-danger);
60
+ }
61
+
62
+ &__error {
63
+ display: block;
64
+ }
65
+ }
@@ -0,0 +1,3 @@
1
+ import type { QueryResultDataType } from '../../../types/queryResults';
2
+ export declare function formatQueryResultType(type: QueryResultDataType): string;
3
+ export declare function isQueryResultNumericType(type: QueryResultDataType): boolean;
@@ -0,0 +1,82 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
+ import _arrayLikeToArray from "@babel/runtime/helpers/arrayLikeToArray";
3
+ import _toArray from "@babel/runtime/helpers/toArray";
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.is-array.js";
7
+ import "core-js/modules/es.array.iterator.js";
8
+ import "core-js/modules/es.array.join.js";
9
+ import "core-js/modules/es.array.map.js";
10
+ import "core-js/modules/es.array.slice.js";
11
+ import "core-js/modules/es.iterator.constructor.js";
12
+ import "core-js/modules/es.iterator.map.js";
13
+ import "core-js/modules/es.object.to-string.js";
14
+ import "core-js/modules/es.regexp.exec.js";
15
+ import "core-js/modules/es.set.js";
16
+ import "core-js/modules/es.set.difference.v2.js";
17
+ import "core-js/modules/es.set.intersection.v2.js";
18
+ import "core-js/modules/es.set.is-disjoint-from.v2.js";
19
+ import "core-js/modules/es.set.is-subset-of.v2.js";
20
+ import "core-js/modules/es.set.is-superset-of.v2.js";
21
+ import "core-js/modules/es.set.symmetric-difference.v2.js";
22
+ import "core-js/modules/es.set.union.v2.js";
23
+ import "core-js/modules/es.string.iterator.js";
24
+ import "core-js/modules/es.string.replace.js";
25
+ import "core-js/modules/web.dom-collections.iterator.js";
26
+ function isQueryResultDataType(value) {
27
+ return Array.isArray(value) && typeof value[0] === 'string';
28
+ }
29
+ function formatParameter(value) {
30
+ if (Array.isArray(value)) {
31
+ if (isQueryResultDataType(value)) {
32
+ return formatQueryResultType(value);
33
+ }
34
+ return value.map(formatParameter).join(', ');
35
+ }
36
+ return String(value);
37
+ }
38
+ export function formatQueryResultType(type) {
39
+ var _type = _toArray(type),
40
+ name = _type[0],
41
+ params = _arrayLikeToArray(_type).slice(1);
42
+ switch (name) {
43
+ case 'DataType':
44
+ return [params[0]].concat(_toConsumableArray(params.slice(1))).filter(Boolean).join(', ');
45
+ case 'OptionalType':
46
+ return "Optional<".concat(formatParameter(params[0]), ">");
47
+ case 'TaggedType':
48
+ return "Tagged<".concat(formatParameter(params[0]), ", ").concat(formatParameter(params[1]), ">");
49
+ case 'ListType':
50
+ case 'StreamType':
51
+ return "".concat(name.replace('Type', ''), "<").concat(formatParameter(params[0]), ">");
52
+ case 'DictType':
53
+ return "Dict<".concat(params.map(formatParameter).join(', '), ">");
54
+ case 'TupleType':
55
+ return "Tuple<".concat(formatParameter(params[0]), ">");
56
+ case 'StructType':
57
+ return "Struct<".concat(Array.isArray(params[0]) ? params[0].map(formatParameter).join(', ') : '', ">");
58
+ case 'VariantType':
59
+ return "Variant<".concat(formatParameter(params[0]), ">");
60
+ case 'PgType':
61
+ return "Pg<".concat(formatParameter(params[0]), ">");
62
+ default:
63
+ return params.length ? "".concat(name, "<").concat(params.map(formatParameter).join(', '), ">") : name;
64
+ }
65
+ }
66
+ var NUMERIC_TYPES = new Set(['Double', 'Float', 'Int64', 'Int32', 'Int16', 'Int8', 'Uint64', 'Uint32', 'Uint16', 'Uint8']);
67
+ export function isQueryResultNumericType(type) {
68
+ var _type2 = _toArray(type),
69
+ name = _type2[0],
70
+ params = _arrayLikeToArray(_type2).slice(1);
71
+ if (name === 'DataType') {
72
+ return typeof params[0] === 'string' && NUMERIC_TYPES.has(params[0]);
73
+ }
74
+ if (name === 'OptionalType') {
75
+ return isQueryResultDataType(params[0]) && isQueryResultNumericType(params[0]);
76
+ }
77
+ if (name === 'TaggedType') {
78
+ return isQueryResultDataType(params[1]) && isQueryResultNumericType(params[1]);
79
+ }
80
+ return false;
81
+ }
82
+ // #sourceMappingURL=formatQueryResultType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isQueryResultDataType","value","Array","isArray","formatParameter","formatQueryResultType","map","join","String","type","_type","_toArray","name","params","_arrayLikeToArray","slice","concat","_toConsumableArray","filter","Boolean","replace","length","NUMERIC_TYPES","Set","isQueryResultNumericType","_type2","has"],"sources":["formatQueryResultType.ts"],"sourcesContent":["import type {QueryResultDataType} from '../../../types/queryResults';\n\nfunction isQueryResultDataType(value: unknown): value is QueryResultDataType {\n return Array.isArray(value) && typeof value[0] === 'string';\n}\n\nfunction formatParameter(value: unknown): string {\n if (Array.isArray(value)) {\n if (isQueryResultDataType(value)) {\n return formatQueryResultType(value);\n }\n\n return value.map(formatParameter).join(', ');\n }\n\n return String(value);\n}\n\nexport function formatQueryResultType(type: QueryResultDataType): string {\n const [name, ...params] = type;\n\n switch (name) {\n case 'DataType':\n return [params[0], ...params.slice(1)].filter(Boolean).join(', ');\n case 'OptionalType':\n return `Optional<${formatParameter(params[0])}>`;\n case 'TaggedType':\n return `Tagged<${formatParameter(params[0])}, ${formatParameter(params[1])}>`;\n case 'ListType':\n case 'StreamType':\n return `${name.replace('Type', '')}<${formatParameter(params[0])}>`;\n case 'DictType':\n return `Dict<${params.map(formatParameter).join(', ')}>`;\n case 'TupleType':\n return `Tuple<${formatParameter(params[0])}>`;\n case 'StructType':\n return `Struct<${Array.isArray(params[0]) ? params[0].map(formatParameter).join(', ') : ''}>`;\n case 'VariantType':\n return `Variant<${formatParameter(params[0])}>`;\n case 'PgType':\n return `Pg<${formatParameter(params[0])}>`;\n default:\n return params.length ? `${name}<${params.map(formatParameter).join(', ')}>` : name;\n }\n}\n\nconst NUMERIC_TYPES = new Set([\n 'Double',\n 'Float',\n 'Int64',\n 'Int32',\n 'Int16',\n 'Int8',\n 'Uint64',\n 'Uint32',\n 'Uint16',\n 'Uint8',\n]);\n\nexport function isQueryResultNumericType(type: QueryResultDataType): boolean {\n const [name, ...params] = type;\n\n if (name === 'DataType') {\n return typeof params[0] === 'string' && NUMERIC_TYPES.has(params[0]);\n }\n\n if (name === 'OptionalType') {\n return isQueryResultDataType(params[0]) && isQueryResultNumericType(params[0]);\n }\n\n if (name === 'TaggedType') {\n return isQueryResultDataType(params[1]) && isQueryResultNumericType(params[1]);\n }\n\n return false;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAASA,qBAAqBA,CAACC,KAAc,EAAgC;EACzE,OAAOC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,IAAI,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ;AAC/D;AAEA,SAASG,eAAeA,CAACH,KAAc,EAAU;EAC7C,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACtB,IAAID,qBAAqB,CAACC,KAAK,CAAC,EAAE;MAC9B,OAAOI,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AM,CAAC,CAAC,CAAC,CAAC,IAAIW,wBAAwB,CAACX,MAAM,CAAC,CAAC,CAAC,CAAC;EAClF;EAEA,OAAO,KAAK;AAChB","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import type { QueryResultDataType, QueryResultFormatterSettings } from '../../../types/queryResults';
2
+ export type FormattedQueryResultValue = {
3
+ html: string;
4
+ text: string;
5
+ error: false;
6
+ } | {
7
+ html: '';
8
+ text: '';
9
+ error: true;
10
+ };
11
+ export declare function formatQueryResultValue(value: unknown, type: QueryResultDataType, settings?: QueryResultFormatterSettings): FormattedQueryResultValue;
@@ -0,0 +1,33 @@
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ import unipika from '@gravity-ui/unipika';
3
+ var formatter = unipika();
4
+ var DEFAULT_FORMATTER_SETTINGS = {
5
+ escapeWhitespace: false,
6
+ decodeUTF8: false,
7
+ binaryAsHex: true,
8
+ escapeYQLStrings: true,
9
+ omitStructNull: true
10
+ };
11
+ export function formatQueryResultValue(value, type, settings) {
12
+ var formatterSettings = _objectSpread(_objectSpread({}, DEFAULT_FORMATTER_SETTINGS), settings);
13
+ var input = [value, type];
14
+ try {
15
+ return {
16
+ html: formatter.formatFromYQL(input, _objectSpread(_objectSpread({}, formatterSettings), {}, {
17
+ asHTML: true
18
+ })),
19
+ text: formatter.formatFromYQL(input, _objectSpread(_objectSpread({}, formatterSettings), {}, {
20
+ asHTML: false,
21
+ maxStringSize: undefined
22
+ })),
23
+ error: false
24
+ };
25
+ } catch (_unused) {
26
+ return {
27
+ html: '',
28
+ text: '',
29
+ error: true
30
+ };
31
+ }
32
+ }
33
+ // #sourceMappingURL=formatQueryResultValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["unipika","formatter","DEFAULT_FORMATTER_SETTINGS","escapeWhitespace","decodeUTF8","binaryAsHex","escapeYQLStrings","omitStructNull","formatQueryResultValue","value","type","settings","formatterSettings","_objectSpread","input","html","formatFromYQL","asHTML","text","maxStringSize","undefined","error","_unused"],"sources":["formatQueryResultValue.ts"],"sourcesContent":["import unipika from '@gravity-ui/unipika';\nimport type {QueryResultDataType, QueryResultFormatterSettings} from '../../../types/queryResults';\n\nconst formatter = unipika();\n\nconst DEFAULT_FORMATTER_SETTINGS: QueryResultFormatterSettings = {\n escapeWhitespace: false,\n decodeUTF8: false,\n binaryAsHex: true,\n escapeYQLStrings: true,\n omitStructNull: true,\n};\n\nexport type FormattedQueryResultValue =\n {html: string; text: string; error: false} | {html: ''; text: ''; error: true};\n\nexport function formatQueryResultValue(\n value: unknown,\n type: QueryResultDataType,\n settings?: QueryResultFormatterSettings,\n): FormattedQueryResultValue {\n const formatterSettings = {...DEFAULT_FORMATTER_SETTINGS, ...settings};\n const input: [unknown, unknown] = [value, type];\n\n try {\n return {\n html: formatter.formatFromYQL(input, {...formatterSettings, asHTML: true}),\n text: formatter.formatFromYQL(input, {\n ...formatterSettings,\n asHTML: false,\n maxStringSize: undefined,\n }),\n error: false,\n };\n } catch {\n return {html: '', text: '', error: true};\n }\n}\n"],"mappings":";AAAA,OAAOA,OAAO,MAAM,qBAAqB;AAGzC,IAAMC,SAAS,GAAGD,OAAO,CAAC,CAAC;AAE3B,IAAME,0BAAwD,GAAG;EAC7DC,gBAAgB,EAAE,KAAK;EACvBC,UAAU,EAAE,KAAK;EACjBC,WAAW,EAAE,IAAI;EACjBC,gBAAgB,EAAE,IAAI;EACtBC,cAAc,EAAE;AACpB,CAAC;AAKD,OAAO,SAASC,sBAAsBA,CAClCC,KAAc,EACdC,IAAyB,EACzBC,QAAuC,EACd;EACzB,IAAMC,iBAAiB,GAAAC,aAAA,CAAAA,aAAA,KAAOX,0BAA0B,GAAKS,QAAQ,CAAC;EACtE,IAAMG,KAAyB,GAAG,CAACL,KAAK,EAAEC,IAAI,CAAC;EAE/C,IAAI;IACA,OAAO;MACHK,IAAI,EAAEd,SAAS,CAACe,aAAa,CAACF,KAAK,EAAAD,aAAA,CAAAA,aAAA,KAAMD,iBAAiB;QAAEK,MAAM,EAAE;MAAI,EAAC,CAAC;MAC1EC,IAAI,EAAEjB,SAAS,CAACe,aAAa,CAACF,KAAK,EAAAD,aAAA,CAAAA,aAAA,KAC5BD,iBAAiB;QACpBK,MAAM,EAAE,KAAK;QACbE,aAAa,EAAEC;MAAS,EAC3B,CAAC;MACFC,KAAK,EAAE;IACX,CAAC;EACL,CAAC,CAAC,OAAAC,OAAA,EAAM;IACJ,OAAO;MAACP,IAAI,EAAE,EAAE;MAAEG,IAAI,EAAE,EAAE;MAAEG,KAAK,EAAE;IAAI,CAAC;EAC5C;AACJ","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ en: {
3
+ "action_show-more": string;
4
+ "action_show-less": string;
5
+ "alert_format-value-error": string;
6
+ };
7
+ ru: {
8
+ "action_show-more": string;
9
+ "action_show-less": string;
10
+ "alert_format-value-error": string;
11
+ };
12
+ };
13
+ 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,5 @@
1
+ {
2
+ "action_show-more": "Show more",
3
+ "action_show-less": "Show less",
4
+ "alert_format-value-error": "Unable to format value"
5
+ }
@@ -0,0 +1,6 @@
1
+ declare const _default: ((key: "action_show-more" | "action_show-less" | "alert_format-value-error", params?: import("@gravity-ui/i18n").Params) => string) & {
2
+ keysetData: {
3
+ "qp:query-results-table": Record<"action_show-more" | "action_show-less" | "alert_format-value-error", 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:query-results-table', 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:query-results-table', dicts);\n"],"mappings":"AAAA,SAAQA,aAAa;AACrB,OAAOC,KAAK;AAEZ,eAAeD,aAAa,CAAC,wBAAwB,EAAEC,KAAK,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ {
2
+ "action_show-more": "Показать больше",
3
+ "action_show-less": "Показать меньше",
4
+ "alert_format-value-error": "Не удалось отформатировать значение"
5
+ }
@@ -0,0 +1,3 @@
1
+ export { QueryResultsTable } from './QueryResultsTable';
2
+ export type { QueryResultsTableProps } from './QueryResultsTable';
3
+ export { formatQueryResultType } from './helpers/formatQueryResultType';
@@ -0,0 +1,3 @@
1
+ export { QueryResultsTable } from "./QueryResultsTable";
2
+ export { formatQueryResultType } from "./helpers/formatQueryResultType";
3
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["QueryResultsTable","formatQueryResultType"],"sources":["index.ts"],"sourcesContent":["export {QueryResultsTable} from './QueryResultsTable';\nexport type {QueryResultsTableProps} from './QueryResultsTable';\nexport {formatQueryResultType} from './helpers/formatQueryResultType';\n"],"mappings":"AAAA,SAAQA,iBAAiB;AAEzB,SAAQC,qBAAqB","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { QueryResultColumn, QueryResultFormatterSettings } from '../../../types/queryResults';
3
+ export type QueryResultCellProps<TRow extends Record<string, unknown>> = {
4
+ row: TRow;
5
+ value: unknown;
6
+ index: number;
7
+ column: QueryResultColumn<TRow>;
8
+ formatterSettings?: QueryResultFormatterSettings;
9
+ maxVisibleLines: number;
10
+ };
11
+ export declare function QueryResultCell<TRow extends Record<string, unknown>>({ row, value, index, column, formatterSettings, maxVisibleLines, }: QueryResultCellProps<TRow>): React.JSX.Element;
@@ -0,0 +1,71 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import "core-js/modules/es.array.join.js";
3
+ import "core-js/modules/es.array.slice.js";
4
+ import React, { useMemo, useState } from 'react';
5
+ import { Button, ClipboardButton } from '@gravity-ui/uikit';
6
+ import cn from 'bem-cn-lite';
7
+ import { formatQueryResultValue } from "../helpers/formatQueryResultValue";
8
+ import i18n from "../i18n";
9
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ var block = cn('qp-query-results-table');
11
+ export function QueryResultCell(_ref) {
12
+ var row = _ref.row,
13
+ value = _ref.value,
14
+ index = _ref.index,
15
+ column = _ref.column,
16
+ formatterSettings = _ref.formatterSettings,
17
+ maxVisibleLines = _ref.maxVisibleLines;
18
+ var _useState = useState(false),
19
+ _useState2 = _slicedToArray(_useState, 2),
20
+ expanded = _useState2[0],
21
+ setExpanded = _useState2[1];
22
+ var formatted = useMemo(function () {
23
+ return formatQueryResultValue(value, column.type, formatterSettings);
24
+ }, [column.type, formatterSettings, value]);
25
+ if (column.render) {
26
+ return /*#__PURE__*/_jsx(_Fragment, {
27
+ children: column.render({
28
+ row: row,
29
+ value: value,
30
+ index: index,
31
+ column: column
32
+ })
33
+ });
34
+ }
35
+ if (formatted.error) {
36
+ return /*#__PURE__*/_jsx("span", {
37
+ className: block('format-error'),
38
+ children: i18n('alert_format-value-error')
39
+ });
40
+ }
41
+ var lines = formatted.html.split('\n');
42
+ var hasMore = lines.length > maxVisibleLines;
43
+ var html = expanded || !hasMore ? formatted.html : lines.slice(0, maxVisibleLines).join('\n');
44
+ return /*#__PURE__*/_jsxs("span", {
45
+ className: block('cell'),
46
+ children: [/*#__PURE__*/_jsx("span", {
47
+ className: "unipika",
48
+ dangerouslySetInnerHTML: {
49
+ __html: html
50
+ }
51
+ }), /*#__PURE__*/_jsx("span", {
52
+ className: block('cell-actions'),
53
+ children: /*#__PURE__*/_jsx(ClipboardButton, {
54
+ text: formatted.text,
55
+ view: "flat-secondary",
56
+ size: "s"
57
+ })
58
+ }), hasMore && /*#__PURE__*/_jsx(Button, {
59
+ view: "flat",
60
+ size: "s",
61
+ className: block('show-more'),
62
+ onClick: function onClick() {
63
+ return setExpanded(function (currentExpanded) {
64
+ return !currentExpanded;
65
+ });
66
+ },
67
+ children: i18n(expanded ? 'action_show-less' : 'action_show-more')
68
+ })]
69
+ });
70
+ }
71
+ // #sourceMappingURL=QueryResultCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","useState","Button","ClipboardButton","cn","formatQueryResultValue","i18n","Fragment","_Fragment","jsx","_jsx","jsxs","_jsxs","block","QueryResultCell","_ref","row","value","index","column","formatterSettings","maxVisibleLines","_useState","_useState2","_slicedToArray","expanded","setExpanded","formatted","type","render","children","error","className","lines","html","split","hasMore","length","slice","join","dangerouslySetInnerHTML","__html","text","view","size","onClick","currentExpanded"],"sources":["QueryResultCell.tsx"],"sourcesContent":["import React, {useMemo, useState} from 'react';\nimport {Button, ClipboardButton} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport type {QueryResultColumn, QueryResultFormatterSettings} from '../../../types/queryResults';\nimport {formatQueryResultValue} from '../helpers/formatQueryResultValue';\nimport i18n from '../i18n';\n\nconst block = cn('qp-query-results-table');\n\nexport type QueryResultCellProps<TRow extends Record<string, unknown>> = {\n row: TRow;\n value: unknown;\n index: number;\n column: QueryResultColumn<TRow>;\n formatterSettings?: QueryResultFormatterSettings;\n maxVisibleLines: number;\n};\n\nexport function QueryResultCell<TRow extends Record<string, unknown>>({\n row,\n value,\n index,\n column,\n formatterSettings,\n maxVisibleLines,\n}: QueryResultCellProps<TRow>) {\n const [expanded, setExpanded] = useState(false);\n const formatted = useMemo(\n () => formatQueryResultValue(value, column.type, formatterSettings),\n [column.type, formatterSettings, value],\n );\n\n if (column.render) {\n return <>{column.render({row, value, index, column})}</>;\n }\n\n if (formatted.error) {\n return <span className={block('format-error')}>{i18n('alert_format-value-error')}</span>;\n }\n\n const lines = formatted.html.split('\\n');\n const hasMore = lines.length > maxVisibleLines;\n const html = expanded || !hasMore ? formatted.html : lines.slice(0, maxVisibleLines).join('\\n');\n\n return (\n <span className={block('cell')}>\n <span className=\"unipika\" dangerouslySetInnerHTML={{__html: html}} />\n <span className={block('cell-actions')}>\n <ClipboardButton text={formatted.text} view=\"flat-secondary\" size=\"s\" />\n </span>\n {hasMore && (\n <Button\n view=\"flat\"\n size=\"s\"\n className={block('show-more')}\n onClick={() => setExpanded((currentExpanded) => !currentExpanded)}\n >\n {i18n(expanded ? 'action_show-less' : 'action_show-more')}\n </Button>\n )}\n </span>\n );\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AAC9C,SAAQC,MAAM,EAAEC,eAAe,QAAO,mBAAmB;AACzD,OAAOC,EAAE,MAAM,aAAa;AAE5B,SAAQC,sBAAsB;AAC9B,OAAOC,IAAI;AAAgB,SAAAC,QAAA,IAAAC,SAAA,EAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE3B,IAAMC,KAAK,GAAGT,EAAE,CAAC,wBAAwB,CAAC;AAW1C,OAAO,SAASU,eAAeA,CAAAC,IAAA,EAOA;EAAA,IAN3BC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IACHC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,iBAAiB,GAAAL,IAAA,CAAjBK,iBAAiB;IACjBC,eAAe,GAAAN,IAAA,CAAfM,eAAe;EAEf,IAAAC,SAAA,GAAgCrB,QAAQ,CAAC,KAAK,CAAC;IAAAsB,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EnB,KAAK,CAAC,cAAc,CAAE;MAAAiB,QAAA,eACnCpB,IAAA,CAACP,eAAe;QAACuC,IAAI,EAAEf,SAAS,CAACe,IAAK;QAACC,IAAI,EAAC,gBAAgB;QAACC,IAAI,EAAC;MAAG,CAAE;IAAC,CACtE,CAAC,EACNR,OAAO,iBACJ1B,IAAA,CAACR,MAAM;MACHyC,IAAI,EAAC,MAAM;MACXC,IAAI,EAAC,GAAG;MACRZ,SAAS,EAAEnB,KAAK,CAAC,WAAW,CAAE;MAC9BgC,OAAO,EAAE,SAATA,OAAOA,CAAA;QAAA,OAAQnB,WAAW,CAAC,UAACoB,eAAe;UAAA,OAAK,CAACA,eAAe;QAAA,EAAC;MAAA,CAAC;MAAAhB,QAAA,EAEjExB,IAAI,CAACmB,QAAQ,GAAG,kBAAkB,GAAG,kBAAkB;IAAC,CACrD,CACX;EAAA,CACC,CAAC;AAEf","ignoreList":[]}
@@ -1,5 +1,7 @@
1
1
  export { DataTable } from './DataTable';
2
2
  export type { DataTableProps, Column } from './DataTable';
3
+ export { QueryResultsTable, formatQueryResultType } from './QueryResultsTable';
4
+ export type { QueryResultsTableProps } from './QueryResultsTable';
3
5
  export { QueryStatusIcon } from './QueryStatusIcon';
4
6
  export { QueryDuration } from './QueryDuration';
5
7
  export { LazyList } from './LazyList';
@@ -46,5 +48,8 @@ export type { ChartEditorFormProps, ChartEditorFormValues, ChartEditorLabels, Ch
46
48
  export * from './Dashboard';
47
49
  export { Chart } from './Chart';
48
50
  export type { ChartAction, ChartProps } from './Chart';
51
+ export { ErrorTree } from './ErrorTree';
49
52
  export { MonacoLanguage, YT_DARK_HC_MONACO_THEME, YT_DARK_MONACO_THEME, YT_LIGHT_HC_MONACO_THEME, YT_LIGHT_MONACO_THEME, MONACO_THEME_BY_UI, } from './MonacoEditor';
50
53
  export type { MonacoThemeName } from './MonacoEditor';
54
+ export * from './AttachmentList';
55
+ export * from './AttachmentListPlaceholder';
@@ -1,4 +1,5 @@
1
1
  export { DataTable } from "./DataTable";
2
+ export { QueryResultsTable, formatQueryResultType } from "./QueryResultsTable";
2
3
  export { QueryStatusIcon } from "./QueryStatusIcon";
3
4
  export { QueryDuration } from "./QueryDuration";
4
5
  export { LazyList } from "./LazyList";
@@ -25,5 +26,8 @@ export { AddChartButton, DEFAULT_ADD_CHART_BUTTON_OPTIONS } from "./AddChartButt
25
26
  export { ChartEditorForm } from "./ChartEditorForm";
26
27
  export * from "./Dashboard";
27
28
  export { Chart } from "./Chart";
29
+ export { ErrorTree } from "./ErrorTree";
28
30
  export { MonacoLanguage, YT_DARK_HC_MONACO_THEME, YT_DARK_MONACO_THEME, YT_LIGHT_HC_MONACO_THEME, YT_LIGHT_MONACO_THEME, MONACO_THEME_BY_UI } from "./MonacoEditor";
31
+ export * from "./AttachmentList";
32
+ export * from "./AttachmentListPlaceholder";
29
33
  // #sourceMappingURL=index.js.map