ydb-embedded-ui 6.29.2 → 6.29.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -2
- package/dist/components/PaginatedTable/PaginatedTable.js +10 -15
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +5 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +3 -3
- package/dist/components/PaginatedTable/TableChunk.js +7 -10
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/constants.d.ts +1 -1
- package/dist/components/PaginatedTable/constants.js +1 -1
- package/dist/components/PaginatedTable/useScrollBasedChunks.d.ts +5 -3
- package/dist/components/PaginatedTable/useScrollBasedChunks.js +43 -23
- package/dist/components/PaginatedTable/useScrollBasedChunks.js.map +1 -1
- package/dist/components/PaginatedTable/utils.d.ts +18 -0
- package/dist/components/PaginatedTable/utils.js +27 -0
- package/dist/components/PaginatedTable/utils.js.map +1 -1
- package/dist/containers/Node/Node.js +2 -2
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +3 -2
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.js +2 -2
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes.js +2 -2
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +3 -2
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +3 -2
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/services/settings.d.ts +1 -1
- package/dist/services/settings.js +1 -1
- package/dist/services/settings.js.map +1 -1
- package/package.json +1 -1
@@ -10,7 +10,7 @@ export interface PaginatedTableProps<T, F> {
|
|
10
10
|
columns: Column<T>[];
|
11
11
|
getRowClassName?: GetRowClassName<T>;
|
12
12
|
rowHeight?: number;
|
13
|
-
parentRef
|
13
|
+
parentRef: React.RefObject<HTMLElement>;
|
14
14
|
initialSortParams?: SortParams;
|
15
15
|
onColumnsResize?: HandleTableColumnsResize;
|
16
16
|
renderControls?: RenderControls;
|
@@ -18,4 +18,4 @@ export interface PaginatedTableProps<T, F> {
|
|
18
18
|
renderErrorMessage?: RenderErrorMessage;
|
19
19
|
containerClassName?: string;
|
20
20
|
}
|
21
|
-
export declare const PaginatedTable: <T, F>({ limit, initialEntitiesCount, fetchData, filters, tableName, columns, getRowClassName, rowHeight, parentRef, initialSortParams, onColumnsResize, renderControls, renderErrorMessage, renderEmptyDataMessage, containerClassName, }: PaginatedTableProps<T, F>) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export declare const PaginatedTable: <T, F>({ limit: chunkSize, initialEntitiesCount, fetchData, filters, tableName, columns, getRowClassName, rowHeight, parentRef, initialSortParams, onColumnsResize, renderControls, renderErrorMessage, renderEmptyDataMessage, containerClassName, }: PaginatedTableProps<T, F>) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
-
import { getArray } from '../../utils';
|
4
3
|
import { TableWithControlsLayout } from '../TableWithControlsLayout/TableWithControlsLayout';
|
5
4
|
import { TableChunk } from './TableChunk';
|
6
5
|
import { TableHead } from './TableHead';
|
@@ -10,20 +9,22 @@ import i18n from './i18n';
|
|
10
9
|
import { b } from './shared';
|
11
10
|
import { useScrollBasedChunks } from './useScrollBasedChunks';
|
12
11
|
import './PaginatedTable.scss';
|
13
|
-
export const PaginatedTable = ({ limit, initialEntitiesCount, fetchData, filters, tableName, columns, getRowClassName, rowHeight = DEFAULT_TABLE_ROW_HEIGHT, parentRef, initialSortParams, onColumnsResize, renderControls, renderErrorMessage, renderEmptyDataMessage, containerClassName, }) => {
|
14
|
-
const initialTotal = initialEntitiesCount ||
|
15
|
-
const initialFound = initialEntitiesCount ||
|
12
|
+
export const PaginatedTable = ({ limit: chunkSize, initialEntitiesCount, fetchData, filters, tableName, columns, getRowClassName, rowHeight = DEFAULT_TABLE_ROW_HEIGHT, parentRef, initialSortParams, onColumnsResize, renderControls, renderErrorMessage, renderEmptyDataMessage, containerClassName, }) => {
|
13
|
+
const initialTotal = initialEntitiesCount || 0;
|
14
|
+
const initialFound = initialEntitiesCount || 1;
|
16
15
|
const [sortParams, setSortParams] = React.useState(initialSortParams);
|
17
16
|
const [totalEntities, setTotalEntities] = React.useState(initialTotal);
|
18
17
|
const [foundEntities, setFoundEntities] = React.useState(initialFound);
|
19
18
|
const [isInitialLoad, setIsInitialLoad] = React.useState(true);
|
20
19
|
const tableRef = React.useRef(null);
|
21
20
|
const activeChunks = useScrollBasedChunks({
|
22
|
-
|
21
|
+
parentRef,
|
22
|
+
tableRef,
|
23
23
|
totalItems: foundEntities,
|
24
|
-
|
25
|
-
chunkSize
|
24
|
+
rowHeight,
|
25
|
+
chunkSize,
|
26
26
|
});
|
27
|
+
const lastChunkSize = React.useMemo(() => foundEntities % chunkSize || chunkSize, [foundEntities, chunkSize]);
|
27
28
|
const handleDataFetched = React.useCallback((total, found) => {
|
28
29
|
setTotalEntities(total);
|
29
30
|
setFoundEntities(found);
|
@@ -31,24 +32,18 @@ export const PaginatedTable = ({ limit, initialEntitiesCount, fetchData, filters
|
|
31
32
|
}, []);
|
32
33
|
// reset table on filters change
|
33
34
|
React.useLayoutEffect(() => {
|
34
|
-
var _a;
|
35
35
|
setTotalEntities(initialTotal);
|
36
36
|
setFoundEntities(initialFound);
|
37
37
|
setIsInitialLoad(true);
|
38
38
|
if (parentRef === null || parentRef === void 0 ? void 0 : parentRef.current) {
|
39
39
|
parentRef.current.scrollTo(0, 0);
|
40
40
|
}
|
41
|
-
|
42
|
-
(_a = tableRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo(0, 0);
|
43
|
-
}
|
44
|
-
}, [filters, initialFound, initialTotal, limit, parentRef]);
|
41
|
+
}, [filters, initialFound, initialTotal, parentRef]);
|
45
42
|
const renderChunks = () => {
|
46
43
|
if (!isInitialLoad && foundEntities === 0) {
|
47
44
|
return (_jsx("tbody", { children: _jsx(EmptyTableRow, { columns: columns, children: renderEmptyDataMessage ? renderEmptyDataMessage() : i18n('empty') }) }));
|
48
45
|
}
|
49
|
-
|
50
|
-
const chunksCount = Math.ceil(totalLength / limit);
|
51
|
-
return getArray(chunksCount).map((value) => (_jsx(TableChunk, { id: value, limit: limit, totalLength: totalLength, rowHeight: rowHeight, columns: columns, fetchData: fetchData, filters: filters, tableName: tableName, sortParams: sortParams, getRowClassName: getRowClassName, renderErrorMessage: renderErrorMessage, onDataFetched: handleDataFetched, isActive: activeChunks.includes(value) }, value)));
|
46
|
+
return activeChunks.map((isActive, index) => (_jsx(TableChunk, { id: index, calculatedCount: index === activeChunks.length - 1 ? lastChunkSize : chunkSize, chunkSize: chunkSize, rowHeight: rowHeight, columns: columns, fetchData: fetchData, filters: filters, tableName: tableName, sortParams: sortParams, getRowClassName: getRowClassName, renderErrorMessage: renderErrorMessage, onDataFetched: handleDataFetched, isActive: isActive }, index)));
|
52
47
|
};
|
53
48
|
const renderTable = () => (_jsxs("table", { className: b('table'), children: [_jsx(TableHead, { columns: columns, onSort: setSortParams, onColumnsResize: onColumnsResize }), renderChunks()] }));
|
54
49
|
const renderContent = () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedTable.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/PaginatedTable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"PaginatedTable.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/PaginatedTable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,uBAAuB,EAAC,MAAM,oDAAoD,CAAC;AAE3F,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,wBAAwB,EAAC,MAAM,aAAa,CAAC;AACrD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAW3B,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAE5D,OAAO,uBAAuB,CAAC;AAoB/B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAO,EACjC,KAAK,EAAE,SAAS,EAChB,oBAAoB,EACpB,SAAS,EACT,OAAO,EACP,SAAS,EACT,OAAO,EACP,eAAe,EACf,SAAS,GAAG,wBAAwB,EACpC,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,GACM,EAAE,EAAE;IAC5B,MAAM,YAAY,GAAG,oBAAoB,IAAI,CAAC,CAAC;IAC/C,MAAM,YAAY,GAAG,oBAAoB,IAAI,CAAC,CAAC;IAE/C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAyB,iBAAiB,CAAC,CAAC;IAC9F,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACvE,MAAM,CAAC,aAA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C,KAAK,cAAE,WAAW,EAAE,GAAiC,IACxD,CAC7B,CAAC;QACN,CAAC;QAED,OAAO,WAAW,EAAE,CAAC;IACzB,CAAC,CAAC;IAEF,OAAO,CACH,cAAK,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,kBAAkB,CAAC,YACrD,aAAa,EAAE,GACd,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -29,6 +29,10 @@
|
|
29
29
|
position: relative;
|
30
30
|
z-index: 1;
|
31
31
|
|
32
|
+
// Performance optimization for row hovering.
|
33
|
+
// it actually works.
|
34
|
+
transform: translateZ(0);
|
35
|
+
|
32
36
|
&:hover {
|
33
37
|
background: var(--paginated-table-hover-color);
|
34
38
|
}
|
@@ -177,6 +181,6 @@
|
|
177
181
|
}
|
178
182
|
|
179
183
|
&__row-skeleton::after {
|
180
|
-
animation
|
184
|
+
animation: none !important;
|
181
185
|
}
|
182
186
|
}
|
@@ -3,9 +3,9 @@ import type { IResponseError } from '../../types/api/error';
|
|
3
3
|
import type { Column, FetchData, GetRowClassName, SortParams } from './types';
|
4
4
|
interface TableChunkProps<T, F> {
|
5
5
|
id: number;
|
6
|
-
|
7
|
-
totalLength: number;
|
6
|
+
chunkSize: number;
|
8
7
|
rowHeight: number;
|
8
|
+
calculatedCount: number;
|
9
9
|
columns: Column<T>[];
|
10
10
|
filters?: F;
|
11
11
|
sortParams?: SortParams;
|
@@ -16,5 +16,5 @@ interface TableChunkProps<T, F> {
|
|
16
16
|
renderErrorMessage?: (error: IResponseError) => React.ReactNode;
|
17
17
|
onDataFetched: (total: number, found: number) => void;
|
18
18
|
}
|
19
|
-
export declare const TableChunk: <T, F>({ id,
|
19
|
+
export declare const TableChunk: <T, F>({ id, chunkSize, calculatedCount, rowHeight, columns, fetchData, tableName, filters, sortParams, getRowClassName, renderErrorMessage, onDataFetched, isActive, }: TableChunkProps<T, F>) => import("react/jsx-runtime").JSX.Element;
|
20
20
|
export {};
|
@@ -5,16 +5,17 @@ import { getArray } from '../../utils';
|
|
5
5
|
import { useAutoRefreshInterval } from '../../utils/hooks';
|
6
6
|
import { ResponseError } from '../Errors/ResponseError';
|
7
7
|
import { EmptyTableRow, LoadingTableRow, TableRow } from './TableRow';
|
8
|
+
import { typedMemo } from './utils';
|
8
9
|
const DEBOUNCE_TIMEOUT = 200;
|
9
10
|
// Memoisation prevents chunks rerenders that could cause perfomance issues on big tables
|
10
|
-
export const TableChunk = ({ id,
|
11
|
+
export const TableChunk = typedMemo(function TableChunk({ id, chunkSize, calculatedCount, rowHeight, columns, fetchData, tableName, filters, sortParams, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) {
|
11
12
|
var _a;
|
12
13
|
const [isTimeoutActive, setIsTimeoutActive] = React.useState(true);
|
13
14
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
14
15
|
const columnsIds = columns.map((column) => column.name);
|
15
16
|
const queryParams = {
|
16
|
-
offset: id *
|
17
|
-
limit,
|
17
|
+
offset: id * chunkSize,
|
18
|
+
limit: chunkSize,
|
18
19
|
fetchData: fetchData,
|
19
20
|
filters,
|
20
21
|
sortParams,
|
@@ -43,10 +44,7 @@ export const TableChunk = ({ id, limit, totalLength, rowHeight, columns, fetchDa
|
|
43
44
|
onDataFetched(total, found);
|
44
45
|
}
|
45
46
|
}, [currentData, isActive, onDataFetched]);
|
46
|
-
const
|
47
|
-
const remainingLength = totalLength - chunkOffset;
|
48
|
-
const calculatedChunkLength = remainingLength < limit ? remainingLength : limit;
|
49
|
-
const dataLength = ((_a = currentData === null || currentData === void 0 ? void 0 : currentData.data) === null || _a === void 0 ? void 0 : _a.length) || calculatedChunkLength;
|
47
|
+
const dataLength = ((_a = currentData === null || currentData === void 0 ? void 0 : currentData.data) === null || _a === void 0 ? void 0 : _a.length) || calculatedCount;
|
50
48
|
const renderContent = () => {
|
51
49
|
if (!isActive) {
|
52
50
|
return null;
|
@@ -62,13 +60,12 @@ export const TableChunk = ({ id, limit, totalLength, rowHeight, columns, fetchDa
|
|
62
60
|
}
|
63
61
|
return currentData.data.map((rowData, index) => (_jsx(TableRow, { index: index, row: rowData, columns: columns, height: rowHeight, getRowClassName: getRowClassName }, index)));
|
64
62
|
};
|
65
|
-
const chunkHeight = dataLength ? dataLength * rowHeight : limit * rowHeight;
|
66
63
|
return (_jsx("tbody", { id: id.toString(), style: {
|
67
|
-
height: `${
|
64
|
+
height: `${dataLength * rowHeight}px`,
|
68
65
|
// Default display: table-row-group doesn't work in Safari and breaks the table
|
69
66
|
// display: block works in Safari, but disconnects thead and tbody cell grids
|
70
67
|
// Hack to make it work in all cases
|
71
68
|
display: isActive ? 'table-row-group' : 'block',
|
72
69
|
}, children: renderContent() }));
|
73
|
-
};
|
70
|
+
});
|
74
71
|
//# sourceMappingURL=TableChunk.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TableChunk.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableChunk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAC,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"TableChunk.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableChunk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,aAA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AAE,EAAE,CAAC,CACvC,KAAC,eAAe,IAEZ,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,KAAK,IAHP,KAAK,CAIZ,CACL,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QAED,OAAO,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,KAAC,QAAQ,IAEL,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,OAAY,EACjB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,EACjB,eAAe,EAAE,eAAe,IAL3B,KAAK,CAMZ,CACL,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACH,gBACI,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EACjB,KAAK,EAAE;YACH,MAAM,EAAE,GAAG,UAAU,GAAG,SAAS,IAAI;YACrC,+EAA+E;YAC/E,6EAA6E;YAC7E,oCAAoC;YACpC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO;SAClD,YAEA,aAAa,EAAE,GACZ,CACX,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -7,5 +7,5 @@ export declare const ASCENDING = 1;
|
|
7
7
|
export declare const DESCENDING = -1;
|
8
8
|
export declare const DEFAULT_SORT_ORDER = -1;
|
9
9
|
export declare const DEFAULT_REQUEST_TIMEOUT = 200;
|
10
|
-
export declare const DEFAULT_TABLE_ROW_HEIGHT =
|
10
|
+
export declare const DEFAULT_TABLE_ROW_HEIGHT = 41;
|
11
11
|
export declare const DEFAULT_INTERSECTION_OBSERVER_MARGIN = "100%";
|
@@ -8,6 +8,6 @@ export const DESCENDING = -1;
|
|
8
8
|
export const DEFAULT_SORT_ORDER = DESCENDING;
|
9
9
|
// Time in ms after which request will be sent
|
10
10
|
export const DEFAULT_REQUEST_TIMEOUT = 200;
|
11
|
-
export const DEFAULT_TABLE_ROW_HEIGHT =
|
11
|
+
export const DEFAULT_TABLE_ROW_HEIGHT = 41;
|
12
12
|
export const DEFAULT_INTERSECTION_OBSERVER_MARGIN = '100%';
|
13
13
|
//# sourceMappingURL=constants.js.map
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
interface UseScrollBasedChunksProps {
|
3
|
-
|
3
|
+
parentRef: React.RefObject<HTMLElement>;
|
4
|
+
tableRef: React.RefObject<HTMLElement>;
|
4
5
|
totalItems: number;
|
5
|
-
|
6
|
+
rowHeight: number;
|
6
7
|
chunkSize: number;
|
8
|
+
overscanCount?: number;
|
7
9
|
}
|
8
|
-
export declare const useScrollBasedChunks: ({
|
10
|
+
export declare const useScrollBasedChunks: ({ parentRef, tableRef, totalItems, rowHeight, chunkSize, overscanCount, }: UseScrollBasedChunksProps) => boolean[];
|
9
11
|
export {};
|
@@ -1,35 +1,55 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { throttle } from 'lodash';
|
3
|
-
import {
|
3
|
+
import { calculateElementOffsetTop } from './utils';
|
4
|
+
const DEFAULT_OVERSCAN_COUNT = 1;
|
4
5
|
const THROTTLE_DELAY = 100;
|
5
|
-
const
|
6
|
-
|
7
|
-
const [
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
export const useScrollBasedChunks = ({ parentRef, tableRef, totalItems, rowHeight, chunkSize, overscanCount = DEFAULT_OVERSCAN_COUNT, }) => {
|
7
|
+
const chunksCount = React.useMemo(() => Math.ceil(totalItems / chunkSize), [chunkSize, totalItems]);
|
8
|
+
const [startChunk, setStartChunk] = React.useState(0);
|
9
|
+
const [endChunk, setEndChunk] = React.useState(Math.min(overscanCount, Math.max(chunksCount - 1, 0)));
|
10
|
+
const calculateVisibleRange = React.useCallback(() => {
|
11
|
+
const container = parentRef === null || parentRef === void 0 ? void 0 : parentRef.current;
|
12
|
+
const table = tableRef.current;
|
13
|
+
if (!container || !table) {
|
14
|
+
return null;
|
15
|
+
}
|
16
|
+
const tableOffset = calculateElementOffsetTop(table, container);
|
17
|
+
const containerScroll = container.scrollTop;
|
18
|
+
const visibleStart = Math.max(containerScroll - tableOffset, 0);
|
19
|
+
const visibleEnd = visibleStart + container.clientHeight;
|
20
|
+
const start = Math.max(Math.floor(visibleStart / rowHeight / chunkSize) - overscanCount, 0);
|
21
|
+
const end = Math.min(Math.floor(visibleEnd / rowHeight / chunkSize) + overscanCount, Math.max(chunksCount - 1, 0));
|
22
|
+
return { start, end };
|
23
|
+
}, [parentRef, tableRef, rowHeight, chunkSize, overscanCount, chunksCount]);
|
24
|
+
const handleScroll = React.useCallback(() => {
|
25
|
+
const newRange = calculateVisibleRange();
|
26
|
+
if (newRange) {
|
27
|
+
setStartChunk(newRange.start);
|
28
|
+
setEndChunk(newRange.end);
|
12
29
|
}
|
13
|
-
|
14
|
-
const visibleStartIndex = Math.floor(scrollTop / itemHeight);
|
15
|
-
const visibleEndIndex = Math.min(Math.ceil((scrollTop + clientHeight) / itemHeight), totalItems - 1);
|
16
|
-
const startChunk = Math.floor(visibleStartIndex / chunkSize);
|
17
|
-
const endChunk = Math.floor(visibleEndIndex / chunkSize);
|
18
|
-
const newActiveChunks = getArray(endChunk - startChunk + 1 + CHUNKS_AHEAD_COUNT).map((index) => startChunk + index);
|
19
|
-
setActiveChunks(newActiveChunks);
|
20
|
-
}, [chunkSize, containerRef, itemHeight, totalItems]);
|
21
|
-
const throttledCalculateActiveChunks = React.useMemo(() => throttle(calculateActiveChunks, THROTTLE_DELAY), [calculateActiveChunks]);
|
30
|
+
}, [calculateVisibleRange]);
|
22
31
|
React.useEffect(() => {
|
23
|
-
const container =
|
32
|
+
const container = parentRef === null || parentRef === void 0 ? void 0 : parentRef.current;
|
24
33
|
if (!container) {
|
25
34
|
return undefined;
|
26
35
|
}
|
27
|
-
|
36
|
+
const throttledHandleScroll = throttle(handleScroll, THROTTLE_DELAY, {
|
37
|
+
leading: true,
|
38
|
+
trailing: true,
|
39
|
+
});
|
40
|
+
container.addEventListener('scroll', throttledHandleScroll);
|
28
41
|
return () => {
|
29
|
-
container.removeEventListener('scroll',
|
30
|
-
|
42
|
+
container.removeEventListener('scroll', throttledHandleScroll);
|
43
|
+
throttledHandleScroll.cancel();
|
31
44
|
};
|
32
|
-
}, [
|
33
|
-
return
|
45
|
+
}, [handleScroll, parentRef]);
|
46
|
+
return React.useMemo(() => {
|
47
|
+
// boolean array that represents active chunks
|
48
|
+
const activeChunks = Array(chunksCount).fill(false);
|
49
|
+
for (let i = startChunk; i <= endChunk; i++) {
|
50
|
+
activeChunks[i] = true;
|
51
|
+
}
|
52
|
+
return activeChunks;
|
53
|
+
}, [chunksCount, startChunk, endChunk]);
|
34
54
|
};
|
35
55
|
//# sourceMappingURL=useScrollBasedChunks.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useScrollBasedChunks.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/useScrollBasedChunks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"useScrollBasedChunks.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/useScrollBasedChunks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAC,yBAAyB,EAAC,MAAM,SAAS,CAAC;AAWlD,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACjC,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACjC,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,GAAG,sBAAsB,GACd,EAAa,EAAE;IACvC,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAC7B,G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,KAAK,CAAC,CAAC;QACpD,KAAK,IAAI,CAAC,GAAG,UAAU,EAAE,CAAC,IAAI,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;QAC3B,CAAC;QACD,OAAO,YAAY,CAAC;IACxB,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC5C,CAAC,CAAC"}
|
@@ -1,2 +1,20 @@
|
|
1
1
|
export declare function rafThrottle<Fn extends (...args: any[]) => any>(fn: Fn): (...args: Parameters<Fn>) => void;
|
2
2
|
export declare function calculateColumnWidth(newWidth: number, minWidth?: number, maxWidth?: number): number;
|
3
|
+
export declare const typedMemo: <T>(Component: T) => T;
|
4
|
+
/**
|
5
|
+
* Calculates the total vertical offset (distance from top) of an element relative to its container
|
6
|
+
* or the document body if no container is specified.
|
7
|
+
*
|
8
|
+
* This function traverses up through the DOM tree, accumulating offsetTop values
|
9
|
+
* from each parent element until it reaches either the specified container or
|
10
|
+
* the top of the document.
|
11
|
+
*
|
12
|
+
* @param element - The HTML element to calculate the offset for
|
13
|
+
* @param container - Optional container element to stop the calculation at
|
14
|
+
* @returns The total vertical offset in pixels
|
15
|
+
*
|
16
|
+
* Example:
|
17
|
+
* const offset = calculateElementOffsetTop(myElement, myContainer);
|
18
|
+
* // Returns the distance in pixels from myElement to the top of myContainer
|
19
|
+
*/
|
20
|
+
export declare function calculateElementOffsetTop(element: HTMLElement, container?: HTMLElement): number;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
// invoke passed function at most once per animation frame
|
2
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
3
4
|
export function rafThrottle(fn) {
|
@@ -19,4 +20,30 @@ export function rafThrottle(fn) {
|
|
19
20
|
export function calculateColumnWidth(newWidth, minWidth = 40, maxWidth = Infinity) {
|
20
21
|
return Math.max(minWidth, Math.min(newWidth, maxWidth));
|
21
22
|
}
|
23
|
+
export const typedMemo = React.memo;
|
24
|
+
/**
|
25
|
+
* Calculates the total vertical offset (distance from top) of an element relative to its container
|
26
|
+
* or the document body if no container is specified.
|
27
|
+
*
|
28
|
+
* This function traverses up through the DOM tree, accumulating offsetTop values
|
29
|
+
* from each parent element until it reaches either the specified container or
|
30
|
+
* the top of the document.
|
31
|
+
*
|
32
|
+
* @param element - The HTML element to calculate the offset for
|
33
|
+
* @param container - Optional container element to stop the calculation at
|
34
|
+
* @returns The total vertical offset in pixels
|
35
|
+
*
|
36
|
+
* Example:
|
37
|
+
* const offset = calculateElementOffsetTop(myElement, myContainer);
|
38
|
+
* // Returns the distance in pixels from myElement to the top of myContainer
|
39
|
+
*/
|
40
|
+
export function calculateElementOffsetTop(element, container) {
|
41
|
+
let currentElement = element;
|
42
|
+
let offsetTop = 0;
|
43
|
+
while (currentElement && currentElement !== container) {
|
44
|
+
offsetTop += currentElement.offsetTop;
|
45
|
+
currentElement = currentElement.offsetParent;
|
46
|
+
}
|
47
|
+
return offsetTop;
|
48
|
+
}
|
22
49
|
//# sourceMappingURL=utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/utils.
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,0DAA0D;AAC1D,8DAA8D;AAC9D,MAAM,UAAU,WAAW,CAAqC,EAAM;IAClE,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,IAAI,UAA0B,CAAC;IAE/B,OAAO,SAAS,SAAS,CAAC,GAAG,IAAoB;QAC7C,2CAA2C;QAC3C,UAAU,GAAG,IAAI,CAAC;QAElB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC5B,OAAO;QACX,CAAC;QAED,KAAK,GAAG,qBAAqB,CAAC,GAAG,EAAE;YAC/B,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC;YAClB,KAAK,GAAG,IAAI,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,oBAAoB,CAAC,QAAgB,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,QAAQ;IACrF,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAA2B,KAAK,CAAC,IAAI,CAAC;AAE5D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAAoB,EAAE,SAAuB;IACnF,IAAI,cAAc,GAAG,OAAO,CAAC;IAC7B,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,OAAO,cAAc,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACpD,SAAS,IAAI,cAAc,CAAC,SAAS,CAAC;QACtC,cAAc,GAAG,cAAc,CAAC,YAA2B,CAAC;IAChE,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -74,7 +74,7 @@ export function Node(props) {
|
|
74
74
|
const renderTabContent = () => {
|
75
75
|
switch (activeTabVerified.id) {
|
76
76
|
case STORAGE: {
|
77
|
-
return (_jsx("div", { className: b('storage'), children: _jsx(StorageWrapper, { nodeId: nodeId, parentRef: container }) }));
|
77
|
+
return (_jsx("div", { className: b('storage'), ref: container, children: _jsx(StorageWrapper, { nodeId: nodeId, parentRef: container }) }));
|
78
78
|
}
|
79
79
|
case TABLETS: {
|
80
80
|
return (_jsx(Tablets, { nodeId: nodeId, database: tenantName, className: b('node-page-wrapper') }));
|
@@ -93,7 +93,7 @@ export function Node(props) {
|
|
93
93
|
return _jsx(Loader, { size: "l" });
|
94
94
|
}
|
95
95
|
if (node) {
|
96
|
-
return (_jsxs("div", { className: b(null, props.className),
|
96
|
+
return (_jsxs("div", { className: b(null, props.className), children: [_jsx(Helmet, { titleTemplate: `%s — ${node.Host} — YDB Monitoring`, defaultTitle: `${node.Host} — YDB Monitoring`, children: _jsx("title", { children: activeTabVerified.title }) }), _jsx(BasicNodeViewer, { node: node, additionalNodesProps: props.additionalNodesProps, className: b('header') }), error ? _jsx(ResponseError, { error: error, className: b('error') }) : null, renderTabs(), _jsx("div", { className: b('content'), children: renderTabContent() })] }));
|
97
97
|
}
|
98
98
|
if (error) {
|
99
99
|
return _jsx(ResponseError, { error: error });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Node.js","sourceRoot":"","sources":["../../../src/containers/Node/Node.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,cAAc,EAAC,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC5D,OAAO,EACH,qBAAqB,EACrB,qBAAqB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,gCAAgC,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAA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EACD,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACrE,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAG,gBAAgB,EAAE,GAAO,IACtD,CACT,CAAC;IACN,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;IAC3C,CAAC;IAED,OAAO,cAAK,SAAS,EAAC,OAAO,6BAAmB,CAAC;AACrD,CAAC"}
|
@@ -2,7 +2,7 @@ import type { AdditionalNodesProps } from '../../types/additionalProps';
|
|
2
2
|
interface NodesWrapperProps {
|
3
3
|
path?: string;
|
4
4
|
database?: string;
|
5
|
-
parentRef
|
5
|
+
parentRef: React.RefObject<HTMLElement>;
|
6
6
|
additionalNodesProps?: AdditionalNodesProps;
|
7
7
|
}
|
8
8
|
export declare const NodesWrapper: ({ parentRef, ...props }: NodesWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -4,7 +4,7 @@ import './Nodes.scss';
|
|
4
4
|
interface NodesProps {
|
5
5
|
path?: string;
|
6
6
|
database?: string;
|
7
|
-
parentRef
|
7
|
+
parentRef: React.RefObject<HTMLElement>;
|
8
8
|
additionalNodesProps?: AdditionalNodesProps;
|
9
9
|
}
|
10
10
|
export declare const PaginatedNodes: ({ path, database, parentRef, additionalNodesProps }: NodesProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -53,6 +53,7 @@ export function PDiskPage() {
|
|
53
53
|
const dispatch = useTypedDispatch();
|
54
54
|
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
55
55
|
const newDiskApiAvailable = useDiskPagesAvailable();
|
56
|
+
const containerRef = React.useRef(null);
|
56
57
|
const [{ nodeId, pDiskId, activeTab }] = useQueryParams({
|
57
58
|
activeTab: StringParam,
|
58
59
|
nodeId: StringParam,
|
@@ -143,7 +144,7 @@ export function PDiskPage() {
|
|
143
144
|
return pDiskData ? (_jsx("div", { className: pdiskPageCn('disk-distribution'), children: _jsx(PDiskSpaceDistribution, { data: pDiskData }) })) : null;
|
144
145
|
}
|
145
146
|
case 'storage': {
|
146
|
-
return pDiskParamsDefined ? (_jsx(StorageWrapper, { nodeId: nodeId, pDiskId: pDiskId })) : null;
|
147
|
+
return pDiskParamsDefined ? (_jsx(StorageWrapper, { nodeId: nodeId, pDiskId: pDiskId, parentRef: containerRef })) : null;
|
147
148
|
}
|
148
149
|
default:
|
149
150
|
return null;
|
@@ -155,6 +156,6 @@ export function PDiskPage() {
|
|
155
156
|
}
|
156
157
|
return _jsx(ResponseError, { error: pdiskDataQuery.error });
|
157
158
|
};
|
158
|
-
return (_jsxs("div", { className: pdiskPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderError(), renderInfo(), renderTabs(), renderTabsContent()] }));
|
159
|
+
return (_jsxs("div", { className: pdiskPageCn(null), ref: containerRef, children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderError(), renderInfo(), renderTabs(), renderTabsContent()] }));
|
159
160
|
}
|
160
161
|
//# sourceMappingURL=PDiskPage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDiskPage.js","sourceRoot":"","sources":["../../../src/containers/PDiskPage/PDiskPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,C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AAE,CAEhB,CAClB,CAAC;gBACN,CAAC,GACH,GACA,CACT,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC3B,QAAQ,QAAQ,EAAE,CAAC;YACf,KAAK,kBAAkB,CAAC,CAAC,CAAC;gBACtB,OAAO,SAAS,CAAC,CAAC,CAAC,CACf,cAAK,SAAS,EAAE,WAAW,CAAC,mBAAmB,CAAC,YAC5C,KAAC,sBAAsB,IAAC,IAAI,EAAE,SAAS,GAAI,GACzC,CACT,CAAC,CAAC,CAAC,IAAI,CAAC;YACb,CAAC;YACD,KAAK,SAAS,CAAC,CAAC,CAAC;gBACb,OAAO,kBAAkB,CAAC,CAAC,CAAC,CACxB,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,GAAI,CAChF,CAAC,CAAC,CAAC,IAAI,CAAC;YACb,CAAC;YACD;gBACI,OAAO,IAAI,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,cAAc,CAAC,KAAK,GAAI,CAAC;IAC1D,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,YAAY,aAC/C,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,cAAc,EAAE,EAChB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,UAAU,EAAE,EACZ,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC"}
|
@@ -5,7 +5,7 @@ export interface PaginatedStorageProps {
|
|
5
5
|
groupId?: string | number;
|
6
6
|
pDiskId?: string | number;
|
7
7
|
viewContext: StorageViewContext;
|
8
|
-
parentRef
|
8
|
+
parentRef: React.RefObject<HTMLElement>;
|
9
9
|
initialEntitiesCount?: number;
|
10
10
|
}
|
11
11
|
export declare const PaginatedStorage: (props: PaginatedStorageProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -46,7 +46,7 @@ function StorageGroupsComponent({ database, nodeId, groupId, pDiskId, viewContex
|
|
46
46
|
};
|
47
47
|
return (_jsx(PaginatedStorageGroupsTable, { database: database, nodeId: nodeId, groupId: groupId, pDiskId: pDiskId, searchValue: searchValue, visibleEntities: visibleEntities, onShowAll: handleShowAllGroups, parentRef: parentRef, renderControls: renderControls, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: initialEntitiesCount }));
|
48
48
|
}
|
49
|
-
function GroupedStorageGroupsComponent({ database, nodeId, groupId, pDiskId, viewContext, }) {
|
49
|
+
function GroupedStorageGroupsComponent({ database, nodeId, groupId, pDiskId, parentRef, viewContext, }) {
|
50
50
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
51
51
|
const { searchValue, storageGroupsGroupByParam, visibleEntities, handleShowAllGroups } = useStorageQueryParams();
|
52
52
|
const { columnsToShow, columnsToSelect, setColumns } = useStorageGroupsSelectedColumns({
|
@@ -75,7 +75,7 @@ function GroupedStorageGroupsComponent({ database, nodeId, groupId, pDiskId, vie
|
|
75
75
|
if (tableGroups === null || tableGroups === void 0 ? void 0 : tableGroups.length) {
|
76
76
|
return tableGroups.map(({ name, count }) => {
|
77
77
|
const isExpanded = expandedGroups[name];
|
78
|
-
return (_jsx(TableGroup, { title: name, count: count, entityName: i18n('groups'), expanded: isExpanded, onIsExpandedChange: setIsGroupExpanded, children: _jsx(PaginatedStorageGroupsTable, { database: database, nodeId: nodeId, groupId: groupId, pDiskId: pDiskId, filterGroup: name, filterGroupBy: storageGroupsGroupByParam, searchValue: searchValue, visibleEntities: 'all', onShowAll: handleShowAllGroups, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: count }) }, name));
|
78
|
+
return (_jsx(TableGroup, { title: name, count: count, entityName: i18n('groups'), expanded: isExpanded, onIsExpandedChange: setIsGroupExpanded, children: _jsx(PaginatedStorageGroupsTable, { database: database, parentRef: parentRef, nodeId: nodeId, groupId: groupId, pDiskId: pDiskId, filterGroup: name, filterGroupBy: storageGroupsGroupByParam, searchValue: searchValue, visibleEntities: 'all', onShowAll: handleShowAllGroups, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: count }) }, name));
|
79
79
|
});
|
80
80
|
}
|
81
81
|
return i18n('no-groups');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedStorageGroups.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,kCAAkC,GACrC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAC,qBAAqB,EAAC,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAC,2BAA2B,EAAC,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qCAAqC,CAAC;AACtE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,CAAC,EAAE,gCAAgC,EAAC,MAAM,UAAU,CAAC;AAC7D,OAA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mB,CAAC,EAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAC,EAAE,EAAE;QAC9E,OAAO,CACH,KAAC,qBAAqB,IAClB,gBAAgB,QAChB,iBAAiB,EAAE,gCAAgC,EACnD,oBAAoB,EAAE,aAAa,EACnC,kBAAkB,EAAE,aAAa,EACjC,eAAe,EAAE,CAAC,MAAM,EACxB,eAAe,EAAE,eAAe,EAChC,2BAA2B,EAAE,UAAU,GACzC,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,2BAA2B,IACxB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,mBAAmB,EAC9B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,gCAAgC,EACpD,OAAO,EAAE,aAAa,EACtB,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC;AAED,SAAS,6BAA6B,CAAC,EACnC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,
|
1
|
+
{"version":3,"file":"PaginatedStorageGroups.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,kCAAkC,GACrC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAC,qBAA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AU,IAEP,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,EAC1B,QAAQ,EAAE,UAAU,EACpB,kBAAkB,EAAE,kBAAkB,YAEtC,KAAC,2BAA2B,IACxB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,IAAI,EACjB,aAAa,EAAE,yBAAyB,EACxC,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,KAAK,EACtB,SAAS,EAAE,mBAAmB,EAC9B,kBAAkB,EAAE,gCAAgC,EACpD,OAAO,EAAE,aAAa,EACtB,oBAAoB,EAAE,KAAK,GAC7B,IArBG,IAAI,CAsBA,CAChB,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC5E,YAAY,EAAE,GACa,IACV,CAC7B,CAAC;AACN,CAAC"}
|
@@ -51,7 +51,7 @@ function StorageNodesComponent({ database, nodeId, groupId, viewContext, parentR
|
|
51
51
|
};
|
52
52
|
return (_jsx(PaginatedStorageNodesTable, { database: database, nodeId: nodeId, groupId: groupId, searchValue: searchValue, visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, onShowAll: handleShowAllNodes, parentRef: parentRef, renderControls: renderControls, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: initialEntitiesCount }));
|
53
53
|
}
|
54
|
-
function GroupedStorageNodesComponent({ database, groupId, nodeId, viewContext, }) {
|
54
|
+
function GroupedStorageNodesComponent({ database, groupId, nodeId, viewContext, parentRef, }) {
|
55
55
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
56
56
|
const { searchValue, storageNodesGroupByParam, handleShowAllNodes } = useStorageQueryParams();
|
57
57
|
const { columnsToShow, columnsToSelect, setColumns } = useStorageNodesColumnsToSelect({
|
@@ -78,7 +78,7 @@ function GroupedStorageNodesComponent({ database, groupId, nodeId, viewContext,
|
|
78
78
|
if (tableGroups === null || tableGroups === void 0 ? void 0 : tableGroups.length) {
|
79
79
|
return tableGroups.map(({ name, count }) => {
|
80
80
|
const isExpanded = expandedGroups[name];
|
81
|
-
return (_jsx(TableGroup, { title: name, count: count, entityName: i18n('nodes'), expanded: isExpanded, onIsExpandedChange: setIsGroupExpanded, children: _jsx(PaginatedStorageNodesTable, { database: database, nodeId: nodeId, groupId: groupId, searchValue: searchValue, visibleEntities: 'all', nodesUptimeFilter: NodesUptimeFilterValues.All, onShowAll: handleShowAllNodes, filterGroup: name, filterGroupBy: storageNodesGroupByParam, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: count }) }, name));
|
81
|
+
return (_jsx(TableGroup, { title: name, count: count, entityName: i18n('nodes'), expanded: isExpanded, onIsExpandedChange: setIsGroupExpanded, children: _jsx(PaginatedStorageNodesTable, { database: database, parentRef: parentRef, nodeId: nodeId, groupId: groupId, searchValue: searchValue, visibleEntities: 'all', nodesUptimeFilter: NodesUptimeFilterValues.All, onShowAll: handleShowAllNodes, filterGroup: name, filterGroupBy: storageNodesGroupByParam, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: count }) }, name));
|
82
82
|
});
|
83
83
|
}
|
84
84
|
return i18n('no-nodes');
|
@@ -1 +1 @@
|
|
1
|
-
{"version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AChD,oBAAoB,EAAE,aAAa,EACnC,kBAAkB,EAAE,aAAa,EACjC,eAAe,EAAE,CAAC,MAAM,EACxB,eAAe,EAAE,eAAe,EAChC,2BAA2B,EAAE,UAAU,GACzC,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,0BAA0B,IACvB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,kBAAkB,EAC7B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,gCAAgC,EACpD,OAAO,EAAE,aAAa,EACtB,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC;AAED,SAAS,4BAA4B,CAAC,EAClC,QAAQ,EACR,OAAO,EACP,MAAM,EACN,WAAW,
|
1
|
+
{"version":3,"file":"PaginatedStorageNodes.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;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AAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAClE,MAAM,EAAC,eAAe,EAAC,GAAG,qBAAqB,EAAE,CAAC;IAElD,OAAO,8BAA8B,CAAC;QAClC,oBAAoB;QACpB,eAAe;QACf,QAAQ;QACR,WAAW;KACd,CAAC,CAAC;AACP,CAAC"}
|
@@ -14,7 +14,7 @@ interface PaginatedStorageGroupsTableProps {
|
|
14
14
|
searchValue: string;
|
15
15
|
visibleEntities: VisibleEntities;
|
16
16
|
onShowAll: VoidFunction;
|
17
|
-
parentRef
|
17
|
+
parentRef: React.RefObject<HTMLElement>;
|
18
18
|
renderControls?: RenderControls;
|
19
19
|
renderErrorMessage: RenderErrorMessage;
|
20
20
|
initialEntitiesCount?: number;
|
@@ -15,7 +15,7 @@ interface PaginatedStorageNodesTableProps {
|
|
15
15
|
visibleEntities: VisibleEntities;
|
16
16
|
nodesUptimeFilter: NodesUptimeFilterValues;
|
17
17
|
onShowAll: VoidFunction;
|
18
|
-
parentRef
|
18
|
+
parentRef: React.RefObject<HTMLElement>;
|
19
19
|
renderControls?: RenderControls;
|
20
20
|
renderErrorMessage: RenderErrorMessage;
|
21
21
|
initialEntitiesCount?: number;
|
@@ -4,7 +4,7 @@ interface StorageWrapperProps {
|
|
4
4
|
pDiskId?: string | number;
|
5
5
|
groupId?: string | number;
|
6
6
|
vDiskSlotId?: string | number;
|
7
|
-
parentRef
|
7
|
+
parentRef: React.RefObject<HTMLElement>;
|
8
8
|
}
|
9
9
|
export declare const StorageWrapper: ({ parentRef, ...props }: StorageWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
10
10
|
export {};
|
@@ -22,6 +22,7 @@ const storageGroupPageCn = cn('ydb-storage-group-page');
|
|
22
22
|
export function StorageGroupPage() {
|
23
23
|
var _a, _b;
|
24
24
|
const dispatch = useTypedDispatch();
|
25
|
+
const containerRef = React.useRef(null);
|
25
26
|
const [{ groupId }] = useQueryParams({ groupId: StringParam });
|
26
27
|
React.useEffect(() => {
|
27
28
|
dispatch(setHeaderBreadcrumbs('storageGroup', { groupId }));
|
@@ -63,7 +64,7 @@ export function StorageGroupPage() {
|
|
63
64
|
if (!groupId) {
|
64
65
|
return null;
|
65
66
|
}
|
66
|
-
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: storageGroupPageCn('storage-title'), children: storageGroupPageKeyset('storage') }), _jsx(StorageWrapper, { groupId: groupId })] }));
|
67
|
+
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: storageGroupPageCn('storage-title'), children: storageGroupPageKeyset('storage') }), _jsx(StorageWrapper, { groupId: groupId, parentRef: containerRef })] }));
|
67
68
|
};
|
68
69
|
const renderError = () => {
|
69
70
|
if (!groupQuery.error) {
|
@@ -71,6 +72,6 @@ export function StorageGroupPage() {
|
|
71
72
|
}
|
72
73
|
return _jsx(ResponseError, { error: groupQuery.error });
|
73
74
|
};
|
74
|
-
return (_jsxs("div", { className: storageGroupPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderError(), renderInfo(), renderStorage()] }));
|
75
|
+
return (_jsxs("div", { className: storageGroupPageCn(null), ref: containerRef, children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderError(), renderInfo(), renderStorage()] }));
|
75
76
|
}
|
76
77
|
//# sourceMappingURL=StorageGroupPage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StorageGroupPage.js","sourceRoot":"","sources":["../../../src/containers/StorageGroupPage/StorageGroupPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,C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,eAAK,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,YAAY,aACtD,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -26,6 +26,7 @@ import './VDiskPage.scss';
|
|
26
26
|
const vDiskPageCn = cn('ydb-vdisk-page');
|
27
27
|
export function VDiskPage() {
|
28
28
|
const dispatch = useTypedDispatch();
|
29
|
+
const containerRef = React.useRef(null);
|
29
30
|
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
30
31
|
const newDiskApiAvailable = useDiskPagesAvailable();
|
31
32
|
const [{ nodeId, pDiskId, vDiskSlotId }] = useQueryParams({
|
@@ -108,7 +109,7 @@ export function VDiskPage() {
|
|
108
109
|
};
|
109
110
|
const renderStorageInfo = () => {
|
110
111
|
if (valueIsDefined(GroupID) && valueIsDefined(nodeId)) {
|
111
|
-
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: vDiskPageCn('storage-title'), children: vDiskPageKeyset('storage') }), _jsx(StorageWrapper, { groupId: GroupID, nodeId: nodeId, pDiskId: pDiskId !== null && pDiskId !== void 0 ? pDiskId : undefined, vDiskSlotId: vDiskSlotId !== null && vDiskSlotId !== void 0 ? vDiskSlotId : undefined })] }));
|
112
|
+
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: vDiskPageCn('storage-title'), children: vDiskPageKeyset('storage') }), _jsx(StorageWrapper, { groupId: GroupID, nodeId: nodeId, pDiskId: pDiskId !== null && pDiskId !== void 0 ? pDiskId : undefined, vDiskSlotId: vDiskSlotId !== null && vDiskSlotId !== void 0 ? vDiskSlotId : undefined, parentRef: containerRef })] }));
|
112
113
|
}
|
113
114
|
return null;
|
114
115
|
};
|
@@ -118,6 +119,6 @@ export function VDiskPage() {
|
|
118
119
|
}
|
119
120
|
return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: error }) : null, renderInfo(), renderStorageInfo()] }));
|
120
121
|
};
|
121
|
-
return (_jsxs("div", { className: vDiskPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderContent()] }));
|
122
|
+
return (_jsxs("div", { className: vDiskPageCn(null), ref: containerRef, children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderContent()] }));
|
122
123
|
}
|
123
124
|
//# sourceMappingURL=VDiskPage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDiskPage.js","sourceRoot":"","sources":["../../../src/containers/VDiskPage/VDiskPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAC,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAC7C,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,qBAAqB,EAAC,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAC,oBAAoB,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,CAAC,GAAO,EAChF,KAAC,cAAc,IACX,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,SAAS,EAC7B,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,SAAS,EACrC,SAAS,EAAE,YAAY,GACzB,IACW,CACpB,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,OAAO,EAAE,CAAC;YACV,OAAO,KAAC,kBAAkB,IAAC,IAAI,EAAE,EAAE,GAAI,CAAC;QAC5C,CAAC;QAED,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACV,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9C,UAAU,EAAE,EACZ,iBAAiB,EAAE,IACP,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,YAAY,aAC/C,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,cAAc,EAAE,EAChB,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -10,7 +10,7 @@ export declare const DEFAULT_USER_SETTINGS: {
|
|
10
10
|
readonly last_used_query_action: "execute";
|
11
11
|
readonly asideHeaderCompact: true;
|
12
12
|
readonly partitionsHiddenColumns: readonly [];
|
13
|
-
readonly useBackendParamsForTables:
|
13
|
+
readonly useBackendParamsForTables: true;
|
14
14
|
readonly useClusterBalancerAsBacked: true;
|
15
15
|
readonly enableAutocomplete: true;
|
16
16
|
readonly autocompleteOnEnter: true;
|
@@ -13,7 +13,7 @@ export const DEFAULT_USER_SETTINGS = {
|
|
13
13
|
[LAST_USED_QUERY_ACTION_KEY]: QUERY_ACTIONS.execute,
|
14
14
|
[ASIDE_HEADER_COMPACT_KEY]: true,
|
15
15
|
[PARTITIONS_HIDDEN_COLUMNS_KEY]: [],
|
16
|
-
[USE_PAGINATED_TABLES_KEY]:
|
16
|
+
[USE_PAGINATED_TABLES_KEY]: true,
|
17
17
|
[USE_CLUSTER_BALANCER_AS_BACKEND_KEY]: true,
|
18
18
|
[ENABLE_AUTOCOMPLETE]: true,
|
19
19
|
[AUTOCOMPLETE_ON_ENTER]: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/services/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACH,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,iCAAiC,EACjC,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,qCAAqC,EACrC,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,SAAS,EACT,mCAAmC,EACnC,wBAAwB,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,sBAAsB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIzC,kDAAkD;AAClD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,CAAC,SAAS,CAAC,EAAE,QAAQ;IACrB,CAAC,YAAY,CAAC,EAAE,SAAS;IACzB,CAAC,kBAAkB,CAAC,EAAE,KAAK;IAC3B,CAAC,iCAAiC,CAAC,EAAE,IAAI;IACzC,CAAC,iBAAiB,CAAC,EAAE,EAAE;IACvB,CAAC,uBAAuB,CAAC,EAAE,gBAAgB,CAAC,KAAK;IACjD,CAAC,0BAA0B,CAAC,EAAE,aAAa,CAAC,OAAO;IACnD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