ydb-embedded-ui 6.26.1 → 6.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/components/DiagnosticCard/DiagnosticCard.d.ts +4 -3
  2. package/dist/components/DiagnosticCard/DiagnosticCard.js +2 -2
  3. package/dist/components/DiagnosticCard/DiagnosticCard.js.map +1 -1
  4. package/dist/components/DiagnosticCard/DiagnosticCard.scss +17 -4
  5. package/dist/components/DoughnutMetrics/DoughnutMetrics.d.ts +20 -0
  6. package/dist/components/DoughnutMetrics/DoughnutMetrics.js +26 -0
  7. package/dist/components/DoughnutMetrics/DoughnutMetrics.js.map +1 -0
  8. package/dist/components/DoughnutMetrics/DoughnutMetrics.scss +58 -0
  9. package/dist/components/PaginatedTable/TableChunk.js +2 -0
  10. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  11. package/dist/components/PaginatedTable/types.d.ts +1 -0
  12. package/dist/components/ProgressViewer/ProgressViewer.js +10 -11
  13. package/dist/components/ProgressViewer/ProgressViewer.js.map +1 -1
  14. package/dist/components/ProgressViewer/ProgressViewer.scss +1 -1
  15. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +4 -2
  16. package/dist/components/Tag/Tag.scss +1 -2
  17. package/dist/components/Tags/Tags.d.ts +3 -2
  18. package/dist/components/Tags/Tags.js +3 -5
  19. package/dist/components/Tags/Tags.js.map +1 -1
  20. package/dist/components/nodesColumns/columns.d.ts +2 -1
  21. package/dist/components/nodesColumns/columns.js.map +1 -1
  22. package/dist/components/nodesColumns/constants.d.ts +4 -0
  23. package/dist/components/nodesColumns/constants.js +25 -0
  24. package/dist/components/nodesColumns/constants.js.map +1 -1
  25. package/dist/components/nodesColumns/i18n/en.json +2 -1
  26. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  27. package/dist/components/nodesColumns/types.d.ts +0 -3
  28. package/dist/containers/Cluster/Cluster.js +4 -3
  29. package/dist/containers/Cluster/Cluster.js.map +1 -1
  30. package/dist/containers/Cluster/Cluster.scss +35 -8
  31. package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.d.ts +10 -0
  32. package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js +66 -0
  33. package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js.map +1 -0
  34. package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +46 -0
  35. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCard.d.ts +17 -0
  36. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCard.js +20 -0
  37. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCard.js.map +1 -0
  38. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCores.d.ts +5 -0
  39. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCores.js +19 -0
  40. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCores.js.map +1 -0
  41. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsMemory.d.ts +5 -0
  42. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsMemory.js +20 -0
  43. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsMemory.js.map +1 -0
  44. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsStorage.d.ts +5 -0
  45. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsStorage.js +20 -0
  46. package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsStorage.js.map +1 -0
  47. package/dist/containers/Cluster/ClusterDashboard/shared.d.ts +9 -0
  48. package/dist/containers/Cluster/ClusterDashboard/shared.js +3 -0
  49. package/dist/containers/Cluster/ClusterDashboard/shared.js.map +1 -0
  50. package/dist/containers/Cluster/ClusterDashboard/utils.d.ts +19 -0
  51. package/dist/containers/Cluster/ClusterDashboard/utils.js +63 -0
  52. package/dist/containers/Cluster/ClusterDashboard/utils.js.map +1 -0
  53. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +1 -3
  54. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -15
  55. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  56. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -18
  57. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +4 -3
  58. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +14 -15
  59. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -1
  60. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +1 -6
  61. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +3 -2
  62. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -4
  63. package/dist/containers/Cluster/ClusterInfo/utils.js +20 -107
  64. package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
  65. package/dist/containers/Cluster/i18n/en.json +11 -12
  66. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  67. package/dist/containers/Nodes/columns/columns.d.ts +2 -1
  68. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  69. package/dist/containers/Nodes/columns/hooks.d.ts +1 -1
  70. package/dist/containers/Nodes/getNodes.js +5 -1
  71. package/dist/containers/Nodes/getNodes.js.map +1 -1
  72. package/dist/containers/Operations/Operations.d.ts +5 -0
  73. package/dist/containers/Operations/Operations.js +33 -0
  74. package/dist/containers/Operations/Operations.js.map +1 -0
  75. package/dist/containers/Operations/OperationsControls.d.ts +12 -0
  76. package/dist/containers/Operations/OperationsControls.js +12 -0
  77. package/dist/containers/Operations/OperationsControls.js.map +1 -0
  78. package/dist/containers/Operations/columns.d.ts +3 -0
  79. package/dist/containers/Operations/columns.js +103 -0
  80. package/dist/containers/Operations/columns.js.map +1 -0
  81. package/dist/containers/Operations/constants.d.ts +23 -0
  82. package/dist/containers/Operations/constants.js +32 -0
  83. package/dist/containers/Operations/constants.js.map +1 -0
  84. package/dist/containers/Operations/i18n/en.json +16 -0
  85. package/dist/containers/Operations/i18n/index.d.ts +2 -0
  86. package/dist/containers/Operations/i18n/index.js +5 -0
  87. package/dist/containers/Operations/i18n/index.js.map +1 -0
  88. package/dist/containers/Operations/index.d.ts +1 -0
  89. package/dist/containers/Operations/index.js +2 -0
  90. package/dist/containers/Operations/index.js.map +1 -0
  91. package/dist/containers/Operations/shared.d.ts +1 -0
  92. package/dist/containers/Operations/shared.js +3 -0
  93. package/dist/containers/Operations/shared.js.map +1 -0
  94. package/dist/containers/Operations/useOperationsQueryParams.d.ts +11 -0
  95. package/dist/containers/Operations/useOperationsQueryParams.js +39 -0
  96. package/dist/containers/Operations/useOperationsQueryParams.js.map +1 -0
  97. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +3 -3
  98. package/dist/containers/Storage/StorageGroups/columns/constants.js +25 -0
  99. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  100. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -3
  101. package/dist/containers/Storage/StorageGroups/getGroups.js +5 -1
  102. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  103. package/dist/containers/Storage/StorageNodes/columns/columns.js +3 -3
  104. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  105. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +3 -43
  106. package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -15
  107. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  108. package/dist/containers/Storage/StorageNodes/columns/hooks.js +4 -3
  109. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -1
  110. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +1 -1
  111. package/dist/containers/Storage/StorageNodes/getNodes.js +5 -1
  112. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  113. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
  114. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  115. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -0
  116. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  117. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  118. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  119. package/dist/containers/Tenant/Query/Preview/Preview.js +1 -3
  120. package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
  121. package/dist/containers/Tenant/utils/schemaQueryTemplates.d.ts +1 -1
  122. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +2 -2
  123. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  124. package/dist/services/api.d.ts +2 -0
  125. package/dist/services/api.js +6 -0
  126. package/dist/services/api.js.map +1 -1
  127. package/dist/store/reducers/operationList.d.ts +4 -0
  128. package/dist/store/reducers/operationList.js +19 -0
  129. package/dist/store/reducers/operationList.js.map +1 -0
  130. package/dist/store/reducers/overview/overview.js +2 -2
  131. package/dist/store/reducers/overview/overview.js.map +1 -1
  132. package/dist/store/reducers/tableData.d.ts +1 -0
  133. package/dist/store/reducers/tableData.js +2 -1
  134. package/dist/store/reducers/tableData.js.map +1 -1
  135. package/dist/store/reducers/tenant/constants.d.ts +1 -0
  136. package/dist/store/reducers/tenant/constants.js +1 -0
  137. package/dist/store/reducers/tenant/constants.js.map +1 -1
  138. package/dist/store/reducers/topic.js +1 -1
  139. package/dist/store/reducers/topic.js.map +1 -1
  140. package/dist/types/api/cluster.d.ts +3 -0
  141. package/dist/types/api/cluster.js.map +1 -1
  142. package/dist/types/api/operationList.d.ts +114 -0
  143. package/dist/types/api/operationList.js +42 -0
  144. package/dist/types/api/operationList.js.map +1 -0
  145. package/dist/types/api/storage.d.ts +1 -1
  146. package/dist/utils/bytesParsers/__test__/formatBytes.test.js +23 -22
  147. package/dist/utils/bytesParsers/__test__/formatBytes.test.js.map +1 -1
  148. package/dist/utils/bytesParsers/formatBytes.d.ts +2 -1
  149. package/dist/utils/bytesParsers/formatBytes.js +5 -5
  150. package/dist/utils/bytesParsers/formatBytes.js.map +1 -1
  151. package/dist/utils/dataFormatters/__test__/formatStorageValues.test.d.ts +1 -0
  152. package/dist/utils/dataFormatters/__test__/formatStorageValues.test.js +37 -0
  153. package/dist/utils/dataFormatters/__test__/formatStorageValues.test.js.map +1 -0
  154. package/dist/utils/dataFormatters/dataFormatters.d.ts +3 -1
  155. package/dist/utils/dataFormatters/dataFormatters.js +33 -3
  156. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  157. package/dist/utils/numeral.js +2 -1
  158. package/dist/utils/numeral.js.map +1 -1
  159. package/dist/utils/progress.d.ts +10 -0
  160. package/dist/utils/progress.js +13 -0
  161. package/dist/utils/progress.js.map +1 -0
  162. package/dist/utils/tableUtils/getRequiredDataFields.d.ts +1 -0
  163. package/dist/utils/tableUtils/getRequiredDataFields.js +11 -0
  164. package/dist/utils/tableUtils/getRequiredDataFields.js.map +1 -0
  165. package/dist/utils/tableUtils/types.d.ts +3 -0
  166. package/dist/utils/tableUtils/types.js +2 -0
  167. package/dist/utils/tableUtils/types.js.map +1 -0
  168. package/dist/utils/utils.d.ts +1 -0
  169. package/dist/utils/utils.js +1 -0
  170. package/dist/utils/utils.js.map +1 -1
  171. package/package.json +1 -1
  172. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +0 -3
  173. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +0 -2
  174. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +0 -5
  175. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"formatBytes.test.js","sourceRoot":"","sources":["../../../../src/utils/bytesParsers/__test__/formatBytes.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,QAAQ,CAAC,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AAG,EAAE;QAClC,MAAM,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;QACnF,MAAM,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,eAAe,GAAG,CAAC,CAAC;QACjF,MAAM,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;QACjF,MAAM,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,eAAe,GAAG,CAAC,CAAC;QAClF,MAAM,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,eAAe,GAAG,CAAC,CAAC;QAClF,MAAM,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,eAAe,GAAG,CAAC,CAAC;QAC/E,MAAM,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,eAAe,GAAG,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -49,9 +49,10 @@ export type FormatBytesArgs = Omit<FormatToSizeArgs, 'value'> & {
49
49
  withSpeedLabel?: boolean;
50
50
  withSizeLabel?: boolean;
51
51
  significantDigits?: number;
52
+ delimiter?: string;
52
53
  };
