@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,167 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
3
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import "core-js/modules/es.array.iterator.js";
5
+ import "core-js/modules/es.array.map.js";
6
+ import "core-js/modules/es.function.name.js";
7
+ import "core-js/modules/es.iterator.constructor.js";
8
+ import "core-js/modules/es.iterator.map.js";
9
+ import "core-js/modules/es.object.to-string.js";
10
+ import "core-js/modules/es.string.link.js";
11
+ import "core-js/modules/web.dom-collections.iterator.js";
12
+ import React, { useId, useRef, useState } from 'react';
13
+ import { Box, Button, Flex, Icon, Select, Text, TextArea, TextInput } from '@gravity-ui/uikit';
14
+ import { Check, Xmark } from '@gravity-ui/icons';
15
+ import { useLabelRef } from "../../hooks/useLabelRef";
16
+ import { useKeyDownFormControl } from "../../hooks/useKeyDownFormControl";
17
+ import { objectLinkValidator } from "../../helpers/objectLinkValidator";
18
+ import cn from 'bem-cn-lite';
19
+ import i18n from "../../i18n";
20
+ import "./EditLinkItem.css";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ var block = cn('edit-link-item');
23
+ export var EditLinkItem = function EditLinkItem(_ref) {
24
+ var cutomerLinkLabel = _ref.linkLabel,
25
+ customerTokenLabel = _ref.tokenLabel,
26
+ customeNameLabel = _ref.nameLabel,
27
+ onAccept = _ref.onAccept,
28
+ onCancel = _ref.onCancel,
29
+ onChange = _ref.onChange,
30
+ tokens = _ref.tokens,
31
+ customerValues = _ref.values,
32
+ _ref$validator = _ref.validator,
33
+ validator = _ref$validator === void 0 ? objectLinkValidator : _ref$validator,
34
+ defaultValues = _ref.defaultValues;
35
+ var _useState = useState(_objectSpread(_objectSpread({
36
+ link: '',
37
+ token: '',
38
+ name: ''
39
+ }, customerValues), defaultValues !== null && defaultValues !== void 0 ? defaultValues : {})),
40
+ _useState2 = _slicedToArray(_useState, 2),
41
+ innerValues = _useState2[0],
42
+ setInnerValues = _useState2[1];
43
+ var _useState3 = useState(null),
44
+ _useState4 = _slicedToArray(_useState3, 2),
45
+ errors = _useState4[0],
46
+ setErrors = _useState4[1];
47
+ var linkInputId = useId();
48
+ var linkLabel = cutomerLinkLabel !== null && cutomerLinkLabel !== void 0 ? cutomerLinkLabel : i18n('field_link');
49
+ var tokenLabel = customerTokenLabel !== null && customerTokenLabel !== void 0 ? customerTokenLabel : i18n('field_token');
50
+ var nameLabel = customeNameLabel !== null && customeNameLabel !== void 0 ? customeNameLabel : i18n('field_name');
51
+ var values = customerValues !== null && customerValues !== void 0 ? customerValues : innerValues;
52
+ var _useLabelRef = useLabelRef(linkLabel),
53
+ labelRef = _useLabelRef.labelRef,
54
+ labelWidth = _useLabelRef.labelWidth;
55
+ var wasSubmittedRef = useRef(false);
56
+ var isTokenRequired = tokens && (tokens === null || tokens === void 0 ? void 0 : tokens.length) > 0;
57
+ var handleUpdate = function handleUpdate(key, patcValue) {
58
+ var newValues = _objectSpread(_objectSpread({}, values), {}, _defineProperty({}, key, patcValue));
59
+ if (errors || wasSubmittedRef.current) {
60
+ setErrors(validator(newValues, isTokenRequired));
61
+ }
62
+ setInnerValues(newValues);
63
+ onChange === null || onChange === void 0 || onChange(newValues);
64
+ };
65
+ var handleAccept = function handleAccept() {
66
+ var validResult = validator(values, isTokenRequired);
67
+ wasSubmittedRef.current = true;
68
+ if (validResult) {
69
+ setErrors(validResult);
70
+ return;
71
+ }
72
+ onAccept === null || onAccept === void 0 || onAccept(values);
73
+ };
74
+ var handleCancel = function handleCancel() {
75
+ onCancel === null || onCancel === void 0 || onCancel();
76
+ };
77
+ var handleLinkScroll = function handleLinkScroll(event) {
78
+ if (labelRef.current) {
79
+ labelRef.current.style.transform = "translateY(-".concat(event.currentTarget.scrollTop, "px)");
80
+ }
81
+ };
82
+ var _useKeyDownFormContro = useKeyDownFormControl(handleAccept, handleCancel),
83
+ handleEditorKeyDown = _useKeyDownFormContro.handleEditorKeyDown,
84
+ handleInputKeyDown = _useKeyDownFormContro.handleInputKeyDown;
85
+ return /*#__PURE__*/_jsxs(Flex, {
86
+ onKeyDown: handleEditorKeyDown,
87
+ className: block(),
88
+ width: "100%",
89
+ spacing: {
90
+ px: 4,
91
+ py: 3
92
+ },
93
+ direction: "column",
94
+ gap: 2,
95
+ children: [/*#__PURE__*/_jsxs(Box, {
96
+ overflow: "hidden",
97
+ className: block('link-field-container'),
98
+ position: "relative",
99
+ children: [/*#__PURE__*/_jsx(Text, {
100
+ ref: labelRef,
101
+ as: "label",
102
+ htmlFor: linkInputId,
103
+ className: block('link-field-label'),
104
+ children: linkLabel
105
+ }), /*#__PURE__*/_jsx(TextArea, {
106
+ id: linkInputId,
107
+ value: values.link,
108
+ minRows: 3,
109
+ maxRows: 5,
110
+ hasClear: true,
111
+ autoFocus: true,
112
+ error: errors === null || errors === void 0 ? void 0 : errors.link,
113
+ errorMessage: errors === null || errors === void 0 ? void 0 : errors.link,
114
+ onKeyDown: handleInputKeyDown,
115
+ onUpdate: function onUpdate(v) {
116
+ return handleUpdate('link', v);
117
+ },
118
+ controlProps: {
119
+ onScroll: handleLinkScroll,
120
+ style: {
121
+ textIndent: labelWidth ? labelWidth + 2 : undefined
122
+ }
123
+ }
124
+ })]
125
+ }), tokens && /*#__PURE__*/_jsx(Select, {
126
+ filterable: true,
127
+ value: [values.token],
128
+ label: tokenLabel,
129
+ errorMessage: errors === null || errors === void 0 ? void 0 : errors.token,
130
+ validationState: errors !== null && errors !== void 0 && errors.token ? 'invalid' : undefined,
131
+ onUpdate: function onUpdate(v) {
132
+ return handleUpdate('token', v[0]);
133
+ },
134
+ children: tokens.map(function (token) {
135
+ return /*#__PURE__*/_jsx(Select.Option, {
136
+ value: token.value,
137
+ content: token.title
138
+ }, token.value);
139
+ })
140
+ }), /*#__PURE__*/_jsx(TextInput, {
141
+ value: values.name,
142
+ label: nameLabel,
143
+ hasClear: true,
144
+ error: errors === null || errors === void 0 ? void 0 : errors.name,
145
+ onKeyDown: handleInputKeyDown,
146
+ onUpdate: function onUpdate(v) {
147
+ return handleUpdate('name', v);
148
+ }
149
+ }), /*#__PURE__*/_jsxs(Flex, {
150
+ gap: 2,
151
+ children: [/*#__PURE__*/_jsxs(Button, {
152
+ view: "flat",
153
+ onClick: handleAccept,
154
+ children: [/*#__PURE__*/_jsx(Icon, {
155
+ data: Check
156
+ }), i18n('action_save')]
157
+ }), /*#__PURE__*/_jsxs(Button, {
158
+ view: "flat",
159
+ onClick: onCancel,
160
+ children: [/*#__PURE__*/_jsx(Icon, {
161
+ data: Xmark
162
+ }), i18n('action_cancel')]
163
+ })]
164
+ })]
165
+ });
166
+ };
167
+ // #sourceMappingURL=EditLinkItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useId","useRef","useState","Box","Button","Flex","Icon","Select","Text","TextArea","TextInput","Check","Xmark","useLabelRef","useKeyDownFormControl","objectLinkValidator","cn","i18n","jsx","_jsx","jsxs","_jsxs","block","EditLinkItem","_ref","cutomerLinkLabel","linkLabel","customerTokenLabel","tokenLabel","customeNameLabel","nameLabel","onAccept","onCancel","onChange","tokens","customerValues","values","_ref$validator","validator","defaultValues","_useState","_objectSpread","link","token","name","_useState2","_slicedToArray","innerValues","setInnerValues","_useState3","_useState4","errors","setErrors","linkInputId","_useLabelRef","labelRef","labelWidth","wasSubmittedRef","isTokenRequired","length","handleUpdate","key","patcValue","newValues","_defineProperty","current","handleAccept","validResult","handleCancel","handleLinkScroll","event","style","transform","concat","currentTarget","scrollTop","_useKeyDownFormContro","handleEditorKeyDown","handleInputKeyDown","onKeyDown","className","width","spacing","px","py","direction","gap","children","overflow","position","ref","as","htmlFor","id","value","minRows","maxRows","hasClear","autoFocus","error","errorMessage","onUpdate","v","controlProps","onScroll","textIndent","undefined","filterable","label","validationState","map","Option","content","title","view","onClick","data"],"sources":["EditLinkItem.tsx"],"sourcesContent":["import React, {useId, useRef, useState} from 'react';\nimport {Box, Button, Flex, Icon, Select, Text, TextArea, TextInput} from '@gravity-ui/uikit';\nimport {Check, Xmark} from '@gravity-ui/icons';\nimport {useLabelRef} from '../../hooks/useLabelRef';\nimport {useKeyDownFormControl} from '../../hooks/useKeyDownFormControl';\nimport {ObjectLinkValidator, objectLinkValidator} from '../../helpers/objectLinkValidator';\nimport cn from 'bem-cn-lite';\n\nimport i18n from '../../i18n';\n\nimport './EditLinkItem.scss';\n\nexport type EditLinkValues = {\n link: string;\n token: string;\n name: string;\n};\n\ntype EditLinkErrors = {\n link: string;\n token: string;\n name: string;\n};\n\nexport type EditLinkItemProps = {\n linkLabel?: string;\n tokenLabel?: string;\n nameLabel?: string;\n onAccept?: (values: EditLinkValues) => void;\n onCancel?: () => void;\n onChange?: (pathedValues: EditLinkValues) => void;\n tokens?: {value: string; title: string}[];\n values?: EditLinkValues;\n defaultValues?: EditLinkValues;\n validator?: ObjectLinkValidator;\n};\n\nconst block = cn('edit-link-item');\n\nexport const EditLinkItem = ({\n linkLabel: cutomerLinkLabel,\n tokenLabel: customerTokenLabel,\n nameLabel: customeNameLabel,\n onAccept,\n onCancel,\n onChange,\n tokens,\n values: customerValues,\n validator = objectLinkValidator,\n defaultValues,\n}: EditLinkItemProps) => {\n const [innerValues, setInnerValues] = useState<EditLinkValues>({\n link: '',\n token: '',\n name: '',\n ...customerValues,\n ...(defaultValues ?? {}),\n });\n\n const [errors, setErrors] = useState<Partial<EditLinkErrors> | null>(null);\n\n const linkInputId = useId();\n\n const linkLabel = cutomerLinkLabel ?? i18n('field_link');\n const tokenLabel = customerTokenLabel ?? i18n('field_token');\n const nameLabel = customeNameLabel ?? i18n('field_name');\n\n const values = customerValues ?? innerValues;\n\n const {labelRef, labelWidth} = useLabelRef(linkLabel);\n\n const wasSubmittedRef = useRef(false);\n\n const isTokenRequired = tokens && tokens?.length > 0;\n\n const handleUpdate = (key: string, patcValue: string) => {\n const newValues: EditLinkValues = {...values, [key]: patcValue};\n\n if (errors || wasSubmittedRef.current) {\n setErrors(validator(newValues, isTokenRequired));\n }\n\n setInnerValues(newValues);\n onChange?.(newValues);\n };\n\n const handleAccept = () => {\n const validResult = validator(values, isTokenRequired);\n\n wasSubmittedRef.current = true;\n\n if (validResult) {\n setErrors(validResult);\n return;\n }\n\n onAccept?.(values);\n };\n\n const handleCancel = () => {\n onCancel?.();\n };\n\n const handleLinkScroll = (event: React.UIEvent<HTMLTextAreaElement>) => {\n if (labelRef.current) {\n labelRef.current.style.transform = `translateY(-${event.currentTarget.scrollTop}px)`;\n }\n };\n\n const {handleEditorKeyDown, handleInputKeyDown} = useKeyDownFormControl(\n handleAccept,\n handleCancel,\n );\n\n return (\n <Flex\n onKeyDown={handleEditorKeyDown}\n className={block()}\n width=\"100%\"\n spacing={{px: 4, py: 3}}\n direction=\"column\"\n gap={2}\n >\n <Box overflow=\"hidden\" className={block('link-field-container')} position=\"relative\">\n <Text\n ref={labelRef}\n as=\"label\"\n htmlFor={linkInputId}\n className={block('link-field-label')}\n >\n {linkLabel}\n </Text>\n\n <TextArea\n id={linkInputId}\n value={values.link}\n minRows={3}\n maxRows={5}\n hasClear\n autoFocus\n error={errors?.link}\n errorMessage={errors?.link}\n onKeyDown={handleInputKeyDown}\n onUpdate={(v) => handleUpdate('link', v)}\n controlProps={{\n onScroll: handleLinkScroll,\n style: {\n textIndent: labelWidth ? labelWidth + 2 : undefined,\n },\n }}\n />\n </Box>\n\n {tokens && (\n <Select\n filterable\n value={[values.token]}\n label={tokenLabel}\n errorMessage={errors?.token}\n validationState={errors?.token ? 'invalid' : undefined}\n onUpdate={(v) => handleUpdate('token', v[0])}\n >\n {tokens.map((token) => (\n <Select.Option\n key={token.value}\n value={token.value}\n content={token.title}\n />\n ))}\n </Select>\n )}\n\n <TextInput\n value={values.name}\n label={nameLabel}\n hasClear\n error={errors?.name}\n onKeyDown={handleInputKeyDown}\n onUpdate={(v) => handleUpdate('name', v)}\n />\n\n <Flex gap={2}>\n <Button view=\"flat\" onClick={handleAccept}>\n <Icon data={Check} />\n {i18n('action_save')}\n </Button>\n <Button view=\"flat\" onClick={onCancel}>\n <Icon data={Xmark} />\n {i18n('action_cancel')}\n </Button>\n </Flex>\n </Flex>\n );\n};\n"],"mappings":";;;;;;;;;;;AAAA,OAAOA,KAAK,IAAGC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,QAAO,OAAO;AACpD,SAAQC,GAAG,EAAEC,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,SAAS,QAAO,mBAAmB;AAC5F,SAAQC,KAAK,EAAEC,KAAK,QAAO,mBAAmB;AAC9C,SAAQC,WAAW;AACnB,SAAQC,qBAAqB;AAC7B,SAA6BC,mBAAmB;AAChD,OAAOC,EAAE,MAAM,aAAa;AAE5B,OAAOC,IAAI;AAEX;AAA6B,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA2B7B,IAAMC,KAAK,GAAGN,EAAE,CAAC,gBAAgB,CAAC;AAElC,OAAO,IAAMO,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAWA;EAAA,IAVVC,gBAAgB,GAAAD,IAAA,CAA3BE,SAAS;IACGC,kBAAkB,GAAAH,IAAA,CAA9BI,UAAU;IACCC,gBAAgB,GAAAL,IAAA,CAA3BM,SAAS;IACTC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IACRC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,Q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GAAG,EAAE,CAAE;MAAAC,QAAA,gBACTlE,KAAA,CAACjB,MAAM;QAAC8G,IAAI,EAAC,MAAM;QAACC,OAAO,EAAEjD,YAAa;QAAAqB,QAAA,gBACtCpE,IAAA,CAACb,IAAI;UAAC8G,IAAI,EAAEzG;QAAM,CAAE,CAAC,EACpBM,IAAI,CAAC,aAAa,CAAC;MAAA,CAChB,CAAC,eACTI,KAAA,CAACjB,MAAM;QAAC8G,IAAI,EAAC,MAAM;QAACC,OAAO,EAAEnF,QAAS;QAAAuD,QAAA,gBAClCpE,IAAA,CAACb,IAAI;UAAC8G,IAAI,EAAExG;QAAM,CAAE,CAAC,EACpBK,IAAI,CAAC,eAAe,CAAC;MAAA,CAClB,CAAC;IAAA,CACP,CAAC;EAAA,CACL,CAAC;AAEf,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ .edit-link-item {
2
+ &__link-field-container {
3
+ padding: 1px;
4
+ }
5
+
6
+ &__link-field-label {
7
+ position: absolute;
8
+ z-index: 1;
9
+ inset-block-start: calc(var(--g-spacing-1) + 1px);
10
+ inset-inline-start: var(--g-spacing-2);
11
+ font-weight: 600;
12
+ }
13
+
14
+ .g-select {
15
+ padding: 1px;
16
+ }
17
+
18
+ .g-text-input {
19
+ padding: 1px;
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Validator } from '../../helpers/stringRequiredValidator';
3
+ export type EditFileItemProps = {
4
+ fileName?: string;
5
+ fileLabel?: string;
6
+ defaultFileName?: string;
7
+ onChangeFileName?: (fileName: string) => void;
8
+ onAccept?: (newFileName: string) => void;
9
+ onCancel?: () => void;
10
+ validator?: Validator;
11
+ };
12
+ export declare const FileEdit: ({ fileLabel: customerFileLabel, fileName: customerFileName, defaultFileName, onChangeFileName, onAccept, onCancel, validator, }: EditFileItemProps) => React.JSX.Element;
@@ -0,0 +1,83 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import React, { useRef, useState } from 'react';
3
+ import { Button, Flex, Icon, TextInput } from '@gravity-ui/uikit';
4
+ import { Check, Xmark } from '@gravity-ui/icons';
5
+ import { useKeyDownFormControl } from "../../hooks/useKeyDownFormControl";
6
+ import { stringRequiredValidator } from "../../helpers/stringRequiredValidator";
7
+ import i18n from "../../i18n";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export var FileEdit = function FileEdit(_ref) {
10
+ var _ref2;
11
+ var customerFileLabel = _ref.fileLabel,
12
+ customerFileName = _ref.fileName,
13
+ defaultFileName = _ref.defaultFileName,
14
+ onChangeFileName = _ref.onChangeFileName,
15
+ onAccept = _ref.onAccept,
16
+ onCancel = _ref.onCancel,
17
+ _ref$validator = _ref.validator,
18
+ validator = _ref$validator === void 0 ? stringRequiredValidator : _ref$validator;
19
+ var _useState = useState((_ref2 = defaultFileName !== null && defaultFileName !== void 0 ? defaultFileName : customerFileName) !== null && _ref2 !== void 0 ? _ref2 : ''),
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ innerFileName = _useState2[0],
22
+ setInnerFileName = _useState2[1];
23
+ var _useState3 = useState(null),
24
+ _useState4 = _slicedToArray(_useState3, 2),
25
+ errorMsg = _useState4[0],
26
+ setErrorMsg = _useState4[1];
27
+ var wasSubmittedRef = useRef(false);
28
+ var label = customerFileLabel !== null && customerFileLabel !== void 0 ? customerFileLabel : i18n('field_name');
29
+ var fileName = customerFileName !== null && customerFileName !== void 0 ? customerFileName : innerFileName;
30
+ var handleChangeFileName = function handleChangeFileName(patchFileName) {
31
+ if (errorMsg || wasSubmittedRef.current) {
32
+ setErrorMsg(validator(patchFileName));
33
+ }
34
+ setInnerFileName(patchFileName);
35
+ onChangeFileName === null || onChangeFileName === void 0 || onChangeFileName(patchFileName);
36
+ };
37
+ var handleAccept = function handleAccept() {
38
+ var error = validator(fileName);
39
+ wasSubmittedRef.current = true;
40
+ if (error) {
41
+ setErrorMsg(error);
42
+ return;
43
+ }
44
+ onAccept === null || onAccept === void 0 || onAccept(fileName);
45
+ };
46
+ var handleCancel = function handleCancel() {
47
+ onCancel === null || onCancel === void 0 || onCancel();
48
+ };
49
+ var _useKeyDownFormContro = useKeyDownFormControl(handleAccept, handleCancel),
50
+ handleEditorKeyDown = _useKeyDownFormContro.handleEditorKeyDown,
51
+ handleInputKeyDown = _useKeyDownFormContro.handleInputKeyDown;
52
+ return /*#__PURE__*/_jsxs(Flex, {
53
+ onKeyDown: handleEditorKeyDown,
54
+ spacing: {
55
+ px: 4,
56
+ py: 1
57
+ },
58
+ width: "100%",
59
+ gap: 2,
60
+ children: [/*#__PURE__*/_jsx(TextInput, {
61
+ autoFocus: true,
62
+ label: label,
63
+ value: fileName,
64
+ error: Boolean(errorMsg),
65
+ errorMessage: errorMsg,
66
+ onKeyDown: handleInputKeyDown,
67
+ onUpdate: handleChangeFileName
68
+ }), /*#__PURE__*/_jsx(Button, {
69
+ view: "flat",
70
+ onClick: handleAccept,
71
+ children: /*#__PURE__*/_jsx(Icon, {
72
+ data: Check
73
+ })
74
+ }), /*#__PURE__*/_jsx(Button, {
75
+ view: "flat",
76
+ onClick: onCancel,
77
+ children: /*#__PURE__*/_jsx(Icon, {
78
+ data: Xmark
79
+ })
80
+ })]
81
+ });
82
+ };
83
+ // #sourceMappingURL=FileEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useRef","useState","Button","Flex","Icon","TextInput","Check","Xmark","useKeyDownFormControl","stringRequiredValidator","i18n","jsx","_jsx","jsxs","_jsxs","FileEdit","_ref","_ref2","customerFileLabel","fileLabel","customerFileName","fileName","defaultFileName","onChangeFileName","onAccept","onCancel","_ref$validator","validator","_useState","_useState2","_slicedToArray","innerFileName","setInnerFileName","_useState3","_useState4","errorMsg","setErrorMsg","wasSubmittedRef","label","handleChangeFileName","patchFileName","current","handleAccept","error","handleCancel","_useKeyDownFormContro","handleEditorKeyDown","handleInputKeyDown","onKeyDown","spacing","px","py","width","gap","children","autoFocus","value","Boolean","errorMessage","onUpdate","view","onClick","data"],"sources":["FileEdit.tsx"],"sourcesContent":["import React, {useRef, useState} from 'react';\nimport {Button, Flex, Icon, TextInput} from '@gravity-ui/uikit';\nimport {Check, Xmark} from '@gravity-ui/icons';\nimport {useKeyDownFormControl} from '../../hooks/useKeyDownFormControl';\nimport {Validator, stringRequiredValidator} from '../../helpers/stringRequiredValidator';\n\nimport i18n from '../../i18n';\n\nexport type EditFileItemProps = {\n fileName?: string;\n fileLabel?: string;\n defaultFileName?: string;\n onChangeFileName?: (fileName: string) => void;\n onAccept?: (newFileName: string) => void;\n onCancel?: () => void;\n validator?: Validator;\n};\n\nexport const FileEdit = ({\n fileLabel: customerFileLabel,\n fileName: customerFileName,\n defaultFileName,\n onChangeFileName,\n onAccept,\n onCancel,\n validator = stringRequiredValidator,\n}: EditFileItemProps) => {\n const [innerFileName, setInnerFileName] = useState<string>(\n defaultFileName ?? customerFileName ?? '',\n );\n\n const [errorMsg, setErrorMsg] = useState<string | null>(null);\n\n const wasSubmittedRef = useRef(false);\n\n const label = customerFileLabel ?? i18n('field_name');\n\n const fileName = customerFileName ?? innerFileName;\n\n const handleChangeFileName = (patchFileName: string) => {\n if (errorMsg || wasSubmittedRef.current) {\n setErrorMsg(validator(patchFileName));\n }\n\n setInnerFileName(patchFileName);\n onChangeFileName?.(patchFileName);\n };\n\n const handleAccept = () => {\n const error = validator(fileName);\n\n wasSubmittedRef.current = true;\n\n if (error) {\n setErrorMsg(error);\n return;\n }\n\n onAccept?.(fileName);\n };\n\n const handleCancel = () => {\n onCancel?.();\n };\n\n const {handleEditorKeyDown, handleInputKeyDown} = useKeyDownFormControl(\n handleAccept,\n handleCancel,\n );\n\n return (\n <Flex onKeyDown={handleEditorKeyDown} spacing={{px: 4, py: 1}} width=\"100%\" gap={2}>\n <TextInput\n autoFocus\n label={label}\n value={fileName}\n error={Boolean(errorMsg)}\n errorMessage={errorMsg}\n onKeyDown={handleInputKeyDown}\n onUpdate={handleChangeFileName}\n />\n\n <Button view=\"fl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AAE,CAAC;MAAEC,EAAE,EAAE;IAAC,CAAE;IAACC,KAAK,EAAC,MAAM;IAACC,GAAG,EAAE,CAAE;IAAAC,QAAA,gBAC/E1C,IAAA,CAACP,SAAS;MACNkD,SAAS;MACTjB,KAAK,EAAEA,KAAM;MACbkB,KAAK,EAAEnC,QAAS;MAChBsB,KAAK,EAAEc,OAAO,CAACtB,QAAQ,CAAE;MACzBuB,YAAY,EAAEvB,QAAS;MACvBa,SAAS,EAAED,kBAAmB;MAC9BY,QAAQ,EAAEpB;IAAqB,CAClC,CAAC,eAEF3B,IAAA,CAACV,MAAM;MAAC0D,IAAI,EAAC,MAAM;MAACC,OAAO,EAAEnB,YAAa;MAAAY,QAAA,eACtC1C,IAAA,CAACR,IAAI;QAAC0D,IAAI,EAAExD;MAAM,CAAE;IAAC,CACjB,CAAC,eAETM,IAAA,CAACV,MAAM;MAAC0D,IAAI,EAAC,MAAM;MAACC,OAAO,EAAEpC,QAAS;MAAA6B,QAAA,eAClC1C,IAAA,CAACR,IAAI;QAAC0D,IAAI,EAAEvD;MAAM,CAAE;IAAC,CACjB,CAAC;EAAA,CACP,CAAC;AAEf,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ export { EditAttachmentItem } from './EditAttachmentItem';
2
+ export type { EditAttachmentItemProps } from './EditAttachmentItem';
3
+ export type { EditLinkItemProps, EditLinkValues } from './EditLinkItem';
4
+ export type { EditFileItemProps } from './FileEdit';
@@ -0,0 +1,2 @@
1
+ export { EditAttachmentItem } from "./EditAttachmentItem";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EditAttachmentItem"],"sources":["index.ts"],"sourcesContent":["export {EditAttachmentItem} from './EditAttachmentItem';\nexport type {EditAttachmentItemProps} from './EditAttachmentItem';\nexport type {EditLinkItemProps, EditLinkValues} from './EditLinkItem';\nexport type {EditFileItemProps} from './FileEdit';\n"],"mappings":"AAAA,SAAQA,kBAAkB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ .qp-attachment-list-placeholder__doc-link {
2
+ margin-top: var(--g-spacing-2);
3
+ }
4
+ /*# sourceMappingURL=AttachmentListPlaceholder.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentListPlaceholder.scss"],"names":[],"mappings":"AACI;EACI,8BAAA;AAAR","file":"AttachmentListPlaceholder.css","sourcesContent":[".qp-attachment-list-placeholder {\n &__doc-link {\n margin-top: var(--g-spacing-2);\n }\n}\n"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from 'react';
2
+ import './AttachmentListPlaceholder.scss';
3
+ export type AttachmentListPlaceholderProps = {
4
+ title?: ReactNode;
5
+ description?: ReactNode;
6
+ linkForDoc?: string;
7
+ linkText?: string;
8
+ className?: string;
9
+ onAddFile?: () => void;
10
+ onAddLink?: () => void;
11
+ qa?: string;
12
+ };
13
+ export declare const AttachmentListPlaceholder: ({ title: customerTitle, description: customerDescription, linkForDoc, linkText: customerLinkText, className, onAddFile, onAddLink, qa, }: AttachmentListPlaceholderProps) => React.JSX.Element;
@@ -0,0 +1,68 @@
1
+ import "core-js/modules/es.symbol.js";
2
+ import "core-js/modules/es.symbol.description.js";
3
+ import React from 'react';
4
+ import { Button, Flex, Icon, Link, Text } from '@gravity-ui/uikit';
5
+ import { Plus } from '@gravity-ui/icons';
6
+ import cn from 'bem-cn-lite';
7
+ import image from "./assets/empty-attachments.svg";
8
+ import i18n from "./i18n";
9
+ import "./AttachmentListPlaceholder.css";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ var block = cn('qp-attachment-list-placeholder');
12
+ export var AttachmentListPlaceholder = function AttachmentListPlaceholder(_ref) {
13
+ var customerTitle = _ref.title,
14
+ customerDescription = _ref.description,
15
+ linkForDoc = _ref.linkForDoc,
16
+ customerLinkText = _ref.linkText,
17
+ className = _ref.className,
18
+ onAddFile = _ref.onAddFile,
19
+ onAddLink = _ref.onAddLink,
20
+ qa = _ref.qa;
21
+ var title = customerTitle !== null && customerTitle !== void 0 ? customerTitle : i18n('title_no-attachments');
22
+ var description = customerDescription !== null && customerDescription !== void 0 ? customerDescription : i18n('context_add-attachment-for-request');
23
+ var linkText = customerLinkText !== null && customerLinkText !== void 0 ? customerLinkText : i18n('action_attachments-help');
24
+ return /*#__PURE__*/_jsxs(Flex, {
25
+ direction: "column",
26
+ alignItems: "center",
27
+ justifyContent: "center",
28
+ gap: 5,
29
+ width: "100%",
30
+ height: "100%",
31
+ className: block(null, className),
32
+ "data-qa": qa,
33
+ children: [/*#__PURE__*/_jsx("img", {
34
+ src: "".concat(image),
35
+ alt: "empty-attachments-image"
36
+ }), /*#__PURE__*/_jsxs(Flex, {
37
+ gap: 1,
38
+ direction: "column",
39
+ alignItems: "center",
40
+ children: [/*#__PURE__*/_jsx(Text, {
41
+ variant: "subheader-1",
42
+ children: title
43
+ }), /*#__PURE__*/_jsx(Text, {
44
+ variant: "body-1",
45
+ children: description
46
+ }), linkForDoc && /*#__PURE__*/_jsx(Link, {
47
+ className: block('doc-link'),
48
+ href: linkForDoc,
49
+ children: linkText
50
+ })]
51
+ }), /*#__PURE__*/_jsxs(Flex, {
52
+ gap: 2,
53
+ children: [/*#__PURE__*/_jsxs(Button, {
54
+ onClick: onAddFile,
55
+ children: [/*#__PURE__*/_jsx(Icon, {
56
+ data: Plus
57
+ }), i18n('action_add-file')]
58
+ }), /*#__PURE__*/_jsxs(Button, {
59
+ onClick: onAddLink,
60
+ view: "outlined",
61
+ children: [/*#__PURE__*/_jsx(Icon, {
62
+ data: Plus
63
+ }), i18n('action_add-link')]
64
+ })]
65
+ })]
66
+ });
67
+ };
68
+ // #sourceMappingURL=AttachmentListPlaceholder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Button","Flex","Icon","Link","Text","Plus","cn","image","i18n","jsx","_jsx","jsxs","_jsxs","block","AttachmentListPlaceholder","_ref","customerTitle","title","customerDescription","description","linkForDoc","customerLinkText","linkText","className","onAddFile","onAddLink","qa","direction","alignItems","justifyContent","gap","width","height","children","src","concat","alt","variant","href","onClick","data","view"],"sources":["AttachmentListPlaceholder.tsx"],"sourcesContent":["import React, {ReactNode} from 'react';\nimport {Button, Flex, Icon, Link, Text} from '@gravity-ui/uikit';\nimport {Plus} from '@gravity-ui/icons';\nimport cn from 'bem-cn-lite';\nimport image from './assets/empty-attachments.svg';\nimport i18n from './i18n';\nimport './AttachmentListPlaceholder.scss';\n\nexport type AttachmentListPlaceholderProps = {\n title?: ReactNode;\n description?: ReactNode;\n linkForDoc?: string;\n linkText?: string;\n className?: string;\n onAddFile?: () => void;\n onAddLink?: () => void;\n qa?: string;\n};\n\nconst block = cn('qp-attachment-list-placeholder');\n\nexport const AttachmentListPlaceholder = ({\n title: customerTitle,\n description: customerDescription,\n linkForDoc,\n linkText: customerLinkText,\n className,\n onAddFile,\n onAddLink,\n qa,\n}: AttachmentListPlaceholderProps) => {\n const title = customerTitle ?? i18n('title_no-attachments');\n const description = customerDescription ?? i18n('context_add-attachment-for-request');\n const linkText = customerLinkText ?? i18n('action_attachments-help');\n\n return (\n <Flex\n direction=\"column\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap={5}\n width=\"100%\"\n height=\"100%\"\n className={block(null, className)}\n data-qa={qa}\n >\n <img src={`${image}`} alt=\"empty-attachments-image\" />\n\n <Flex gap={1} direction=\"column\" alignItems=\"center\">\n <Text variant=\"subheader-1\">{title}</Text>\n <Text variant=\"body-1\">{description}</Text>\n {linkForDoc && (\n <Link className={block('doc-link')} href={linkForDoc}>\n {linkText}\n </Link>\n )}\n </Flex>\n\n <Flex gap={2}>\n <Button onClick={onAddFile}>\n <Icon data={Plus} />\n {i18n('action_add-file')}\n </Button>\n\n <Button onClick={onAddLink} view=\"outlined\">\n <Icon data={Plus} />\n {i18n('action_add-link')}\n </Button>\n </Flex>\n </Flex>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAmB,OAAO;AACtC,SAAQC,MAAM,EA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+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ title: customerTitle, description: customerDescription, linkForDoc, linkText: customerLinkText, className, onAddFile, onAddLink, qa, }: import("./AttachmentListPlaceholder").AttachmentListPlaceholderProps) => React.JSX.Element;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
11
+ title?: React.ReactNode;
12
+ description?: React.ReactNode;
13
+ linkForDoc?: string | undefined;
14
+ linkText?: string | undefined;
15
+ className?: string | undefined;
16
+ onAddFile?: (() => void) | undefined;
17
+ onAddLink?: (() => void) | undefined;
18
+ qa?: string | undefined;
19
+ }>) => React.JSX.Element)[];
20
+ args: {
21
+ title: string;
22
+ description: string;
23
+ linkForDoc: string;
24
+ };
25
+ };
26
+ export default meta;
27
+ type Story = StoryObj<typeof meta>;
28
+ /** Empty state with documentation and two secondary actions, matching the Figma example. */
29
+ export declare const Default: Story;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { AttachmentListPlaceholder } from "./AttachmentListPlaceholder";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ var meta = {
5
+ title: 'Components/AttachmentListPlaceholder',
6
+ component: AttachmentListPlaceholder,
7
+ tags: ['autodocs'],
8
+ parameters: {
9
+ layout: 'centered'
10
+ },
11
+ decorators: [function (Story) {
12
+ return /*#__PURE__*/_jsx("div", {
13
+ style: {
14
+ width: 324,
15
+ height: 622
16
+ },
17
+ children: /*#__PURE__*/_jsx(Story, {})
18
+ });
19
+ }],
20
+ args: {
21
+ title: 'No attachments',
22
+ description: 'Add attachment for use in the request',
23
+ linkForDoc: '#attachments-help'
24
+ }
25
+ };
26
+ export default meta;
27
+ /** Empty state with documentation and two secondary actions, matching the Figma example. */
28
+ export var Default = {};
29
+ // #sourceMappingURL=AttachmentListPlaceholder.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","AttachmentListPlaceholder","jsx","_jsx","meta","title","component","tags","parameters","layout","decorators","Story","style","width","height","children","args","description","linkForDoc","Default"],"sources":["AttachmentListPlaceholder.stories.tsx"],"sourcesContent":["import React from 'react';\nimport {AttachmentListPlaceholder} from './AttachmentListPlaceholder';\nimport type {Meta, StoryObj} from '@storybook/react';\n\nconst meta = {\n title: 'Components/AttachmentListPlaceholder',\n component: AttachmentListPlaceholder,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n decorators: [\n (Story) => (\n <div style={{width: 324, height: 622}}>\n <Story />\n </div>\n ),\n ],\n args: {\n title: 'No attachments',\n description: 'Add attachment for use in the request',\n linkForDoc: '#attachments-help',\n },\n} satisfies Meta<typeof AttachmentListPlaceholder>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n/** Empty state with documentation and two secondary actions, matching the Figma example. */\nexport const Default: Story = {};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,yBAAyB;AAAqC,SAAAC,GAAA,IAAAC,IAAA;AAGtE,IAAMC,IAAI,GAAG;EACTC,KAAK,EAAE,sCAAsC;EAC7CC,SAAS,EAAEL,yBAAyB;EACpCM,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACRC,MAAM,EAAE;EACZ,CAAC;EACDC,UAAU,EAAE,CACR,UAACC,KAAK;IAAA,oBACFR,IAAA;MAAKS,KAAK,EAAE;QAACC,KAAK,EAAE,GAAG;QAAEC,MAAM,EAAE;MAAG,CAAE;MAAAC,QAAA,eAClCZ,IAAA,CAACQ,KAAK,IAAE;IAAC,CACR,CAAC;EAAA,CACT,CACJ;EACDK,IAAI,EAAE;IACFX,KAAK,EAAE,gBAAgB;IACvBY,WAAW,EAAE,uCAAuC;IACpDC,UAAU,EAAE;EAChB;AACJ,CAAkD;AAElD,eAAed,IAAI;AAGnB;AACA,OAAO,IAAMe,OAAc,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ en: {
3
+ "title_no-attachments": string;
4
+ "context_add-attachment-for-request": string;
5
+ "action_attachments-help": string;
6
+ "action_add-file": string;
7
+ "action_add-link": string;
8
+ };
9
+ ru: {
10
+ "title_no-attachments": string;
11
+ "context_add-attachment-for-request": string;
12
+ "action_attachments-help": string;
13
+ "action_add-file": string;
14
+ "action_add-link": string;
15
+ };
16
+ };
17
+ 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,7 @@
1
+ {
2
+ "title_no-attachments": "No attachments",
3
+ "context_add-attachment-for-request": "Add attachment for use in the request",
4
+ "action_attachments-help": "How to work with attachments",
5
+ "action_add-file": "Add file",
6
+ "action_add-link": "Add Link"
7
+ }
@@ -0,0 +1,6 @@
1
+ declare const _default: ((key: "title_no-attachments" | "context_add-attachment-for-request" | "action_attachments-help" | "action_add-file" | "action_add-link", params?: import("@gravity-ui/i18n").Params) => string) & {
2
+ keysetData: {
3
+ "qp:attachment-list-placeholder": Record<"title_no-attachments" | "context_add-attachment-for-request" | "action_attachments-help" | "action_add-file" | "action_add-link", 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:attachment-list-placeholder', dicts);
4
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["addI18Keysets","dicts"],"sources":["index.ts"],"sourcesContent":["import {addI18Keysets} from '../../../i18n';\n\nimport dicts from './dicts';\n\nexport default addI18Keysets('qp:attachment-list-placeholder', dicts);\n"],"mappings":"AAAA,SAAQA,aAAa;AAErB,OAAOC,KAAK;AAEZ,eAAeD,aAAa,CAAC,gCAAgC,EAAEC,KAAK,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ {
2
+ "title_no-attachments": "Нет вложений",
3
+ "context_add-attachment-for-request": "Добавьте вложение, чтобы использовать его в запросе",
4
+ "action_attachments-help": "Как работать с вложениями",
5
+ "action_add-file": "Добавить файл",
6
+ "action_add-link": "Добавить ссылку"
7
+ }
@@ -0,0 +1,2 @@
1
+ export { AttachmentListPlaceholder } from './AttachmentListPlaceholder';
2
+ export type { AttachmentListPlaceholderProps } from './AttachmentListPlaceholder';
@@ -0,0 +1,2 @@
1
+ export { AttachmentListPlaceholder } from "./AttachmentListPlaceholder";
2
+ // #sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AttachmentListPlaceholder"],"sources":["index.ts"],"sourcesContent":["export {AttachmentListPlaceholder} from './AttachmentListPlaceholder';\nexport type {AttachmentListPlaceholderProps} from './AttachmentListPlaceholder';\n"],"mappings":"AAAA,SAAQA,yBAAyB","ignoreList":[]}
@@ -18,11 +18,4 @@
18
18
  .qp-data-table__content_empty.qp-data-table__content_align_center {
19
19
  justify-content: center;
20
20
  }
21
- .qp-data-table__no-data-placeholder {
22
- width: 100%;
23
- max-width: 120px;
24
- height: var(--g-text-body-1-line-height);
25
- border-radius: 4px;
26
- background-color: var(--g-color-base-generic);
27
- }
28
21
  /*# sourceMappingURL=DataTable.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["DataTable.scss"],"names":[],"mappings":"AAAA;EACE,aAAA;EACA,sBAAA;EACA,YAAA;AACF;AACE;EACE,OAAA;AACJ;AAGI;EACE,oDAAA;AADN;AAKE;EACE,aAAA;AAHJ;AAKI;EACE,yBAAA;AAHN;AAMI;EACE,uBAAA;AAJN;AAQE;EACE,WAAA;EACA,gBAAA;EACA,wCAAA;EACA,kBAAA;EACA,6CAAA;AANJ","file":"DataTable.css","sourcesContent":[".qp-data-table {\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &__empty {\n flex: 1;\n }\n\n &__tr_empty {\n .qp-data-table__td_empty {\n border-bottom: 1px solid var(--g-color-line-generic);\n }\n }\n\n &__content_empty {\n display: flex;\n\n &.qp-data-table__content_align_right {\n justify-content: flex-end;\n }\n\n &.qp-data-table__content_align_center {\n justify-content: center;\n }\n }\n\n &__no-data-placeholder {\n width: 100%;\n max-width: 120px;\n height: var(--g-text-body-1-line-height);\n border-radius: 4px;\n background-color: var(--g-color-base-generic);\n }\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["DataTable.scss"],"names":[],"mappings":"AAAA;EACI,aAAA;EACA,sBAAA;EACA,YAAA;AACJ;AACI;EACI,OAAA;AACR;AAGQ;EACI,oDAAA;AADZ;AAKI;EACI,aAAA;AAHR;AAKQ;EACI,yBAAA;AAHZ;AAMQ;EACI,uBAAA;AAJZ","file":"DataTable.css","sourcesContent":[".qp-data-table {\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &__empty {\n flex: 1;\n }\n\n &__tr_empty {\n .qp-data-table__td_empty {\n border-bottom: 1px solid var(--g-color-line-generic);\n }\n }\n\n &__content_empty {\n display: flex;\n\n &.qp-data-table__content_align_right {\n justify-content: flex-end;\n }\n\n &.qp-data-table__content_align_center {\n justify-content: center;\n }\n }\n}\n"],"sourceRoot":""}