ydb-embedded-ui 5.4.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -4
- package/dist/components/BasicNodeViewer/BasicNodeViewer.d.ts +2 -2
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +5 -4
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +4 -4
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +6 -6
- package/dist/components/CellWithPopover/CellWithPopover.d.ts +2 -3
- package/dist/components/CellWithPopover/CellWithPopover.js +2 -2
- package/dist/components/CellWithPopover/CellWithPopover.scss +1 -1
- package/dist/components/CircularProgressBar/CircularProgressBar.d.ts +3 -3
- package/dist/components/CircularProgressBar/CircularProgressBar.js +2 -2
- package/dist/components/ClipboardButton/ClipboardButton.d.ts +2 -3
- package/dist/components/ClipboardButton/ClipboardButton.js +5 -5
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +1 -1
- package/dist/components/ComponentsProvider/ComponentsProvider.js +1 -1
- package/dist/components/ComponentsProvider/componentsRegistry.d.ts +3 -2
- package/dist/components/ComponentsProvider/componentsRegistry.js +2 -2
- package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +5 -5
- package/dist/components/ContentWithPopup/ContentWithPopup.js +5 -5
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +1 -2
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +9 -9
- package/dist/components/DateRange/DateRange.d.ts +1 -1
- package/dist/components/DateRange/DateRange.js +2 -2
- package/dist/components/DiagnosticCard/DiagnosticCard.d.ts +3 -3
- package/dist/components/DiagnosticCard/DiagnosticCard.js +2 -2
- package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +11 -0
- package/dist/components/DiskPageTitle/DiskPageTitle.js +8 -0
- package/dist/components/DiskPageTitle/DiskPageTitle.scss +21 -0
- package/dist/{containers/Storage → components}/DiskStateProgressBar/DiskStateProgressBar.d.ts +1 -2
- package/dist/{containers/Storage → components}/DiskStateProgressBar/DiskStateProgressBar.js +6 -6
- package/dist/components/Divider/Divider.d.ts +1 -2
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +5 -5
- package/dist/components/EmptyState/EmptyState.js +2 -2
- package/dist/components/EnableFullscreenButton/EnableFullscreenButton.d.ts +1 -2
- package/dist/components/EnableFullscreenButton/EnableFullscreenButton.js +2 -2
- package/dist/components/EntitiesCount/EntitiesCount.d.ts +1 -1
- package/dist/components/EntitiesCount/EntitiesCount.js +1 -1
- package/dist/components/EntitiesCount/i18n/index.d.ts +1 -1
- package/dist/components/EntitiesCount/i18n/index.js +2 -4
- package/dist/components/EntityStatus/EntityStatus.d.ts +2 -3
- package/dist/components/EntityStatus/EntityStatus.js +14 -11
- package/dist/components/EntityStatus/EntityStatus.scss +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +7 -7
- package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
- package/dist/components/ErrorBoundary/i18n/index.d.ts +1 -1
- package/dist/components/ErrorBoundary/i18n/index.js +2 -4
- package/dist/components/Errors/403/AccessDenied.d.ts +2 -2
- package/dist/components/Errors/ResponseError/ResponseError.d.ts +2 -3
- package/dist/components/Errors/ResponseError/ResponseError.js +10 -1
- package/dist/components/Errors/i18n/index.d.ts +1 -1
- package/dist/components/Errors/i18n/index.js +2 -4
- package/dist/components/FormattedBytes/FormattedBytes.d.ts +2 -2
- package/dist/components/FormattedBytes/FormattedBytes.js +1 -1
- package/dist/components/FormattedBytes/utils.d.ts +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.d.ts +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js +3 -3
- package/dist/components/Fullscreen/Fullscreen.d.ts +1 -1
- package/dist/components/Fullscreen/Fullscreen.js +6 -6
- package/dist/components/Fullscreen/Fullscreen.scss +1 -4
- package/dist/components/GroupInfo/GroupInfo.d.ts +7 -0
- package/dist/components/GroupInfo/GroupInfo.js +28 -0
- package/dist/components/GroupInfo/i18n/en.json +6 -0
- package/dist/components/GroupInfo/i18n/index.d.ts +1 -0
- package/dist/components/GroupInfo/i18n/index.js +4 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Illustration/Illustration.d.ts +3 -3
- package/dist/components/Illustration/Illustration.js +5 -5
- package/dist/components/InfoViewer/InfoViewer.d.ts +5 -5
- package/dist/components/InfoViewer/InfoViewer.js +5 -4
- package/dist/components/InfoViewer/formatters/cdcStream.d.ts +3 -2
- package/dist/components/InfoViewer/formatters/common.d.ts +2 -1
- package/dist/components/InfoViewer/formatters/common.js +1 -1
- package/dist/components/InfoViewer/formatters/pqGroup.d.ts +5 -4
- package/dist/components/InfoViewer/formatters/pqGroup.js +2 -2
- package/dist/components/InfoViewer/formatters/schema.d.ts +2 -1
- package/dist/components/InfoViewer/formatters/schema.js +2 -2
- package/dist/components/InfoViewer/formatters/table.d.ts +5 -4
- package/dist/components/InfoViewer/i18n/index.d.ts +1 -1
- package/dist/components/InfoViewer/i18n/index.js +2 -4
- package/dist/components/InfoViewer/schemaInfo/TableIndexInfo.d.ts +1 -1
- package/dist/components/InfoViewer/schemaInfo/TableIndexInfo.js +2 -2
- package/dist/components/InfoViewer/schemaOverview/CDCStreamOverview.d.ts +1 -1
- package/dist/components/InfoViewer/schemaOverview/CDCStreamOverview.js +7 -11
- package/dist/components/InfoViewer/schemaOverview/PersQueueGroupOverview.d.ts +1 -1
- package/dist/components/InfoViewer/schemaOverview/PersQueueGroupOverview.js +9 -5
- package/dist/components/InfoViewer/utils.d.ts +6 -6
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +1 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +4 -4
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.scss +1 -1
- package/dist/components/InternalLink/InternalLink.d.ts +2 -2
- package/dist/components/InternalLink/InternalLink.js +3 -3
- package/dist/components/LabelWithPopover/LabelWithPopover.d.ts +4 -4
- package/dist/components/LabelWithPopover/LabelWithPopover.js +1 -1
- package/dist/components/LagImages/LagImages.d.ts +2 -2
- package/dist/components/LagImages/LagImages.js +5 -5
- package/dist/components/LagPopoverContent/LagPopoverContent.d.ts +1 -1
- package/dist/components/LagPopoverContent/LagPopoverContent.js +3 -3
- package/dist/components/LinkToSchemaObject/LinkToSchemaObject.d.ts +3 -4
- package/dist/components/LinkToSchemaObject/LinkToSchemaObject.js +1 -1
- package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +1 -1
- package/dist/components/LinkWithIcon/LinkWithIcon.js +8 -7
- package/dist/components/Loader/Loader.d.ts +2 -2
- package/dist/components/Loader/Loader.js +2 -2
- package/dist/components/MetricChart/MetricChart.d.ts +2 -2
- package/dist/components/MetricChart/MetricChart.js +29 -77
- package/dist/components/MetricChart/colors.js +9 -9
- package/dist/components/MetricChart/getChartData.d.ts +5 -4
- package/dist/components/MetricChart/getChartData.js +2 -2
- package/dist/components/MetricChart/reducer.d.ts +4 -26
- package/dist/components/MetricChart/reducer.js +32 -58
- package/dist/components/MetricChart/types.d.ts +4 -0
- package/dist/components/MonacoEditor/MonacoEditor.d.ts +2 -0
- package/dist/components/MonacoEditor/MonacoEditor.js +7 -0
- package/dist/components/MonitoringButton/MonitoringButton.d.ts +1 -2
- package/dist/components/MonitoringButton/MonitoringButton.js +2 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +5 -5
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +2 -3
- package/dist/components/PDiskInfo/PDiskInfo.js +6 -6
- package/dist/components/PDiskInfo/PDiskInfo.scss +0 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/{containers/Storage → components}/PDiskPopup/PDiskPopup.d.ts +5 -5
- package/dist/{containers/Storage → components}/PDiskPopup/PDiskPopup.js +9 -8
- package/dist/components/PageMeta/PageMeta.d.ts +2 -2
- package/dist/components/PageMeta/PageMeta.js +9 -2
- package/dist/components/PageMeta/PageMeta.scss +9 -0
- package/dist/components/PoolBar/PoolBar.d.ts +1 -1
- package/dist/components/PoolBar/PoolBar.js +3 -3
- package/dist/components/PoolUsage/PoolUsage.d.ts +1 -1
- package/dist/components/PoolUsage/PoolUsage.js +3 -3
- package/dist/components/PoolsGraph/PoolsGraph.d.ts +1 -1
- package/dist/components/PoolsGraph/PoolsGraph.js +3 -3
- package/dist/components/ProblemFilter/ProblemFilter.d.ts +1 -1
- package/dist/components/ProblemFilter/ProblemFilter.js +1 -1
- package/dist/components/ProgressViewer/ProgressViewer.d.ts +5 -15
- package/dist/components/ProgressViewer/ProgressViewer.js +5 -14
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.d.ts +1 -1
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.js +2 -2
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +1 -2
- package/dist/components/QueryResultTable/Cell/Cell.js +4 -4
- package/dist/components/QueryResultTable/QueryResultTable.d.ts +2 -11
- package/dist/components/QueryResultTable/QueryResultTable.js +6 -6
- package/dist/components/QueryResultTable/i18n/index.d.ts +1 -1
- package/dist/components/QueryResultTable/i18n/index.js +2 -4
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.js +5 -5
- package/dist/components/ShortyString/ShortyString.d.ts +2 -2
- package/dist/components/ShortyString/ShortyString.js +5 -4
- package/dist/components/ShortyString/i18n/index.d.ts +1 -1
- package/dist/components/ShortyString/i18n/index.js +2 -4
- package/dist/components/SpeedMultiMeter/SpeedMultiMeter.d.ts +2 -2
- package/dist/components/SpeedMultiMeter/SpeedMultiMeter.js +11 -11
- package/dist/components/SpeedMultiMeter/i18n/index.d.ts +1 -1
- package/dist/components/SpeedMultiMeter/i18n/index.js +2 -4
- package/dist/components/SplitPane/SplitPane.d.ts +2 -2
- package/dist/components/SplitPane/SplitPane.js +6 -6
- package/dist/components/SplitPane/SplitPane.scss +1 -4
- package/dist/components/SplitPane/index.d.ts +1 -1
- package/dist/components/Stack/Stack.d.ts +2 -1
- package/dist/components/Stack/Stack.js +5 -5
- package/dist/components/Stack/Stack.scss +8 -4
- package/dist/components/StatusIcon/StatusIcon.d.ts +2 -2
- package/dist/components/StatusIcon/StatusIcon.js +6 -7
- package/dist/components/StatusIcon/StatusIcon.scss +2 -4
- package/dist/components/TableSkeleton/TableSkeleton.d.ts +1 -2
- package/dist/components/TableSkeleton/TableSkeleton.js +3 -3
- package/dist/components/TableSkeleton/TableSkeleton.scss +1 -1
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.d.ts +5 -5
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.js +5 -5
- package/dist/components/Tablet/Tablet.d.ts +1 -1
- package/dist/components/Tablet/Tablet.js +4 -4
- package/dist/components/TabletIcon/TabletIcon.d.ts +1 -1
- package/dist/components/TabletIcon/TabletIcon.js +2 -2
- package/dist/components/TabletsOverall/TabletsOverall.d.ts +1 -2
- package/dist/components/TabletsOverall/TabletsOverall.js +3 -3
- package/dist/components/TabletsOverall/TabletsOverall.scss +2 -3
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js +4 -4
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +2 -2
- package/dist/components/Tags/Tags.d.ts +2 -2
- package/dist/components/Tags/Tags.js +3 -3
- package/dist/components/TimeFrameSelector/TimeFrameSelector.d.ts +2 -2
- package/dist/components/TimeFrameSelector/TimeFrameSelector.js +3 -3
- package/dist/components/TimeFrameSelector/TimeFrameSelector.scss +0 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.d.ts +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +2 -2
- package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.d.ts +1 -1
- package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.d.ts +1 -1
- package/dist/components/TruncatedQuery/TruncatedQuery.d.ts +2 -2
- package/dist/components/TruncatedQuery/TruncatedQuery.js +6 -5
- package/dist/components/UptimeFIlter/UptimeFilter.d.ts +1 -1
- package/dist/components/UptimeFIlter/UptimeFilter.js +2 -2
- package/dist/components/UsageLabel/UsageLabel.d.ts +2 -3
- package/dist/components/UsageLabel/UsageLabel.js +1 -1
- package/dist/components/User/StaffCard.d.ts +1 -1
- package/dist/components/User/User.d.ts +1 -2
- package/dist/components/User/User.js +1 -1
- package/dist/{containers/Storage → components}/VDisk/VDisk.d.ts +3 -3
- package/dist/components/VDisk/VDisk.js +28 -0
- package/dist/{containers/Storage → components}/VDisk/VDisk.scss +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +11 -0
- package/dist/components/VDisk/VDiskWithDonorsStack.js +14 -0
- package/dist/components/VDiskInfo/VDiskInfo.d.ts +9 -0
- package/dist/components/VDiskInfo/VDiskInfo.js +113 -0
- package/dist/components/VDiskInfo/VDiskInfo.scss +7 -0
- package/dist/components/VDiskInfo/i18n/en.json +23 -0
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -0
- package/dist/components/VDiskInfo/i18n/index.js +4 -0
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +11 -0
- package/dist/{containers/Storage → components}/VDiskPopup/VDiskPopup.js +13 -12
- package/dist/components/VirtualTable/TableChunk.d.ts +2 -2
- package/dist/components/VirtualTable/TableChunk.js +5 -5
- package/dist/components/VirtualTable/TableHead.d.ts +3 -2
- package/dist/components/VirtualTable/TableHead.js +21 -23
- package/dist/components/VirtualTable/TableRow.d.ts +5 -5
- package/dist/components/VirtualTable/TableRow.js +8 -8
- package/dist/components/VirtualTable/VirtualTable.d.ts +2 -2
- package/dist/components/VirtualTable/VirtualTable.js +24 -24
- package/dist/components/VirtualTable/constants.d.ts +1 -0
- package/dist/components/VirtualTable/constants.js +1 -0
- package/dist/components/VirtualTable/i18n/index.d.ts +1 -1
- package/dist/components/VirtualTable/i18n/index.js +2 -4
- package/dist/components/VirtualTable/reducer.d.ts +1 -2
- package/dist/components/VirtualTable/shared.d.ts +1 -10
- package/dist/components/VirtualTable/shared.js +1 -1
- package/dist/components/VirtualTable/types.d.ts +7 -7
- package/dist/components/VirtualTable/useIntersectionObserver.js +3 -3
- package/dist/components/slots/types.d.ts +3 -1
- package/dist/components/slots/utils.d.ts +3 -1
- package/dist/containers/App/App.d.ts +8 -2
- package/dist/containers/App/App.js +5 -7
- package/dist/containers/App/App.scss +8 -5
- package/dist/containers/App/Content.d.ts +7 -3
- package/dist/containers/App/Content.js +30 -19
- package/dist/containers/App/Providers.d.ts +1 -1
- package/dist/containers/App/Providers.js +5 -5
- package/dist/containers/App/appSlots.d.ts +13 -4
- package/dist/containers/App/appSlots.js +2 -1
- package/dist/containers/App/i18n/index.d.ts +1 -1
- package/dist/containers/App/i18n/index.js +2 -4
- package/dist/containers/AppIcons/AppIcons.d.ts +1 -1
- package/dist/containers/AppIcons/AppIcons.js +3 -3
- package/dist/containers/AppWithClusters/AppWithClusters.d.ts +4 -4
- package/dist/containers/AppWithClusters/AppWithClusters.js +5 -5
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.d.ts +2 -3
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +7 -7
- package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.d.ts +1 -2
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.d.ts +2 -3
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +1 -1
- package/dist/containers/AppWithClusters/i18n/index.d.ts +1 -1
- package/dist/containers/AppWithClusters/i18n/index.js +2 -4
- package/dist/containers/AppWithClusters/useClusterData.js +11 -8
- package/dist/containers/AsideNavigation/AsideNavigation.d.ts +2 -2
- package/dist/containers/AsideNavigation/AsideNavigation.js +14 -14
- package/dist/containers/AsideNavigation/Navigation.d.ts +1 -1
- package/dist/containers/AsideNavigation/Navigation.js +2 -2
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +1 -2
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +4 -4
- package/dist/containers/AsideNavigation/i18n/index.d.ts +1 -1
- package/dist/containers/AsideNavigation/i18n/index.js +2 -4
- package/dist/containers/AsideNavigation/useNavigationMenuItems.js +4 -4
- package/dist/containers/Authentication/Authentication.d.ts +1 -2
- package/dist/containers/Authentication/Authentication.js +15 -15
- package/dist/containers/Authentication/Authentication.scss +3 -3
- package/dist/containers/Cluster/Cluster.d.ts +2 -3
- package/dist/containers/Cluster/Cluster.js +35 -36
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +4 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +16 -15
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +0 -1
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -1
- package/dist/containers/Cluster/VersionsBar/VersionsBar.d.ts +1 -1
- package/dist/containers/Cluster/VersionsBar/VersionsBar.js +3 -3
- package/dist/containers/Cluster/VersionsBar/VersionsBar.scss +2 -2
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Cluster/i18n/index.js +2 -4
- package/dist/containers/ClusterModeGuard/ClusterModeGuard.d.ts +3 -3
- package/dist/containers/ClusterModeGuard/ClusterModeGuard.js +3 -2
- package/dist/containers/Clusters/Clusters.d.ts +1 -2
- package/dist/containers/Clusters/Clusters.js +39 -31
- package/dist/containers/Clusters/Clusters.scss +12 -7
- package/dist/containers/Clusters/ClustersStatistics.d.ts +1 -1
- package/dist/containers/Clusters/ClustersStatistics.js +2 -2
- package/dist/containers/Clusters/columns.d.ts +1 -1
- package/dist/containers/Clusters/columns.js +15 -14
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Clusters/shared.d.ts +1 -10
- package/dist/containers/Clusters/shared.js +1 -1
- package/dist/containers/Clusters/useSelectedColumns.d.ts +3 -3
- package/dist/containers/Clusters/useSelectedColumns.js +3 -1
- package/dist/containers/Header/Header.d.ts +2 -3
- package/dist/containers/Header/Header.js +12 -16
- package/dist/containers/Header/breadcrumbs.js +15 -3
- package/dist/containers/Header/i18n/en.json +1 -0
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Heatmap/Heatmap.d.ts +1 -1
- package/dist/containers/Heatmap/Heatmap.js +15 -30
- package/dist/containers/Heatmap/Heatmap.scss +1 -1
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.d.ts +6 -7
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +11 -12
- package/dist/containers/Heatmap/Histogram/Histogram.d.ts +6 -6
- package/dist/containers/Heatmap/Histogram/Histogram.js +5 -5
- package/dist/containers/Heatmap/util.d.ts +10 -10
- package/dist/containers/Node/Node.d.ts +1 -2
- package/dist/containers/Node/Node.js +25 -33
- package/dist/containers/Node/NodePages.d.ts +1 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +1 -2
- package/dist/containers/Node/NodeStructure/NodeStructure.js +19 -32
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.d.ts +3 -3
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.js +2 -2
- package/dist/containers/Node/NodeStructure/Pdisk.d.ts +1 -2
- package/dist/containers/Node/NodeStructure/Pdisk.js +17 -17
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +6 -3
- package/dist/containers/Node/NodeStructure/Vdisk.js +8 -81
- package/dist/containers/Nodes/Nodes.d.ts +1 -1
- package/dist/containers/Nodes/Nodes.js +43 -39
- package/dist/containers/Nodes/NodesWrapper.d.ts +1 -1
- package/dist/containers/Nodes/NodesWrapper.js +1 -1
- package/dist/containers/Nodes/VirtualNodes.d.ts +1 -1
- package/dist/containers/Nodes/VirtualNodes.js +17 -17
- package/dist/containers/Nodes/getNodesColumns.d.ts +1 -1
- package/dist/containers/Nodes/getNodesColumns.js +5 -6
- package/dist/containers/Nodes/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/i18n/index.js +2 -4
- package/dist/containers/{PDisk → PDiskPage}/PDiskGroups.d.ts +1 -2
- package/dist/containers/{PDisk → PDiskPage}/PDiskGroups.js +5 -5
- package/dist/containers/PDiskPage/PDiskPage.d.ts +2 -0
- package/dist/containers/{PDisk/PDisk.js → PDiskPage/PDiskPage.js} +40 -42
- package/dist/containers/{PDisk/PDisk.scss → PDiskPage/PDiskPage.scss} +1 -16
- package/dist/containers/PDiskPage/shared.d.ts +1 -0
- package/dist/containers/ReduxTooltip/ReduxTooltip.d.ts +17 -16
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
- package/dist/containers/Storage/EmptyFilter/EmptyFilter.d.ts +1 -1
- package/dist/containers/Storage/EmptyFilter/EmptyFilter.js +1 -1
- package/dist/containers/Storage/EmptyFilter/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/EmptyFilter/i18n/index.js +2 -4
- package/dist/containers/Storage/PDisk/PDisk.d.ts +1 -1
- package/dist/containers/Storage/PDisk/PDisk.js +12 -18
- package/dist/containers/Storage/PDisk/PDisk.scss +0 -2
- package/dist/containers/Storage/Storage.d.ts +1 -1
- package/dist/containers/Storage/Storage.js +37 -48
- package/dist/containers/Storage/Storage.scss +1 -1
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +3 -3
- package/dist/containers/Storage/StorageControls/StorageControls.js +4 -3
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +3 -4
- package/dist/containers/Storage/StorageGroups/StorageGroups.js +3 -3
- package/dist/containers/Storage/StorageGroups/StorageGroups.scss +1 -7
- package/dist/containers/Storage/StorageGroups/StorageGroupsEmptyDataMessage.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/VirtualStorageGroups.d.ts +3 -3
- package/dist/containers/Storage/StorageGroups/VirtualStorageGroups.js +6 -6
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +10 -9
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +23 -30
- package/dist/containers/Storage/StorageGroups/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/i18n/index.js +2 -4
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +3 -4
- package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/StorageNodesEmptyDataMessage.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/VirtualStorageNodes.d.ts +3 -3
- package/dist/containers/Storage/StorageNodes/VirtualStorageNodes.js +8 -8
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +3 -2
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +5 -5
- package/dist/containers/Storage/StorageNodes/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/i18n/index.js +2 -4
- package/dist/containers/Storage/StorageNodes/shared.d.ts +1 -10
- package/dist/containers/Storage/StorageNodes/shared.js +1 -1
- package/dist/containers/Storage/StorageTypeFilter/StorageTypeFilter.d.ts +1 -1
- package/dist/containers/Storage/StorageTypeFilter/StorageTypeFilter.js +1 -1
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.d.ts +1 -1
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
- package/dist/containers/Storage/StorageWrapper.js +1 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +1 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +7 -7
- package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/UsageFilter/i18n/index.js +2 -4
- package/dist/containers/Storage/VirtualStorage.d.ts +1 -1
- package/dist/containers/Storage/VirtualStorage.js +9 -13
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/i18n/index.js +2 -4
- package/dist/containers/Storage/shared.d.ts +1 -10
- package/dist/containers/Storage/shared.js +1 -1
- package/dist/containers/Storage/utils/index.d.ts +2 -2
- package/dist/containers/Tablet/Tablet.d.ts +2 -11
- package/dist/containers/Tablet/Tablet.js +25 -37
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +3 -4
- package/dist/containers/Tablet/TabletControls/TabletControls.js +6 -4
- package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +2 -2
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js +5 -5
- package/dist/containers/Tablet/TabletTable/TabletTable.d.ts +1 -1
- package/dist/containers/Tablet/TabletTable/TabletTable.js +2 -2
- package/dist/containers/Tablets/Tablets.d.ts +1 -1
- package/dist/containers/Tablets/Tablets.js +28 -28
- package/dist/containers/Tablets/Tablets.scss +1 -2
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/i18n/index.js +2 -4
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +17 -24
- package/dist/containers/TabletsFilters/TabletsFilters.js +21 -20
- package/dist/containers/Tenant/Acl/Acl.d.ts +1 -1
- package/dist/containers/Tenant/Acl/Acl.js +11 -11
- package/dist/containers/Tenant/Acl/Acl.scss +0 -5
- package/dist/containers/Tenant/Diagnostics/Autorefresh/AutorefreshControl.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Autorefresh/AutorefreshControl.js +19 -0
- package/dist/containers/Tenant/Diagnostics/Autorefresh/AutorefreshControl.scss +5 -0
- package/dist/containers/Tenant/Diagnostics/Autorefresh/i18n/en.json +8 -0
- package/dist/containers/Tenant/Diagnostics/Autorefresh/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/Autorefresh/i18n/index.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +15 -22
- package/dist/containers/Tenant/Diagnostics/Consumers/Headers/Headers.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Consumers/Headers/Headers.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Consumers/columns/columns.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Consumers/columns/columns.js +7 -7
- package/dist/containers/Tenant/Diagnostics/Consumers/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Consumers/i18n/index.js +2 -4
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +32 -37
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.d.ts +2 -3
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +3 -3
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.d.ts +2 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +27 -31
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +6 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +11 -11
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +1 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/i18n/index.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Network/Network.d.ts +5 -71
- package/dist/containers/Tenant/Diagnostics/Network/Network.js +122 -199
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.d.ts +16 -26
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.js +16 -44
- package/dist/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +27 -45
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.js +2 -4
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +4 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.js +14 -12
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/i18n/index.js +2 -4
- package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.js +3 -0
- package/dist/containers/Tenant/Diagnostics/Partitions/Headers/Headers.d.ts +6 -6
- package/dist/containers/Tenant/Diagnostics/Partitions/Headers/Headers.js +9 -9
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.d.ts +2 -11
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +35 -41
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js +27 -17
- package/dist/containers/Tenant/Diagnostics/Partitions/columns/columns.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/columns/columns.js +15 -15
- package/dist/containers/Tenant/Diagnostics/Partitions/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/i18n/index.js +2 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/constants.d.ts +3 -3
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/constants.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/useGetPartitionsColumns.js +4 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +7 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.js +7 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.d.ts +3 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +15 -10
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +13 -13
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/i18n/index.js +2 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.d.ts +6 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.js +24 -10
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +9 -20
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.d.ts +7 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.js +69 -15
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +6 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +6 -14
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +6 -14
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +10 -14
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +7 -12
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/cpuDashboardConfig.js +4 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +6 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +4 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +6 -14
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +20 -43
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.d.ts +4 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +7 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +9 -8
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +6 -14
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.d.ts +1 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +10 -15
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.js +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +3 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.d.ts +7 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +10 -17
- package/dist/containers/Tenant/Diagnostics/TenantOverview/utils.d.ts +1 -10
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +24 -59
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +4 -4
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +2 -4
- package/dist/containers/Tenant/Diagnostics/TopShards/Filters/Filters.d.ts +4 -4
- package/dist/containers/Tenant/Diagnostics/TopShards/Filters/Filters.js +3 -3
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.d.ts +2 -11
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +26 -33
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.d.ts +3 -3
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +7 -7
- package/dist/containers/Tenant/Diagnostics/TopShards/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/i18n/index.js +2 -4
- package/dist/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.d.ts +2 -2
- package/dist/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +6 -6
- package/dist/containers/Tenant/Info/ExternalTable/ExternalTable.d.ts +2 -2
- package/dist/containers/Tenant/Info/ExternalTable/ExternalTable.js +9 -9
- package/dist/containers/Tenant/Info/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Info/i18n/index.js +2 -4
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +3 -4
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +6 -6
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.d.ts +3 -3
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +20 -54
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +1 -2
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -14
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +28 -38
- package/dist/containers/Tenant/Query/ExplainResult/utils.d.ts +3 -0
- package/dist/containers/Tenant/Query/ExplainResult/utils.js +34 -0
- package/dist/containers/Tenant/Query/Issues/Issues.d.ts +2 -3
- package/dist/containers/Tenant/Query/Issues/Issues.js +13 -13
- package/dist/containers/Tenant/Query/Issues/models.d.ts +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.d.ts +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +19 -35
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.d.ts +1 -2
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +5 -5
- package/dist/containers/Tenant/Query/Query.d.ts +2 -2
- package/dist/containers/Tenant/Query/Query.js +6 -6
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.js +4 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +15 -6
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +24 -24
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js +2 -2
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +9 -9
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -2
- package/dist/containers/Tenant/Query/QueryTabs/QueryTabs.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryTabs/QueryTabs.js +5 -5
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +1 -1
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +11 -11
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.d.ts +1 -1
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +15 -15
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.d.ts +1 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +3 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.d.ts +6 -5
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +19 -66
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +0 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/helpers.d.ts +25 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/helpers.js +148 -0
- package/dist/containers/Tenant/Tenant.d.ts +2 -3
- package/dist/containers/Tenant/Tenant.js +29 -31
- package/dist/containers/Tenant/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.d.ts +1 -2
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.js +4 -4
- package/dist/containers/Tenant/utils/schema.d.ts +1 -0
- package/dist/containers/Tenant/utils/schema.js +1 -0
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -2
- package/dist/containers/Tenant/utils/schemaActions.js +1 -1
- package/dist/containers/Tenant/utils/schemaControls.d.ts +2 -3
- package/dist/containers/Tenant/utils/schemaControls.js +3 -3
- package/dist/containers/Tenants/Tenants.d.ts +1 -1
- package/dist/containers/Tenants/Tenants.js +22 -21
- package/dist/containers/UserSettings/Setting.d.ts +4 -4
- package/dist/containers/UserSettings/Setting.js +5 -5
- package/dist/containers/UserSettings/UserSettings.d.ts +3 -12
- package/dist/containers/UserSettings/UserSettings.js +6 -6
- package/dist/containers/UserSettings/settings.js +4 -4
- package/dist/containers/VDiskPage/VDiskPage.d.ts +2 -0
- package/dist/containers/VDiskPage/VDiskPage.js +108 -0
- package/dist/containers/VDiskPage/VDiskPage.scss +31 -0
- package/dist/containers/VDiskPage/i18n/en.json +9 -0
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -0
- package/dist/containers/VDiskPage/i18n/index.js +4 -0
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +3 -12
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js +7 -7
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -3
- package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
- package/dist/containers/Versions/NodesTable/NodesTable.js +4 -4
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.d.ts +2 -2
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.js +3 -3
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -1
- package/dist/containers/Versions/Versions.d.ts +1 -1
- package/dist/containers/Versions/Versions.js +17 -19
- package/dist/containers/Versions/groupNodes.d.ts +3 -2
- package/dist/containers/Versions/groupNodes.js +1 -1
- package/dist/containers/Versions/types.d.ts +1 -1
- package/dist/routes.d.ts +3 -0
- package/dist/routes.js +7 -2
- package/dist/services/api.d.ts +58 -45
- package/dist/services/api.js +107 -67
- package/dist/services/parsers/parseMetaTenants.d.ts +1 -1
- package/dist/services/settings.js +1 -1
- package/dist/store/configureStore.d.ts +29 -101
- package/dist/store/configureStore.js +13 -9
- package/dist/store/defaultStore.d.ts +11 -47
- package/dist/store/reducers/api.d.ts +3 -0
- package/dist/store/reducers/api.js +24 -0
- package/dist/store/reducers/authentication/authentication.d.ts +15 -69
- package/dist/store/reducers/authentication/authentication.js +1 -1
- package/dist/store/reducers/authentication/types.d.ts +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +11 -96
- package/dist/store/reducers/cluster/cluster.js +58 -76
- package/dist/store/reducers/cluster/types.d.ts +0 -9
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +7 -91
- package/dist/store/reducers/clusterNodes/clusterNodes.js +22 -36
- package/dist/store/reducers/clusters/clusters.d.ts +7 -95
- package/dist/store/reducers/clusters/clusters.js +28 -38
- package/dist/store/reducers/clusters/selectors.d.ts +3 -32
- package/dist/store/reducers/clusters/selectors.js +15 -44
- package/dist/store/reducers/clusters/types.d.ts +1 -9
- package/dist/store/reducers/describe.d.ts +4 -182
- package/dist/store/reducers/describe.js +23 -97
- package/dist/store/reducers/executeQuery.d.ts +6 -24
- package/dist/store/reducers/executeQuery.js +4 -4
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +10 -25
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +45 -52
- package/dist/store/reducers/executeTopQueries/types.d.ts +3 -14
- package/dist/store/reducers/executeTopQueries/utils.d.ts +2 -2
- package/dist/store/reducers/explainQuery.d.ts +11 -47
- package/dist/store/reducers/explainQuery.js +2 -2
- package/dist/store/reducers/header/types.d.ts +5 -2
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +2113 -41
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js +20 -40
- package/dist/store/reducers/healthcheckInfo/types.d.ts +1 -16
- package/dist/store/reducers/heatmap.d.ts +14 -108
- package/dist/store/reducers/heatmap.js +66 -61
- package/dist/store/reducers/host.d.ts +5 -23
- package/dist/store/reducers/host.js +1 -1
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +1 -1
- package/dist/store/reducers/index.d.ts +41 -105
- package/dist/store/reducers/index.js +20 -56
- package/dist/store/reducers/network/network.d.ts +3 -94
- package/dist/store/reducers/network/network.js +18 -37
- package/dist/store/reducers/node/node.d.ts +8 -181
- package/dist/store/reducers/node/node.js +30 -58
- package/dist/store/reducers/node/selectors.d.ts +86 -3
- package/dist/store/reducers/node/selectors.js +7 -6
- package/dist/store/reducers/node/types.d.ts +0 -18
- package/dist/store/reducers/nodes/nodes.d.ts +8 -191
- package/dist/store/reducers/nodes/nodes.js +53 -89
- package/dist/store/reducers/nodes/selectors.d.ts +7 -3
- package/dist/store/reducers/nodes/selectors.js +4 -15
- package/dist/store/reducers/nodes/types.d.ts +4 -15
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +31 -35
- package/dist/store/reducers/nodesList.js +21 -26
- package/dist/store/reducers/olapStats.d.ts +5 -96
- package/dist/store/reducers/olapStats.js +22 -42
- package/dist/store/reducers/overview/overview.d.ts +6 -186
- package/dist/store/reducers/overview/overview.js +16 -72
- package/dist/store/reducers/partitions/partitions.d.ts +10 -98
- package/dist/store/reducers/partitions/partitions.js +39 -62
- package/dist/store/reducers/partitions/types.d.ts +0 -8
- package/dist/store/reducers/partitions/utils.d.ts +1 -1
- package/dist/store/reducers/pdisk/pdisk.d.ts +7 -208
- package/dist/store/reducers/pdisk/pdisk.js +36 -63
- package/dist/store/reducers/pdisk/types.d.ts +1 -17
- package/dist/store/reducers/pdisk/utils.d.ts +3 -25
- package/dist/store/reducers/pdisk/utils.js +2 -2
- package/dist/store/reducers/preview.d.ts +4 -98
- package/dist/store/reducers/preview.js +18 -39
- package/dist/store/reducers/schema/schema.d.ts +11 -33
- package/dist/store/reducers/schema/schema.js +15 -17
- package/dist/store/reducers/schema/types.d.ts +7 -4
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +5 -23
- package/dist/store/reducers/schemaAcl/schemaAcl.js +1 -1
- package/dist/store/reducers/schemaAcl/types.d.ts +1 -1
- package/dist/store/reducers/settings/settings.d.ts +2 -3
- package/dist/store/reducers/settings/types.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +8 -103
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +41 -70
- package/dist/store/reducers/shardsWorkload/types.d.ts +3 -14
- package/dist/store/reducers/storage/selectors.d.ts +6 -13
- package/dist/store/reducers/storage/selectors.js +15 -23
- package/dist/store/reducers/storage/storage.d.ts +8 -207
- package/dist/store/reducers/storage/storage.js +67 -132
- package/dist/store/reducers/storage/types.d.ts +6 -17
- package/dist/store/reducers/storage/utils.d.ts +1 -1
- package/dist/store/reducers/storage/utils.js +11 -12
- package/dist/store/reducers/tablet.d.ts +13 -181
- package/dist/store/reducers/tablet.js +58 -83
- package/dist/store/reducers/tablets.d.ts +7 -102
- package/dist/store/reducers/tablets.js +32 -52
- package/dist/store/reducers/tabletsFilters.d.ts +5 -23
- package/dist/store/reducers/tabletsFilters.js +1 -1
- package/dist/store/reducers/tenant/constants.d.ts +1 -0
- package/dist/store/reducers/tenant/constants.js +1 -0
- package/dist/store/reducers/tenant/tenant.d.ts +9 -120
- package/dist/store/reducers/tenant/tenant.js +42 -103
- package/dist/store/reducers/tenant/types.d.ts +1 -10
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +5 -94
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +22 -48
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +4 -0
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +22 -0
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +5 -93
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +21 -41
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +6 -93
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +21 -44
- package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +3 -95
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +19 -46
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -15
- package/dist/store/reducers/tenants/contants.d.ts +6 -0
- package/dist/store/reducers/tenants/contants.js +6 -0
- package/dist/store/reducers/tenants/selectors.d.ts +1050 -3
- package/dist/store/reducers/tenants/selectors.js +4 -2
- package/dist/store/reducers/tenants/tenants.d.ts +9 -133
- package/dist/store/reducers/tenants/tenants.js +38 -41
- package/dist/store/reducers/tenants/types.d.ts +5 -13
- package/dist/store/reducers/tenants/utils.d.ts +24 -43
- package/dist/store/reducers/tenants/utils.js +92 -21
- package/dist/store/reducers/tooltip.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +1689 -41
- package/dist/store/reducers/topic.js +30 -61
- package/dist/store/reducers/vdisk/types.d.ts +11 -0
- package/dist/store/reducers/vdisk/utils.d.ts +11 -0
- package/dist/store/reducers/vdisk/utils.js +33 -0
- package/dist/store/reducers/vdisk/vdisk.d.ts +6 -0
- package/dist/store/reducers/vdisk/vdisk.js +46 -0
- package/dist/store/state-url-mapping.d.ts +8 -2
- package/dist/store/state-url-mapping.js +43 -14
- package/dist/styles/mixins.scss +6 -0
- package/dist/types/additionalProps.d.ts +3 -3
- package/dist/types/api/compute.d.ts +3 -3
- package/dist/types/api/consumer.d.ts +1 -1
- package/dist/types/api/netInfo.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +4 -4
- package/dist/types/api/pdisk.d.ts +1 -1
- package/dist/types/api/schema/table.d.ts +2 -2
- package/dist/types/api/storage.d.ts +4 -2
- package/dist/types/api/systemState.d.ts +1 -1
- package/dist/types/api/tablet.d.ts +1 -1
- package/dist/types/api/tenant.d.ts +17 -3
- package/dist/types/api/tenant.js +6 -0
- package/dist/types/api/topic.d.ts +2 -2
- package/dist/types/api/vdisk.d.ts +2 -2
- package/dist/types/store/describe.d.ts +1 -23
- package/dist/types/store/executeQuery.d.ts +1 -1
- package/dist/types/store/explainQuery.d.ts +1 -1
- package/dist/types/store/heatmap.d.ts +1 -23
- package/dist/types/store/host.d.ts +1 -1
- package/dist/types/store/nodesList.d.ts +0 -14
- package/dist/types/store/query.d.ts +2 -2
- package/dist/types/store/tablet.d.ts +0 -18
- package/dist/types/store/tablets.d.ts +5 -15
- package/dist/types/store/tooltip.d.ts +2 -2
- package/dist/types/store/topic.d.ts +0 -14
- package/dist/utils/__test__/monitoring.test.js +28 -22
- package/dist/utils/__test__/parseBalancer.test.js +1 -1
- package/dist/utils/__test__/prepareBackend.test.js +1 -1
- package/dist/utils/bytesParsers/__test__/formatBytes.test.js +7 -7
- package/dist/utils/bytesParsers/formatBytes.js +1 -1
- package/dist/utils/bytesParsers/i18n/index.d.ts +1 -1
- package/dist/utils/bytesParsers/i18n/index.js +2 -4
- package/dist/utils/clusterVersionColors.js +1 -1
- package/dist/utils/cn.d.ts +1 -2
- package/dist/utils/cn.js +5 -2
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.js +2 -0
- package/dist/utils/createToast.d.ts +2 -2
- package/dist/utils/createToast.js +3 -3
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -1
- package/dist/utils/dataFormatters/dataFormatters.js +2 -1
- package/dist/utils/dataFormatters/i18n/index.d.ts +1 -1
- package/dist/utils/dataFormatters/i18n/index.js +2 -4
- package/dist/utils/diagnostics.d.ts +1 -1
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +18 -18
- package/dist/utils/disks/calculateVDiskSeverity.d.ts +1 -1
- package/dist/utils/disks/constants.js +2 -2
- package/dist/utils/disks/getPDiskType.js +1 -1
- package/dist/utils/disks/types.d.ts +5 -1
- package/dist/utils/filters.js +1 -1
- package/dist/utils/hooks/index.d.ts +0 -1
- package/dist/utils/hooks/index.js +0 -1
- package/dist/utils/hooks/useNodesRequestParams.d.ts +1 -1
- package/dist/utils/hooks/useNodesRequestParams.js +2 -2
- package/dist/utils/hooks/useSearchQuery.d.ts +1 -0
- package/dist/utils/hooks/useSetting.d.ts +1 -1
- package/dist/utils/hooks/useSetting.js +3 -3
- package/dist/utils/hooks/useStorageRequestParams.js +2 -2
- package/dist/utils/hooks/useTableResize.js +8 -6
- package/dist/utils/hooks/useTableSort.d.ts +1 -1
- package/dist/utils/hooks/useTableSort.js +2 -2
- package/dist/utils/hooks/useTypedSelector.d.ts +1 -1
- package/dist/utils/i18n/i18n.d.ts +2 -1
- package/dist/utils/i18n/i18n.js +1 -7
- package/dist/utils/lazyComponent.d.ts +4 -0
- package/dist/utils/lazyComponent.js +25 -0
- package/dist/utils/monaco/index.d.ts +1 -0
- package/dist/utils/monaco/index.js +4 -0
- package/dist/utils/monaco/s-expression/constants.d.ts +1 -0
- package/dist/utils/monaco/s-expression/constants.js +1 -0
- package/dist/utils/monaco/s-expression/registerLanguage.d.ts +1 -0
- package/dist/utils/{monaco.js → monaco/s-expression/registerLanguage.js} +2 -19
- package/dist/utils/{yqlSuggestions → monaco/yqlSuggestions}/generateSuggestions.d.ts +2 -2
- package/dist/utils/{yqlSuggestions → monaco/yqlSuggestions}/generateSuggestions.js +40 -11
- package/dist/utils/monaco/yqlSuggestions/registerCompletionItemProvider.d.ts +1 -0
- package/dist/utils/monaco/yqlSuggestions/registerCompletionItemProvider.js +15 -0
- package/dist/utils/{yqlSuggestions → monaco/yqlSuggestions}/yqlSuggestions.js +5 -3
- package/dist/utils/monitoring.d.ts +4 -3
- package/dist/utils/monitoring.js +39 -24
- package/dist/utils/nodes.d.ts +3 -3
- package/dist/utils/nodes.js +1 -1
- package/dist/utils/numeral.js +7 -1
- package/dist/utils/prepareQueryExplain.d.ts +1 -1
- package/dist/utils/query.d.ts +1 -1
- package/dist/utils/storage.d.ts +1 -0
- package/dist/utils/storage.js +1 -0
- package/dist/utils/timeParsers/i18n/index.d.ts +1 -1
- package/dist/utils/timeParsers/i18n/index.js +2 -4
- package/dist/utils/timeParsers/parsers.js +1 -1
- package/dist/utils/tooltip.d.ts +8 -8
- package/dist/utils/tooltip.js +9 -9
- package/dist/utils/utils.js +1 -1
- package/dist/utils/versions/getVersionsColors.js +10 -10
- package/package.json +66 -61
- package/dist/containers/Clusters/useClustersList.d.ts +0 -1
- package/dist/containers/Clusters/useClustersList.js +0 -9
- package/dist/containers/PDisk/PDisk.d.ts +0 -3
- package/dist/containers/PDisk/shared.d.ts +0 -10
- package/dist/containers/Storage/DiskStateProgressBar/index.d.ts +0 -1
- package/dist/containers/Storage/DiskStateProgressBar/index.js +0 -1
- package/dist/containers/Storage/PDiskPopup/index.d.ts +0 -1
- package/dist/containers/Storage/PDiskPopup/index.js +0 -1
- package/dist/containers/Storage/VDisk/VDisk.js +0 -28
- package/dist/containers/Storage/VDisk/index.d.ts +0 -1
- package/dist/containers/Storage/VDisk/index.js +0 -1
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.d.ts +0 -11
- package/dist/containers/Storage/VDiskPopup/index.d.ts +0 -1
- package/dist/containers/Storage/VDiskPopup/index.js +0 -1
- package/dist/containers/Storage/utils/types.d.ts +0 -5
- package/dist/store/reducers/clusterNodes/types.d.ts +0 -14
- package/dist/store/reducers/clusterNodes/types.js +0 -1
- package/dist/store/reducers/network/types.d.ts +0 -11
- package/dist/store/reducers/network/types.js +0 -1
- package/dist/store/reducers/overview/types.d.ts +0 -18
- package/dist/store/reducers/overview/types.js +0 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/types.d.ts +0 -10
- package/dist/store/reducers/tenantOverview/executeTopTables/types.js +0 -1
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.d.ts +0 -95
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.js +0 -47
- package/dist/store/reducers/tenantOverview/topNodesByCpu/types.d.ts +0 -19
- package/dist/store/reducers/tenantOverview/topNodesByCpu/types.js +0 -1
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.d.ts +0 -95
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.js +0 -47
- package/dist/store/reducers/tenantOverview/topNodesByLoad/types.d.ts +0 -19
- package/dist/store/reducers/tenantOverview/topNodesByLoad/types.js +0 -1
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.d.ts +0 -95
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.js +0 -47
- package/dist/store/reducers/tenantOverview/topNodesByMemory/types.d.ts +0 -19
- package/dist/store/reducers/tenantOverview/topNodesByMemory/types.js +0 -1
- package/dist/store/reducers/tenantOverview/topQueries/types.d.ts +0 -10
- package/dist/store/reducers/tenantOverview/topQueries/types.js +0 -1
- package/dist/store/reducers/tenantOverview/topShards/types.d.ts +0 -10
- package/dist/store/reducers/tenantOverview/topShards/types.js +0 -1
- package/dist/types/store/olapStats.d.ts +0 -10
- package/dist/types/store/olapStats.js +0 -1
- package/dist/utils/autofetcher.d.ts +0 -13
- package/dist/utils/autofetcher.js +0 -50
- package/dist/utils/hooks/useAutofetcher.d.ts +0 -2
- package/dist/utils/hooks/useAutofetcher.js +0 -23
- package/dist/utils/monaco.d.ts +0 -3
- /package/dist/{containers/Storage → components}/DiskStateProgressBar/DiskStateProgressBar.scss +0 -0
- /package/dist/components/MetricChart/{convertReponse.d.ts → convertResponse.d.ts} +0 -0
- /package/dist/components/MetricChart/{convertReponse.js → convertResponse.js} +0 -0
- /package/dist/{containers/Storage → components}/PDiskPopup/PDiskPopup.scss +0 -0
- /package/dist/{containers/Storage → components}/VDiskPopup/VDiskPopup.scss +0 -0
- /package/dist/containers/{PDisk → PDiskPage}/i18n/en.json +0 -0
- /package/dist/containers/{PDisk → PDiskPage}/i18n/index.d.ts +0 -0
- /package/dist/containers/{PDisk → PDiskPage}/i18n/index.js +0 -0
- /package/dist/containers/{PDisk → PDiskPage}/shared.js +0 -0
- /package/dist/{containers/Storage/utils → store/reducers/vdisk}/types.js +0 -0
- /package/dist/utils/{yqlSuggestions → monaco/yqlSuggestions}/constants.d.ts +0 -0
- /package/dist/utils/{yqlSuggestions → monaco/yqlSuggestions}/constants.js +0 -0
- /package/dist/utils/{yqlSuggestions → monaco/yqlSuggestions}/yqlSuggestions.d.ts +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { useLocation } from 'react-router';
|
3
2
|
import { Tabs } from '@gravity-ui/uikit';
|
4
|
-
import {
|
3
|
+
import { useLocation } from 'react-router';
|
5
4
|
import { InternalLink } from '../../../../components/InternalLink/InternalLink';
|
6
5
|
import { parseQuery } from '../../../../routes';
|
6
|
+
import { TENANT_QUERY_TABS_ID } from '../../../../store/reducers/tenant/constants';
|
7
7
|
import { TenantTabsGroups, getTenantPath } from '../../TenantPages';
|
8
8
|
import i18n from '../i18n';
|
9
9
|
const newQuery = {
|
@@ -22,8 +22,8 @@ export const queryEditorTabs = [newQuery, history, saved];
|
|
22
22
|
export const QueryTabs = ({ className, activeTab }) => {
|
23
23
|
const location = useLocation();
|
24
24
|
const queryParams = parseQuery(location);
|
25
|
-
return (_jsx("div",
|
25
|
+
return (_jsx("div", { className: className, children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTab, items: queryEditorTabs, wrapTo: ({ id }, node) => {
|
26
26
|
const path = getTenantPath(Object.assign(Object.assign({}, queryParams), { [TenantTabsGroups.queryTab]: id }));
|
27
|
-
return (_jsx(InternalLink,
|
28
|
-
} }) }))
|
27
|
+
return (_jsx(InternalLink, { to: path, children: node }, id));
|
28
|
+
} }) }));
|
29
29
|
};
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import React
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import { Dialog, DropdownMenu, TextInput, Button } from '@gravity-ui/uikit';
|
2
|
+
import React from 'react';
|
3
|
+
import { Button, Dialog, DropdownMenu, TextInput } from '@gravity-ui/uikit';
|
4
|
+
import some from 'lodash/some';
|
6
5
|
import { setQueryNameToEdit } from '../../../../store/reducers/saveQuery';
|
6
|
+
import { cn } from '../../../../utils/cn';
|
7
7
|
import { useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
|
8
8
|
import './SaveQuery.scss';
|
9
9
|
const b = cn('kv-save-query');
|
10
10
|
function SaveQuery({ savedQueries, onSaveQuery, saveButtonDisabled }) {
|
11
11
|
const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
|
12
|
-
const [isDialogVisible, setIsDialogVisible] = useState(false);
|
13
|
-
const [queryName, setQueryName] = useState('');
|
14
|
-
const [validationError, setValidationError] = useState(null);
|
12
|
+
const [isDialogVisible, setIsDialogVisible] = React.useState(false);
|
13
|
+
const [queryName, setQueryName] = React.useState('');
|
14
|
+
const [validationError, setValidationError] = React.useState(null);
|
15
15
|
const queryNameToEdit = useTypedSelector((state) => state.saveQuery);
|
16
16
|
const dispatch = useTypedDispatch();
|
17
17
|
const onSaveQueryClick = () => {
|
@@ -28,7 +28,7 @@ function SaveQuery({ savedQueries, onSaveQuery, saveButtonDisabled }) {
|
|
28
28
|
setValidationError(validateQueryName(value));
|
29
29
|
};
|
30
30
|
const validateQueryName = (value) => {
|
31
|
-
if (
|
31
|
+
if (some(savedQueries, (q) => q.name.toLowerCase() === value.trim().toLowerCase())) {
|
32
32
|
return 'This name already exists';
|
33
33
|
}
|
34
34
|
return null;
|
@@ -45,12 +45,12 @@ function SaveQuery({ savedQueries, onSaveQuery, saveButtonDisabled }) {
|
|
45
45
|
dispatch(setQueryNameToEdit(null));
|
46
46
|
};
|
47
47
|
const renderDialog = () => {
|
48
|
-
return (_jsxs(Dialog,
|
48
|
+
return (_jsxs(Dialog, { open: isDialogVisible, hasCloseButton: false, size: "s", onClose: onCloseDialog, onEnterKeyDown: onSaveClick, children: [_jsx(Dialog.Header, { caption: "Save query" }), _jsxs(Dialog.Body, { className: b('dialog-body'), children: [singleClusterMode && (_jsx("div", { className: b('dialog-row'), children: "The query will be saved in your browser" })), _jsxs("div", { className: b('dialog-row'), children: [_jsx("label", { htmlFor: "queryName", className: b('field-title', 'required'), children: "Query name" }), _jsxs("div", { className: b('control-wrapper'), children: [_jsx(TextInput, { id: "queryName", placeholder: "Enter query name", value: queryName, onUpdate: onQueryNameChange, hasClear: true, autoFocus: true }), _jsx("span", { className: b('error'), children: validationError })] })] })] }), _jsx(Dialog.Footer, { textButtonApply: "Save", textButtonCancel: "Cancel", onClickButtonCancel: onCloseDialog, onClickButtonApply: onSaveClick, propsButtonApply: {
|
49
49
|
disabled: !queryName || Boolean(validationError),
|
50
|
-
} })] }))
|
50
|
+
} })] }));
|
51
51
|
};
|
52
52
|
const renderSaveButton = (onClick) => {
|
53
|
-
return (_jsx(Button,
|
53
|
+
return (_jsx(Button, { onClick: onClick, disabled: saveButtonDisabled, children: queryNameToEdit ? 'Edit query' : 'Save query' }));
|
54
54
|
};
|
55
55
|
const renderSaveDropdownMenu = () => {
|
56
56
|
const items = [
|
@@ -7,5 +7,5 @@ interface SavedQueriesProps {
|
|
7
7
|
}) => void;
|
8
8
|
onDeleteQuery: (queryName: string) => void;
|
9
9
|
}
|
10
|
-
export declare const SavedQueries: ({ savedQueries, changeUserInput, onDeleteQuery }: SavedQueriesProps) => JSX.Element;
|
10
|
+
export declare const SavedQueries: ({ savedQueries, changeUserInput, onDeleteQuery }: SavedQueriesProps) => import("react/jsx-runtime").JSX.Element;
|
11
11
|
export {};
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
2
|
-
import
|
3
|
-
import block from 'bem-cn-lite';
|
4
|
-
import { Dialog, Button } from '@gravity-ui/uikit';
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
5
3
|
import DataTable from '@gravity-ui/react-data-table';
|
4
|
+
import { Button, Dialog } from '@gravity-ui/uikit';
|
5
|
+
import { Icon } from '../../../../components/Icon';
|
6
|
+
import { TruncatedQuery } from '../../../../components/TruncatedQuery/TruncatedQuery';
|
6
7
|
import { setQueryNameToEdit } from '../../../../store/reducers/saveQuery';
|
7
|
-
import { setQueryTab } from '../../../../store/reducers/tenant/tenant';
|
8
8
|
import { TENANT_QUERY_TABS_ID } from '../../../../store/reducers/tenant/constants';
|
9
|
-
import {
|
10
|
-
import {
|
9
|
+
import { setQueryTab } from '../../../../store/reducers/tenant/tenant';
|
10
|
+
import { cn } from '../../../../utils/cn';
|
11
11
|
import { useTypedDispatch } from '../../../../utils/hooks';
|
12
12
|
import { MAX_QUERY_HEIGHT, QUERY_TABLE_SETTINGS } from '../../utils/constants';
|
13
13
|
import i18n from '../i18n';
|
14
14
|
import './SavedQueries.scss';
|
15
|
-
const b =
|
15
|
+
const b = cn('ydb-saved-queries');
|
16
16
|
const DeleteDialog = ({ visible, queryName, onCancelClick, onConfirmClick }) => {
|
17
|
-
return (_jsxs(Dialog,
|
17
|
+
return (_jsxs(Dialog, { open: visible, hasCloseButton: false, size: "s", onClose: onCancelClick, onEnterKeyDown: onConfirmClick, children: [_jsx(Dialog.Header, { caption: i18n('delete-dialog.header') }), _jsxs(Dialog.Body, { className: b('dialog-body'), children: [i18n('delete-dialog.question'), _jsx("span", { className: b('dialog-query-name'), children: ` ${queryName}?` })] }), _jsx(Dialog.Footer, { textButtonApply: i18n('delete-dialog.delete'), textButtonCancel: i18n('delete-dialog.cancel'), onClickButtonCancel: onCancelClick, onClickButtonApply: onConfirmClick })] }));
|
18
18
|
};
|
19
19
|
export const SavedQueries = ({ savedQueries, changeUserInput, onDeleteQuery }) => {
|
20
20
|
const dispatch = useTypedDispatch();
|
21
|
-
const [isDeleteDialogVisible, setIsDeleteDialogVisible] = useState(false);
|
22
|
-
const [queryNameToDelete, setQueryNameToDelete] = useState('');
|
21
|
+
const [isDeleteDialogVisible, setIsDeleteDialogVisible] = React.useState(false);
|
22
|
+
const [queryNameToDelete, setQueryNameToDelete] = React.useState('');
|
23
23
|
const closeDeleteDialog = () => {
|
24
24
|
setIsDeleteDialogVisible(false);
|
25
25
|
setQueryNameToDelete('');
|
@@ -48,18 +48,18 @@ export const SavedQueries = ({ savedQueries, changeUserInput, onDeleteQuery }) =
|
|
48
48
|
{
|
49
49
|
name: 'name',
|
50
50
|
header: 'Name',
|
51
|
-
render: ({ row: query }) => _jsx("div",
|
51
|
+
render: ({ row: query }) => _jsx("div", { className: b('query-name'), children: query.name }),
|
52
52
|
width: 200,
|
53
53
|
},
|
54
54
|
{
|
55
55
|
name: 'body',
|
56
56
|
header: 'Query Text',
|
57
|
-
render: ({ row: query }) => (_jsxs("div",
|
57
|
+
render: ({ row: query }) => (_jsxs("div", { className: b('query'), children: [_jsx("div", { className: b('query-body'), children: _jsx(TruncatedQuery, { value: query.body, maxQueryHeight: MAX_QUERY_HEIGHT }) }), _jsxs("span", { className: b('controls'), children: [_jsx(Button, { view: "flat-secondary", children: _jsx(Icon, { name: "pencil", viewBox: "0 0 24 24" }) }), _jsx(Button, { view: "flat-secondary", onClick: onDeleteQueryClick(query.name), children: _jsx(Icon, { name: "trash", viewBox: "0 0 24 24" }) })] })] })),
|
58
58
|
sortable: false,
|
59
59
|
},
|
60
60
|
];
|
61
|
-
return (_jsxs(
|
61
|
+
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: b(), children: _jsx(DataTable, { theme: "yandex-cloud", columns: columns, data: savedQueries, settings: QUERY_TABLE_SETTINGS, emptyDataMessage: i18n('saved.empty'), rowClassName: () => b('row'), onRowClick: (row) => onQueryClick(row.body, row.name), initialSortOrder: {
|
62
62
|
columnId: 'name',
|
63
63
|
order: DataTable.ASCENDING,
|
64
|
-
} }) })
|
64
|
+
} }) }), _jsx(DeleteDialog, { visible: isDeleteDialogVisible, queryName: queryNameToDelete, onCancelClick: onCancelDeleteClick, onConfirmClick: onConfirmDeleteClick })] }));
|
65
65
|
};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import type { EPathType } from '../../../../types/api/schema';
|
3
2
|
interface SchemaTreeProps {
|
4
3
|
rootPath: string;
|
@@ -6,5 +5,5 @@ interface SchemaTreeProps {
|
|
6
5
|
rootType?: EPathType;
|
7
6
|
currentPath?: string;
|
8
7
|
}
|
9
|
-
export declare function SchemaTree(props: SchemaTreeProps): JSX.Element;
|
8
|
+
export declare function SchemaTree(props: SchemaTreeProps): import("react/jsx-runtime").JSX.Element;
|
10
9
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import
|
2
|
+
import React from 'react';
|
3
3
|
import { NavigationTree } from 'ydb-ui-components';
|
4
|
-
import {
|
4
|
+
import { preloadSchemas, setCurrentSchemaPath } from '../../../../store/reducers/schema/schema';
|
5
5
|
import { useQueryModes, useTypedDispatch } from '../../../../utils/hooks';
|
6
6
|
import { isChildlessPathType, mapPathTypeToNavigationTreeType } from '../../utils/schema';
|
7
7
|
import { getActions } from '../../utils/schemaActions';
|
@@ -38,7 +38,7 @@ export function SchemaTree(props) {
|
|
38
38
|
const handleActivePathUpdate = (activePath) => {
|
39
39
|
dispatch(setCurrentSchemaPath(activePath));
|
40
40
|
};
|
41
|
-
useEffect(() => {
|
41
|
+
React.useEffect(() => {
|
42
42
|
// if the cached path is not in the current tree, show root
|
43
43
|
if (!(currentPath === null || currentPath === void 0 ? void 0 : currentPath.startsWith(rootPath))) {
|
44
44
|
handleActivePathUpdate(rootPath);
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import type { EPathType
|
1
|
+
import type { EPathType } from '../../../../types/api/schema';
|
2
2
|
import './SchemaViewer.scss';
|
3
3
|
interface SchemaViewerProps {
|
4
|
-
|
5
|
-
columns?: TColumnDescription[];
|
4
|
+
className?: string;
|
6
5
|
type?: EPathType;
|
6
|
+
path?: string;
|
7
|
+
withFamilies?: boolean;
|
7
8
|
}
|
8
|
-
export declare const SchemaViewer: ({
|
9
|
-
export
|
9
|
+
export declare const SchemaViewer: ({ className, type, path, withFamilies }: SchemaViewerProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export {};
|
@@ -1,72 +1,25 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { useMemo } from 'react';
|
3
|
-
import cn from 'bem-cn-lite';
|
4
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
+
import { TableSkeleton } from '../../../../components/TableSkeleton/TableSkeleton';
|
4
|
+
import { cn } from '../../../../utils/cn';
|
5
5
|
import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
|
6
|
-
import {
|
7
|
-
import {
|
6
|
+
import { useTypedSelector } from '../../../../utils/hooks';
|
7
|
+
import { SchemaViewerColumns, prepareColumnDescriptions, prepareFamilies, prepareSchemaTableColumns, } from './helpers';
|
8
8
|
import './SchemaViewer.scss';
|
9
9
|
const b = cn('schema-viewer');
|
10
|
-
const
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
export const SchemaViewer = ({ className, type, path, withFamilies = false }) => {
|
11
|
+
const { data, loading } = useTypedSelector((state) => state.schema);
|
12
|
+
const currentObjectData = path ? data[path] : undefined;
|
13
|
+
const { columns, keyColumnIds } = prepareColumnDescriptions(type, currentObjectData);
|
14
|
+
const families = prepareFamilies(currentObjectData);
|
15
|
+
return (_jsx("div", { className: b(null, className), children: loading ? (_jsx(TableSkeleton, {})) : (_jsx(DataTable, { theme: "yandex-cloud", data: columns, columns: prepareSchemaTableColumns({
|
16
|
+
type,
|
17
|
+
b,
|
18
|
+
families,
|
19
|
+
keyColumnIds,
|
20
|
+
withFamilies,
|
21
|
+
}), settings: DEFAULT_TABLE_SETTINGS, initialSortOrder: {
|
22
|
+
columnId: SchemaViewerColumns.key,
|
23
|
+
order: DataTable.ASCENDING,
|
24
|
+
} })) }));
|
16
25
|
};
|
17
|
-
export const SchemaViewer = ({ keyColumnIds = [], columns = [], type }) => {
|
18
|
-
// Keys should be displayd by their order in keyColumnIds (Primary Key)
|
19
|
-
const keyColumnsOrderValues = useMemo(() => {
|
20
|
-
return keyColumnIds.reduce((result, keyColumnId, index) => {
|
21
|
-
// Put columns with negative values, so they will be the first with ascending sort
|
22
|
-
// Minus keyColumnIds.length for the first key, -1 for the last
|
23
|
-
result[keyColumnId] = index - keyColumnIds.length;
|
24
|
-
return result;
|
25
|
-
}, {});
|
26
|
-
}, [keyColumnIds]);
|
27
|
-
let dataTableColumns = [
|
28
|
-
{
|
29
|
-
name: SchemaViewerColumns.id,
|
30
|
-
width: 40,
|
31
|
-
},
|
32
|
-
{
|
33
|
-
name: SchemaViewerColumns.key,
|
34
|
-
width: 40,
|
35
|
-
// Table should start with key columns on sort click
|
36
|
-
defaultOrder: DataTable.ASCENDING,
|
37
|
-
sortAccessor: (row) => {
|
38
|
-
// Values in keyColumnsOrderValues are always negative, so it will be 1 for not key columns
|
39
|
-
return (row.Id && keyColumnsOrderValues[row.Id]) || 1;
|
40
|
-
},
|
41
|
-
render: ({ row }) => {
|
42
|
-
return row.Id && keyColumnIds.includes(row.Id) ? (_jsx("div", Object.assign({ className: b('key-icon') }, { children: _jsx(Icon, { name: "key", viewBox: "0 0 12 7", width: 12, height: 7 }) }))) : null;
|
43
|
-
},
|
44
|
-
},
|
45
|
-
{
|
46
|
-
name: SchemaViewerColumns.name,
|
47
|
-
width: 100,
|
48
|
-
},
|
49
|
-
{
|
50
|
-
name: SchemaViewerColumns.type,
|
51
|
-
width: 100,
|
52
|
-
},
|
53
|
-
{
|
54
|
-
name: SchemaViewerColumns.notNull,
|
55
|
-
width: 100,
|
56
|
-
// Table should start with notNull columns on sort click
|
57
|
-
defaultOrder: DataTable.DESCENDING,
|
58
|
-
render: ({ row }) => {
|
59
|
-
if (row.NotNull) {
|
60
|
-
return '\u2713';
|
61
|
-
}
|
62
|
-
return undefined;
|
63
|
-
},
|
64
|
-
},
|
65
|
-
];
|
66
|
-
if (isExternalTable(type)) {
|
67
|
-
// External tables don't have key columns
|
68
|
-
dataTableColumns = dataTableColumns.filter((column) => column.name !== SchemaViewerColumns.key);
|
69
|
-
}
|
70
|
-
return (_jsx("div", Object.assign({ className: b() }, { children: _jsx(DataTable, { theme: "yandex-cloud", data: columns, columns: dataTableColumns, settings: DEFAULT_TABLE_SETTINGS, initialSortOrder: { columnId: SchemaViewerColumns.key, order: DataTable.ASCENDING } }) })));
|
71
|
-
};
|
72
|
-
export default SchemaViewer;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { ClassNameFormatter } from '@bem-react/classname';
|
2
|
+
import type { Column } from '@gravity-ui/react-data-table';
|
3
|
+
import type { EPathType, TColumnDescription, TEvDescribeSchemeResult, TFamilyDescription } from '../../../../types/api/schema';
|
4
|
+
export declare const SchemaViewerColumns: {
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
key: string;
|
8
|
+
type: string;
|
9
|
+
notNull: string;
|
10
|
+
familyName: string;
|
11
|
+
preferredPoolKind: string;
|
12
|
+
columnCodec: string;
|
13
|
+
};
|
14
|
+
export declare function prepareColumnDescriptions(type?: EPathType, scheme?: TEvDescribeSchemeResult): {
|
15
|
+
columns: TColumnDescription[];
|
16
|
+
keyColumnIds: number[];
|
17
|
+
};
|
18
|
+
export declare function prepareFamilies(scheme?: TEvDescribeSchemeResult): Record<number, TFamilyDescription>;
|
19
|
+
export declare function prepareSchemaTableColumns(options: {
|
20
|
+
type?: EPathType;
|
21
|
+
b: ClassNameFormatter;
|
22
|
+
families: Record<number, TFamilyDescription>;
|
23
|
+
keyColumnIds: number[];
|
24
|
+
withFamilies: boolean;
|
25
|
+
}): Column<TColumnDescription>[];
|
@@ -0,0 +1,148 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import DataTable from '@gravity-ui/react-data-table';
|
3
|
+
import { Icon } from '../../../../components/Icon';
|
4
|
+
import { EColumnCodec } from '../../../../types/api/schema';
|
5
|
+
import { isColumnEntityType, isExternalTable, isRowTable, isTableType } from '../../utils/schema';
|
6
|
+
export const SchemaViewerColumns = {
|
7
|
+
id: 'Id',
|
8
|
+
name: 'Name',
|
9
|
+
key: 'Key',
|
10
|
+
type: 'Type',
|
11
|
+
notNull: 'NotNull',
|
12
|
+
familyName: 'Family',
|
13
|
+
preferredPoolKind: 'Media',
|
14
|
+
columnCodec: 'Compression',
|
15
|
+
};
|
16
|
+
function prepareOlapTableSchema(tableSchema = {}) {
|
17
|
+
const { Name, Schema } = tableSchema;
|
18
|
+
if (Schema) {
|
19
|
+
const { Columns, KeyColumnNames } = Schema;
|
20
|
+
const KeyColumnIds = KeyColumnNames === null || KeyColumnNames === void 0 ? void 0 : KeyColumnNames.map((name) => {
|
21
|
+
const column = Columns === null || Columns === void 0 ? void 0 : Columns.find((el) => el.Name === name);
|
22
|
+
return column === null || column === void 0 ? void 0 : column.Id;
|
23
|
+
}).filter((id) => id !== undefined);
|
24
|
+
return {
|
25
|
+
Columns,
|
26
|
+
KeyColumnNames,
|
27
|
+
Name,
|
28
|
+
KeyColumnIds,
|
29
|
+
};
|
30
|
+
}
|
31
|
+
return {
|
32
|
+
Name,
|
33
|
+
};
|
34
|
+
}
|
35
|
+
function formatColumnCodec(codec) {
|
36
|
+
if (!codec) {
|
37
|
+
return null;
|
38
|
+
}
|
39
|
+
if (codec === EColumnCodec.ColumnCodecPlain) {
|
40
|
+
return 'None';
|
41
|
+
}
|
42
|
+
return codec.replace('ColumnCodec', '').toLocaleLowerCase();
|
43
|
+
}
|
44
|
+
export function prepareColumnDescriptions(type, scheme) {
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
46
|
+
let keyColumnIds = [];
|
47
|
+
let columns = [];
|
48
|
+
if (isTableType(type) && isColumnEntityType(type)) {
|
49
|
+
const description = (_a = scheme === null || scheme === void 0 ? void 0 : scheme.PathDescription) === null || _a === void 0 ? void 0 : _a.ColumnTableDescription;
|
50
|
+
const columnTableSchema = prepareOlapTableSchema(description);
|
51
|
+
keyColumnIds = (_b = columnTableSchema.KeyColumnIds) !== null && _b !== void 0 ? _b : [];
|
52
|
+
columns = (_c = columnTableSchema.Columns) !== null && _c !== void 0 ? _c : [];
|
53
|
+
}
|
54
|
+
else if (isExternalTable(type)) {
|
55
|
+
columns = (_f = (_e = (_d = scheme === null || scheme === void 0 ? void 0 : scheme.PathDescription) === null || _d === void 0 ? void 0 : _d.ExternalTableDescription) === null || _e === void 0 ? void 0 : _e.Columns) !== null && _f !== void 0 ? _f : [];
|
56
|
+
}
|
57
|
+
else {
|
58
|
+
keyColumnIds = (_j = (_h = (_g = scheme === null || scheme === void 0 ? void 0 : scheme.PathDescription) === null || _g === void 0 ? void 0 : _g.Table) === null || _h === void 0 ? void 0 : _h.KeyColumnIds) !== null && _j !== void 0 ? _j : [];
|
59
|
+
columns = (_m = (_l = (_k = scheme === null || scheme === void 0 ? void 0 : scheme.PathDescription) === null || _k === void 0 ? void 0 : _k.Table) === null || _l === void 0 ? void 0 : _l.Columns) !== null && _m !== void 0 ? _m : [];
|
60
|
+
}
|
61
|
+
return { columns, keyColumnIds };
|
62
|
+
}
|
63
|
+
export function prepareFamilies(scheme) {
|
64
|
+
var _a, _b, _c, _d, _e;
|
65
|
+
return ((_e = (_d = (_c = (_b = (_a = scheme === null || scheme === void 0 ? void 0 : scheme.PathDescription) === null || _a === void 0 ? void 0 : _a.Table) === null || _b === void 0 ? void 0 : _b.PartitionConfig) === null || _c === void 0 ? void 0 : _c.ColumnFamilies) === null || _d === void 0 ? void 0 : _d.reduce((acc, family) => {
|
66
|
+
if (family.Id) {
|
67
|
+
acc[family.Id] = family;
|
68
|
+
}
|
69
|
+
return acc;
|
70
|
+
}, {})) !== null && _e !== void 0 ? _e : {});
|
71
|
+
}
|
72
|
+
export function prepareSchemaTableColumns(options) {
|
73
|
+
const keyColumnsOrderValues = options.keyColumnIds.reduce((result, keyColumnId, index) => {
|
74
|
+
// Put columns with negative values, so they will be the first with ascending sort
|
75
|
+
// Minus keyColumnIds.length for the first key, -1 for the last
|
76
|
+
result[keyColumnId] = index - options.keyColumnIds.length;
|
77
|
+
return result;
|
78
|
+
}, {});
|
79
|
+
const columns = [
|
80
|
+
{
|
81
|
+
name: SchemaViewerColumns.id,
|
82
|
+
width: 40,
|
83
|
+
},
|
84
|
+
];
|
85
|
+
if (!isExternalTable(options.type)) {
|
86
|
+
// External tables don't have key columns
|
87
|
+
columns.push({
|
88
|
+
name: SchemaViewerColumns.key,
|
89
|
+
width: 40,
|
90
|
+
// Table should start with key columns on sort click
|
91
|
+
defaultOrder: DataTable.ASCENDING,
|
92
|
+
// Values in keyColumnsOrderValues are always negative, so it will be 1 for not key columns
|
93
|
+
sortAccessor: (row) => (row.Id && keyColumnsOrderValues[row.Id]) || 1,
|
94
|
+
render: ({ row }) => {
|
95
|
+
return row.Id && options.keyColumnIds.includes(row.Id) ? (_jsx("div", { className: options.b('key-icon'), children: _jsx(Icon, { name: "key", viewBox: "0 0 12 7", width: 12, height: 7 }) })) : null;
|
96
|
+
},
|
97
|
+
});
|
98
|
+
}
|
99
|
+
columns.push({
|
100
|
+
name: SchemaViewerColumns.name,
|
101
|
+
width: 100,
|
102
|
+
}, {
|
103
|
+
name: SchemaViewerColumns.type,
|
104
|
+
width: 100,
|
105
|
+
}, {
|
106
|
+
name: SchemaViewerColumns.notNull,
|
107
|
+
width: 100,
|
108
|
+
// Table should start with notNull columns on sort click
|
109
|
+
defaultOrder: DataTable.DESCENDING,
|
110
|
+
render: ({ row }) => {
|
111
|
+
if (row.NotNull) {
|
112
|
+
return '\u2713';
|
113
|
+
}
|
114
|
+
return undefined;
|
115
|
+
},
|
116
|
+
});
|
117
|
+
if (options.withFamilies && isRowTable(options.type)) {
|
118
|
+
columns.push({
|
119
|
+
name: SchemaViewerColumns.familyName,
|
120
|
+
width: 100,
|
121
|
+
render: ({ row }) => (row.Family ? options.families[row.Family].Name : undefined),
|
122
|
+
sortAccessor: (row) => (row.Family ? options.families[row.Family].Name : undefined),
|
123
|
+
}, {
|
124
|
+
name: SchemaViewerColumns.preferredPoolKind,
|
125
|
+
width: 100,
|
126
|
+
render: ({ row }) => {
|
127
|
+
var _a, _b;
|
128
|
+
return row.Family
|
129
|
+
? (_b = (_a = options.families[row.Family].StorageConfig) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.PreferredPoolKind
|
130
|
+
: undefined;
|
131
|
+
},
|
132
|
+
sortAccessor: (row) => {
|
133
|
+
var _a, _b;
|
134
|
+
return row.Family
|
135
|
+
? (_b = (_a = options.families[row.Family].StorageConfig) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.PreferredPoolKind
|
136
|
+
: undefined;
|
137
|
+
},
|
138
|
+
}, {
|
139
|
+
name: SchemaViewerColumns.columnCodec,
|
140
|
+
width: 100,
|
141
|
+
render: ({ row }) => row.Family
|
142
|
+
? formatColumnCodec(options.families[row.Family].ColumnCodec)
|
143
|
+
: undefined,
|
144
|
+
sortAccessor: (row) => row.Family ? options.families[row.Family].ColumnCodec : undefined,
|
145
|
+
});
|
146
|
+
}
|
147
|
+
return columns;
|
148
|
+
}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
import type { AdditionalTenantsProps, AdditionalNodesProps } from '../../types/additionalProps';
|
1
|
+
import type { AdditionalNodesProps, AdditionalTenantsProps } from '../../types/additionalProps';
|
3
2
|
import './Tenant.scss';
|
4
3
|
interface TenantProps {
|
5
4
|
additionalTenantProps?: AdditionalTenantsProps;
|
6
5
|
additionalNodesProps?: AdditionalNodesProps;
|
7
6
|
}
|
8
|
-
declare function Tenant(props: TenantProps): JSX.Element;
|
7
|
+
declare function Tenant(props: TenantProps): import("react/jsx-runtime").JSX.Element;
|
9
8
|
export default Tenant;
|
@@ -1,20 +1,19 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import cn from 'bem-cn-lite';
|
4
|
-
import { useLocation } from 'react-router';
|
2
|
+
import React from 'react';
|
5
3
|
import qs from 'qs';
|
6
4
|
import { Helmet } from 'react-helmet-async';
|
7
|
-
import {
|
8
|
-
import { useTypedSelector, useTypedDispatch } from '../../utils/hooks';
|
9
|
-
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
10
|
-
import { disableAutorefresh, getSchema } from '../../store/reducers/schema/schema';
|
11
|
-
import { registerYQLCompletionItemProvider } from '../../utils/monaco';
|
12
|
-
import SplitPane from '../../components/SplitPane';
|
5
|
+
import { useLocation } from 'react-router';
|
13
6
|
import { AccessDenied } from '../../components/Errors/403';
|
14
|
-
import
|
7
|
+
import SplitPane from '../../components/SplitPane';
|
8
|
+
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
9
|
+
import { getSchema } from '../../store/reducers/schema/schema';
|
10
|
+
import { cn } from '../../utils/cn';
|
11
|
+
import { DEFAULT_IS_TENANT_SUMMARY_COLLAPSED, DEFAULT_SIZE_TENANT_KEY } from '../../utils/constants';
|
12
|
+
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
15
13
|
import ObjectGeneral from './ObjectGeneral/ObjectGeneral';
|
16
|
-
import {
|
14
|
+
import { ObjectSummary } from './ObjectSummary/ObjectSummary';
|
17
15
|
import i18n from './i18n';
|
16
|
+
import { PaneVisibilityActionTypes, paneVisibilityToggleReducerCreator, } from './utils/paneVisibilityToggleHelpers';
|
18
17
|
import './Tenant.scss';
|
19
18
|
const b = cn('tenant-page');
|
20
19
|
const getTenantSummaryState = () => {
|
@@ -27,15 +26,15 @@ const getTenantSummaryState = () => {
|
|
27
26
|
};
|
28
27
|
function Tenant(props) {
|
29
28
|
var _a;
|
30
|
-
const [summaryVisibilityState, dispatchSummaryVisibilityAction] = useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_TENANT_SUMMARY_COLLAPSED), undefined, getTenantSummaryState);
|
31
|
-
const previousTenant = useRef();
|
29
|
+
const [summaryVisibilityState, dispatchSummaryVisibilityAction] = React.useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_TENANT_SUMMARY_COLLAPSED), undefined, getTenantSummaryState);
|
30
|
+
const previousTenant = React.useRef();
|
32
31
|
const { currentSchemaPath, currentSchema: currentItem = {} } = useTypedSelector((state) => state.schema);
|
33
32
|
const { PathType: preloadedPathType, PathSubType: preloadedPathSubType } = useTypedSelector((state) => {
|
34
33
|
var _a, _b;
|
35
34
|
return currentSchemaPath
|
36
|
-
? (
|
37
|
-
:
|
38
|
-
});
|
35
|
+
? (_b = (_a = state.schema.data[currentSchemaPath]) === null || _a === void 0 ? void 0 : _a.PathDescription) === null || _b === void 0 ? void 0 : _b.Self
|
36
|
+
: undefined;
|
37
|
+
}) || {};
|
39
38
|
const { PathType: currentPathType, PathSubType: currentPathSubType } = ((_a = currentItem.PathDescription) === null || _a === void 0 ? void 0 : _a.Self) || {};
|
40
39
|
const { error: { status: schemaStatus = 200 } = {} } = useTypedSelector((state) => state.schema);
|
41
40
|
const dispatch = useTypedDispatch();
|
@@ -45,22 +44,25 @@ function Tenant(props) {
|
|
45
44
|
});
|
46
45
|
const { name } = queryParams;
|
47
46
|
const tenantName = name;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
React.useEffect(() => {
|
48
|
+
if (tenantName && typeof tenantName === 'string' && previousTenant.current !== tenantName) {
|
49
|
+
const register = async () => {
|
50
|
+
const { registerYQLCompletionItemProvider } = await import('../../utils/monaco/yqlSuggestions/registerCompletionItemProvider');
|
51
|
+
registerYQLCompletionItemProvider(tenantName);
|
52
|
+
};
|
53
|
+
register().catch(console.error);
|
54
|
+
previousTenant.current = tenantName;
|
55
|
+
}
|
56
|
+
}, [tenantName]);
|
57
|
+
React.useEffect(() => {
|
53
58
|
dispatch(getSchema({ path: tenantName }));
|
54
59
|
}, [tenantName, dispatch]);
|
55
|
-
useEffect(() => {
|
60
|
+
React.useEffect(() => {
|
56
61
|
if (currentSchemaPath) {
|
57
62
|
dispatch(getSchema({ path: currentSchemaPath }));
|
58
63
|
}
|
59
64
|
}, [currentSchemaPath, dispatch]);
|
60
|
-
useEffect(() => {
|
61
|
-
dispatch(disableAutorefresh());
|
62
|
-
}, [currentSchemaPath, tenantName, dispatch]);
|
63
|
-
useEffect(() => {
|
65
|
+
React.useEffect(() => {
|
64
66
|
if (tenantName) {
|
65
67
|
dispatch(setHeaderBreadcrumbs('tenant', { tenantName }));
|
66
68
|
}
|
@@ -76,10 +78,6 @@ function Tenant(props) {
|
|
76
78
|
};
|
77
79
|
const showBlockingError = schemaStatus === 403;
|
78
80
|
const title = currentSchemaPath || tenantName || i18n('page.title');
|
79
|
-
return (_jsxs("div",
|
80
|
-
// @ts-expect-error
|
81
|
-
, {
|
82
|
-
// @ts-expect-error
|
83
|
-
type: preloadedPathType || currentPathType, additionalTenantProps: props.additionalTenantProps, additionalNodesProps: props.additionalNodesProps, tenantName: tenantName })] })))] })));
|
81
|
+
return (_jsxs("div", { className: b(), children: [_jsx(Helmet, { defaultTitle: `${title} — YDB Monitoring`, titleTemplate: `%s — ${title} — YDB Monitoring` }), showBlockingError ? (_jsx(AccessDenied, {})) : (_jsxs(SplitPane, { defaultSizePaneKey: DEFAULT_SIZE_TENANT_KEY, defaultSizes: [25, 75], triggerCollapse: summaryVisibilityState.triggerCollapse, triggerExpand: summaryVisibilityState.triggerExpand, minSize: [36, 200], onSplitStartDragAdditional: onSplitStartDragAdditional, children: [_jsx(ObjectSummary, { type: preloadedPathType || currentPathType, subType: preloadedPathSubType || currentPathSubType, onCollapseSummary: onCollapseSummaryHandler, onExpandSummary: onExpandSummaryHandler, isCollapsed: summaryVisibilityState.collapsed }), _jsx(ObjectGeneral, { type: preloadedPathType || currentPathType, additionalTenantProps: props.additionalTenantProps, additionalNodesProps: props.additionalNodesProps, tenantName: tenantName })] }))] }));
|
84
82
|
}
|
85
83
|
export default Tenant;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TPathDescription } from '../../../types/api/schema';
|
1
|
+
import type { TPathDescription } from '../../../types/api/schema';
|
2
2
|
export declare const getEntityName: (pathDescription?: TPathDescription) => string | undefined;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import './ToggleButton.scss';
|
3
2
|
export interface InitialPaneState {
|
4
3
|
triggerExpand: boolean;
|
@@ -18,5 +17,5 @@ interface ToggleButtonProps {
|
|
18
17
|
initialDirection?: 'right' | 'left' | 'top' | 'bottom';
|
19
18
|
className?: string;
|
20
19
|
}
|
21
|
-
export declare function PaneVisibilityToggleButtons({ onCollapse, onExpand, isCollapsed, initialDirection, className, }: ToggleButtonProps): JSX.Element;
|
20
|
+
export declare function PaneVisibilityToggleButtons({ onCollapse, onExpand, isCollapsed, initialDirection, className, }: ToggleButtonProps): import("react/jsx-runtime").JSX.Element;
|
22
21
|
export {};
|