53
54
  /**
54
55
  * @param significantDigits - number of digits above 3
55
56
  */
56
- export declare const formatBytes: ({ value, size, withSpeedLabel, withSizeLabel, significantDigits, ...params }: FormatBytesArgs) => string;
57
+ export declare const formatBytes: ({ value, size, withSpeedLabel, withSizeLabel, significantDigits, delimiter, ...params }: FormatBytesArgs) => string;
57
58
  export {};
@@ -1,6 +1,6 @@
1
1
  import { GIGABYTE, KILOBYTE, MEGABYTE, TERABYTE } from '../constants';
2
2
  import { formatNumber, roundToPrecision } from '../dataFormatters/dataFormatters';
3
- import { isNumeric } from '../utils';
3
+ import { UNBREAKABLE_GAP, isNumeric } from '../utils';
4
4
  import i18n from './i18n';
5
5
  const sizes = {
6
6
  b: {
@@ -66,8 +66,8 @@ const formatToSize = ({ value, size = 'mb', precision = 0 }) => {
66
66
  const result = roundToPrecision(Number(value) / sizes[size].value, precision);
67
67
  return formatNumber(result);
68
68
  };
69
- const addSizeLabel = (result, size) => {
70
- return result + ` ${sizes[size].label}`;
69
+ const addSizeLabel = (result, size, delimiter = UNBREAKABLE_GAP) => {
70
+ return result + delimiter + sizes[size].label;
71
71
  };
72
72
  const addSpeedLabel = (result, size) => {
73
73
  return addSizeLabel(result, size) + i18n('perSecond');
@@ -75,7 +75,7 @@ const addSpeedLabel = (result, size) => {
75
75
  /**
76
76
  * @param significantDigits - number of digits above 3
77
77
  */
78
- export const formatBytes = ({ value, size, withSpeedLabel = false, withSizeLabel = true, significantDigits = 0, ...params }) => {
78
+ export const formatBytes = ({ value, size, withSpeedLabel = false, withSizeLabel = true, significantDigits = 0, delimiter, ...params }) => {
79
79
  if (!isNumeric(value)) {
80
80
  return '';
81
81
  }
@@ -86,7 +86,7 @@ export const formatBytes = ({ value, size, withSpeedLabel = false, withSizeLabel
86
86
  return addSpeedLabel(result, sizeToConvert);
87
87
  }
88
88
  if (withSizeLabel) {
89
- return addSizeLabel(result, sizeToConvert);
89
+ return addSizeLabel(result, sizeToConvert, delimiter);
90
90
  }
91
91
  return result;
92
92
  };
@@ -1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a,EAAE,SAAS,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { UNBREAKABLE_GAP } from '../../utils';
2
+ import { formatStorageValues } from '../dataFormatters';
3
+ describe('formatStorageValues', () => {
4
+ it('should return ["", ""] when both value and total are undefined', () => {
5
+ const result = formatStorageValues();
6
+ expect(result).toEqual(['', '']);
7
+ });
8
+ it('should format value correctly when total is undefined', () => {
9
+ const result = formatStorageValues(1024);
10
+ expect(result).toEqual([`1${UNBREAKABLE_GAP}KB`, '']);
11
+ });
12
+ it('should format total correctly when value is undefined', () => {
13
+ const result = formatStorageValues(undefined, 2048);
14
+ expect(result).toEqual(['', `2${UNBREAKABLE_GAP}KB`]);
15
+ });
16
+ it('should format both value and total correctly', () => {
17
+ const result = formatStorageValues(1024, 2048);
18
+ expect(result).toEqual(['1', `2${UNBREAKABLE_GAP}KB`]);
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
+ it('should return ["0", formattedTotal] when value is 0', () => {
25
+ const result = formatStorageValues(0, 2048);
26
+ expect(result).toEqual(['0', `2${UNBREAKABLE_GAP}KB`]);
27
+ });
28
+ it('should use provided size and delimiter', () => {
29
+ const result = formatStorageValues(5120, 10240, 'mb', '/');
30
+ expect(result).toEqual(['0.01', '0/MB']);
31
+ });
32
+ it('should handle non-numeric total gracefully', () => {
33
+ const result = formatStorageValues(2048, 'Not a number');
34
+ expect(result).toEqual([`2${UNBREAKABLE_GAP}KB`, '']);
35
+ });
36
+ });
37
+ //# sourceMappingURL=formatStorageValues.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatStorageValues.test.js","sourceRoot":"","sources":["../../../../src/utils/dataFormatters/__test__/formatStorageValues.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC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AAI,CAAC,CAAC,CAAC;IAC/D,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,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC7C,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"}
@@ -5,10 +5,12 @@ export declare const formatBps: (bytes?: string | number) => string;
5
5
  export declare const stringifyVdiskId: (id?: TVDiskID | TVSlotId) => string;
6
6
  export declare const formatUptime: (seconds: number) => string;
7
7
  export declare const formatMsToUptime: (ms?: number) => string | 0 | undefined;
8
- export declare const formatStorageValues: (value?: number, total?: number, size?: BytesSizes) => string[];
8
+ export declare const formatStorageValues: (value?: number, total?: number, size?: BytesSizes, delimiter?: string) => string[];
9
9
  export declare const formatStorageValuesToGb: (value?: number, total?: number) => string[];
10
10
  export declare const formatStorageValuesToTb: (value?: number, total?: number) => string[];
11
11
  export declare const formatNumber: (number?: unknown) => string;
12
+ export declare const formatNumberCustom: (number?: number) => string;
13
+ export declare const formatPercent: (number?: unknown) => string;
12
14
  export declare const formatSecondsToHours: (seconds: number) => string;
13
15
  export declare const roundToPrecision: (value: number | string, precision?: number) => number;
14
16
  export declare const formatCPU: (value?: number | string) => string | undefined;
@@ -34,7 +34,7 @@ export const formatUptime = (seconds) => {
34
34
  export const formatMsToUptime = (ms) => {
35
35
  return ms && formatUptime(ms / 1000);
36
36
  };
37
- export const formatStorageValues = (value, total, size) => {
37
+ export const formatStorageValues = (value, total, size, delimiter) => {
38
38
  let calculatedSize = getSizeWithSignificantDigits(Number(value), 0);
39
39
  let valueWithSizeLabel = true;
40
40
  let valuePrecision = 0;
@@ -43,13 +43,28 @@ export const formatStorageValues = (value, total, size) => {
43
43
  valueWithSizeLabel = false;
44
44
  valuePrecision = 1;
45
45
  }
46
- const formattedValue = formatBytesCustom({
46
+ let formattedValue = formatBytesCustom({
47
47
  value,
48
48
  withSizeLabel: valueWithSizeLabel,
49
49
  size: size || calculatedSize,
50
50
  precision: valuePrecision,
51
51
  });
52
- const formattedTotal = formatBytesCustom({ value: total, size: size || calculatedSize });
52
+ if (value && value > 0) {
53
+ while (formattedValue === '0') {
54
+ valuePrecision += 1;
55
+ formattedValue = formatBytesCustom({
56
+ value,
57
+ withSizeLabel: valueWithSizeLabel,
58
+ size: size || calculatedSize,
59
+ precision: valuePrecision,
60
+ });
61
+ }
62
+ }
63
+ const formattedTotal = formatBytesCustom({
64
+ value: total,
65
+ size: size || calculatedSize,
66
+ delimiter,
67
+ });
53
68
  return [formattedValue, formattedTotal];
54
69
  };
55
70
  export const formatStorageValuesToGb = (value, total) => {
@@ -65,6 +80,21 @@ export const formatNumber = (number) => {
65
80
  // "," in format is delimiter sign, not delimiter itself
66
81
  return configuredNumeral(number).format('0,0.[00000]');
67
82
  };
83
+ export const formatNumberCustom = (number) => {
84
+ return configuredNumeral(number).format('0.[0]a');
85
+ };
86
+ export const formatPercent = (number) => {
87
+ if (!isNumeric(number)) {
88
+ return '';
89
+ }
90
+ const configuredNumber = configuredNumeral(number);
91
+ const numberValue = configuredNumber.value();
92
+ let format = '0.[0]%';
93
+ if (numberValue && numberValue < 0.001) {
94
+ format = '0.[00]%';
95
+ }
96
+ return configuredNumber.format(format);
97
+ };
68
98
  export const formatSecondsToHours = (seconds) => {
69
99
  const hours = (seconds / HOUR_IN_SECONDS).toFixed(2);
70
100
  return `${formatNumber(hours)} hours`;
@@ -1 +1 @@
1
- {"version":3,"file":"dataFormatters.js","sourceRoot":"","sources":["../../../src/utils/dataFormatters/dataFormatters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACH,WAAW,IAAI,iBAAiB,EAChC,4BAA4B,GAC/B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAEnC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,sDAAsD;AACtD,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,EAAE,CAAC;IACd,CAAC;IAED,qDAAqD;IACrD,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAuB,EAAE,EAAE;IACjD,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAE1C,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACd,CAAC;IAED,OAAO,cAAc,GAAG,IAAI,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM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MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,YAAY,GAAG,EAAE,EAAE,EAAE;;IAC1E,MAAM,aAAa,GAAG,MAAA,aAAa,CAAC,KAAK,CAAC,0CAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAE9E,OAAO,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,YAAY,CAAC;AACzC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,YAA6B,EAAE,EAAE;IACjE,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;IAC1D,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,YAA8B,EAAE,EAAE;IACzD,OAAO,YAAY,CAAC,mBAAmB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC7C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;SAAM,CAAC;QACJ,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC;AACL,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import numeral from 'numeral';
2
2
  import 'numeral/locales'; // Without this numeral will throw an error when using not 'en' locale
3
3
  import { Lang, i18n } from './i18n';
4
+ import { UNBREAKABLE_GAP } from './utils';
4
5
  // Set space delimiter for all locales possible in project
5
6
  Object.values(Lang).forEach((value) => {
6
7
  if (numeral.locales[value]) {
7
- numeral.locales[value].delimiters.thousands = ' ';
8
+ numeral.locales[value].delimiters.thousands = UNBREAKABLE_GAP;
8
9
  }
9
10
  });
10
11
  numeral.locale(i18n.lang);
@@ -1 +1 @@
1
- {"version":3,"file":"numeral.js","sourceRoot":"","sources":["../../src/utils/numeral.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,iBAAiB,CAAC,CAAC,sEAAsE;AAEhG,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,QAAQ,CAAC;AAElC,0DAA0D;AAC1D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;IAClC,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,SAAS,GAAG,GAAG,CAAC;IACtD,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"numeral.js","sourceRoot":"","sources":["../../src/utils/numeral.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,iBAAiB,CAAC,CAAC,sEAAsE;AAEhG,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAExC,0DAA0D;AAC1D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;IAClC,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,SAAS,GAAG,eAAe,CAAC;IAClE,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ export type ProgressStatus = 'good' | 'warning' | 'danger';
2
+ interface CalculateProgressStatusProps {
3
+ inverseColorize?: boolean;
4
+ dangerThreshold?: number;
5
+ warningThreshold?: number;
6
+ colorizeProgress?: boolean;
7
+ fillWidth: number;
8
+ }
9
+ export declare function calculateProgressStatus({ inverseColorize, warningThreshold, dangerThreshold, colorizeProgress, fillWidth, }: CalculateProgressStatusProps): ProgressStatus;
10
+ export {};
@@ -0,0 +1,13 @@
1
+ export function calculateProgressStatus({ inverseColorize, warningThreshold = 60, dangerThreshold = 80, colorizeProgress, fillWidth, }) {
2
+ let status = inverseColorize ? 'danger' : 'good';
3
+ if (colorizeProgress) {
4
+ if (fillWidth > warningThreshold && fillWidth <= dangerThreshold) {
5
+ status = 'warning';
6
+ }
7
+ else if (fillWidth > dangerThreshold) {
8
+ status = inverseColorize ? 'good' : 'danger';
9
+ }
10
+ }
11
+ return status;
12
+ }
13
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/utils/progress.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,uBAAuB,CAAC,EACpC,eAAe,EACf,gBAAgB,GAAG,EAAE,EACrB,eAAe,GAAG,EAAE,EACpB,gBAAgB,EAChB,SAAS,GACkB;IAC3B,IAAI,MAAM,GAAmB,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IACjE,IAAI,gBAAgB,EAAE,CAAC;QACnB,IAAI,SAAS,GAAG,gBAAgB,IAAI,SAAS,IAAI,eAAe,EAAE,CAAC;YAC/D,MAAM,GAAG,SAAS,CAAC;QACvB,CAAC;aAAM,IAAI,SAAS,GAAG,eAAe,EAAE,CAAC;YACrC,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;QACjD,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function getRequiredDataFields<ColumnId extends string, RequiredField extends string>(columns: string[], columnsToFields: Record<ColumnId, RequiredField[]>): RequiredField[];
@@ -0,0 +1,11 @@
1
+ export function getRequiredDataFields(columns, columnsToFields) {
2
+ const requiredFieldsSet = columns.reduce((fields, column) => {
3
+ const columnFields = columnsToFields[column];
4
+ columnFields.forEach((field) => {
5
+ fields.add(field);
6
+ });
7
+ return fields;
8
+ }, new Set());
9
+ return Array.from(requiredFieldsSet);
10
+ }
11
+ //# sourceMappingURL=getRequiredDataFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRequiredDataFields.js","sourceRoot":"","sources":["../../../src/utils/tableUtils/getRequiredDataFields.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CACjC,OAAiB,EACjB,eAAkD;IAElD,MAAM,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;QACxD,MAAM,YAAY,GAAG,eAAe,CAAC,MAAkB,CAAC,CAAC;QACzD,YAAY,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC3B,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,IAAI,GAAG,EAAiB,CAAC,CAAC;IAE7B,OAAO,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AACzC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
2
+ import type { Column as PaginatedTableColumn } from '../../components/PaginatedTable';
3
+ export type Column<T> = PaginatedTableColumn<T> & DataTableColumn<T>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/utils/tableUtils/types.ts"],"names":[],"mappings":""}
@@ -6,3 +6,4 @@ export declare function bytesToGB(bytes?: number | string, shouldRound?: boolean
6
6
  export declare function pad9(val: number | string): string;
7
7
  export declare function isNumeric(value?: unknown): value is number | string;
8
8
  export declare function toExponential(value: number, precision?: number): string;
9
+ export declare const UNBREAKABLE_GAP = "\u00A0";
@@ -102,4 +102,5 @@ export function isNumeric(value) {
102
102
  export function toExponential(value, precision) {
103
103
  return Number(value).toExponential(precision);
104
104
  }
105
+ export const UNBREAKABLE_GAP = '\xa0';
105
106
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAW,EAAE,YAAoB;;IAC5D,IAAI,CAAC;QACD,OAAO,MAAA,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAI,YAAY,CAAC;IACrD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IACD,OAAO;AACX,CAAC;AAED,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE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AC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.26.1",
3
+ "version": "6.27.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,3 +0,0 @@
1
- {
2
- "pdisks": "PDisks"
3
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (key: "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
2
- export default _default;
@@ -1,5 +0,0 @@
1
- import { registerKeysets } from '../../../../../utils/i18n';
2
- import en from './en.json';
3
- const COMPONENT = 'ydb-storage-nodes-columns';
4
- export default registerKeysets(COMPONENT, { en });
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Storage/StorageNodes/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,2BAA2B,CAAC;AAE9C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}