ydb-embedded-ui 6.15.0 → 6.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (305) hide show
  1. package/README.md +1 -1
  2. package/dist/components/ElapsedTime/ElapsedTime.js +2 -1
  3. package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
  4. package/dist/components/EmptyState/EmptyState.d.ts +6 -0
  5. package/dist/components/EmptyState/EmptyState.js +6 -0
  6. package/dist/components/EmptyState/EmptyState.js.map +1 -1
  7. package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
  8. package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
  9. package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
  10. package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
  11. package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
  12. package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +1 -1
  13. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
  14. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
  15. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
  16. package/dist/components/MetricChart/reducer.d.ts +2 -2
  17. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
  18. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
  19. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
  20. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
  21. package/dist/components/PageMeta/PageMeta.d.ts +2 -1
  22. package/dist/components/PageMeta/PageMeta.js +9 -4
  23. package/dist/components/PageMeta/PageMeta.js.map +1 -1
  24. package/dist/components/PageMeta/PageMeta.scss +9 -6
  25. package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
  26. package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
  27. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  28. package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
  29. package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
  30. package/dist/components/PaginatedTable/TableChunk.d.ts +13 -5
  31. package/dist/components/PaginatedTable/TableChunk.js +51 -21
  32. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  33. package/dist/components/PaginatedTable/TableRow.js +1 -1
  34. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  35. package/dist/components/PaginatedTable/types.d.ts +8 -1
  36. package/dist/components/Skeleton/Skeleton.d.ts +6 -0
  37. package/dist/components/Skeleton/Skeleton.js +11 -0
  38. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  39. package/dist/components/Tablet/Tablet.js +2 -2
  40. package/dist/components/Tablet/Tablet.js.map +1 -1
  41. package/dist/components/TabletState/TabletState.d.ts +6 -0
  42. package/dist/components/TabletState/TabletState.js +7 -0
  43. package/dist/components/TabletState/TabletState.js.map +1 -0
  44. package/dist/containers/Cluster/Cluster.js +10 -10
  45. package/dist/containers/Cluster/Cluster.js.map +1 -1
  46. package/dist/containers/Cluster/Cluster.scss +14 -0
  47. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  48. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
  49. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js.map +1 -1
  50. package/dist/containers/Nodes/Nodes.d.ts +2 -1
  51. package/dist/containers/Nodes/Nodes.js +2 -2
  52. package/dist/containers/Nodes/Nodes.js.map +1 -1
  53. package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
  54. package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
  55. package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
  56. package/dist/containers/Nodes/PaginatedNodes.js +6 -18
  57. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  58. package/dist/containers/Nodes/getNodes.d.ts +3 -6
  59. package/dist/containers/Nodes/getNodes.js +19 -2
  60. package/dist/containers/Nodes/getNodes.js.map +1 -1
  61. package/dist/containers/PDiskPage/PDiskPage.js +4 -5
  62. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  63. package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
  64. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  65. package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
  66. package/dist/containers/Storage/PaginatedStorage.js +3 -3
  67. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  68. package/dist/containers/Storage/Storage.d.ts +2 -2
  69. package/dist/containers/Storage/Storage.js +3 -3
  70. package/dist/containers/Storage/Storage.js.map +1 -1
  71. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
  72. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
  73. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  74. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
  75. package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
  76. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  77. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +2 -2
  78. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +6 -18
  79. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
  80. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +3 -5
  81. package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
  82. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  83. package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
  84. package/dist/containers/Tablet/Tablet.d.ts +1 -1
  85. package/dist/containers/Tablet/Tablet.js +95 -52
  86. package/dist/containers/Tablet/Tablet.js.map +1 -1
  87. package/dist/containers/Tablet/Tablet.scss +4 -81
  88. package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
  89. package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
  90. package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
  91. package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
  92. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
  93. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
  94. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
  95. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
  96. package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
  97. package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
  98. package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
  99. package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
  100. package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
  101. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
  102. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
  103. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
  104. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
  105. package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
  106. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
  107. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
  108. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
  109. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
  110. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
  111. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
  112. package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
  113. package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
  114. package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
  115. package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
  116. package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
  117. package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
  118. package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
  119. package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
  120. package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
  121. package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
  122. package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
  123. package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
  124. package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
  125. package/dist/containers/Tablet/i18n/en.json +5 -1
  126. package/dist/containers/Tablet/i18n/index.d.ts +1 -1
  127. package/dist/containers/Tablet/utils.d.ts +1 -0
  128. package/dist/containers/Tablet/utils.js +4 -0
  129. package/dist/containers/Tablet/utils.js.map +1 -0
  130. package/dist/containers/Tablets/Tablets.js +16 -10
  131. package/dist/containers/Tablets/Tablets.js.map +1 -1
  132. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  133. package/dist/containers/Tenant/Acl/Acl.scss +2 -2
  134. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
  135. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  136. package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
  137. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  138. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  139. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +21 -11
  140. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js.map +1 -1
  141. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -2
  142. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
  143. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -8
  144. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  145. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
  146. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
  147. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
  148. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
  149. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
  150. package/dist/containers/Tenant/Query/Preview/Preview.scss +0 -8
  151. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
  152. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  153. package/dist/containers/Tenant/Query/Query.js +2 -14
  154. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  155. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
  156. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  157. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
  158. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  159. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
  160. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  161. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
  162. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  163. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
  164. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
  165. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  166. package/dist/containers/Tenant/Query/i18n/en.json +4 -1
  167. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  168. package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
  169. package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
  170. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
  171. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
  172. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -2
  173. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  174. package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -1
  175. package/dist/containers/Tenant/Tenant.js +5 -1
  176. package/dist/containers/Tenant/Tenant.js.map +1 -1
  177. package/dist/containers/Tenant/utils/queryTemplates.js +6 -5
  178. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  179. package/dist/containers/UserSettings/i18n/en.json +0 -2
  180. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  181. package/dist/containers/UserSettings/settings.d.ts +0 -1
  182. package/dist/containers/UserSettings/settings.js +2 -7
  183. package/dist/containers/UserSettings/settings.js.map +1 -1
  184. package/dist/containers/VDiskPage/VDiskPage.js +5 -6
  185. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  186. package/dist/containers/VDiskPage/VDiskPage.scss +0 -4
  187. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  188. package/dist/routes.d.ts +1 -0
  189. package/dist/routes.js +3 -0
  190. package/dist/routes.js.map +1 -1
  191. package/dist/services/api.d.ts +13 -7
  192. package/dist/services/api.js +29 -7
  193. package/dist/services/api.js.map +1 -1
  194. package/dist/services/settings.d.ts +1 -2
  195. package/dist/services/settings.js +1 -2
  196. package/dist/services/settings.js.map +1 -1
  197. package/dist/store/configureStore.d.ts +4 -8
  198. package/dist/store/defaultStore.d.ts +2 -4
  199. package/dist/store/reducers/api.d.ts +1 -1
  200. package/dist/store/reducers/api.js +1 -1
  201. package/dist/store/reducers/api.js.map +1 -1
  202. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  203. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  204. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -10
  205. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  206. package/dist/store/reducers/capabilities/hooks.js +3 -0
  207. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  208. package/dist/store/reducers/cluster/cluster.d.ts +2 -2
  209. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
  210. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  211. package/dist/store/reducers/describe.d.ts +2 -2
  212. package/dist/store/reducers/executeQuery.d.ts +18 -4
  213. package/dist/store/reducers/executeQuery.js +50 -5
  214. package/dist/store/reducers/executeQuery.js.map +1 -1
  215. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  216. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
  217. package/dist/store/reducers/header/types.d.ts +1 -1
  218. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
  219. package/dist/store/reducers/heatmap.d.ts +2 -2
  220. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  221. package/dist/store/reducers/index.d.ts +3 -6
  222. package/dist/store/reducers/index.js +0 -2
  223. package/dist/store/reducers/index.js.map +1 -1
  224. package/dist/store/reducers/network/network.d.ts +2 -2
  225. package/dist/store/reducers/node/node.d.ts +3 -3
  226. package/dist/store/reducers/node/selectors.d.ts +1 -2
  227. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  228. package/dist/store/reducers/nodes/types.d.ts +11 -1
  229. package/dist/store/reducers/nodesList.d.ts +3 -4
  230. package/dist/store/reducers/overview/overview.d.ts +2 -2
  231. package/dist/store/reducers/overview/overview.js +1 -0
  232. package/dist/store/reducers/overview/overview.js.map +1 -1
  233. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  234. package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
  235. package/dist/store/reducers/preview.d.ts +2 -2
  236. package/dist/store/reducers/schema/schema.d.ts +3 -3
  237. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  238. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  239. package/dist/store/reducers/storage/storage.d.ts +3 -3
  240. package/dist/store/reducers/storage/types.d.ts +15 -0
  241. package/dist/store/reducers/storage/types.js.map +1 -1
  242. package/dist/store/reducers/tableData.d.ts +14 -0
  243. package/dist/store/reducers/tableData.js +25 -0
  244. package/dist/store/reducers/tableData.js.map +1 -0
  245. package/dist/store/reducers/tablet.d.ts +19 -3
  246. package/dist/store/reducers/tablet.js +82 -13
  247. package/dist/store/reducers/tablet.js.map +1 -1
  248. package/dist/store/reducers/tablets.d.ts +15 -23
  249. package/dist/store/reducers/tablets.js +2 -20
  250. package/dist/store/reducers/tablets.js.map +1 -1
  251. package/dist/store/reducers/tabletsFilters.d.ts +1 -2
  252. package/dist/store/reducers/tenant/tenant.d.ts +2 -2
  253. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  254. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  255. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  256. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
  257. package/dist/store/reducers/tenants/selectors.d.ts +27 -36
  258. package/dist/store/reducers/tenants/selectors.js +1 -1
  259. package/dist/store/reducers/tenants/selectors.js.map +1 -1
  260. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  261. package/dist/store/reducers/topic.d.ts +44 -59
  262. package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
  263. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  264. package/dist/styles/mixins.scss +0 -5
  265. package/dist/types/api/capabilities.d.ts +1 -1
  266. package/dist/types/api/schema/shared.d.ts +1 -3
  267. package/dist/types/api/schema/shared.js.map +1 -1
  268. package/dist/types/api/schema/table.d.ts +2 -0
  269. package/dist/types/api/schema/table.js.map +1 -1
  270. package/dist/types/api/tablet.d.ts +22 -0
  271. package/dist/types/store/executeQuery.d.ts +5 -2
  272. package/dist/types/store/tablets.d.ts +1 -0
  273. package/dist/utils/constants.d.ts +1 -2
  274. package/dist/utils/constants.js +1 -2
  275. package/dist/utils/constants.js.map +1 -1
  276. package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
  277. package/dist/utils/dataFormatters/dataFormatters.js +5 -0
  278. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  279. package/dist/utils/developerUI/developerUI.d.ts +1 -1
  280. package/dist/utils/developerUI/developerUI.js +3 -2
  281. package/dist/utils/developerUI/developerUI.js.map +1 -1
  282. package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
  283. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  284. package/package.json +4 -3
  285. package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
  286. package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
  287. package/dist/components/PaginatedTable/reducer.d.ts +0 -43
  288. package/dist/components/PaginatedTable/reducer.js +0 -104
  289. package/dist/components/PaginatedTable/reducer.js.map +0 -1
  290. package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
  291. package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
  292. package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
  293. package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
  294. package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
  295. package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
  296. package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
  297. package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
  298. package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
  299. package/dist/containers/Tablet/TabletTable/index.js.map +0 -1
  300. /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
  301. /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
  302. /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
  303. /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
  304. /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
  305. /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -18,7 +18,8 @@ export const createVDiskDeveloperUILink = ({ nodeId, pDiskId, vDiskSlotId, host,
18
18
  const vdiskPath = 'actors/vdisks/vdisk' + pad9(pDiskId) + '_' + pad9(vDiskSlotId);
19
19
  return createDeveloperUILinkWithNodeId(nodeId, host) + vdiskPath;
20
20
  };
21
- export function createTabletDeveloperUIHref(tabletId, host = backend) {
22
- return `${host}/tablets?TabletID=${tabletId}`;
21
+ export function createTabletDeveloperUIHref(tabletId, tabletPage, searchParam = 'TabletID', host = backend) {
22
+ const subPage = tabletPage ? `/${tabletPage}` : '';
23
+ return `${host}/tablets${subPage}?${searchParam}=${tabletId}`;
23
24
  }
24
25
  //# sourceMappingURL=developerUI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"developerUI.js","sourceRoot":"","sources":["../../../src/utils/developerUI/developerUI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAE9B,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,MAAuB,EAAE,IAAI,GAAG,OAA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AC;IACnD,OAAO,GAAG,IAAI,WAAW,OAAO,IAAI,WAAW,IAAI,QAAQ,EAAE,CAAC;AAClE,CAAC"}
@@ -1,7 +1,8 @@
1
- import { DEFAULT_QUERY_SETTINGS, ENABLE_TRACING_LEVEL_KEY, QUERY_EXECUTION_SETTINGS_KEY, } from '../constants';
1
+ import { useTracingLevelOptionAvailable } from '../../store/reducers/capabilities/hooks';
2
+ import { DEFAULT_QUERY_SETTINGS, QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
2
3
  import { useSetting } from './useSetting';
3
4
  export const useQueryExecutionSettings = () => {
4
- const [enableTracingLevel] = useSetting(ENABLE_TRACING_LEVEL_KEY);
5
+ const enableTracingLevel = useTracingLevelOptionAvailable();
5
6
  const [setting, setSetting] = useSetting(QUERY_EXECUTION_SETTINGS_KEY);
6
7
  return [
7
8
  {
@@ -1 +1 @@
1
- {"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AACA,OAAO,EACH,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,GAC/B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAC3E,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,UAAU,CAAgB,4BAA4B,CAAC,CAAC;IAEtF,OAAO;QACH;YACI,GAAG,OAAO;YACV,YAAY,EAAE,kBAAkB;gBAC5B,CAAC,CAAC,OAAO,CAAC,YAAY;gBACtB,CAAC,CAAC,sBAAsB,CAAC,YAAY;SAC5C;QACD,UAAU;KACJ,CAAC;AACf,CAAC,CAAC"}
1
+ {"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,sBAAsB,EAAE,4BAA4B,EAAC,MAAM,cAAc,CAAC;AAElF,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,MAAM,kBAAkB,GAAG,8BAA8B,EAAE,CAAC;IAC5D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,UAAU,CAAgB,4BAA4B,CAAC,CAAC;IAEtF,OAAO;QACH;YACI,GAAG,OAAO;YACV,YAAY,EAAE,kBAAkB;gBAC5B,CAAC,CAAC,OAAO,CAAC,YAAY;gBACtB,CAAC,CAAC,sBAAsB,CAAC,YAAY;SAC5C;QACD,UAAU;KACJ,CAAC;AACf,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.15.0",
3
+ "version": "6.16.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -26,8 +26,8 @@
26
26
  "@gravity-ui/websql-autocomplete": "^9.1.0",
27
27
  "@reduxjs/toolkit": "^2.2.3",
28
28
  "@tanstack/react-table": "^8.19.3",
29
- "axios": "^1.7.2",
30
- "axios-retry": "^4.4.0",
29
+ "axios": "^1.7.3",
30
+ "axios-retry": "^4.4.2",
31
31
  "colord": "^2.9.3",
32
32
  "copy-to-clipboard": "^3.3.3",
33
33
  "crc-32": "^1.2.2",
@@ -38,6 +38,7 @@
38
38
  "path-to-regexp": "^3.0.0",
39
39
  "qs": "^6.12.0",
40
40
  "react-error-boundary": "^4.0.13",
41
+ "react-freeze": "^1.0.4",
41
42
  "react-helmet-async": "^2.0.5",
42
43
  "react-hook-form": "^7.52.1",
43
44
  "react-json-inspector": "^7.1.1",
@@ -1,10 +0,0 @@
1
- import type { EFlag } from '../../types/api/enums';
2
- import './DiskPageTitle.scss';
3
- interface DiskPageTitleProps {
4
- entityName: React.ReactNode;
5
- status: EFlag;
6
- id: React.ReactNode;
7
- className?: string;
8
- }
9
- export declare function DiskPageTitle({ entityName, status, id, className }: DiskPageTitleProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"DiskPageTitle.js","sourceRoot":"","sources":["../../../src/components/DiskPageTitle/DiskPageTitle.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;AASpC,MAAM,UAAU,aAAa,CAAC,EAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAqB;IACjF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,aAC9B,eAAM,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAG,UAAU,GAAQ,EACjD,KAAC,UAAU,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,EAC5D,EAAE,IACD,CACT,CAAC;AACN,CAAC"}
@@ -1,43 +0,0 @@
1
- import type { IResponseError } from '../../types/api/error';
2
- import type { Chunk } from './types';
3
- declare const SET_CHUNK_DATA = "infiniteTable/SET_CHUNK_DATA";
4
- type PaginatedTableState<T> = Record<string, Chunk<T> | undefined>;
5
- interface SetChunkDataAction<T> {
6
- type: typeof SET_CHUNK_DATA;
7
- data: {
8
- id: string;
9
- data: T[];
10
- };
11
- }
12
- export declare const setChunkData: <T>(id: string, data: T[]) => SetChunkDataAction<T>;
13
- export declare const setChunkError: (id: string, error: IResponseError) => {
14
- readonly type: "infiniteTable/SET_CHUNK_ERROR";
15
- readonly data: {
16
- readonly id: string;
17
- readonly error: IResponseError<unknown>;
18
- };
19
- };
20
- export declare const initChunk: (id: string) => {
21
- readonly type: "infiniteTable/INIT_CHUNK";
22
- readonly data: {
23
- readonly id: string;
24
- };
25
- };
26
- export declare const setChunkLoading: (id: string) => {
27
- readonly type: "infiniteTable/SET_CHUNK_LOADING";
28
- readonly data: {
29
- readonly id: string;
30
- };
31
- };
32
- export declare const removeChunk: (id: string) => {
33
- readonly type: "infiniteTable/REMOVE_CHUNK";
34
- readonly data: {
35
- readonly id: string;
36
- };
37
- };
38
- export declare const resetChunks: () => {
39
- readonly type: "infiniteTable/RESET_CHUNKS";
40
- };
41
- type PaginatedTableAction<T> = SetChunkDataAction<T> | ReturnType<typeof setChunkError> | ReturnType<typeof initChunk> | ReturnType<typeof setChunkLoading> | ReturnType<typeof removeChunk> | ReturnType<typeof resetChunks>;
42
- export declare const createPaginatedTableReducer: <T>() => React.Reducer<PaginatedTableState<T>, PaginatedTableAction<T>>;
43
- export {};
@@ -1,104 +0,0 @@
1
- const INIT_CHUNK = 'infiniteTable/INIT_CHUNK';
2
- const REMOVE_CHUNK = 'infiniteTable/REMOVE_CHUNK';
3
- const SET_CHUNK_LOADING = 'infiniteTable/SET_CHUNK_LOADING';
4
- const SET_CHUNK_DATA = 'infiniteTable/SET_CHUNK_DATA';
5
- const SET_CHUNK_ERROR = 'infiniteTable/SET_CHUNK_ERROR';
6
- const RESET_CHUNKS = 'infiniteTable/RESET_CHUNKS';
7
- export const setChunkData = (id, data) => {
8
- return {
9
- type: SET_CHUNK_DATA,
10
- data: { id, data },
11
- };
12
- };
13
- export const setChunkError = (id, error) => {
14
- return {
15
- type: SET_CHUNK_ERROR,
16
- data: { id, error },
17
- };
18
- };
19
- export const initChunk = (id) => {
20
- return {
21
- type: INIT_CHUNK,
22
- data: { id },
23
- };
24
- };
25
- export const setChunkLoading = (id) => {
26
- return {
27
- type: SET_CHUNK_LOADING,
28
- data: { id },
29
- };
30
- };
31
- export const removeChunk = (id) => {
32
- return {
33
- type: REMOVE_CHUNK,
34
- data: { id },
35
- };
36
- };
37
- export const resetChunks = () => {
38
- return {
39
- type: RESET_CHUNKS,
40
- };
41
- };
42
- // Reducer wrapped in additional function to pass generic type
43
- export const createPaginatedTableReducer = () => (state, action) => {
44
- switch (action.type) {
45
- case SET_CHUNK_DATA: {
46
- const { id, data } = action.data;
47
- return {
48
- ...state,
49
- [id]: {
50
- loading: false,
51
- wasLoaded: true,
52
- active: true,
53
- data,
54
- },
55
- };
56
- }
57
- case SET_CHUNK_ERROR: {
58
- const { id, error } = action.data;
59
- return {
60
- ...state,
61
- [id]: {
62
- loading: false,
63
- wasLoaded: true,
64
- active: true,
65
- error,
66
- },
67
- };
68
- }
69
- case INIT_CHUNK: {
70
- const { id } = action.data;
71
- return {
72
- ...state,
73
- [id]: {
74
- loading: false,
75
- wasLoaded: false,
76
- active: true,
77
- },
78
- };
79
- }
80
- case SET_CHUNK_LOADING: {
81
- const { id } = action.data;
82
- return {
83
- ...state,
84
- [id]: {
85
- loading: true,
86
- wasLoaded: false,
87
- active: true,
88
- },
89
- };
90
- }
91
- case REMOVE_CHUNK: {
92
- const { id } = action.data;
93
- const newState = { ...state };
94
- delete newState[id];
95
- return newState;
96
- }
97
- case RESET_CHUNKS: {
98
- return {};
99
- }
100
- default:
101
- return state;
102
- }
103
- };
104
- //# sourceMappingURL=reducer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reducer.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/reducer.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,GAAG,0BAA0B,CAAC;AAC9C,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAClD,MAAM,iBAAiB,GAAG,iCAAiC,CAAC;AAC5D,MAAM,cAAc,GAAG,8BAA8B,CAAC;AACtD,MAAM,eAAe,GAAG,+BAA+B,CAAC;AACxD,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAalD,MAAM,CAAC,MAAM,YAAY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AAC;QACd,CAAC;QACD;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { TTabletStateInfo } from '../../../types/api/tablet';
2
- interface TabletControlsProps {
3
- tablet: TTabletStateInfo;
4
- fetchData: () => Promise<unknown>;
5
- }
6
- export declare const TabletControls: ({ tablet, fetchData }: TabletControlsProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,29 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { ButtonWithConfirmDialog } from '../../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
4
- import { selectIsUserAllowedToMakeChanges } from '../../../store/reducers/authentication/authentication';
5
- import { ETabletState } from '../../../types/api/tablet';
6
- import { useTypedSelector } from '../../../utils/hooks';
7
- import { b } from '../Tablet';
8
- import i18n from '../i18n';
9
- export const TabletControls = ({ tablet, fetchData }) => {
10
- const { TabletId, HiveId } = tablet;
11
- const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
12
- const _onKillClick = () => {
13
- return window.api.killTablet(TabletId);
14
- };
15
- const _onStopClick = () => {
16
- return window.api.stopTablet(TabletId, HiveId);
17
- };
18
- const _onResumeClick = () => {
19
- return window.api.resumeTablet(TabletId, HiveId);
20
- };
21
- const hasHiveId = () => {
22
- return HiveId && HiveId !== '0';
23
- };
24
- const isDisabledRestart = tablet.State === ETabletState.Stopped;
25
- const isDisabledResume = tablet.State !== ETabletState.Stopped && tablet.State !== ETabletState.Dead;
26
- const isDisabledStop = tablet.State === ETabletState.Stopped || tablet.State === ETabletState.Deleted;
27
- return (_jsxs("div", { className: b('controls'), children: [_jsx(ButtonWithConfirmDialog, { dialogContent: i18n('dialog.kill'), onConfirmAction: _onKillClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverPlacement: 'bottom', popoverDisabled: isUserAllowedToMakeChanges, children: i18n('controls.kill') }), hasHiveId() ? (_jsxs(React.Fragment, { children: [_jsx(ButtonWithConfirmDialog, { dialogContent: i18n('dialog.stop'), onConfirmAction: _onStopClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledStop || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.stop-not-allowed'), popoverPlacement: 'bottom', popoverDisabled: isUserAllowedToMakeChanges, children: i18n('controls.stop') }), _jsx(ButtonWithConfirmDialog, { dialogContent: i18n('dialog.resume'), onConfirmAction: _onResumeClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledResume || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.resume-not-allowed'), popoverPlacement: 'bottom', popoverDisabled: isUserAllowedToMakeChanges, children: i18n('controls.resume') })] })) : null] }));
28
- };
29
- //# sourceMappingURL=TabletControls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabletControls.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletControls/TabletControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,uBAAuB,EAAC,MAAM,qEAAqE,CAAC;AAC5G,OAAO,EAAC,gCAAgC,EAAC,MAAM,uDAAuD,CAAC;AACvG,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,CAAC,EAAC,MAAM,WAAW,CAAC;AAC5B,OAAO,IAAI,MAAM,SAAS,CAAC;AAO3B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,MAAM,EAAE,SAAS,EAAsB,EAAE,EAAE;IACvE,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAC,GAAG,MAAM,CAAC;IAElC,MAAM,0BAA0B,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C,IAAI,CAAC,eAAe,CAAC,GACA,EACzB,SAAS,EAAE,CAAC,CAAC,CAAC,CACX,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,uBAAuB,IACpB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,EAClC,eAAe,EAAE,YAAY,EAC7B,sBAAsB,EAAE,SAAS,EACjC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,EAC7B,cAAc,EAAE,cAAc,IAAI,CAAC,0BAA0B,EAC7D,WAAW,QACX,cAAc,EAAE,IAAI,CAAC,2BAA2B,CAAC,EACjD,gBAAgB,EAAE,QAAQ,EAC1B,eAAe,EAAE,0BAA0B,YAE1C,IAAI,CAAC,eAAe,CAAC,GACA,EAC1B,KAAC,uBAAuB,IACpB,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,EACpC,eAAe,EAAE,cAAc,EAC/B,sBAAsB,EAAE,SAAS,EACjC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,EAC7B,cAAc,EAAE,gBAAgB,IAAI,CAAC,0BAA0B,EAC/D,WAAW,QACX,cAAc,EAAE,IAAI,CAAC,6BAA6B,CAAC,EACnD,gBAAgB,EAAE,QAAQ,EAC1B,eAAe,EAAE,0BAA0B,YAE1C,IAAI,CAAC,iBAAiB,CAAC,GACF,IACb,CACpB,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletControls/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { TTabletStateInfo } from '../../../types/api/tablet';
2
- interface TabletInfoProps {
3
- tablet: TTabletStateInfo;
4
- tenantPath?: string;
5
- }
6
- export declare const TabletInfo: ({ tablet, tenantPath }: TabletInfoProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,40 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Link as UIKitLink } from '@gravity-ui/uikit';
3
- import { Link } from 'react-router-dom';
4
- import { InfoViewer } from '../../../components/InfoViewer';
5
- import routes, { createHref } from '../../../routes';
6
- import { ETabletState } from '../../../types/api/tablet';
7
- import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
8
- import { getDefaultNodePath } from '../../Node/NodePages';
9
- import { b } from '../Tablet';
10
- export const TabletInfo = ({ tablet, tenantPath }) => {
11
- const { ChangeTime, Generation, FollowerId, NodeId, HiveId, State, Type, TenantId: { SchemeShard } = {}, } = tablet;
12
- const hasHiveId = HiveId && HiveId !== '0';
13
- const hasUptime = State === ETabletState.Active;
14
- const tabletInfo = [{ label: 'Database', value: tenantPath || '-' }];
15
- if (hasHiveId) {
16
- tabletInfo.push({
17
- label: 'HiveId',
18
- value: (_jsx(UIKitLink, { href: createHref(routes.tablet, { id: HiveId }), target: "_blank", children: HiveId })),
19
- });
20
- }
21
- if (SchemeShard) {
22
- tabletInfo.push({
23
- label: 'SchemeShard',
24
- value: (_jsx(UIKitLink, { href: createHref(routes.tablet, { id: SchemeShard }), target: "_blank", children: SchemeShard })),
25
- });
26
- }
27
- tabletInfo.push({ label: 'Type', value: Type }, { label: 'State', value: State });
28
- if (hasUptime) {
29
- tabletInfo.push({ label: 'Uptime', value: calcUptime(ChangeTime) });
30
- }
31
- tabletInfo.push({ label: 'Generation', value: Generation }, {
32
- label: 'Node',
33
- value: (_jsx(Link, { className: b('link'), to: getDefaultNodePath(String(NodeId)), children: NodeId })),
34
- });
35
- if (FollowerId) {
36
- tabletInfo.push({ label: 'Follower', value: FollowerId });
37
- }
38
- return _jsx(InfoViewer, { info: tabletInfo });
39
- };
40
- //# sourceMappingURL=TabletInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabletInfo.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletInfo/TabletInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,IAAI,SAAS,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EAAE,aAAa;YACpB,KAAK,EAAE,CACH,KAAC,SAAS,IAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAC,EAAE,EAAE,WAAW,EAAC,CAAC,EAAE,MAAM,EAAC,QAAQ,YACzE,WAAW,GACJ,CACf;SACJ,CAAC,CAAC;IACP,CAAC;IAED,UAAU,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAC,EAAE,EAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC;IAE9E,IAAI,SAAS,EAAE,CAAC;QACZ,UAAU,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,EAAC,CAAC,CAAC;IACtE,CAAC;IAED,UAAU,CAAC,IAAI,CACX,EAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAC,EACxC;QACI,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,CACH,KAAC,IAAI,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,YAC7D,MAAM,GACJ,CACV;KACJ,CACJ,CAAC;IAEF,IAAI,UAAU,EAAE,CAAC;QACb,UAAU,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAC,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,KAAC,UAAU,IAAC,IAAI,EAAE,UAAU,GAAI,CAAC;AAC5C,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletInfo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabletTable.js","sourceRoot":"","sources":["../../../../src/containers/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