ydb-embedded-ui 5.5.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 +4 -4
- package/dist/components/DiskPageTitle/DiskPageTitle.js +1 -1
- package/dist/components/DiskPageTitle/DiskPageTitle.scss +4 -0
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +1 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +4 -4
- 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 +6 -6
- 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 +1 -2
- 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 +26 -76
- 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/MonacoEditor/MonacoEditor.d.ts +1 -1
- 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/components/PDiskPopup/PDiskPopup.d.ts +3 -3
- package/dist/components/PDiskPopup/PDiskPopup.js +4 -4
- package/dist/components/PageMeta/PageMeta.d.ts +1 -2
- package/dist/components/PageMeta/PageMeta.js +1 -1
- 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 +6 -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/components/VDisk/VDisk.d.ts +1 -1
- package/dist/components/VDisk/VDisk.js +8 -8
- package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +1 -2
- package/dist/components/VDisk/VDiskWithDonorsStack.js +3 -3
- package/dist/components/VDiskInfo/VDiskInfo.d.ts +1 -2
- package/dist/components/VDiskInfo/VDiskInfo.js +5 -5
- package/dist/components/VDiskInfo/VDiskInfo.scss +0 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +3 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +8 -8
- package/dist/components/VirtualTable/TableChunk.d.ts +2 -2
- package/dist/components/VirtualTable/TableChunk.js +5 -5
- package/dist/components/VirtualTable/TableHead.d.ts +2 -2
- package/dist/components/VirtualTable/TableHead.js +16 -18
- 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/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 -5
- package/dist/containers/App/App.scss +5 -5
- package/dist/containers/App/Content.d.ts +7 -3
- package/dist/containers/App/Content.js +18 -21
- package/dist/containers/App/Providers.d.ts +1 -1
- package/dist/containers/App/Providers.js +5 -5
- package/dist/containers/App/appSlots.d.ts +5 -2
- 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 +3 -3
- 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 +10 -11
- 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 +18 -31
- 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 +1 -2
- package/dist/containers/Node/NodeStructure/Vdisk.js +5 -5
- 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 -5
- package/dist/containers/Nodes/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/i18n/index.js +2 -4
- package/dist/containers/PDiskPage/PDiskGroups.d.ts +1 -2
- package/dist/containers/PDiskPage/PDiskGroups.js +5 -5
- package/dist/containers/PDiskPage/PDiskPage.d.ts +1 -2
- package/dist/containers/PDiskPage/PDiskPage.js +34 -34
- package/dist/containers/PDiskPage/PDiskPage.scss +1 -2
- package/dist/containers/PDiskPage/shared.d.ts +1 -10
- 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 +11 -11
- package/dist/containers/Storage/Storage.d.ts +1 -1
- package/dist/containers/Storage/Storage.js +36 -46
- 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/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 +9 -8
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +16 -15
- 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 +7 -7
- 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 +5 -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 +18 -25
- package/dist/containers/TabletsFilters/TabletsFilters.js +16 -16
- 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 -40
- 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/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 -40
- 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 +22 -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 +9 -9
- 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 +20 -27
- 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 -22
- 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 +1 -2
- package/dist/containers/VDiskPage/VDiskPage.js +36 -37
- package/dist/containers/VDiskPage/VDiskPage.scss +2 -3
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- 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/types.d.ts +1 -1
- package/dist/routes.js +2 -2
- package/dist/services/api.d.ts +49 -43
- package/dist/services/api.js +82 -64
- package/dist/services/parsers/parseMetaTenants.d.ts +1 -1
- package/dist/services/settings.js +1 -1
- package/dist/store/configureStore.d.ts +29 -105
- package/dist/store/configureStore.js +13 -9
- package/dist/store/defaultStore.d.ts +11 -49
- 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 -72
- 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 -97
- 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 -92
- package/dist/store/reducers/clusterNodes/clusterNodes.js +22 -36
- package/dist/store/reducers/clusters/clusters.d.ts +7 -96
- 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 +14 -43
- package/dist/store/reducers/clusters/types.d.ts +1 -9
- package/dist/store/reducers/describe.d.ts +4 -184
- package/dist/store/reducers/describe.js +23 -97
- package/dist/store/reducers/executeQuery.d.ts +6 -25
- 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 -49
- package/dist/store/reducers/explainQuery.js +2 -2
- package/dist/store/reducers/header/types.d.ts +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +2113 -42
- 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 -109
- package/dist/store/reducers/heatmap.js +66 -61
- package/dist/store/reducers/host.d.ts +5 -24
- 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 -108
- package/dist/store/reducers/index.js +20 -58
- package/dist/store/reducers/network/network.d.ts +3 -95
- package/dist/store/reducers/network/network.js +18 -37
- package/dist/store/reducers/node/node.d.ts +8 -183
- 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 +6 -5
- package/dist/store/reducers/node/types.d.ts +0 -18
- package/dist/store/reducers/nodes/nodes.d.ts +8 -193
- 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 -36
- package/dist/store/reducers/nodesList.js +21 -26
- package/dist/store/reducers/olapStats.d.ts +5 -97
- package/dist/store/reducers/olapStats.js +22 -42
- package/dist/store/reducers/overview/overview.d.ts +6 -188
- package/dist/store/reducers/overview/overview.js +16 -72
- package/dist/store/reducers/partitions/partitions.d.ts +10 -99
- 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 -210
- 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 +1 -1
- package/dist/store/reducers/preview.d.ts +4 -99
- package/dist/store/reducers/preview.js +18 -39
- package/dist/store/reducers/schema/schema.d.ts +11 -34
- 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 -24
- 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 -104
- 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 -209
- package/dist/store/reducers/storage/storage.js +67 -132
- package/dist/store/reducers/storage/types.d.ts +3 -16
- package/dist/store/reducers/storage/utils.js +3 -3
- package/dist/store/reducers/tablet.d.ts +13 -183
- package/dist/store/reducers/tablet.js +58 -83
- package/dist/store/reducers/tablets.d.ts +7 -103
- package/dist/store/reducers/tablets.js +32 -52
- package/dist/store/reducers/tabletsFilters.d.ts +5 -24
- 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 -121
- 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 -95
- 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 -94
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +21 -41
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +6 -94
- 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 -96
- 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 +3 -1
- package/dist/store/reducers/tenants/tenants.d.ts +9 -134
- 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 -42
- package/dist/store/reducers/topic.js +30 -61
- package/dist/store/reducers/vdisk/types.d.ts +0 -14
- package/dist/store/reducers/vdisk/vdisk.d.ts +6 -100
- package/dist/store/reducers/vdisk/vdisk.js +28 -46
- package/dist/store/state-url-mapping.d.ts +8 -2
- package/dist/store/state-url-mapping.js +38 -11
- 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 +2 -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/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/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 +1 -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/getPDiskType.js +1 -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.d.ts +1 -1
- package/dist/utils/hooks/useTableResize.js +3 -3
- 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 +1 -1
- package/dist/utils/lazyComponent.js +5 -5
- package/dist/utils/monaco/yqlSuggestions/generateSuggestions.d.ts +1 -1
- package/dist/utils/monaco/yqlSuggestions/yqlSuggestions.js +4 -2
- 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/prepareQueryExplain.d.ts +1 -1
- package/dist/utils/query.d.ts +1 -1
- package/dist/utils/timeParsers/i18n/index.d.ts +1 -1
- package/dist/utils/timeParsers/i18n/index.js +2 -4
- 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 +64 -61
- package/dist/containers/Clusters/useClustersList.d.ts +0 -1
- package/dist/containers/Clusters/useClustersList.js +0 -9
- 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 -96
- 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 -96
- 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 -96
- 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/components/MetricChart/{convertReponse.d.ts → convertResponse.d.ts} +0 -0
- /package/dist/components/MetricChart/{convertReponse.js → convertResponse.js} +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import React from 'react';
|
2
|
+
import { goToNextQuery, goToPreviousQuery, saveQueryToHistory, sendExecuteQuery, setTenantPath } from '../../../../store/reducers/executeQuery';
|
3
3
|
import { getExplainQuery, getExplainQueryAst } from '../../../../store/reducers/explainQuery';
|
4
4
|
import { setShowPreview } from '../../../../store/reducers/schema/schema';
|
5
|
+
import type { EPathType } from '../../../../types/api/schema';
|
5
6
|
import type { ExecuteQueryState } from '../../../../types/store/executeQuery';
|
6
7
|
import type { ExplainQueryState } from '../../../../types/store/explainQuery';
|
7
|
-
import type { EPathType } from '../../../../types/api/schema';
|
8
8
|
import './QueryEditor.scss';
|
9
9
|
interface QueryEditorProps {
|
10
10
|
path: string;
|
@@ -20,11 +20,20 @@ interface QueryEditorProps {
|
|
20
20
|
executeQuery: ExecuteQueryState;
|
21
21
|
explainQuery: ExplainQueryState;
|
22
22
|
theme: string;
|
23
|
-
type
|
23
|
+
type?: EPathType;
|
24
24
|
showPreview: boolean;
|
25
25
|
setShowPreview: (...args: Parameters<typeof setShowPreview>) => void;
|
26
26
|
saveQueryToHistory: (...args: Parameters<typeof saveQueryToHistory>) => void;
|
27
27
|
}
|
28
|
-
declare function QueryEditor(props: QueryEditorProps): JSX.Element;
|
29
|
-
declare const _default: import("react-redux").ConnectedComponent<typeof QueryEditor,
|
28
|
+
declare function QueryEditor(props: QueryEditorProps): import("react/jsx-runtime").JSX.Element;
|
29
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof QueryEditor, {
|
30
|
+
theme: string;
|
31
|
+
type?: EPathType | undefined;
|
32
|
+
path: string;
|
33
|
+
changeUserInput: (arg: {
|
34
|
+
input: string;
|
35
|
+
}) => void;
|
36
|
+
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
37
|
+
store?: import("redux").Store<any, import("redux").UnknownAction, unknown> | undefined;
|
38
|
+
}>;
|
30
39
|
export default _default;
|
@@ -1,24 +1,24 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import { connect } from 'react-redux';
|
4
|
-
import cn from 'bem-cn-lite';
|
2
|
+
import React from 'react';
|
5
3
|
import throttle from 'lodash/throttle';
|
4
|
+
import { connect } from 'react-redux';
|
6
5
|
import { MonacoEditor } from '../../../../components/MonacoEditor/MonacoEditor';
|
7
6
|
import SplitPane from '../../../../components/SplitPane';
|
8
|
-
import {
|
7
|
+
import { goToNextQuery, goToPreviousQuery, saveQueryToHistory, sendExecuteQuery, setTenantPath, } from '../../../../store/reducers/executeQuery';
|
9
8
|
import { getExplainQuery, getExplainQueryAst } from '../../../../store/reducers/explainQuery';
|
10
9
|
import { setShowPreview } from '../../../../store/reducers/schema/schema';
|
11
|
-
import {
|
12
|
-
import {
|
10
|
+
import { cn } from '../../../../utils/cn';
|
11
|
+
import { DEFAULT_IS_QUERY_RESULT_COLLAPSED, DEFAULT_SIZE_RESULT_PANE_KEY, LAST_USED_QUERY_ACTION_KEY, QUERY_USE_MULTI_SCHEMA_KEY, SAVED_QUERIES_KEY, } from '../../../../utils/constants';
|
12
|
+
import { useQueryModes, useSetting } from '../../../../utils/hooks';
|
13
13
|
import { QUERY_ACTIONS } from '../../../../utils/query';
|
14
14
|
import { parseJson } from '../../../../utils/utils';
|
15
|
-
import { useEditorOptions } from './helpers';
|
16
15
|
import { PaneVisibilityActionTypes, paneVisibilityToggleReducerCreator, } from '../../utils/paneVisibilityToggleHelpers';
|
17
|
-
import { Preview } from '../Preview/Preview';
|
18
16
|
import { ExecuteResult } from '../ExecuteResult/ExecuteResult';
|
19
17
|
import { ExplainResult } from '../ExplainResult/ExplainResult';
|
18
|
+
import { Preview } from '../Preview/Preview';
|
20
19
|
import { QueryEditorControls } from '../QueryEditorControls/QueryEditorControls';
|
21
20
|
import i18n from '../i18n';
|
21
|
+
import { useEditorOptions } from './helpers';
|
22
22
|
import './QueryEditor.scss';
|
23
23
|
const CONTEXT_MENU_GROUP_ID = 'navigation';
|
24
24
|
const RESULT_TYPES = {
|
@@ -39,14 +39,14 @@ function QueryEditor(props) {
|
|
39
39
|
const editorOptions = useEditorOptions();
|
40
40
|
const { path, setTenantPath: setPath, executeQuery, explainQuery, type, theme, changeUserInput, showPreview, } = props;
|
41
41
|
const { tenantPath: savedPath } = executeQuery;
|
42
|
-
const [resultType, setResultType] = useState(RESULT_TYPES.EXECUTE);
|
43
|
-
const [isResultLoaded, setIsResultLoaded] = useState(false);
|
42
|
+
const [resultType, setResultType] = React.useState(RESULT_TYPES.EXECUTE);
|
43
|
+
const [isResultLoaded, setIsResultLoaded] = React.useState(false);
|
44
44
|
const [queryMode, setQueryMode] = useQueryModes();
|
45
45
|
const [useMultiSchema] = useSetting(QUERY_USE_MULTI_SCHEMA_KEY);
|
46
46
|
const [lastUsedQueryAction, setLastUsedQueryAction] = useSetting(LAST_USED_QUERY_ACTION_KEY);
|
47
47
|
const [savedQueries, setSavedQueries] = useSetting(SAVED_QUERIES_KEY);
|
48
|
-
const [monacoHotKey, setMonacoHotKey] = useState(null);
|
49
|
-
useEffect(() => {
|
48
|
+
const [monacoHotKey, setMonacoHotKey] = React.useState(null);
|
49
|
+
React.useEffect(() => {
|
50
50
|
if (savedPath !== path) {
|
51
51
|
if (savedPath) {
|
52
52
|
changeUserInput({ input: '' });
|
@@ -54,9 +54,9 @@ function QueryEditor(props) {
|
|
54
54
|
setPath(path);
|
55
55
|
}
|
56
56
|
}, [changeUserInput, setPath, path, savedPath]);
|
57
|
-
const [resultVisibilityState, dispatchResultVisibilityState] = useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_QUERY_RESULT_COLLAPSED), initialTenantCommonInfoState);
|
58
|
-
const editorRef = useRef();
|
59
|
-
useEffect(() => {
|
57
|
+
const [resultVisibilityState, dispatchResultVisibilityState] = React.useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_QUERY_RESULT_COLLAPSED), initialTenantCommonInfoState);
|
58
|
+
const editorRef = React.useRef();
|
59
|
+
React.useEffect(() => {
|
60
60
|
const updateEditor = () => {
|
61
61
|
if (editorRef.current) {
|
62
62
|
editorRef.current.layout();
|
@@ -71,7 +71,7 @@ function QueryEditor(props) {
|
|
71
71
|
window.removeEventListener('resize', onChangeWindow);
|
72
72
|
};
|
73
73
|
}, []);
|
74
|
-
useEffect(() => {
|
74
|
+
React.useEffect(() => {
|
75
75
|
const storageEventHandler = (event) => {
|
76
76
|
if (event.key === SAVED_QUERIES_KEY) {
|
77
77
|
const v = parseJson(event.newValue);
|
@@ -83,10 +83,10 @@ function QueryEditor(props) {
|
|
83
83
|
window.removeEventListener('storage', storageEventHandler);
|
84
84
|
};
|
85
85
|
}, [setSavedQueries]);
|
86
|
-
useEffect(() => {
|
86
|
+
React.useEffect(() => {
|
87
87
|
dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerCollapse);
|
88
88
|
}, []);
|
89
|
-
useEffect(() => {
|
89
|
+
React.useEffect(() => {
|
90
90
|
if (props.showPreview || isResultLoaded) {
|
91
91
|
dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerExpand);
|
92
92
|
}
|
@@ -94,7 +94,7 @@ function QueryEditor(props) {
|
|
94
94
|
dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerCollapse);
|
95
95
|
}
|
96
96
|
}, [props.showPreview, isResultLoaded]);
|
97
|
-
useEffect(() => {
|
97
|
+
React.useEffect(() => {
|
98
98
|
var _a;
|
99
99
|
const { input, history } = executeQuery;
|
100
100
|
const hasUnsavedInput = input
|
@@ -154,7 +154,7 @@ function QueryEditor(props) {
|
|
154
154
|
props.setShowPreview(false);
|
155
155
|
dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerExpand);
|
156
156
|
};
|
157
|
-
useEffect(() => {
|
157
|
+
React.useEffect(() => {
|
158
158
|
var _a, _b;
|
159
159
|
if (monacoHotKey === null) {
|
160
160
|
return;
|
@@ -284,11 +284,9 @@ function QueryEditor(props) {
|
|
284
284
|
const renderControls = () => {
|
285
285
|
return (_jsx(QueryEditorControls, { onRunButtonClick: handleSendExecuteClick, runIsLoading: executeQuery.loading, onExplainButtonClick: handleGetExplainQueryClick, explainIsLoading: explainQuery.loading, onSaveQueryClick: onSaveQueryHandler, savedQueries: savedQueries, disabled: !executeQuery.input, onUpdateQueryMode: setQueryMode, queryMode: queryMode, highlightedAction: lastUsedQueryAction }));
|
286
286
|
};
|
287
|
-
return (_jsx("div",
|
287
|
+
return (_jsx("div", { className: b(), children: _jsxs(SplitPane, { direction: "vertical", defaultSizePaneKey: DEFAULT_SIZE_RESULT_PANE_KEY, triggerCollapse: resultVisibilityState.triggerCollapse, triggerExpand: resultVisibilityState.triggerExpand, minSize: [0, 52], collapsedSizes: [100, 0], onSplitStartDragAdditional: onSplitStartDragAdditional, children: [_jsxs("div", { className: b('pane-wrapper', {
|
288
288
|
top: true,
|
289
|
-
})
|
290
|
-
// pass noop otherwise it will throw error
|
291
|
-
editorWillUnmount: () => { }, theme: `vs-${theme}` }) })) })), renderControls()] })), _jsx("div", Object.assign({ className: b('pane-wrapper') }, { children: _jsx(Result, { executeQuery: executeQuery, explainQuery: explainQuery, resultVisibilityState: resultVisibilityState, onExpandResultHandler: onExpandResultHandler, onCollapseResultHandler: onCollapseResultHandler, type: type, handleAstQuery: handleAstQuery, theme: theme, resultType: resultType, path: path, showPreview: showPreview }) }))] })) })));
|
289
|
+
}), children: [_jsx("div", { className: b('monaco-wrapper'), children: _jsx("div", { className: b('monaco'), children: _jsx(MonacoEditor, { language: "sql", value: executeQuery.input, options: editorOptions, onChange: onChange, editorDidMount: editorDidMount, theme: `vs-${theme}` }) }) }), renderControls()] }), _jsx("div", { className: b('pane-wrapper'), children: _jsx(Result, { executeQuery: executeQuery, explainQuery: explainQuery, resultVisibilityState: resultVisibilityState, onExpandResultHandler: onExpandResultHandler, onCollapseResultHandler: onCollapseResultHandler, type: type, handleAstQuery: handleAstQuery, theme: theme, resultType: resultType, path: path, showPreview: showPreview }) })] }) }));
|
292
290
|
}
|
293
291
|
const mapStateToProps = (state) => {
|
294
292
|
return {
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import { ENABLE_AUTOCOMPLETE, useSetting } from '../../../../lib';
|
2
|
-
import { useMemo } from 'react';
|
3
3
|
export const EDITOR_OPTIONS = {
|
4
4
|
automaticLayout: true,
|
5
5
|
selectOnLineNumbers: true,
|
@@ -9,7 +9,7 @@ export const EDITOR_OPTIONS = {
|
|
9
9
|
};
|
10
10
|
export function useEditorOptions() {
|
11
11
|
const [enableAutocomplete] = useSetting(ENABLE_AUTOCOMPLETE);
|
12
|
-
const options = useMemo(() => {
|
12
|
+
const options = React.useMemo(() => {
|
13
13
|
const useAutocomplete = Boolean(enableAutocomplete);
|
14
14
|
return Object.assign({ quickSuggestions: useAutocomplete, suggestOnTriggerCharacters: useAutocomplete }, EDITOR_OPTIONS);
|
15
15
|
}, [enableAutocomplete]);
|
@@ -12,5 +12,5 @@ interface QueryEditorControlsProps {
|
|
12
12
|
queryMode: QueryMode;
|
13
13
|
highlightedAction: QueryAction;
|
14
14
|
}
|
15
|
-
export declare const QueryEditorControls: ({ onRunButtonClick, runIsLoading, onExplainButtonClick, explainIsLoading, onSaveQueryClick, savedQueries, disabled, onUpdateQueryMode, queryMode, highlightedAction, }: QueryEditorControlsProps) => JSX.Element;
|
15
|
+
export declare const QueryEditorControls: ({ onRunButtonClick, runIsLoading, onExplainButtonClick, explainIsLoading, onSaveQueryClick, savedQueries, disabled, onUpdateQueryMode, queryMode, highlightedAction, }: QueryEditorControlsProps) => import("react/jsx-runtime").JSX.Element;
|
16
16
|
export {};
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import
|
2
|
+
import React from 'react';
|
3
3
|
import { Button, DropdownMenu } from '@gravity-ui/uikit';
|
4
|
-
import { useMemo } from 'react';
|
5
|
-
import { QUERY_MODES, QUERY_MODES_TITLES } from '../../../../utils/query';
|
6
4
|
import { Icon } from '../../../../components/Icon';
|
7
5
|
import { LabelWithPopover } from '../../../../components/LabelWithPopover';
|
6
|
+
import { cn } from '../../../../utils/cn';
|
7
|
+
import { QUERY_MODES, QUERY_MODES_TITLES } from '../../../../utils/query';
|
8
8
|
import SaveQuery from '../SaveQuery/SaveQuery';
|
9
9
|
import i18n from '../i18n';
|
10
10
|
import './QueryEditorControls.scss';
|
11
11
|
const queryModeSelectorQa = 'query-mode-selector';
|
12
12
|
const queryModeSelectorPopupQa = 'query-mode-selector-popup';
|
13
|
-
const b =
|
13
|
+
const b = cn('ydb-query-editor-controls');
|
14
14
|
const QueryModeSelectorOptions = {
|
15
15
|
[QUERY_MODES.script]: {
|
16
16
|
title: QUERY_MODES_TITLES[QUERY_MODES.script],
|
@@ -34,7 +34,7 @@ const QueryModeSelectorOptions = {
|
|
34
34
|
},
|
35
35
|
};
|
36
36
|
export const QueryEditorControls = ({ onRunButtonClick, runIsLoading, onExplainButtonClick, explainIsLoading, onSaveQueryClick, savedQueries, disabled, onUpdateQueryMode, queryMode, highlightedAction, }) => {
|
37
|
-
const querySelectorMenuItems = useMemo(() => {
|
37
|
+
const querySelectorMenuItems = React.useMemo(() => {
|
38
38
|
return Object.entries(QueryModeSelectorOptions).map(([mode, { title, description }]) => {
|
39
39
|
return {
|
40
40
|
text: (_jsx(LabelWithPopover, { className: b('item-with-popover'), contentClassName: b('popover'), text: title, popoverContent: description })),
|
@@ -46,12 +46,12 @@ export const QueryEditorControls = ({ onRunButtonClick, runIsLoading, onExplainB
|
|
46
46
|
}, [onUpdateQueryMode]);
|
47
47
|
const runView = highlightedAction === 'execute' ? 'action' : undefined;
|
48
48
|
const explainView = highlightedAction === 'explain' ? 'action' : undefined;
|
49
|
-
return (_jsxs("div",
|
49
|
+
return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('left'), children: [_jsxs(Button, { onClick: () => {
|
50
50
|
onRunButtonClick(queryMode);
|
51
|
-
}, disabled: disabled, loading: runIsLoading, view: runView
|
51
|
+
}, disabled: disabled, loading: runIsLoading, view: runView, children: [_jsx(Icon, { name: "startPlay", viewBox: "0 0 16 16", width: 16, height: 16 }), 'Run'] }), _jsx(Button, { onClick: () => {
|
52
52
|
onExplainButtonClick(queryMode);
|
53
|
-
}, disabled: disabled, loading: explainIsLoading, view: explainView
|
53
|
+
}, disabled: disabled, loading: explainIsLoading, view: explainView, children: "Explain" }), _jsx("div", { className: b('mode-selector'), children: _jsx(DropdownMenu, { items: querySelectorMenuItems, popupProps: {
|
54
54
|
className: b('mode-selector__popup'),
|
55
55
|
qa: queryModeSelectorPopupQa,
|
56
|
-
}, switcher: _jsx(Button,
|
56
|
+
}, switcher: _jsx(Button, { className: b('mode-selector__button'), qa: queryModeSelectorQa, children: _jsxs("span", { className: b('mode-selector__button-content'), children: [`${i18n('controls.query-mode-selector_type')} ${QueryModeSelectorOptions[queryMode].title}`, _jsx(Icon, { name: "chevron-down", width: 16, height: 16 })] }) }) }) })] }), _jsx(SaveQuery, { savedQueries: savedQueries, onSaveQuery: onSaveQueryClick, saveButtonDisabled: disabled })] }));
|
57
57
|
};
|
@@ -13,5 +13,5 @@ interface QueryEditorTabsProps {
|
|
13
13
|
className?: string;
|
14
14
|
activeTab?: TenantQueryTab;
|
15
15
|
}
|
16
|
-
export declare const QueryTabs: ({ className, activeTab }: QueryEditorTabsProps) => JSX.Element;
|
16
|
+
export declare const QueryTabs: ({ className, activeTab }: QueryEditorTabsProps) => import("react/jsx-runtime").JSX.Element;
|
17
17
|
export {};
|
@@ -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
|
2
|
+
import React from 'react';
|
3
|
+
import { Button, Dialog, DropdownMenu, TextInput } from '@gravity-ui/uikit';
|
3
4
|
import some from 'lodash/some';
|
4
|
-
import cn from 'bem-cn-lite';
|
5
|
-
import { Dialog, DropdownMenu, TextInput, Button } from '@gravity-ui/uikit';
|
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 = () => {
|
@@ -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>[];
|