ydb-embedded-ui 21.0.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +0 -4
- package/dist/components/ComponentsProvider/componentsRegistry.d.ts +0 -2
- package/dist/components/ComponentsProvider/componentsRegistry.js +1 -3
- package/dist/components/ComponentsProvider/componentsRegistry.js.map +1 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +1 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.js +4 -2
- package/dist/components/ContentWithPopup/ContentWithPopup.js.map +1 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +10 -6
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +1 -2
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/FullNodeViewer/i18n/index.d.ts +1 -1
- package/dist/components/HoverPopup/HoverPopup.js +27 -4
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/HoverPopup/getPopupScrollContainer.d.ts +1 -0
- package/dist/components/HoverPopup/getPopupScrollContainer.js +20 -0
- package/dist/components/HoverPopup/getPopupScrollContainer.js.map +1 -0
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/SegmentedProgress/SegmentedProgress.d.ts +22 -1
- package/dist/components/SegmentedProgress/SegmentedProgress.js +44 -3
- package/dist/components/SegmentedProgress/SegmentedProgress.js.map +1 -1
- package/dist/components/SegmentedProgress/SegmentedProgress.scss +5 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +1 -13
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/en.json +0 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/App/App.js +3 -3
- package/dist/containers/App/App.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +8 -5
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.d.ts +4 -3
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.js +62 -25
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.scss +18 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.d.ts +22 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.js +49 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.js.map +1 -0
- package/dist/containers/Cluster/i18n/en.json +13 -4
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Header/HeaderActionsMenu.js +19 -3
- package/dist/containers/Header/HeaderActionsMenu.js.map +1 -1
- package/dist/containers/Header/hooks/useSharedDatabasePath.d.ts +4 -1
- package/dist/containers/Header/hooks/useSharedDatabasePath.js +14 -10
- package/dist/containers/Header/hooks/useSharedDatabasePath.js.map +1 -1
- package/dist/containers/Header/i18n/en.json +1 -0
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Node/Node.js +20 -17
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.d.ts +3 -9
- package/dist/containers/Node/NodePages.js +2 -10
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Node/i18n/en.json +0 -3
- package/dist/containers/Node/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/NodesTable.js +2 -2
- package/dist/containers/Nodes/NodesTable.js.map +1 -1
- package/dist/containers/Operations/columns.js +2 -2
- package/dist/containers/Operations/columns.js.map +1 -1
- package/dist/containers/Operations/i18n/en.json +2 -2
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/i18n/en.json +3 -3
- package/dist/containers/Storage/PDisks/PDisks.js +1 -1
- package/dist/containers/Storage/PDisks/PDisks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js +0 -1
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js +2 -3
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/constants.d.ts +2 -2
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.js +2 -3
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +2 -3
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +1 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -1
- package/dist/containers/Tablet/i18n/en.json +3 -3
- package/dist/containers/Tablets/TabletsTable.js +1 -1
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tablets/i18n/en.json +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/constants.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +3 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +1 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/useTenantStorageNewData.d.ts +5 -5
- package/dist/containers/Tenant/Diagnostics/useDiagnosticsPages.js +2 -4
- package/dist/containers/Tenant/Diagnostics/useDiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js +10 -2
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js.map +1 -1
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api/viewer.d.ts +1 -2
- package/dist/services/api/viewer.js +0 -11
- package/dist/services/api/viewer.js.map +1 -1
- package/dist/store/configureStore.d.ts +12 -12
- package/dist/store/defaultStore.d.ts +6 -6
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +3 -0
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/capabilities/capabilities.d.ts +43 -43
- package/dist/store/reducers/capabilities/hooks.d.ts +5 -6
- package/dist/store/reducers/capabilities/hooks.js +0 -3
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +5 -5
- package/dist/store/reducers/cluster/cluster.js +3 -2
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.js +2 -1
- package/dist/store/reducers/clusters/clusters.js.map +1 -1
- package/dist/store/reducers/codeAssist/codeAssist.d.ts +6 -6
- package/dist/store/reducers/configs.d.ts +3 -3
- package/dist/store/reducers/entityDataTags.d.ts +21 -0
- package/dist/store/reducers/entityDataTags.js +24 -0
- package/dist/store/reducers/entityDataTags.js.map +1 -0
- package/dist/store/reducers/environments/environments.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -4
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +111 -111
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +8 -8
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +2 -5
- package/dist/store/reducers/node/node.js +0 -12
- package/dist/store/reducers/node/node.js.map +1 -1
- package/dist/store/reducers/node/types.d.ts +0 -14
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodesList.d.ts +12 -12
- package/dist/store/reducers/operations.d.ts +5 -5
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +3 -3
- package/dist/store/reducers/pdisk/pdisk.d.ts +2 -2
- package/dist/store/reducers/planToSvg.d.ts +2 -2
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/query/api.d.ts +4 -4
- package/dist/store/reducers/replication.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +16 -16
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +40 -40
- package/dist/store/reducers/settings/api.d.ts +4 -4
- package/dist/store/reducers/settings/settings.d.ts +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/showCreateTable/showCreateTable.d.ts +2 -2
- package/dist/store/reducers/storage/requestStorageData.d.ts +2 -4
- package/dist/store/reducers/storage/requestStorageData.js +4 -10
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +4 -6
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +0 -9
- package/dist/store/reducers/storage/utils.d.ts +1 -2
- package/dist/store/reducers/storage/utils.js +3 -114
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/storageUsage/StorageUsage.d.ts +2 -2
- package/dist/store/reducers/streamingQuery/streamingQuery.d.ts +2 -2
- package/dist/store/reducers/table/table.d.ts +4 -4
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tablePartitioning/tablePartitioning.d.ts +2 -2
- package/dist/store/reducers/tableSchemaData.d.ts +2 -2
- package/dist/store/reducers/tablet.d.ts +8 -8
- package/dist/store/reducers/tablets.d.ts +3 -3
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenant/tenant.js +14 -1
- package/dist/store/reducers/tenant/tenant.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/storage/tenantOverviewStorage.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenants/tenants.d.ts +3 -3
- package/dist/store/reducers/tenants/tenants.js +2 -1
- package/dist/store/reducers/tenants/tenants.js.map +1 -1
- package/dist/store/reducers/topic/topic.d.ts +84 -84
- package/dist/store/reducers/vdisk/vdisk.d.ts +3 -3
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/state-url-mapping.js +5 -1
- package/dist/store/state-url-mapping.js.map +1 -1
- package/dist/types/api/storage.d.ts +2 -111
- package/dist/types/api/storage.js.map +1 -1
- package/dist/uiFactory/types.d.ts +8 -0
- package/dist/uiFactory/uiFactory.js +5 -2
- package/dist/uiFactory/uiFactory.js.map +1 -1
- package/dist/utils/hooks/useWhoami.d.ts +5 -5
- package/package.json +2 -2
- package/src/components/ComponentsProvider/componentsRegistry.ts +1 -4
- package/src/components/ContentWithPopup/ContentWithPopup.tsx +7 -0
- package/src/components/CriticalActionDialog/CriticalActionDialog.tsx +12 -25
- package/src/components/CriticalActionDialog/i18n/en.json +1 -2
- package/src/components/DropdownMenu/DropdownMenu.tsx +3 -2
- package/src/components/HoverPopup/HoverPopup.tsx +32 -3
- package/src/components/HoverPopup/getPopupScrollContainer.ts +20 -0
- package/src/components/SegmentedProgress/SegmentedProgress.scss +5 -0
- package/src/components/SegmentedProgress/SegmentedProgress.tsx +99 -10
- package/src/components/StorageGroupInfo/StorageGroupInfo.tsx +0 -13
- package/src/components/StorageGroupInfo/i18n/en.json +0 -1
- package/src/containers/App/App.tsx +3 -3
- package/src/containers/Cluster/ClusterInfo/ClusterInfo.scss +8 -0
- package/src/containers/Cluster/ClusterInfo/ClusterInfo.tsx +12 -11
- package/src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.scss +18 -0
- package/src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.tsx +143 -58
- package/src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.ts +89 -0
- package/src/containers/Cluster/i18n/en.json +13 -4
- package/src/containers/Header/HeaderActionsMenu.tsx +22 -2
- package/src/containers/Header/hooks/useSharedDatabasePath.ts +33 -26
- package/src/containers/Header/i18n/en.json +1 -0
- package/src/containers/Node/Node.tsx +32 -18
- package/src/containers/Node/NodePages.ts +5 -10
- package/src/containers/Node/i18n/en.json +0 -4
- package/src/containers/Nodes/NodesTable.tsx +7 -1
- package/src/containers/Operations/columns.tsx +4 -0
- package/src/containers/Operations/i18n/en.json +2 -2
- package/src/containers/PDiskPage/DecommissionButton/DecommissionButton.tsx +2 -0
- package/src/containers/PDiskPage/PDiskPage.tsx +3 -1
- package/src/containers/PDiskPage/i18n/en.json +3 -3
- package/src/containers/Storage/PDisks/PDisks.tsx +1 -1
- package/src/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.tsx +0 -1
- package/src/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.tsx +2 -6
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/constants.ts +2 -2
- package/src/containers/Storage/PaginatedStorageGroupsTable/getGroups.ts +40 -47
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +2 -6
- package/src/containers/Tablet/components/TabletControls/TabletControls.tsx +7 -1
- package/src/containers/Tablet/i18n/en.json +3 -3
- package/src/containers/Tablets/TabletsTable.tsx +3 -1
- package/src/containers/Tablets/i18n/en.json +1 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx +3 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx +2 -2
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx +1 -6
- package/src/containers/Tenant/Diagnostics/useDiagnosticsPages.ts +1 -4
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawer.tsx +16 -1
- package/src/routes.ts +1 -1
- package/src/services/api/viewer.ts +1 -25
- package/src/store/reducers/api.ts +4 -0
- package/src/store/reducers/capabilities/hooks.ts +0 -4
- package/src/store/reducers/cluster/cluster.ts +3 -2
- package/src/store/reducers/clusters/clusters.ts +2 -1
- package/src/store/reducers/entityDataTags.ts +34 -0
- package/src/store/reducers/node/node.ts +0 -11
- package/src/store/reducers/node/types.ts +0 -18
- package/src/store/reducers/storage/requestStorageData.ts +5 -17
- package/src/store/reducers/storage/storage.ts +2 -6
- package/src/store/reducers/storage/types.ts +0 -9
- package/src/store/reducers/storage/utils.ts +5 -178
- package/src/store/reducers/tenant/tenant.ts +17 -1
- package/src/store/reducers/tenants/tenants.ts +2 -1
- package/src/store/state-url-mapping.ts +5 -1
- package/src/types/api/storage.ts +7 -131
- package/src/uiFactory/types.ts +9 -0
- package/src/uiFactory/uiFactory.ts +12 -2
- package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +0 -7
- package/dist/containers/Node/NodeStructure/NodeStructure.js +0 -76
- package/dist/containers/Node/NodeStructure/NodeStructure.js.map +0 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +0 -155
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.d.ts +0 -7
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.js +0 -7
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.js.map +0 -1
- package/dist/containers/Node/NodeStructure/Pdisk.d.ts +0 -10
- package/dist/containers/Node/NodeStructure/Pdisk.js +0 -125
- package/dist/containers/Node/NodeStructure/Pdisk.js.map +0 -1
- package/dist/store/reducers/node/selectors.d.ts +0 -47
- package/dist/store/reducers/node/selectors.js +0 -43
- package/dist/store/reducers/node/selectors.js.map +0 -1
- package/src/containers/Node/NodeStructure/NodeStructure.scss +0 -155
- package/src/containers/Node/NodeStructure/NodeStructure.tsx +0 -121
- package/src/containers/Node/NodeStructure/PDiskTitleBadge.tsx +0 -18
- package/src/containers/Node/NodeStructure/Pdisk.tsx +0 -274
- package/src/store/reducers/node/selectors.ts +0 -68
|
@@ -13,8 +13,6 @@ export declare function useComponent<T extends Parameters<ComponentsRegistry['ge
|
|
|
13
13
|
ErrorBoundary: typeof import("../ErrorBoundary/ErrorBoundary").ErrorBoundaryInner;
|
|
14
14
|
} & {
|
|
15
15
|
ShardsTable: typeof import("../ShardsTable/ShardsTable").ShardsTable;
|
|
16
|
-
} & {
|
|
17
|
-
ChatPanel: () => null;
|
|
18
16
|
})[T] extends infer T_1 ? T_1 extends ({
|
|
19
17
|
StaffCard: typeof import("../User/StaffCard").StaffCard;
|
|
20
18
|
} & {
|
|
@@ -23,7 +21,5 @@ export declare function useComponent<T extends Parameters<ComponentsRegistry['ge
|
|
|
23
21
|
ErrorBoundary: typeof import("../ErrorBoundary/ErrorBoundary").ErrorBoundaryInner;
|
|
24
22
|
} & {
|
|
25
23
|
ShardsTable: typeof import("../ShardsTable/ShardsTable").ShardsTable;
|
|
26
|
-
} & {
|
|
27
|
-
ChatPanel: () => null;
|
|
28
24
|
})[T] ? T_1 extends React.ComponentType<any> ? React.ComponentType<React.PropsWithoutRef<React.ComponentProps<T_1>>> : never : never : never;
|
|
29
25
|
export {};
|
|
@@ -12,8 +12,6 @@ declare const componentsRegistryInner: Registry<{
|
|
|
12
12
|
ErrorBoundary: typeof ErrorBoundaryInner;
|
|
13
13
|
} & {
|
|
14
14
|
ShardsTable: typeof ShardsTable;
|
|
15
|
-
} & {
|
|
16
|
-
ChatPanel: () => null;
|
|
17
15
|
}>;
|
|
18
16
|
export type ComponentsRegistry = ComponentsRegistryTemplate<typeof componentsRegistryInner>;
|
|
19
17
|
export declare const componentsRegistry: ComponentsRegistry;
|
|
@@ -3,12 +3,10 @@ import { ErrorBoundaryInner } from '../ErrorBoundary/ErrorBoundary';
|
|
|
3
3
|
import { ShardsTable } from '../ShardsTable/ShardsTable';
|
|
4
4
|
import { StaffCard } from '../User/StaffCard';
|
|
5
5
|
import { Registry } from './registry';
|
|
6
|
-
const EmptyPlaceholder = () => null;
|
|
7
6
|
const componentsRegistryInner = new Registry()
|
|
8
7
|
.register('StaffCard', StaffCard)
|
|
9
8
|
.register('AsideNavigation', AsideNavigation)
|
|
10
9
|
.register('ErrorBoundary', ErrorBoundaryInner)
|
|
11
|
-
.register('ShardsTable', ShardsTable)
|
|
12
|
-
.register('ChatPanel', EmptyPlaceholder);
|
|
10
|
+
.register('ShardsTable', ShardsTable);
|
|
13
11
|
export const componentsRegistry = componentsRegistryInner;
|
|
14
12
|
//# sourceMappingURL=componentsRegistry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentsRegistry.js","sourceRoot":"","sources":["../../../src/components/ComponentsProvider/componentsRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAAM,
|
|
1
|
+
{"version":3,"file":"componentsRegistry.js","sourceRoot":"","sources":["../../../src/components/ComponentsProvider/componentsRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAAM,uBAAuB,GAAG,IAAI,QAAQ,EAAE;KACzC,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC;KAChC,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC;KAC5C,QAAQ,CAAC,eAAe,EAAE,kBAAkB,CAAC;KAC7C,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;AAI1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAA6C,CAAC"}
|
|
@@ -6,5 +6,5 @@ interface ContentWithPopupProps extends PopupProps {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
pinOnClick?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const ContentWithPopup: ({ children, content, className, pinOnClick, hasArrow, placement, ...props }: ContentWithPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ContentWithPopup: ({ children, content, className, pinOnClick, hasArrow, placement, floatingStyles, ...props }: ContentWithPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Popup } from '@gravity-ui/uikit';
|
|
4
|
-
|
|
4
|
+
import { getPopupScrollContainer } from '../HoverPopup/getPopupScrollContainer';
|
|
5
|
+
export const ContentWithPopup = ({ children, content, className, pinOnClick, hasArrow = true, placement = ['top', 'bottom'], floatingStyles, ...props }) => {
|
|
5
6
|
const [isPopupVisible, setIsPopupVisible] = React.useState(false);
|
|
6
7
|
const [isPinned, setIsPinned] = React.useState(false);
|
|
7
8
|
const anchor = React.useRef(null);
|
|
9
|
+
const container = getPopupScrollContainer(anchor.current);
|
|
8
10
|
const showPopup = () => {
|
|
9
11
|
setIsPopupVisible(true);
|
|
10
12
|
};
|
|
@@ -17,6 +19,6 @@ export const ContentWithPopup = ({ children, content, className, pinOnClick, has
|
|
|
17
19
|
const unpinPopup = () => {
|
|
18
20
|
setIsPinned(false);
|
|
19
21
|
};
|
|
20
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Popup, { anchorElement: anchor.current, open: isPinned || isPopupVisible, placement: placement, hasArrow: hasArrow, onOutsideClick: unpinPopup, ...props, children: content }), _jsx("span", { className: className, ref: anchor, onClick: pinOnClick ? pinPopup : undefined, onMouseEnter: showPopup, onMouseLeave: hidePopup, children: children })] }));
|
|
22
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Popup, { container: container, strategy: "fixed", floatingStyles: { fontFamily: 'var(--g-text-body-font-family)', ...floatingStyles }, anchorElement: anchor.current, open: isPinned || isPopupVisible, placement: placement, hasArrow: hasArrow, onOutsideClick: unpinPopup, ...props, children: content }), _jsx("span", { className: className, ref: anchor, onClick: pinOnClick ? pinPopup : undefined, onMouseEnter: showPopup, onMouseLeave: hidePopup, children: children })] }));
|
|
21
23
|
};
|
|
22
24
|
//# sourceMappingURL=ContentWithPopup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentWithPopup.js","sourceRoot":"","sources":["../../../src/components/ContentWithPopup/ContentWithPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentWithPopup.js","sourceRoot":"","sources":["../../../src/components/ContentWithPopup/ContentWithPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,uBAAuB,EAAC,MAAM,uCAAuC,CAAC;AAS9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC7B,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC7B,cAAc,EACd,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,SAAS,GAAG,uBAAuB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;QACnB,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,GAAG,EAAE;QACnB,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;QAClB,WAAW,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,WAAW,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,KAAK,IACF,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAC,OAAO,EAChB,cAAc,EAAE,EAAC,UAAU,EAAE,gCAAgC,EAAE,GAAG,cAAc,EAAC,EACjF,aAAa,EAAE,MAAM,CAAC,OAAO,EAC7B,IAAI,EAAE,QAAQ,IAAI,cAAc,EAChC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,UAAU,KACtB,KAAK,YAER,OAAO,GACJ,EACR,eACI,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAC1C,YAAY,EAAE,SAAS,EACvB,YAAY,EAAE,SAAS,YAEtB,QAAQ,GACN,IACM,CACpB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Alert, Checkbox, Dialog, Flex, Text } from '@gravity-ui/uikit';
|
|
4
4
|
import { ResultIssues } from '../../containers/Tenant/Query/Issues/Issues';
|
|
5
5
|
import { cn } from '../../utils/cn';
|
|
6
|
+
import { BRAND_BUTTON_CLASS } from '../../utils/constants';
|
|
6
7
|
import { isResponseError, isResponseErrorWithIssues } from '../../utils/response';
|
|
7
8
|
import { criticalActionDialogKeyset } from './i18n';
|
|
8
9
|
import './CriticalActionDialog.scss';
|
|
@@ -54,17 +55,20 @@ export function CriticalActionDialog({ visible, header, description, warningText
|
|
|
54
55
|
return null;
|
|
55
56
|
};
|
|
56
57
|
const renderDialogContent = () => {
|
|
58
|
+
const isRetry = Boolean(error && withRetry);
|
|
59
|
+
let currentApplyButtonText = applyButtonText;
|
|
57
60
|
if (error) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
currentApplyButtonText = isRetry
|
|
62
|
+
? retryButtonText || criticalActionDialogKeyset('button-retry')
|
|
63
|
+
: undefined;
|
|
61
64
|
}
|
|
62
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Dialog.Header, { caption: header }), _jsx(Dialog.Body, { children: _jsxs(Flex, { direction: "column", gap: 4, children: [description && _jsx(Text, { as: "div", children: description }), warningText && _jsx(Alert, { theme: "warning", message: warningText }), renderCheckBox()] }) }), _jsx(Dialog.Footer, { loading: isLoading, preset: "default", textButtonApply:
|
|
65
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Dialog.Header, { caption: header }), _jsx(Dialog.Body, { children: _jsxs(Flex, { direction: "column", gap: 4, children: [description && _jsx(Text, { as: "div", children: description }), warningText && _jsx(Alert, { theme: "warning", message: warningText }), error && _jsx(Alert, { theme: "danger", message: parseError(error) }), renderCheckBox()] }) }), _jsx(Dialog.Footer, { loading: isLoading, preset: "default", textButtonApply: currentApplyButtonText, textButtonCancel: criticalActionDialogKeyset('button-cancel'), propsButtonApply: {
|
|
63
66
|
type: 'submit',
|
|
64
67
|
disabled: withCheckBox && !checkBoxChecked,
|
|
65
68
|
view: applyButtonView,
|
|
66
|
-
|
|
69
|
+
className: applyButtonView === 'action' ? BRAND_BUTTON_CLASS : undefined,
|
|
70
|
+
}, onClickButtonCancel: onClose, onClickButtonApply: () => onApply(isRetry ? true : undefined) })] }));
|
|
67
71
|
};
|
|
68
|
-
return (_jsx(Dialog, { open: visible, hasCloseButton:
|
|
72
|
+
return (_jsx(Dialog, { open: visible, hasCloseButton: true, className: b(), size: "s", onClose: onClose, onTransitionOutComplete: handleTransitionExited, children: renderDialogContent() }));
|
|
69
73
|
}
|
|
70
74
|
//# sourceMappingURL=CriticalActionDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CriticalActionDialog.js","sourceRoot":"","sources":["../../../src/components/CriticalActionDialog/Critic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IAEF,MAAM,mBAAmB,GAAG,GAAG,EAAE;QAC7B,
|
|
1
|
+
{"version":3,"file":"CriticalActionDialog.js","sourceRoot":"","sources":["../../../src/components/CriticalActionDialog/CriticalActionDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAGtE,OAAO,EAAC,YAAY,EAAC,MAAM,6CAA6C,CAAC;AAEzE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,eAAe,EAAE,yBAAyB,EAAC,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAC,0BAA0B,EAAC,MAAM,QAAQ,CAAC;AAElD,OAAO,6BAA6B,CAAC;AAErC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,KAAc,EAAE,EAAE;IAClC,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YACvB,OAAO,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;QACzD,CAAC;QACD,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC,IAAI,CAAC;QACtB,CAAC;QACD,IAAI,yBAAyB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACjD,OAAO,KAAC,YAAY,IAAC,YAAY,QAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,CAAC;QAC3D,CAAC;QACD,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,UAAU,CAAC;QAC5B,CAAC;IACL,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E,eAAe;wBACrB,SAAS,EAAE,eAAe,KAAK,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;qBAC3E,EACD,mBAAmB,EAAE,OAAO,EAC5B,kBAAkB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,GAC/D,IACW,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,MAAM,IACH,IAAI,EAAE,OAAO,EACb,cAAc,QACd,SAAS,EAAE,CAAC,EAAE,EACd,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,uBAAuB,EAAE,sBAAsB,YAE9C,mBAAmB,EAAE,GACjB,CACZ,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const criticalActionDialogKeyset: (key: "default-error" | "no-rights-error" | "button-confirm" | "button-retry" | "button-cancel" | "
|
|
1
|
+
export declare const criticalActionDialogKeyset: (key: "default-error" | "no-rights-error" | "button-confirm" | "button-retry" | "button-cancel" | "checkbox-text", params?: import("@gravity-ui/i18n").Params) => string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DropdownMenuItem, DropdownMenuProps as GravityDropdownMenuProps, IconProps } from '@gravity-ui/uikit';
|
|
3
3
|
import './DropdownMenu.scss';
|
|
4
|
-
export interface DropdownMenuItemWithDescription<T = HTMLElement> extends Omit<DropdownMenuItem<T>, 'text' | 'iconStart'> {
|
|
4
|
+
export interface DropdownMenuItemWithDescription<T = HTMLElement> extends Omit<DropdownMenuItem<T>, 'text' | 'iconStart' | 'title'> {
|
|
5
|
+
title: React.ReactNode;
|
|
5
6
|
description?: React.ReactNode;
|
|
6
7
|
iconStart?: IconProps['data'];
|
|
7
8
|
}
|
|
@@ -5,7 +5,7 @@ import { cn } from '../../utils/cn';
|
|
|
5
5
|
import './DropdownMenu.scss';
|
|
6
6
|
const b = cn('ydb-dropdown-menu');
|
|
7
7
|
function renderMenuItemText({ title, description, }) {
|
|
8
|
-
return (_jsxs(Flex, { direction: "column", className: b('item-content'), children: [_jsx(Text, { className: b('item-title'), children: title }), description ? (_jsx(Text, { color: "secondary", className: b('item-description'), children: description })) : null] }));
|
|
8
|
+
return (_jsxs(Flex, { direction: "column", className: b('item-content'), children: [typeof title === 'string' ? _jsx(Text, { className: b('item-title'), children: title }) : title, description ? (_jsx(Text, { color: "secondary", className: b('item-description'), children: description })) : null] }));
|
|
9
9
|
}
|
|
10
10
|
function mapMenuItem(item) {
|
|
11
11
|
const { title, description, iconStart, className, ...restItem } = item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAC,IAAI,EAAE,YAAY,IAAI,mBAAmB,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAExF,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,qBAAqB,CAAC;AAE7B,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAC,IAAI,EAAE,YAAY,IAAI,mBAAmB,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAExF,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,qBAAqB,CAAC;AAE7B,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAclC,SAAS,kBAAkB,CAAC,EACxB,KAAK,EACL,WA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AO,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACvB,OAAO,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAClC,CAAC;YAED,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,KAAC,mBAAmB,OAAK,KAAK,EAAE,KAAK,EAAE,WAAW,GAAI,CAAC;AAClE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (key: "links" | "
|
|
1
|
+
declare const _default: (key: "links" | "database" | "version" | "no-data" | "dc" | "uptime" | "rack" | "la-interval-1m" | "la-interval-5m" | "la-interval-15m" | "developer-ui" | "title.common-info" | "title.endpoints" | "title.roles" | "title.pools" | "title.load-average", params?: import("@gravity-ui/i18n").Params) => string;
|
|
2
2
|
export default _default;
|
|
@@ -3,8 +3,24 @@ import React from 'react';
|
|
|
3
3
|
import { Popup } from '@gravity-ui/uikit';
|
|
4
4
|
import debounce from 'lodash/debounce';
|
|
5
5
|
import { YDB_POPOVER_CLASS_NAME } from '../../utils/constants';
|
|
6
|
+
import { getPopupScrollContainer } from './getPopupScrollContainer';
|
|
6
7
|
const DEBOUNCE_TIMEOUT = 100;
|
|
7
|
-
|
|
8
|
+
function useVisibleAnchor(anchorElement, open) {
|
|
9
|
+
const [visibleAnchor, setVisibleAnchor] = React.useState(null);
|
|
10
|
+
React.useLayoutEffect(() => {
|
|
11
|
+
setVisibleAnchor(null);
|
|
12
|
+
if (!open || !anchorElement) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
16
|
+
setVisibleAnchor(entry.isIntersecting ? anchorElement : null);
|
|
17
|
+
});
|
|
18
|
+
observer.observe(anchorElement);
|
|
19
|
+
return () => observer.disconnect();
|
|
20
|
+
}, [anchorElement, open]);
|
|
21
|
+
return anchorElement !== null && visibleAnchor === anchorElement;
|
|
22
|
+
}
|
|
23
|
+
export const HoverPopup = ({ children, renderPopupContent, showPopup, offset, anchorRef, onShowPopup, onHidePopup, placement = ['top', 'bottom', 'left', 'right'], contentClassName, delayClose = DEBOUNCE_TIMEOUT, delayOpen = DEBOUNCE_TIMEOUT, }) => {
|
|
8
24
|
const [isPopupVisible, setIsPopupVisible] = React.useState(false);
|
|
9
25
|
const [isPopupContentHovered, setIsPopupContentHovered] = React.useState(false);
|
|
10
26
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
@@ -69,13 +85,20 @@ export const HoverPopup = ({ children, renderPopupContent, showPopup, offset, an
|
|
|
69
85
|
closePopup();
|
|
70
86
|
}, [closePopup]);
|
|
71
87
|
const internalOpen = isPopupVisible || isPopupContentHovered || isFocused;
|
|
72
|
-
const open = internalOpen || showPopup;
|
|
88
|
+
const open = Boolean(internalOpen || showPopup);
|
|
73
89
|
const anchorElement = (anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current) || anchor.current;
|
|
74
|
-
|
|
90
|
+
// Clipping a paired disk must not clear the shared hover state via onHidePopup.
|
|
91
|
+
const isAnchorVisible = useVisibleAnchor(anchorElement, open);
|
|
92
|
+
const container = getPopupScrollContainer(anchorElement);
|
|
93
|
+
return (_jsxs(React.Fragment, { children: [_jsx("span", { ref: anchor, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: children }), anchorElement ? (_jsx(Popup, { container: container,
|
|
94
|
+
// Keep portal typography when the page uses a different font.
|
|
95
|
+
floatingStyles: { fontFamily: 'var(--g-text-body-font-family)' }, anchorElement: anchorElement, onOpenChange: (_open, _event, reason) => {
|
|
75
96
|
if (reason === 'escape-key') {
|
|
76
97
|
onPopupEscapeKeyDown();
|
|
77
98
|
}
|
|
78
|
-
}, placement: placement,
|
|
99
|
+
}, placement: placement,
|
|
100
|
+
// Exiting popups must not expand the page when their anchors scroll offscreen.
|
|
101
|
+
strategy: "fixed", returnFocus: false, hasArrow: true, open: open && isAnchorVisible,
|
|
79
102
|
// bigger offset for easier switching to neighbour nodes
|
|
80
103
|
// matches the default offset for popup with arrow out of a sense of beauty
|
|
81
104
|
offset: offset || { mainAxis: 12, crossAxis: 0 }, children: _jsx("div", { className: contentClassName, onContextMenu: onPopupContextMenu, onMouseEnter: onPopupMouseEnter, onMouseLeave: onPopupMouseLeave, onBlur: onPopupBlur, children: _jsx("div", { className: YDB_POPOVER_CLASS_NAME, children: renderPopupContent({ onClose: closePopup }) }) }) })) : null] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverPopup.js","sourceRoot":"","sources":["../../../src/components/HoverPopup/HoverPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAE7D,MAAM,gBAAgB,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"HoverPopup.js","sourceRoot":"","sources":["../../../src/components/HoverPopup/HoverPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAElE,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,SAAS,gBAAgB,CAAC,aAAiC,EAAE,IAAa;IACtE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAqB,IAAI,CAAC,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,MAAM,EAAE,MAAM,IAAI,EAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAC,YAE9C,cACI,SAAS,EAAE,gBAAgB,EAC3B,aAAa,EAAE,kBAAkB,EACjC,YAAY,EAAE,iBAAiB,EAC/B,YAAY,EAAE,iBAAiB,EAC/B,MAAM,EAAE,WAAW,YAEnB,cAAK,SAAS,EAAE,sBAAsB,YACjC,kBAAkB,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,CAAC,GACxC,GACJ,GACF,CACX,CAAC,CAAC,CAAC,IAAI,IACK,CACpB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPopupScrollContainer(anchor: HTMLElement | null): HTMLElement | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function getPopupScrollContainer(anchor) {
|
|
2
|
+
var _a, _b;
|
|
3
|
+
if (!anchor) {
|
|
4
|
+
return undefined;
|
|
5
|
+
}
|
|
6
|
+
const doc = anchor.ownerDocument;
|
|
7
|
+
let parent = anchor.parentElement;
|
|
8
|
+
while (parent) {
|
|
9
|
+
if (parent === doc.fullscreenElement ||
|
|
10
|
+
parent.classList.contains('ydb-fullscreen_fullscreen') ||
|
|
11
|
+
(/auto|scroll/.test((_b = (_a = doc.defaultView) === null || _a === void 0 ? void 0 : _a.getComputedStyle(parent).overflowY) !== null && _b !== void 0 ? _b : '') &&
|
|
12
|
+
parent.scrollHeight > parent.clientHeight)) {
|
|
13
|
+
// Document scrolling already works through the default portal.
|
|
14
|
+
return parent === doc.scrollingElement ? undefined : parent;
|
|
15
|
+
}
|
|
16
|
+
parent = parent.parentElement;
|
|
17
|
+
}
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=getPopupScrollContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPopupScrollContainer.js","sourceRoot":"","sources":["../../../src/components/HoverPopup/getPopupScrollContainer.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,uBAAuB,CAAC,MAA0B;;IAC9D,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,MAAM,GAAG,GAAG,MAAM,CAAC,aAAa,CAAC;IACjC,IAAI,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;IAClC,OAAO,MAAM,EAAE,CAAC;QACZ,IACI,MAAM,KAAK,GAAG,CAAC,iBAAiB;YAChC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,2BAA2B,CAAC;YACtD,CAAC,aAAa,CAAC,IAAI,CAAC,MAAA,MAAA,GAAG,CAAC,WAAW,0CAAE,gBAAgB,CAAC,MAAM,EAAE,SAAS,mCAAI,EAAE,CAAC;gBAC1E,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,EAChD,CAAC;YACC,+DAA+D;YAC/D,OAAO,MAAM,KAAK,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;QAChE,CAAC;QACD,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;IAClC,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GetChartDataParams } from './getChartData';
|
|
2
2
|
export declare const chartApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, {
|
|
3
|
-
getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "
|
|
4
|
-
}, "api", "
|
|
3
|
+
getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "All" | "Conversations" | "Events" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList" | "DatabaseData" | "ClusterData", import("./types").PreparedMetricsData | undefined, "api", any>;
|
|
4
|
+
}, "api", "All" | "Conversations" | "Events" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList" | "DatabaseData" | "ClusterData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
@@ -17,13 +17,34 @@ interface SegmentedProgressByValueProps extends SegmentedProgressBaseProps {
|
|
|
17
17
|
total: number;
|
|
18
18
|
fillPercent?: never;
|
|
19
19
|
displayNoLimit?: DisplayNoLimit;
|
|
20
|
+
segments?: never;
|
|
20
21
|
}
|
|
21
22
|
interface SegmentedProgressByFillPercentProps extends SegmentedProgressBaseProps {
|
|
22
23
|
fillPercent: number;
|
|
23
24
|
value?: never;
|
|
24
25
|
total?: never;
|
|
25
26
|
displayNoLimit?: never;
|
|
27
|
+
segments?: never;
|
|
26
28
|
}
|
|
27
|
-
export
|
|
29
|
+
export interface SegmentedProgressSegment {
|
|
30
|
+
id: string;
|
|
31
|
+
value: number;
|
|
32
|
+
/** Minimum width in pixels. A positive value keeps zero-value segments visible. */
|
|
33
|
+
minWidth?: number;
|
|
34
|
+
color?: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
dataQa?: string;
|
|
37
|
+
tooltip?: string;
|
|
38
|
+
ariaLabelledBy?: string;
|
|
39
|
+
}
|
|
40
|
+
interface SegmentedProgressBySegmentsProps extends SegmentedProgressBaseProps {
|
|
41
|
+
segments: SegmentedProgressSegment[];
|
|
42
|
+
total: number;
|
|
43
|
+
value?: never;
|
|
44
|
+
fillPercent?: never;
|
|
45
|
+
displayNoLimit?: never;
|
|
46
|
+
}
|
|
47
|
+
export type SegmentedProgressProps = SegmentedProgressByValueProps | SegmentedProgressByFillPercentProps | SegmentedProgressBySegmentsProps;
|
|
48
|
+
export declare function defaultNormalizePercent(percent: number): number;
|
|
28
49
|
export declare function SegmentedProgress(props: SegmentedProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
29
50
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Flex, Text } from '@gravity-ui/uikit';
|
|
3
|
+
import { Flex, Text, Tooltip } from '@gravity-ui/uikit';
|
|
4
4
|
import { cn } from '../../utils/cn';
|
|
5
5
|
import './SegmentedProgress.scss';
|
|
6
6
|
const b = cn('ydb-segmented-progress');
|
|
@@ -13,7 +13,7 @@ function clampPercent(percent) {
|
|
|
13
13
|
}
|
|
14
14
|
return percent;
|
|
15
15
|
}
|
|
16
|
-
function defaultNormalizePercent(percent) {
|
|
16
|
+
export function defaultNormalizePercent(percent) {
|
|
17
17
|
if (percent < 1) {
|
|
18
18
|
return Math.round(percent * 10) / 10;
|
|
19
19
|
}
|
|
@@ -22,10 +22,20 @@ function defaultNormalizePercent(percent) {
|
|
|
22
22
|
function isFillPercentMode(props) {
|
|
23
23
|
return typeof props.fillPercent === 'number';
|
|
24
24
|
}
|
|
25
|
+
function isSegmentsMode(props) {
|
|
26
|
+
return Array.isArray(props.segments);
|
|
27
|
+
}
|
|
25
28
|
function getPercentUsed(props) {
|
|
26
29
|
if (isFillPercentMode(props)) {
|
|
27
30
|
return props.fillPercent;
|
|
28
31
|
}
|
|
32
|
+
if (isSegmentsMode(props)) {
|
|
33
|
+
if (props.total > 0) {
|
|
34
|
+
const value = props.segments.reduce((sum, segment) => sum + segment.value, 0);
|
|
35
|
+
return (value / props.total) * 100;
|
|
36
|
+
}
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
29
39
|
if (props.total > 0) {
|
|
30
40
|
return (props.value / props.total) * 100;
|
|
31
41
|
}
|
|
@@ -48,6 +58,37 @@ export function SegmentedProgress(props) {
|
|
|
48
58
|
const percentUsed = getPercentUsed(props);
|
|
49
59
|
const normalizedUsed = React.useMemo(() => clampPercent(normalizePercent(percentUsed)), [normalizePercent, percentUsed]);
|
|
50
60
|
const fillWidth = getFillWidth(props, normalizedUsed);
|
|
51
|
-
|
|
61
|
+
const segmentSections = isSegmentsMode(props)
|
|
62
|
+
? props.segments.map((segment) => ({
|
|
63
|
+
...segment,
|
|
64
|
+
width: props.total > 0 ? clampPercent((segment.value / props.total) * 100) : 0,
|
|
65
|
+
}))
|
|
66
|
+
: undefined;
|
|
67
|
+
const hasEmptySection = (segmentSections ? percentUsed : fillWidth) < 100;
|
|
68
|
+
const renderSections = () => {
|
|
69
|
+
if (segmentSections) {
|
|
70
|
+
return segmentSections
|
|
71
|
+
.filter((segment) => { var _a; return segment.width > 0 || ((_a = segment.minWidth) !== null && _a !== void 0 ? _a : 0) > 0; })
|
|
72
|
+
.map((segment) => {
|
|
73
|
+
const section = (_jsx("div", { "aria-label": segment.tooltip, "aria-labelledby": segment.ariaLabelledBy, className: b('section', { used: true }, segment.className), "data-qa": segment.dataQa, role: segment.tooltip ? 'img' : undefined, style: {
|
|
74
|
+
width: `${segment.width}%`,
|
|
75
|
+
minWidth: segment.minWidth,
|
|
76
|
+
backgroundColor: segment.color,
|
|
77
|
+
}, tabIndex: segment.tooltip ? 0 : undefined }, segment.id));
|
|
78
|
+
if (!segment.tooltip) {
|
|
79
|
+
return section;
|
|
80
|
+
}
|
|
81
|
+
return (_jsx(Tooltip, { content: segment.tooltip, children: section }, segment.id));
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (fillWidth > 0) {
|
|
85
|
+
return _jsx("div", { className: b('section', { used: true }), style: { width: `${fillWidth}%` } });
|
|
86
|
+
}
|
|
87
|
+
return null;
|
|
88
|
+
};
|
|
89
|
+
const renderProgress = () => {
|
|
90
|
+
return (_jsxs("div", { className: b({ theme }, className), "data-qa": dataQa, role: "progressbar", "aria-label": ariaLabel, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": normalizedUsed, children: [renderSections(), hasEmptySection && _jsx("div", { className: b('section'), style: { flexGrow: 1 } })] }));
|
|
91
|
+
};
|
|
92
|
+
return (_jsxs(Flex, { direction: "column", gap: 1, children: [renderProgress(), !hideLabels && (_jsxs(Flex, { width: "100%", children: [labelStart && _jsx(Text, { color: "secondary", children: labelStart }), _jsx(Text, { color: "secondary", className: b('label'), children: labelEnd !== null && labelEnd !== void 0 ? labelEnd : `${normalizedUsed}%` })] }))] }));
|
|
52
93
|
}
|
|
53
94
|
//# sourceMappingURL=SegmentedProgress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedProgress.js","sourceRoot":"","sources":["../../../src/components/SegmentedProgress/SegmentedProgress.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SegmentedProgress.js","sourceRoot":"","sources":["../../../src/components/SegmentedProgress/SegmentedProgress.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,0BAA0B,CAAC;AAElC,MAAM,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC;AA0DvC,SAAS,YAAY,CAAC,OAAe;IACjC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QAC5C,OAAO,CAAC,CAAC;IAC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AChB,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,SAAS,GAAG,EAAC,GAAI,CAAC;QAC3F,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,GAAG,EAAE;QACxB,OAAO,CACH,eACI,SAAS,EAAE,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,SAAS,CAAC,aACvB,MAAM,EACf,IAAI,EAAC,aAAa,gBACN,SAAS,mBACN,CAAC,mBACD,GAAG,mBACH,cAAc,aAE5B,cAAc,EAAE,EAChB,eAAe,IAAI,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,CAAC,EAAC,GAAI,IACxE,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,aAC1B,cAAc,EAAE,EAChB,CAAC,UAAU,IAAI,CACZ,MAAC,IAAI,IAAC,KAAK,EAAC,MAAM,aACb,UAAU,IAAI,KAAC,IAAI,IAAC,KAAK,EAAC,WAAW,YAAE,UAAU,GAAQ,EAC1D,KAAC,IAAI,IAAC,KAAK,EAAC,WAAW,EAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YACxC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,GAAG,cAAc,GAAG,GAC9B,IACJ,CACV,IACE,CACV,CAAC;AACN,CAAC"}
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
|
|
36
36
|
border-radius: var(--g-border-radius-xs);
|
|
37
37
|
background-color: var(--ydb-segmented-progress-empty-color);
|
|
38
|
+
|
|
39
|
+
&:focus-visible {
|
|
40
|
+
outline: 2px solid var(--g-color-line-focus);
|
|
41
|
+
outline-offset: -2px;
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
&__section:not(&__section_used) {
|
|
@@ -17,7 +17,7 @@ import { storageGroupInfoKeyset } from './i18n';
|
|
|
17
17
|
// eslint-disable-next-line complexity
|
|
18
18
|
export function StorageGroupInfo({ data, className, ...infoViewerProps }) {
|
|
19
19
|
const capacityMetricsEnabled = useBlobStorageCapacityMetricsEnabled();
|
|
20
|
-
const { Encryption, Overall, DiskSpace, MediaType, ErasureSpecies, Used, Limit, Usage, Read, Write, GroupGeneration,
|
|
20
|
+
const { Encryption, Overall, DiskSpace, MediaType, ErasureSpecies, Used, Limit, Usage, Read, Write, GroupGeneration, AllocationUnits, State, MissingDisks, Available, LatencyPutTabletLogMs, LatencyPutUserDataMs, LatencyGetFastMs, GroupSizeInUnits, } = data || {};
|
|
21
21
|
const distributedStorageChannelDocsLink = getDocsLink('distributedStorageChannel');
|
|
22
22
|
const allocationUnitsLabel = (_jsx(TitleWithHelpMark, { header: storageGroupInfoKeyset('allocation-units'), note: storageGroupInfoKeyset('context_allocation-units'), docsLink: distributedStorageChannelDocsLink }));
|
|
23
23
|
if (capacityMetricsEnabled) {
|
|
@@ -90,12 +90,6 @@ export function StorageGroupInfo({ data, className, ...infoViewerProps }) {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
runtimeInfo.push(...toInfoViewerItems(getStorageGroupCapacityInfoItems(data)));
|
|
93
|
-
if (valueIsDefined(Latency)) {
|
|
94
|
-
runtimeInfo.push({
|
|
95
|
-
label: storageGroupInfoKeyset('latency'),
|
|
96
|
-
value: _jsx(StatusIcon, { status: Latency }),
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
93
|
if (valueIsDefined(LatencyPutTabletLogMs)) {
|
|
100
94
|
runtimeInfo.push({
|
|
101
95
|
label: storageGroupInfoKeyset('latency-put-tablet-log'),
|
|
@@ -198,12 +192,6 @@ export function StorageGroupInfo({ data, className, ...infoViewerProps }) {
|
|
|
198
192
|
value: _jsx(StatusIcon, { status: DiskSpace }),
|
|
199
193
|
});
|
|
200
194
|
}
|
|
201
|
-
if (valueIsDefined(Latency)) {
|
|
202
|
-
storageGroupInfoSecondColumn.push({
|
|
203
|
-
label: storageGroupInfoKeyset('latency'),
|
|
204
|
-
value: _jsx(StatusIcon, { status: Latency }),
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
195
|
if (valueIsDefined(LatencyPutTabletLogMs)) {
|
|
208
196
|
storageGroupInfoSecondColumn.push({
|
|
209
197
|
label: storageGroupInfoKeyset('latency-put-tablet-log'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageGroupInfo.js","sourceRoot":"","sources":["../../../src/components/StorageGroupInfo/StorageGroupInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,oCAAoC,EAAC,MAAM,yCAAyC,CAAC;AAE7F,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACH,gCAAgC,EAChC,iBAAiB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,iBAAiB,EAAC,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAC,gCAAgC,EAAC,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAC,sBAAsB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,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAC,KAAK,EAAC,IAAI,mBACpD,KAAC,UAAU,IAAC,IAAI,EAAE,2BAA2B,KAAM,eAAe,GAAI,EACtE,KAAC,UAAU,IAAC,IAAI,EAAE,4BAA4B,KAAM,eAAe,GAAI,IACpE,CACV,CAAC;AACN,CAAC"}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"yes": "Yes",
|
|
13
13
|
"no": "No",
|
|
14
14
|
"group-generation": "Group Generation",
|
|
15
|
-
"latency": "Latency",
|
|
16
15
|
"allocation-units": "Allocation Units",
|
|
17
16
|
"context_allocation-units": "The number of channels used by tablets to write data to the storage group.",
|
|
18
17
|
"state": "State",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const storageGroupInfoKeyset: (key: "no-data" | "
|
|
1
|
+
export declare const storageGroupInfoKeyset: (key: "no-data" | "state" | "available" | "yes" | "no" | "encryption" | "missing-disks" | "usage" | "allocation-units" | "overall" | "read-throughput" | "write-throughput" | "disk-space" | "media-type" | "erasure-species" | "used-space" | "group-generation" | "context_allocation-units" | "latency-put-tablet-log" | "latency-put-user-data" | "latency-get-fast", params?: import("@gravity-ui/i18n").Params) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (key: "missing" | "
|
|
1
|
+
declare const _default: (key: "missing" | "database" | "host" | "tablets" | "cpu" | "memory" | "version" | "max" | "min" | "ping" | "dc" | "uptime" | "load" | "send" | "node-id" | "node-name" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit" | "field_pile-name" | "system-state" | "connect-status" | "utilization" | "network-utilization" | "connections" | "clock-skew" | "skew" | "ping-time" | "receive" | "avg" | "sum", params?: import("@gravity-ui/i18n").Params) => string;
|
|
2
2
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Helmet } from 'react-helmet-async';
|
|
4
|
-
import { componentsRegistry } from '../../components/ComponentsProvider/componentsRegistry';
|
|
5
4
|
import { FullscreenProvider } from '../../components/Fullscreen/FullscreenContext';
|
|
6
|
-
import {
|
|
5
|
+
import { uiFactory } from '../../uiFactory/uiFactory';
|
|
6
|
+
import { useTypedSelector } from '../../utils/hooks/useTypedSelector';
|
|
7
7
|
import { useAppTitle } from './AppTitleContext';
|
|
8
8
|
import ContentWrapper, { Content } from './Content';
|
|
9
9
|
import { NavigationWrapper } from './NavigationWrapper';
|
|
@@ -11,7 +11,7 @@ import { Providers } from './Providers';
|
|
|
11
11
|
import './App.scss';
|
|
12
12
|
const defaultAppTitle = 'YDB Monitoring';
|
|
13
13
|
function App({ store, history, children, userSettings, appTitle = defaultAppTitle }) {
|
|
14
|
-
const ChatPanel =
|
|
14
|
+
const ChatPanel = uiFactory.renderChatPanel;
|
|
15
15
|
return (_jsxs(Providers, { store: store, history: history, appTitle: appTitle, children: [_jsx(AppContent, { userSettings: userSettings, children: children }), ChatPanel && _jsx(ChatPanel, {})] }));
|
|
16
16
|
}
|
|
17
17
|
function AppContent({ userSettings, children, }) {
|