ydb-embedded-ui 6.29.1 → 6.29.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +2 -1
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +2 -2
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js.map +1 -1
- package/dist/components/FormattedBytes/FormattedBytes.d.ts +3 -2
- package/dist/components/FormattedBytes/FormattedBytes.js.map +1 -1
- package/dist/components/FormattedBytes/utils.d.ts +3 -2
- package/dist/components/FormattedBytes/utils.js.map +1 -1
- 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/Cluster/ClusterDashboard/components/ClusterMetricsCores.js +9 -2
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCores.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/Tablets/TabletsTable.js +3 -3
- package/dist/containers/Tablets/TabletsTable.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/dist/utils/bytesParsers/formatBytes.d.ts +2 -13
- package/dist/utils/bytesParsers/formatBytes.js.map +1 -1
- package/dist/utils/bytesParsers/i18n/en.json +4 -0
- package/dist/utils/bytesParsers/i18n/index.d.ts +1 -1
- package/dist/utils/bytesParsers/i18n/index.js +1 -2
- package/dist/utils/bytesParsers/i18n/index.js.map +1 -1
- package/dist/utils/dataFormatters/__test__/formatNumbers.test.d.ts +1 -0
- package/dist/utils/dataFormatters/__test__/formatNumbers.test.js +37 -0
- package/dist/utils/dataFormatters/__test__/formatNumbers.test.js.map +1 -0
- package/dist/utils/dataFormatters/__test__/formatStorageValues.test.js +1 -5
- package/dist/utils/dataFormatters/__test__/formatStorageValues.test.js.map +1 -1
- package/dist/utils/dataFormatters/common.d.ts +13 -0
- package/dist/utils/dataFormatters/common.js +25 -0
- package/dist/utils/dataFormatters/common.js.map +1 -0
- package/dist/utils/dataFormatters/dataFormatters.d.ts +3 -2
- package/dist/utils/dataFormatters/dataFormatters.js +9 -41
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/dataFormatters/formatNumber.d.ts +43 -0
- package/dist/utils/dataFormatters/formatNumber.js +82 -0
- package/dist/utils/dataFormatters/formatNumber.js.map +1 -0
- package/package.json +1 -1
- package/dist/utils/bytesParsers/i18n/ru.json +0 -8
@@ -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,CAAC;AAC7D,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,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,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,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,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE1D,OAAO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I,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,C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AC,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":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;AAGzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAC,0BAA0B,EAAC,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAC,8BAA8B,EA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ACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,SAAS,EACT,oBAAoB,GACA;IACpB,MAAM,EAAC,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAC,GACvE,qBAAqB,EAAE,CAAC;IAE5B,MAAM,6BAA6B,GAAG,gCAAgC,EAAE,CAAC;IAEzE,MAAM,EAAC,aAAa,EAAE,eAAe,EAAE,UAAU,EAAC,GAAG,8BAA8B,CAAC;QAChF,QAAQ;QACR,WAAW;KACd,CAAC,CAAC;IAEH,MAAM,cAAc,GAAmB,CAAC,EAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAC,EAAE,EAAE;QAC9E,OAAO,CACH,KAAC,oBAAoB,IACjB,gBAAgB,QAChB,iBAAiB,EAAE,6BAA6B,EAChD,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;A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AEF,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;AAED,SAAS,8BAA8B,CAAC,EACpC,QAAQ,EACR,WAAW,GAId;IACG,MAAM,EAAC,QAAQ,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACxC,MAAM,EAAC,oBAAoB,EAAC,GAAG,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,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,oDAAoD,CAAC;AACpF,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,QAAQ,CAAC;AAE9C,OAAO,yBAAyB,CAAC;AAEjC,MAAM,kBAAkB,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC;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IAAI,CAAC;QAChB,CAAC;QACD,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,cAAK,SAAS,EAAE,kBAAkB,CAAC,eAAe,CAAC,YAC9C,sBAAsB,CAAC,SAAS,CAAC,GAChC,EACN,KAAC,cAAc,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,GAAI,IAChD,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,GAAI,CAAC;IACtD,CAAC,CAAC;IAEF,OAAO,CACH,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"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import {
|
2
|
+
import { ArrowRotateLeft } from '@gravity-ui/icons';
|
3
3
|
import { Icon, Text } from '@gravity-ui/uikit';
|
4
4
|
import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
|
5
5
|
import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
@@ -112,9 +112,9 @@ function TabletActions(tablet) {
|
|
112
112
|
if (!id) {
|
113
113
|
return null;
|
114
114
|
}
|
115
|
-
return (_jsx(ButtonWithConfirmDialog, { buttonView: "outlined", dialogHeader: i18n('dialog.kill-header'), dialogText: i18n('dialog.kill-text'), onConfirmAction: () => {
|
115
|
+
return (_jsx(ButtonWithConfirmDialog, { buttonView: "outlined", buttonTitle: i18n('dialog.kill-header'), dialogHeader: i18n('dialog.kill-header'), dialogText: i18n('dialog.kill-text'), onConfirmAction: () => {
|
116
116
|
return killTablet({ id }).unwrap();
|
117
|
-
}, buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: _jsx(Icon, { data:
|
117
|
+
}, buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: _jsx(Icon, { data: ArrowRotateLeft }) }));
|
118
118
|
}
|
119
119
|
export function TabletsTable({ database, tablets, className, loading }) {
|
120
120
|
if (loading) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletsTable.js","sourceRoot":"","sources":["../../../src/containers/Tablets/TabletsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"TabletsTable.js","sourceRoot":"","sources":["../../../src/containers/Tablets/TabletsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,sDAAsD,CAAC;AACvF,OAAO,EAAC,WAAW,EAAC,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,SAAS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,EAChE,WAAW,QACX,cAAc,EAAE,IAAI,CAAC,2BAA2B,CAAC,EACjD,eAAe,EAAE,0BAA0B,YAE3C,KAAC,IAAI,IAAC,IAAI,EAAE,eAAe,GAAI,GACT,CAC7B,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,YAAY,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAoB;IACnF,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IACD,OAAO,CACH,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,UAAU,CAAC,EAAC,QAAQ,EAAC,CAAC,EAC/B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,GACzC,CACL,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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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,gBAAg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rB,CAAC;QACL,CAAC,CAAC;QAEM,iBAAY,GAAG,CAAC,GAAW,EAAE,KAAc,EAAQ,EAAE;YACzD,IAAI,CAAC;gBACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;oBAC5B,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBACrC,CAAC;qBAAM,CAAC;oBACJ,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gBACrD,CAAC;YACL,CAAC;YAAC,WAAM,CAAC,CAAA,CAAC;QACd,CAAC,CAAC;IACN,CAAC;IA7CG;;;;OAIG;IACH,qBAAqB,CAAC,GAAW,EAAE,YAAsB;;QACrD,OAAO,MAAA,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,mCAAI,YAAY,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,GAAW,EAAE,KAAc;QAC5C,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;CA+BJ;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { FormatValuesArgs } from '../dataFormatters/common';
|
1
2
|
declare const sizes: {
|
2
3
|
b: {
|
3
4
|
value: number;
|
@@ -39,20 +40,8 @@ export type BytesSizes = keyof typeof sizes;
|
|
39
40
|
* significantDigits = 3 - 900 000 mb and 1000 gb
|
40
41
|
*/
|
41
42
|
export declare const getSizeWithSignificantDigits: (value: number, significantDigits: number) => "b" | "kb" | "mb" | "gb" | "tb";
|
42
|
-
interface FormatToSizeArgs {
|
43
|
-
value: number;
|
44
|
-
size?: BytesSizes;
|
45
|
-
precision?: number;
|
46
|
-
}
|
47
|
-
export type FormatBytesArgs = Omit<FormatToSizeArgs, 'value'> & {
|
48
|
-
value: number | string | undefined | null;
|
49
|
-
withSpeedLabel?: boolean;
|
50
|
-
withSizeLabel?: boolean;
|
51
|
-
significantDigits?: number;
|
52
|
-
delimiter?: string;
|
53
|
-
};
|
54
43
|
/**
|
55
44
|
* @param significantDigits - number of digits above 3
|
56
45
|
*/
|
57
|
-
export declare const formatBytes: ({ value, size, withSpeedLabel, withSizeLabel, significantDigits, delimiter, ...params }:
|
46
|
+
export declare const formatBytes: ({ value, size, withSpeedLabel, withSizeLabel, significantDigits, delimiter, ...params }: FormatValuesArgs<BytesSizes>) => string;
|
58
47
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatBytes.js","sourceRoot":"","sources":["../../../src/utils/bytesParsers/formatBytes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"formatBytes.js","sourceRoot":"","sources":["../../../src/utils/bytesParsers/formatBytes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAC,YAAY,EAAE,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAEpD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,KAAK,GAAG;IACV,CAAC,EAAE;QACC,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC;KACnB;IACD,EAAE,EAAE;QACA,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC;KACpB;IACD,EAAE,EAAE;QACA,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC;KACpB;IACD,EAAE,EAAE;QACA,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,IAAI,CA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1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "b" | "kb" | "mb" | "gb" | "tb" | "perSecond", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "b" | "kb" | "mb" | "gb" | "tb" | "label_thousand" | "label_million" | "label_billion" | "label_trillion" | "perSecond", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { registerKeysets } from '../../i18n';
|
2
2
|
import en from './en.json';
|
3
|
-
import ru from './ru.json';
|
4
3
|
const COMPONENT = 'ydb-bytes-parsers';
|
5
|
-
export default registerKeysets(COMPONENT, {
|
4
|
+
export default registerKeysets(COMPONENT, { en });
|
6
5
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/bytesParsers/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,MAAM,WAAW,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/bytesParsers/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAEtC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { UNBREAKABLE_GAP } from '../../utils';
|
2
|
+
import { formatNumericValues } from '../dataFormatters';
|
3
|
+
describe('formatNumericValues', () => {
|
4
|
+
it('should return ["", ""] when both value and total are undefined', () => {
|
5
|
+
const result = formatNumericValues();
|
6
|
+
expect(result).toEqual(['', '']);
|
7
|
+
});
|
8
|
+
it('should format value correctly when total is undefined', () => {
|
9
|
+
const result = formatNumericValues(1000);
|
10
|
+
expect(result).toEqual([`1${UNBREAKABLE_GAP}k`, '']);
|
11
|
+
});
|
12
|
+
it('should format total correctly when value is undefined', () => {
|
13
|
+
const result = formatNumericValues(undefined, 1000000);
|
14
|
+
expect(result).toEqual(['', `1${UNBREAKABLE_GAP}m`]);
|
15
|
+
});
|
16
|
+
it('should format both value and total correctly', () => {
|
17
|
+
const result = formatNumericValues(1024, 2048);
|
18
|
+
expect(result).toEqual(['1', `2${UNBREAKABLE_GAP}k`]);
|
19
|
+
});
|
20
|
+
it('should format value with label if set', () => {
|
21
|
+
const result = formatNumericValues(1024, 2048, undefined, undefined, true);
|
22
|
+
expect(result).toEqual([`1${UNBREAKABLE_GAP}k`, `2${UNBREAKABLE_GAP}k`]);
|
23
|
+
});
|
24
|
+
it('should return ["0", formattedTotal] when value is 0', () => {
|
25
|
+
const result = formatNumericValues(0, 2048);
|
26
|
+
expect(result).toEqual(['0', `2${UNBREAKABLE_GAP}k`]);
|
27
|
+
});
|
28
|
+
it('should use provided size and delimiter', () => {
|
29
|
+
const result = formatNumericValues(5120, 10240, 'billion', '/');
|
30
|
+
expect(result).toEqual(['0', '0/b']);
|
31
|
+
});
|
32
|
+
it('should handle non-numeric total gracefully', () => {
|
33
|
+
const result = formatNumericValues(2048, 'Not a number');
|
34
|
+
expect(result).toEqual([`2${UNBREAKABLE_GAP}k`, '']);
|
35
|
+
});
|
36
|
+
});
|
37
|
+
//# sourceMappingURL=formatNumbers.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"formatNumbers.test.js","sourceRoot":"","sources":["../../../../src/utils/dataFormatters/__test__/formatNumbers.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAEtD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,EAAE,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AAE;QAC3D,MAAM,MAAM,GAAG,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,eAAe,GAAG,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAC9C,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,EAAE,cAAqB,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,eAAe,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -17,17 +17,13 @@ describe('formatStorageValues', () => {
|
|
17
17
|
const result = formatStorageValues(1024, 2048);
|
18
18
|
expect(result).toEqual(['1', `2${UNBREAKABLE_GAP}KB`]);
|
19
19
|
});
|
20
|
-
it('should handle small value compared to total and increase precision', () => {
|
21
|
-
const result = formatStorageValues(1, 1024);
|
22
|
-
expect(result).toEqual(['0.001', `1${UNBREAKABLE_GAP}KB`]);
|
23
|
-
});
|
24
20
|
it('should return ["0", formattedTotal] when value is 0', () => {
|
25
21
|
const result = formatStorageValues(0, 2048);
|
26
22
|
expect(result).toEqual(['0', `2${UNBREAKABLE_GAP}KB`]);
|
27
23
|
});
|
28
24
|
it('should use provided size and delimiter', () => {
|
29
25
|
const result = formatStorageValues(5120, 10240, 'mb', '/');
|
30
|
-
expect(result).toEqual(['0
|
26
|
+
expect(result).toEqual(['0', '0/MB']);
|
31
27
|
});
|
32
28
|
it('should handle non-numeric total gracefully', () => {
|
33
29
|
const result = formatStorageValues(2048, 'Not a number');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatStorageValues.test.js","sourceRoot":"","sources":["../../../../src/utils/dataFormatters/__test__/formatStorageValues.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAEtD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACtE,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC7D,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,eAAe,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC7D,MAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,IAAI,eAAe,IAAI,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,eAAe,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,
|
1
|
+
{"version":3,"file":"formatStorageValues.test.js","sourceRoot":"","sources":["../../../../src/utils/dataFormatters/__test__/formatStorageValues.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAEtD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACtE,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC7D,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,eAAe,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC7D,MAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,IAAI,eAAe,IAAI,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,eAAe,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,MAAM,MAAM,GAAG,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,eAAe,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAC9C,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3D,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,EAAE,cAAqB,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,eAAe,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface FormatToSizeArgs<T> {
|
2
|
+
value: number;
|
3
|
+
size?: T;
|
4
|
+
precision?: number;
|
5
|
+
}
|
6
|
+
export type FormatValuesArgs<T> = Omit<FormatToSizeArgs<T>, 'value'> & {
|
7
|
+
value: number | string | undefined | null;
|
8
|
+
withSpeedLabel?: boolean;
|
9
|
+
withSizeLabel?: boolean;
|
10
|
+
significantDigits?: number;
|
11
|
+
delimiter?: string;
|
12
|
+
};
|
13
|
+
export declare function formatValues<T>(formatter: (args: FormatValuesArgs<T>) => string, sizeGetter: (value: number, significantDigits: number) => T, value?: number, total?: number, size?: T, delimiter?: string, withValueLabel?: boolean): string[];
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { isNumeric } from '../utils';
|
2
|
+
export function formatValues(formatter, sizeGetter, value, total, size, delimiter, withValueLabel = false) {
|
3
|
+
let calculatedSize = sizeGetter(Number(value), 0);
|
4
|
+
let valueWithSizeLabel = true;
|
5
|
+
let valuePrecision = 0;
|
6
|
+
if (isNumeric(total)) {
|
7
|
+
calculatedSize = sizeGetter(Number(total), 0);
|
8
|
+
valueWithSizeLabel = withValueLabel;
|
9
|
+
valuePrecision = 1;
|
10
|
+
}
|
11
|
+
const formattedValue = formatter({
|
12
|
+
value,
|
13
|
+
withSizeLabel: valueWithSizeLabel,
|
14
|
+
size: size || calculatedSize,
|
15
|
+
precision: valuePrecision,
|
16
|
+
delimiter,
|
17
|
+
});
|
18
|
+
const formattedTotal = formatter({
|
19
|
+
value: total,
|
20
|
+
size: size || calculatedSize,
|
21
|
+
delimiter,
|
22
|
+
});
|
23
|
+
return [formattedValue, formattedTotal];
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=common.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/utils/dataFormatters/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAgBnC,MAAM,UAAU,YAAY,CACxB,SAAgD,EAChD,UAA2D,EAC3D,KAAc,EACd,KAAc,EACd,IAAQ,EACR,SAAkB,EAClB,cAAc,GAAG,KAAK;IAEtB,IAAI,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAClD,IAAI,kBAAkB,GAAG,IAAI,CAAC;IAC9B,IAAI,cAAc,GAAG,CAAC,CAAC;IAEvB,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QACnB,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9C,kBAAkB,GAAG,cAAc,CAAC;QACpC,cAAc,GAAG,CAAC,CAAC;IACvB,CAAC;IAED,MAAM,cAAc,GAAG,SAAS,CAAC;QAC7B,KAAK;QACL,aAAa,EAAE,kBAAkB;QACjC,IAAI,EAAE,IAAI,IAAI,cAAc;QAC5B,SAAS,EAAE,cAAc;QACzB,SAAS;KACZ,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,SAAS,CAAC;QAC7B,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,IAAI,IAAI,cAAc;QAC5B,SAAS;KACZ,CAAC,CAAC;IAEH,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;AAC5C,CAAC"}
|